@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
    /* Premium Dark Theme */
    --bg-base: #050505;
    --bg-card: #0e0e11;
    --bg-card-hover: #15151a;
    
    --border-light: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(168, 85, 247, 0.5);
    
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    
    --purple-main: #a855f7;
    --purple-light: #d8b4fe;
    --purple-soft: rgba(168, 85, 247, 0.15);
    
    --shadow-sm: 0 4px 20px rgba(0,0,0,0.4);
    --shadow-md: 0 10px 40px rgba(0,0,0,0.6);
    --shadow-lg: 0 0 40px rgba(168, 85, 247, 0.15);

    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden !important;
    min-height: 100vh;
}

iframe {
    border: none;
    overflow: hidden;
}

/* Page Wrapper */
.page-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-main);
}

.text-gradient {
    background: linear-gradient(135deg, var(--purple-main) 0%, var(--purple-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shiny-text {
    background: linear-gradient(
        90deg, 
        rgba(255, 255, 255, 0.4) 0%, 
        rgba(255, 255, 255, 1) 50%, 
        rgba(255, 255, 255, 0.4) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shine 3s linear infinite reverse;
    transition: text-shadow 0.3s ease;
}

.shiny-text:hover {
    text-shadow: 0 0 15px rgba(255,255,255,0.3);
}

.shiny-purple-text {
    background: linear-gradient(
        90deg, 
        var(--purple-main) 0%, 
        var(--purple-light) 25%, 
        #ffffff 50%, 
        var(--purple-light) 75%, 
        var(--purple-main) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shine 3s linear infinite reverse;
    transition: text-shadow 0.3s ease;
}

.shiny-purple-text:hover {
    text-shadow: 0 0 15px rgba(168, 85, 247, 0.6);
}

@keyframes shine {
    from {
        background-position: 0% center;
    }
    to {
        background-position: 200% center;
    }
}

.text-purple {
    color: var(--purple-main);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* Layout */
.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    .section-padding {
        padding: 5rem 0;
    }
}

.section-padding {
    padding: 6rem 0;
}

.text-center {
    text-align: center;
}

/* Floating Pill Header */
.header {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 4rem);
    max-width: 1000px;
    z-index: 100;
    transition: var(--transition);
}

@media (max-width: 768px) {
    .header {
        top: 1rem;
        width: calc(100% - 2rem);
    }
}

.nav-container {
    background: rgba(14, 14, 17, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: 999px;
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-md);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo-image {
    height: 110px;
    width: 110px;
    object-fit: contain;
    mix-blend-mode: screen; /* Removes black bg if header is slightly lighter */
    margin: -39px -20px -39px -25px; /* Effectively keeps height at 32px while cropping black padding */
}

@media (max-width: 768px) {
    .logo-image {
        height: 70px;
        width: 70px;
        margin: -20px -10px -20px -15px;
    }
}

.logo-icon {
    color: var(--purple-main);
    width: 24px;
    height: 24px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--purple-main);
    background: var(--purple-soft);
}

/* Dropdown Menu System */
.nav-item-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(14, 14, 17, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 0.75rem;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    margin-top: 0.5rem;
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 10px;
    transition: var(--transition);
}

.dropdown-link:hover {
    color: var(--purple-main);
    background: rgba(168, 85, 247, 0.1);
}

.dropdown-link i {
    width: 16px;
    height: 16px;
}

.dropdown-arrow {
    width: 12px;
    height: 12px;
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.nav-item-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 0.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 999px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--purple-main);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--purple-light);
    color: #000000;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--text-main);
    background: rgba(255,255,255,0.05);
    transform: translateY(-2px);
}

/* Shiny Button */
@property --gradient-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@property --gradient-angle-offset {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@property --gradient-percent {
  syntax: "<percentage>";
  initial-value: 5%;
  inherits: false;
}

@property --gradient-shine {
  syntax: "<color>";
  initial-value: white;
  inherits: false;
}

.shiny-cta {
  --shiny-cta-bg: #050505;
  --shiny-cta-bg-subtle: #0e0e11;
  --shiny-cta-fg: #ffffff;
  --shiny-cta-highlight: var(--purple-main);
  --shiny-cta-highlight-subtle: var(--purple-light);
  --duration: 3s;
  --shadow-size: 2px;
  --transition: 800ms cubic-bezier(0.25, 1, 0.5, 1);
  
  isolation: isolate;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  outline-offset: 4px;
  padding: 1rem 2.5rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.2;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--shiny-cta-fg);
  background: linear-gradient(var(--shiny-cta-bg), var(--shiny-cta-bg)) padding-box,
    conic-gradient(
      from calc(var(--gradient-angle) - var(--gradient-angle-offset)),
      transparent,
      var(--shiny-cta-highlight) var(--gradient-percent),
      var(--gradient-shine) calc(var(--gradient-percent) * 2),
      var(--shiny-cta-highlight) calc(var(--gradient-percent) * 3),
      transparent calc(var(--gradient-percent) * 4)
    ) border-box;
  box-shadow: inset 0 0 0 1px var(--shiny-cta-bg-subtle);
  transition: var(--transition);
  transition-property: --gradient-angle-offset, --gradient-percent, --gradient-shine;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
}

.shiny-cta::before,
.shiny-cta::after,
.shiny-cta span::before {
  content: "";
  pointer-events: none;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
}

.shiny-cta:active {
  transform: translateY(1px);
}

.shiny-cta::before {
  --size: calc(100% - var(--shadow-size) * 3);
  --position: 2px;
  --space: calc(var(--position) * 2);
  width: var(--size);
  height: var(--size);
  background: radial-gradient(
    circle at var(--position) var(--position),
    white calc(var(--position) / 4),
    transparent 0
  ) padding-box;
  background-size: var(--space) var(--space);
  background-repeat: space;
  mask-image: conic-gradient(
    from calc(var(--gradient-angle) + 45deg),
    black,
    transparent 10% 90%,
    black
  );
  -webkit-mask-image: conic-gradient(
    from calc(var(--gradient-angle) + 45deg),
    black,
    transparent 10% 90%,
    black
  );
  border-radius: inherit;
  opacity: 0.4;
  z-index: -1;
}

.shiny-cta::after {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(
    -50deg,
    transparent,
    var(--shiny-cta-highlight),
    transparent
  );
  mask-image: radial-gradient(circle at bottom, transparent 40%, black);
  -webkit-mask-image: radial-gradient(circle at bottom, transparent 40%, black);
  opacity: 0.6;
}

.shiny-cta span {
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.shiny-cta span::before {
  --size: calc(100% + 1rem);
  width: var(--size);
  height: var(--size);
  box-shadow: inset 0 -1ex 2rem 4px var(--shiny-cta-highlight);
  opacity: 0;
  transition: opacity var(--transition);
  animation: calc(var(--duration) * 1.5) breathe linear infinite;
}

.shiny-cta {
  animation: gradient-angle var(--duration) linear infinite,
             gradient-angle calc(var(--duration) / 0.4) linear infinite reverse paused;
  animation-composition: add;
}

.shiny-cta::before {
  animation: gradient-angle var(--duration) linear infinite,
             gradient-angle calc(var(--duration) / 0.4) linear infinite reverse paused;
  animation-composition: add;
}

.shiny-cta::after {
  animation: shimmer var(--duration) linear infinite,
             shimmer calc(var(--duration) / 0.4) linear infinite reverse paused;
  animation-composition: add;
}

.shiny-cta:is(:hover, :focus-visible) {
  --gradient-percent: 20%;
  --gradient-angle-offset: 95deg;
  --gradient-shine: var(--shiny-cta-highlight-subtle);
}

.shiny-cta:is(:hover, :focus-visible),
.shiny-cta:is(:hover, :focus-visible)::before,
.shiny-cta:is(:hover, :focus-visible)::after {
  animation-play-state: running;
}

.shiny-cta:is(:hover, :focus-visible) span::before {
  opacity: 1;
}

@keyframes gradient-angle {
  to {
    --gradient-angle: 360deg;
  }
}

@keyframes shimmer {
  to {
    transform: rotate(360deg);
  }
}

@keyframes breathe {
  from, to {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: 12rem;
    padding-bottom: 8rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* 3D Background */
.hero-bg-3d {
    position: absolute;
    top: 5vh;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.9;
}

/* Spotlight Effect */
.spotlight {
    pointer-events: none;
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.15) 0%, rgba(168, 85, 247, 0.1) 40%, transparent 80%);
    filter: blur(20px);
    opacity: 0;
    transition: opacity 0.3s ease-out;
    z-index: 1; /* Above the 3D model, but below the content */
    transform: translate(-50%, -50%);
}

.hero-bg-3d.hovered .spotlight {
    opacity: 1;
}

.hero-container {
    position: relative;
    z-index: 10;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--purple-soft);
    color: var(--purple-main);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 4.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.05;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Removed hero-3d specific box as it is now full background */

/* Feature Section (Orbit Animation) */
.feature-section {
    padding-bottom: 8rem;
}

.feature-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 35rem;
    border: 1px solid var(--border-light);
    background-color: var(--bg-card);
    border-radius: 2rem;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.feature-content {
    width: 50%;
    padding: 4rem;
    z-index: 10;
}

.feature-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 500px;
    line-height: 1.6;
}

.feature-orbits-wrapper {
    position: relative;
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.orbits-container {
    position: relative;
    width: 50rem;
    height: 50rem;
    transform: translateX(25%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.orbit-center {
    width: 6rem;
    height: 6rem;
    background-color: var(--bg-base);
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border: 1px solid var(--border-light);
}

.orbit {
    position: absolute;
    border-radius: 50%;
    border: 2px dashed var(--border-light);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.orbit-1 {
    width: 20rem;
    height: 20rem;
    animation: orbit-spin 12s linear infinite;
}

.orbit-2 {
    width: 28rem;
    height: 28rem;
    animation: orbit-spin 18s linear infinite;
}

.orbit-3 {
    width: 36rem;
    height: 36rem;
    animation: orbit-spin 24s linear infinite;
}

.orbit-icon {
    position: absolute;
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    padding: 0.75rem;
    box-shadow: var(--shadow-md);
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
}

.orbit-1 .orbit-icon {
    animation: orbit-counter-spin 12s linear infinite;
}
.orbit-2 .orbit-icon {
    animation: orbit-counter-spin 18s linear infinite;
}
.orbit-3 .orbit-icon {
    animation: orbit-counter-spin 24s linear infinite;
}

.orbit-icon svg {
    width: 24px;
    height: 24px;
    color: var(--text-muted);
    transition: var(--transition);
}

.orbit-icon:hover svg {
    color: var(--purple-main);
}

@keyframes orbit-spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes orbit-counter-spin {
    from {
        transform: translate(-50%, -50%) rotate(360deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(0deg);
    }
}

/* Bento Box Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.glass-card {
    --x: -1000;
    --y: -1000;
    --radius: 32;
    --border: 1.5;
    --border-size: calc(var(--border) * 1px);
    --spotlight-size: 500px;
    --bg-spot-opacity: 0.12;
    --border-spot-opacity: 1;
    --backdrop: var(--bg-card);
    --backup-border: var(--border-light);

    background-color: var(--backdrop);
    border: var(--border-size) solid var(--backup-border);
    border-radius: calc(var(--radius) * 1px);
    padding: 3rem;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    box-shadow: var(--shadow-sm);
    
    position: relative;
    /* Base background glow */
    background-image: radial-gradient(
        var(--spotlight-size) var(--spotlight-size) at
        calc(var(--x) * 1px)
        calc(var(--y) * 1px),
        rgba(168, 85, 247, var(--bg-spot-opacity)), 
        transparent
    );
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Border Glow ::before and Inner Glow ::after */
.glass-card::before,
.glass-card::after {
    pointer-events: none;
    content: "";
    position: absolute;
    inset: calc(var(--border-size) * -1);
    border: var(--border-size) solid transparent;
    border-radius: calc(var(--radius) * 1px);
    
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 1; /* Place above background */
}

.glass-card::before {
    background-image: radial-gradient(
        calc(var(--spotlight-size) * 0.8) calc(var(--spotlight-size) * 0.8) at
        calc(var(--x) * 1px)
        calc(var(--y) * 1px),
        rgba(168, 85, 247, var(--border-spot-opacity)), 
        transparent 100%
    );
    filter: brightness(2);
}

.glass-card::after {
    background-image: radial-gradient(
        calc(var(--spotlight-size) * 0.4) calc(var(--spotlight-size) * 0.4) at
        calc(var(--x) * 1px)
        calc(var(--y) * 1px),
        rgba(255, 255, 255, 0.8), 
        transparent 100%
    );
}

/* Ensure contents are above the glow layers */
.glass-card > * {
    position: relative;
    z-index: 10;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-base);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    margin-bottom: 2rem;
    transition: var(--transition);
}

.glass-card:hover .card-icon {
    background: var(--purple-main);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}

.card-icon svg {
    width: 28px;
    height: 28px;
}

.card-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.card-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
}

.card-link svg {
    width: 18px;
    height: 18px;
    transition: var(--transition);
}

.card-link:hover {
    color: var(--purple-main);
}
.card-link:hover svg {
    transform: translateX(4px);
}

/* Page Headers (Inner pages) */
.page-header {
    padding: 12rem 0 4rem;
    text-align: center;
}

.page-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 1rem;
}

.page-desc {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Form Styles */
.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 32px;
    padding: 3.5rem;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    background: var(--bg-base);
    border: 1px solid transparent;
    border-radius: 16px;
    padding: 1.25rem;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--border-hover);
    background: var(--bg-card);
    box-shadow: 0 0 0 4px var(--purple-soft);
}

textarea.form-control {
    min-height: 160px;
    resize: vertical;
}

/* Hover Footer */
.hover-footer {
    position: relative;
    background: rgba(15, 15, 17, 0.4);
    border-radius: 24px;
    margin: 2rem;
    overflow: hidden;
    margin-top: 6rem;
    border: 1px solid var(--border-light);
}

.footer-content-wrapper {
    position: relative;
    z-index: 40;
    max-width: 1300px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.hover-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-col-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 1rem;
    line-height: 1.6;
}

.footer-col-links h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-col-links ul {
    list-style: none;
}

.footer-col-links li {
    margin-bottom: 0.85rem;
    position: relative;
    width: fit-content;
}

.footer-col-links a, .footer-contact-item a {
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-col-links a:hover, .footer-contact-item a:hover {
    color: var(--purple-main);
}

.footer-pulse-dot {
    position: absolute;
    top: 0;
    right: -12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--purple-main);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(168, 85, 247, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(168, 85, 247, 0); }
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.footer-contact-item svg {
    color: var(--purple-main);
}

.footer-logo-image {
    height: 180px;
    width: 180px;
    object-fit: contain;
    mix-blend-mode: screen;
    margin: -60px 0 -50px -30px; /* Trim large black padding */
}

.footer-bottom-flex {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    border-top: 1px solid var(--border-light);
    padding-top: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
}

.footer-socials a {
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-socials a:hover {
    color: var(--purple-main);
    transform: translateY(-2px);
}

.back-to-top {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--purple-soft);
    color: var(--purple-main);
    border-radius: 50%;
    transition: var(--transition);
}

.back-to-top:hover {
    background: var(--purple-main);
    color: white;
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Hover Effect SVG container */
.hover-effect-container {
    display: none;
    position: absolute;
    bottom: -2rem; /* Position at the bottom */
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 30rem;
    z-index: 10; /* Behind footer-content-wrapper which is z-40 */
    align-items: center;
    justify-content: center;
    overflow: hidden;
    pointer-events: auto;
    opacity: 0.3; /* Make it more subtle in the background */
}

.hover-text-svg {
    user-select: none;
    text-transform: uppercase;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.hover-text-svg text {
    font-family: 'Helvetica', 'Inter', sans-serif;
    font-size: 75px;
    font-weight: bold;
    fill: transparent;
}

.text-base {
    stroke: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hover-text-svg:hover .text-base {
    opacity: 0.7;
}

.text-stroke {
    stroke: var(--purple-main);
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: textStrokeAnim 4s ease-in-out forwards;
}

@keyframes textStrokeAnim {
    0% { stroke-dashoffset: 1000; }
    100% { stroke-dashoffset: 0; }
}

/* Background Gradient for footer */
.footer-bg-gradient {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(125% 125% at 50% 10%, #050505 50%, rgba(168, 85, 247, 0.15) 100%);
    pointer-events: none;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-word {
    opacity: 0;
    transform: translateY(12px) scale(0.95);
    filter: blur(8px);
    display: inline-block;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.text-effect-container.visible .stagger-word {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Responsive */
@media (max-width: 992px) {
    .header {
        width: calc(100% - 2rem);
    }
    .hero-container {
        grid-template-columns: 1fr;
        padding: 3rem 2rem;
        text-align: center;
    }
    .hero-content {
        margin: 0 auto;
    }
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-cta {
        justify-content: center;
    }
    .feature-container {
        flex-direction: column;
        height: auto;
    }
    .feature-content {
        width: 100%;
        text-align: center;
        padding: 3rem 2rem 0;
    }
    .feature-desc {
        margin-left: auto;
        margin-right: auto;
    }
    .feature-orbits-wrapper {
        width: 100%;
        height: 30rem;
        justify-content: center;
        margin-top: -2rem;
    }
    .orbits-container {
        transform: scale(0.6);
    }
    .hover-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-bottom-flex {
        flex-direction: row;
    }
}

/* =========================================
   Location Map Component (Contact Page)
   ========================================= */

.location-map-wrapper {
    perspective: 1000px;
    width: 100%;
    margin-bottom: 2rem;
    cursor: pointer;
    user-select: none;
    position: relative;
}

/* =========================================
   Location Map Utility Classes (Tailwind Polyfill)
   ========================================= */
.location-map-wrapper .absolute { position: absolute; }
.location-map-wrapper .relative { position: relative; }
.location-map-wrapper .inset-0 { top: 0; left: 0; right: 0; bottom: 0; }
.location-map-wrapper .flex { display: flex; }
.location-map-wrapper .flex-col { flex-direction: column; }
.location-map-wrapper .items-start { align-items: flex-start; }
.location-map-wrapper .items-center { align-items: center; }
.location-map-wrapper .justify-between { justify-content: space-between; }
.location-map-wrapper .h-full { height: 100%; }
.location-map-wrapper .w-full { width: 100%; }
.location-map-wrapper .p-5 { padding: 1.25rem; }
.location-map-wrapper .z-10 { z-index: 10; }
.location-map-wrapper .pointer-events-none { pointer-events: none; }
.location-map-wrapper .overflow-hidden { overflow: hidden; }
.location-map-wrapper .rounded-2xl { border-radius: 1rem; }
.location-map-wrapper .rounded-full { border-radius: 9999px; }
.location-map-wrapper .rounded-sm { border-radius: 0.125rem; }
.location-map-wrapper .border { border-width: 1px; border-style: solid; }
.location-map-wrapper .gap-1\.5 { gap: 0.375rem; }
.location-map-wrapper .space-y-1 > * + * { margin-top: 0.25rem; }
.location-map-wrapper .top-1\/2 { top: 50%; }
.location-map-wrapper .left-1\/2 { left: 50%; }
.location-map-wrapper .-translate-x-1\/2 { transform: translateX(-50%); }
.location-map-wrapper .-translate-y-1\/2 { transform: translateY(-50%); }
.location-map-wrapper .px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.location-map-wrapper .py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.location-map-wrapper .h-1\.5 { height: 0.375rem; }
.location-map-wrapper .w-1\.5 { width: 0.375rem; }
.location-map-wrapper .whitespace-nowrap { white-space: nowrap; }

/* Font and text utilities */
.location-map-wrapper .text-xs { font-size: 0.75rem; line-height: 1rem; }
.location-map-wrapper .text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.location-map-wrapper .font-medium { font-weight: 500; }
.location-map-wrapper .font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
.location-map-wrapper .uppercase { text-transform: uppercase; }
.location-map-wrapper .tracking-wide { letter-spacing: 0.025em; }
.location-map-wrapper .tracking-tight { letter-spacing: -0.025em; }


.location-map-card {
    width: 100%;
    height: 200px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    transform-style: preserve-3d;
    transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                height 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                transform 0.1s ease-out;
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    box-shadow: var(--shadow-md);
    border-radius: 1rem;
}

.location-map-wrapper.is-expanded .location-map-card {
    width: 100%;
    height: 320px;
}

.gradient-overlay {
    background: linear-gradient(to bottom right, rgba(255,255,255,0.05), transparent, rgba(255,255,255,0.02));
    pointer-events: none;
}

/* Map Content Expanded */
.map-content-expanded {
    opacity: 0;
    transition: opacity 0.4s ease 0.1s;
}

.location-map-wrapper.is-expanded .map-content-expanded {
    opacity: 1;
}

.map-content-expanded .bg-muted {
    background-color: #111;
}

/* Map Lines Drawing Animation */
.map-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}

.stroke-foreground-25 { stroke: rgba(255, 255, 255, 0.25); }
.stroke-foreground-20 { stroke: rgba(255, 255, 255, 0.20); }
.stroke-foreground-10 { stroke: rgba(255, 255, 255, 0.10); }

.location-map-wrapper.is-expanded .map-line {
    animation: drawMapLine 0.8s forwards ease-out;
}

@keyframes drawMapLine {
    to { stroke-dashoffset: 0; }
}

.anim-delay-2 { animation-delay: 0.2s; }
.anim-delay-3 { animation-delay: 0.3s; }
.anim-delay-4 { animation-delay: 0.4s; }
.anim-delay-5 { animation-delay: 0.5s; }
.anim-delay-6 { animation-delay: 0.6s; }
.anim-delay-7 { animation-delay: 0.7s; }
.anim-delay-8 { animation-delay: 0.8s; }
.anim-delay-9 { animation-delay: 0.9s; }
.anim-delay-10 { animation-delay: 1.0s; }

/* Buildings */
.map-building {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.building-1 { top: 40%; left: 10%; height: 20%; width: 15%; transition-delay: 0.5s; }
.building-2 { top: 15%; left: 35%; height: 15%; width: 12%; transition-delay: 0.6s; }
.building-3 { top: 70%; left: 75%; height: 18%; width: 18%; transition-delay: 0.7s; }
.building-4 { top: 20%; right: 10%; height: 25%; width: 10%; transition-delay: 0.55s; }
.building-5 { top: 55%; left: 5%; height: 12%; width: 8%; transition-delay: 0.65s; }
.building-6 { top: 8%; left: 75%; height: 10%; width: 14%; transition-delay: 0.75s; }

.location-map-wrapper.is-expanded .map-building {
    opacity: 1;
    transform: scale(1);
}

/* Map Pin */
.map-pin {
    transform: translate(-50%, -50%) scale(0) translateY(-20px);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.3s;
}

.location-map-wrapper.is-expanded .map-pin {
    transform: translate(-50%, -50%) scale(1) translateY(0);
}

/* Gradient Bottom */
.map-gradient-bottom {
    background: linear-gradient(to top, rgba(5, 5, 5, 0.8), transparent);
}

/* Grid Pattern */
.map-grid-pattern {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.location-map-wrapper.is-expanded .map-grid-pattern {
    opacity: 0;
}

/* Content Overlay */
.map-icon {
    filter: drop-shadow(0 0 4px rgba(168, 85, 247, 0.3));
    transition: filter 0.3s ease;
}

.location-map-wrapper:hover .map-icon {
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.6));
}

.icon-wrapper {
    transition: opacity 0.3s ease;
}

.location-map-wrapper.is-expanded .icon-wrapper {
    opacity: 0;
}

.live-status {
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.2s, transform 0.2s;
}

.location-map-wrapper:hover .live-status {
    background-color: rgba(255, 255, 255, 0.08);
    transform: scale(1.05);
}

.location-title {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.location-map-wrapper:hover .location-title {
    transform: translateX(4px);
}

.coordinates-wrapper {
    height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-10px);
    transition: height 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.location-map-wrapper.is-expanded .coordinates-wrapper {
    height: 18px;
    opacity: 1;
    transform: translateY(0);
}

.animated-underline {
    height: 1px;
    background: linear-gradient(to right, rgba(168, 85, 247, 0.5), rgba(168, 85, 247, 0.3), transparent);
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.4s ease-out;
    margin-top: 4px;
}

.location-map-wrapper:hover .animated-underline,
.location-map-wrapper.is-expanded .animated-underline {
    transform: scaleX(1);
}

.click-hint {
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.location-map-wrapper:hover:not(.is-expanded) .click-hint {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* =========================================
   Radial Orbital Timeline
   ========================================= */

.radial-timeline-wrapper {
    width: 100%;
    height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    margin: 2rem 0;
}

.radial-orbital-scene {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.orbital-hub-container {
    position: absolute;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.orbital-hub-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(to bottom right, var(--purple-main), #3b82f6, #14b8a6);
    animation: pulse-hub 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.orbital-hub-ring1 {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: ping-hub 2s cubic-bezier(0, 0, 0.2, 1) infinite;
    opacity: 0.7;
}

.orbital-hub-ring2 {
    position: absolute;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: ping-hub 2s cubic-bezier(0, 0, 0.2, 1) infinite;
    animation-delay: 0.5s;
    opacity: 0.5;
}

.orbital-hub-core {
    position: absolute;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
}

.orbit-path {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

#orbital-nodes-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none; /* Let clicks pass through empty space */
}

.orbital-node {
    position: absolute;
    transition: all 0.7s ease;
    cursor: pointer;
    pointer-events: auto; /* Re-enable clicks on nodes */
    top: 50%;
    left: 50%;
    margin-top: -20px; /* half height */
    margin-left: -20px; /* half width */
}

.orbital-node-energy-field {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, rgba(168, 85, 247, 0) 70%);
}

.orbital-node-energy-field.is-pulsing {
    animation: pulse-hub 1s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.orbital-node-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: var(--bg-base);
    color: var(--text-main);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.orbital-node.is-expanded .orbital-node-icon {
    background: var(--text-main);
    color: var(--bg-base);
    border-color: var(--text-main);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    transform: scale(1.5);
}

.orbital-node.is-related .orbital-node-icon {
    background: rgba(255, 255, 255, 0.5);
    color: var(--bg-base);
    border-color: var(--text-main);
    animation: pulse-border 2s infinite;
}

.orbital-node-label {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.orbital-node.is-expanded .orbital-node-label {
    color: var(--text-main);
    transform: translateX(-50%) scale(1.25);
    top: 60px;
}

/* Process Grid Layout */
.process-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .process-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.process-accordion-wrapper {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

/* Accordion Specific Styles for Process */
.process-accordion-wrapper .faq-item {
    margin-bottom: 1rem;
}

.process-badge {
    padding: 0.25rem 0.6rem;
    font-size: 0.65rem;
    border-radius: 9999px;
    font-weight: 600;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.badge-completed { color: #000; background: #fff; border: 1px solid #fff; }
.badge-progress { color: #fff; background: rgba(168,85,247,0.3); border: 1px solid var(--purple-main); }
.badge-pending { color: #fff; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); }

.process-energy-container {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.process-energy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.process-energy-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    overflow: hidden;
}

.process-energy-fill {
    height: 100%;
    background: linear-gradient(to right, var(--purple-main), #3b82f6);
}

/* Animations */
@keyframes pulse-hub {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes ping-hub {
    0% { transform: scale(1); opacity: 0.8; }
    75%, 100% { transform: scale(2); opacity: 0; }
}

@keyframes pulse-border {
    0%, 100% { border-color: rgba(255, 255, 255, 0.4); }
    50% { border-color: rgba(255, 255, 255, 1); }
}

@media (max-width: 768px) {
    .radial-timeline-wrapper {
        height: 500px;
    }
    .orbit-path {
        width: 280px;
        height: 280px;
    }
    .orbital-node-label {
        display: none; /* Hide labels on mobile to save space, visible on click */
    }
    .orbital-node.is-expanded .orbital-node-label {
        display: block;
    }
}

/* =========================================
   FAQ Accordion Component
   ========================================= */

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    padding: 0;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.1);
}

.faq-header {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-main);
    transition: color 0.3s ease;
}

.faq-header:hover .faq-question {
    color: var(--purple-light);
}

.faq-question {
    font-size: 1.1rem;
    margin: 0;
    font-weight: 500;
    transition: color 0.3s ease;
}

.faq-icon-wrapper {
    color: var(--purple-main);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease;
}

.faq-body {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Active State */
.faq-item.active {
    border-color: rgba(168, 85, 247, 0.6);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.15);
}

.faq-item.active .faq-question {
    color: var(--purple-light);
}

.faq-item.active .faq-icon-wrapper {
    transform: rotate(180deg);
}

.faq-item.active .faq-content {
    opacity: 1;
}

@media (min-width: 1024px) {
    .hover-footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
    .hover-effect-container {
        display: flex;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 5rem;
        left: 1rem;
        right: 1rem;
        background: var(--bg-card);
        border: 1px solid var(--border-light);
        border-radius: 24px;
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: var(--transition);
    }
    
    .nav-links.active {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hover-footer-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   Flip Cards — Core Services
   ========================================= */

.flip-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

/* Outer wrapper — sets perspective */
.flip-card-wrapper {
    height: 380px;
    perspective: 2000px;
    cursor: pointer;
}

/* Inner — the element that actually rotates */
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.75s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.flip-card-wrapper:hover .flip-card-inner {
    transform: rotateY(180deg);
}

/* Front + Back shared base */
.flip-card-front,
.flip-card-back {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
    transform-style: preserve-3d;
    overflow: hidden;
    background: #0f0a1e; /* Solid background helps backface-visibility */
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    transition: all 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.flip-card-front {
    transform: rotateY(0deg) translateZ(2px);
    z-index: 2;
    opacity: 1;
}

.flip-card-back {
    transform: rotateY(180deg) translateZ(2px);
    z-index: 1;
    padding: 1.5rem;
    justify-content: space-between;
    opacity: 0; /* Hidden initially for mobile safety */
}

/* On hover, toggle opacity as a fallback for browsers that ignore backface-visibility */
.flip-card-wrapper:hover .flip-card-front {
    opacity: 0;
}

.flip-card-wrapper:hover .flip-card-back {
    opacity: 1;
}

.flip-card-wrapper:hover .flip-card-front,
.flip-card-wrapper:hover .flip-card-back {
    border-color: rgba(var(--card-color-rgb, 168, 85, 247), 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(168, 85, 247, 0.1);
}

/* Back side — handled above */

/* Glowing gradient blob */
.flip-card-bg-glow {
    position: absolute;
    inset: -30%;
    background: radial-gradient(circle at 60% 40%, var(--card-color, #a855f7) 0%, transparent 60%);
    opacity: 0.06;
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.5s ease;
}

.flip-card-wrapper:hover .flip-card-bg-glow {
    opacity: 0.14;
}

/* Animated sliding code lines on the front */
.flip-card-anim-lines {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 3rem 1.5rem 5rem;
    pointer-events: none;
    z-index: 0;
}

.flip-card-anim-lines span {
    display: block;
    height: 10px;
    border-radius: 6px;
    background: linear-gradient(90deg, transparent, var(--card-color, #a855f7), transparent);
    opacity: 0;
    animation: fc-slide-line 2.4s ease-in-out infinite;
}

.flip-card-anim-lines span:nth-child(1) { width: 75%; animation-delay: 0s; }
.flip-card-anim-lines span:nth-child(2) { width: 55%; animation-delay: 0.3s; margin-left: 20%; }
.flip-card-anim-lines span:nth-child(3) { width: 85%; animation-delay: 0.6s; }
.flip-card-anim-lines span:nth-child(4) { width: 60%; animation-delay: 0.9s; margin-left: 10%; }
.flip-card-anim-lines span:nth-child(5) { width: 70%; animation-delay: 1.2s; }

@keyframes fc-slide-line {
    0%   { transform: translateX(-60px); opacity: 0; }
    40%  { opacity: 0.5; }
    60%  { opacity: 0.5; }
    100% { transform: translateX(60px); opacity: 0; }
}

/* Large centered icon on the front */
.flip-card-front-icon {
    position: relative;
    z-index: 1;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--card-color, #a855f7) 0%, rgba(168,85,247,0.4) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2.5rem auto 0;
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.35);
    animation: fc-pulse-icon 3s ease-in-out infinite;
    transition: transform 0.4s ease;
}

.flip-card-wrapper:hover .flip-card-front-icon {
    transform: rotate(12deg) scale(1.08);
}

.flip-card-front-icon svg {
    width: 30px;
    height: 30px;
    color: #fff;
}

@keyframes fc-pulse-icon {
    0%, 100% { box-shadow: 0 0 20px rgba(168,85,247,0.25); }
    50%       { box-shadow: 0 0 40px rgba(168,85,247,0.55); }
}

/* Bottom title + accent row on front */
.flip-card-front-body {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.flip-card-front-accent {
    width: 20px;
    height: 20px;
    color: var(--card-color, #a855f7);
    flex-shrink: 0;
    transition: transform 0.35s ease;
}

.flip-card-wrapper:hover .flip-card-front-accent {
    transform: scale(1.2) rotate(12deg);
}

/* Back side */
.flip-card-back-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.flip-card-back-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--card-color, #a855f7), rgba(168,85,247,0.4));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.flip-card-back-icon svg {
    width: 18px;
    height: 18px;
    color: #fff;
}

/* Shared title */
.flip-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

.flip-card-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0.2rem 0 0;
    position: relative;
    z-index: 1;
}

.flip-card-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 1rem;
    position: relative;
    z-index: 1;
}

/* Feature bullet list */
.flip-card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    position: relative;
    z-index: 1;
}

.flip-card-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-main);
}

.flip-card-features li svg {
    width: 14px;
    height: 14px;
    color: var(--card-color, #a855f7);
    flex-shrink: 0;
}

/* CTA Button */
.flip-card-cta {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
    margin-top: auto;
}

.flip-card-cta:hover {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.4);
    transform: scale(1.02);
}

.flip-card-cta svg {
    width: 16px;
    height: 16px;
    color: var(--card-color, #a855f7);
    transition: transform 0.3s ease;
}

.flip-card-cta:hover svg {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .flip-cards-grid {
        grid-template-columns: 1fr 1fr;
    }
    .flip-card-wrapper {
        height: 340px;
    }
}

@media (max-width: 480px) {
    .flip-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   Preloader
   ========================================= */

/* Page body locked during load */
body.is-loading {
    overflow: hidden;
}

.preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #07070d;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2rem;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Spinner wrapper */
.pl {
    position: relative;
    width: 9em;
    height: 9em;
}

/* Outer ring — purple glow */
.pl__outer-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--purple-main, #a855f7);
    border-right-color: rgba(168, 85, 247, 0.3);
    animation: pl-spin 1.4s linear infinite;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4), inset 0 0 20px rgba(168, 85, 247, 0.05);
}

/* Inner ring — lighter purple */
.pl__inner-ring {
    position: absolute;
    inset: 14px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-bottom-color: rgba(192, 132, 252, 0.8);
    border-left-color: rgba(192, 132, 252, 0.2);
    animation: pl-spin-rev 1s linear infinite;
}

/* Track cover — creates the gap effect */
.pl__track-cover {
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    border: 4px solid #07070d;
    pointer-events: none;
}

/* The ball that orbits */
.pl__ball {
    position: absolute;
    top: -6px;
    left: 50%;
    width: 14px;
    height: 14px;
    margin-left: -7px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #e9d5ff, var(--purple-main, #a855f7) 60%, #6b21a8);
    animation: pl-orbit 1.4s linear infinite;
    transform-origin: 50% calc(50% + 4.5em); /* orbit radius = half of 9em */
}

.pl__ball-texture {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.25), transparent 60%);
}

.pl__ball-outer-shadow {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168,85,247,0.5) 0%, transparent 70%);
    filter: blur(4px);
    z-index: -1;
}

.pl__ball-inner-shadow {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 60% 60%, rgba(107,33,168,0.6), transparent 60%);
}

.pl__ball-side-shadows {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(168,85,247,0.3) 0%, transparent 70%);
    filter: blur(6px);
    z-index: -2;
}

/* Center logo text inside spinner */
.pl::after {
    content: "IVOZ";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Inter', 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    background: linear-gradient(135deg, #fff 0%, var(--purple-main, #a855f7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animations */
@keyframes pl-spin {
    to { transform: rotate(360deg); }
}

@keyframes pl-spin-rev {
    to { transform: rotate(-360deg); }
}

@keyframes pl-orbit {
    to { transform: rotate(360deg); }
}

/* =========================================
   Services Page
   ========================================= */

/* Category tabs */
.svc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.5rem 0 2rem;
    justify-content: center;
}

.svc-tab {
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.svc-tab:hover {
    border-color: rgba(168, 85, 247, 0.4);
    color: var(--text-main);
    background: rgba(168, 85, 247, 0.08);
}

.svc-tab.active {
    background: linear-gradient(135deg, var(--purple-main), #7c3aed);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.35);
}

/* Category section header */
.svc-cat-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.svc-cat-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--cat-color, var(--purple-main)), rgba(168,85,247,0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 24px rgba(168, 85, 247, 0.25);
}

.svc-cat-icon svg {
    width: 28px;
    height: 28px;
    color: #fff;
}

/* Services grid */
.svc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
}

/* Service card */
.svc-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 1.75rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.svc-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(168, 85, 247, 0.06), transparent 65%);
    pointer-events: none;
    transition: opacity 0.4s ease;
    opacity: 0;
}

.svc-card:hover {
    transform: translateY(-6px);
    border-color: rgba(168, 85, 247, 0.35);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3), 0 0 30px rgba(168,85,247,0.1);
}

.svc-card:hover::before { opacity: 1; }

.svc-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.svc-card-top .card-icon {
    margin: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--cat-color, var(--purple-main)), rgba(168,85,247,0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 16px rgba(168,85,247,0.2);
}

.svc-card-top .card-icon svg {
    width: 22px;
    height: 22px;
    color: #fff;
}

/* Badge on card */
.svc-badge {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: rgba(168, 85, 247, 0.18);
    color: var(--purple-light, #c084fc);
    border: 1px solid rgba(168, 85, 247, 0.3);
}

/* Feature list */
.svc-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
}

.svc-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.svc-list li svg {
    width: 14px;
    height: 14px;
    color: var(--purple-main);
    flex-shrink: 0;
}

/* Card CTA */
.svc-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.2rem;
    border-radius: 10px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.25);
    color: var(--purple-light, #c084fc);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-top: auto;
}

.svc-cta:hover {
    background: var(--purple-main);
    border-color: var(--purple-main);
    color: #fff;
    transform: translateX(3px);
}

.svc-cta svg { width: 15px; height: 15px; transition: transform 0.3s ease; }
.svc-cta:hover svg { transform: translateX(3px); }

/* CTA Banner at bottom */
.svc-cta-banner {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
}

.svc-cta-banner-glow {
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle at center, rgba(168,85,247,0.15), transparent 65%);
    pointer-events: none;
}

.svc-cta-banner-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.svc-cta-banner-content h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.2;
}

@media (max-width: 768px) {
    .svc-cat-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .svc-grid {
        grid-template-columns: 1fr;
    }
    .svc-tabs {
        gap: 0.5rem;
    }
    .svc-tab {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
}

/* =========================================
   Careers Page
   ========================================= */

.careers-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin: 3rem auto 0;
    max-width: 700px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem 2rem;
}

.careers-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
    min-width: 100px;
    padding: 0.5rem;
}

.careers-stat-num {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, var(--purple-main) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.careers-stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

.careers-stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.careers-jobs-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.job-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.job-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--purple-main), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.job-card:hover { transform: translateY(-4px); border-color: rgba(168,85,247,0.35); box-shadow: 0 16px 48px rgba(0,0,0,0.3), 0 0 24px rgba(168,85,247,0.1); }
.job-card:hover::before { opacity: 1; }

.job-card-left { display: flex; gap: 1.5rem; flex: 1; min-width: 0; }

.job-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--purple-main), #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(168,85,247,0.25);
}

.job-icon svg { width: 24px; height: 24px; color: #fff; }
.job-info { flex: 1; min-width: 0; }

.job-tags { display: flex; gap: 0.5rem; margin-bottom: 0.5rem; flex-wrap: wrap; }

.job-tag {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: rgba(168,85,247,0.12);
    color: var(--purple-light, #c084fc);
    border: 1px solid rgba(168,85,247,0.25);
}

.job-tag-new { background: rgba(34,197,94,0.12); color: #4ade80; border-color: rgba(34,197,94,0.25); }

.job-title { font-size: 1.2rem; font-weight: 700; color: var(--text-main); margin: 0 0 0.4rem; }

.job-meta {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0 0 0.75rem;
}

.job-meta svg { width: 13px; height: 13px; color: var(--purple-main); }

.job-desc { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; margin: 0 0 1rem; }

.job-requirements { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }

.job-requirements li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.83rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.job-requirements li svg { width: 14px; height: 14px; color: var(--purple-main); flex-shrink: 0; margin-top: 2px; }

.job-card-right { display: flex; align-items: flex-start; flex-shrink: 0; padding-top: 0.25rem; }

.job-apply-btn { white-space: nowrap; display: inline-flex; align-items: center; gap: 0.4rem; }
.job-apply-btn svg { width: 15px; height: 15px; }

@media (max-width: 768px) {
    .job-card { flex-direction: column; gap: 1.25rem; }
    .job-card-left { flex-direction: column; gap: 1rem; }
    .job-card-right { width: 100%; }
    .job-apply-btn { width: 100%; justify-content: center; }
    .careers-stat-divider { display: none; }
}

/* =========================================
   Blog Page
   ========================================= */

/* Search */
.blog-search-wrap {
    position: relative;
    max-width: 480px;
    margin: 0 auto;
}

.blog-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
}

.blog-search-input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.8rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: inherit;
}

.blog-search-input::placeholder { color: var(--text-muted); }
.blog-search-input:focus {
    border-color: rgba(168,85,247,0.5);
    box-shadow: 0 0 0 3px rgba(168,85,247,0.1);
}

/* Featured post */
.blog-featured-card {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 0;
    overflow: hidden;
    padding: 0;
    min-height: 340px;
}

.blog-featured-img {
    position: relative;
    background: rgba(15,10,30,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    overflow: hidden;
}

.blog-featured-img-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 40% 50%, rgba(168,85,247,0.25), transparent 70%);
}

.blog-featured-img-icon {
    position: relative;
    z-index: 1;
    width: 90px;
    height: 90px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--purple-main), #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 50px rgba(168,85,247,0.4);
    animation: fc-pulse-icon 3s ease-in-out infinite;
}

.blog-featured-img-icon svg { width: 44px; height: 44px; color: #fff; }

.blog-featured-body {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

.blog-featured-title {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
    margin: 0;
}

.blog-featured-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

/* Meta row */
.blog-meta-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.blog-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.blog-meta-item svg { width: 13px; height: 13px; }

/* Category tags */
.blog-cat-tag {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
}

.blog-cat-ai       { background: rgba(124,58,237,0.15); color: #c084fc; border: 1px solid rgba(124,58,237,0.3); }
.blog-cat-web      { background: rgba(59,130,246,0.12); color: #60a5fa; border: 1px solid rgba(59,130,246,0.25); }
.blog-cat-marketing{ background: rgba(236,72,153,0.12); color: #f472b6; border: 1px solid rgba(236,72,153,0.25); }
.blog-cat-business { background: rgba(245,158,11,0.12); color: #fbbf24; border: 1px solid rgba(245,158,11,0.25); }

/* Author row */
.blog-author-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.blog-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple-main), #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.blog-author-avatar svg { width: 18px; height: 18px; color: #fff; }

.blog-author-name { font-size: 0.85rem; font-weight: 600; color: var(--text-main); }
.blog-author-role { font-size: 0.75rem; color: var(--text-muted); }

.blog-read-btn {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.blog-read-btn svg { width: 15px; height: 15px; }

/* Blog grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.75rem;
}

/* Blog card */
.blog-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    border-color: rgba(168,85,247,0.35);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3), 0 0 24px rgba(168,85,247,0.1);
}

/* Card image strip */
.blog-card-img {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.blog-card-img--ai       { background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(168,85,247,0.05)); }
.blog-card-img--web      { background: linear-gradient(135deg, rgba(59,130,246,0.2), rgba(96,165,250,0.05)); }
.blog-card-img--marketing{ background: linear-gradient(135deg, rgba(236,72,153,0.2), rgba(244,114,182,0.05)); }
.blog-card-img--business { background: linear-gradient(135deg, rgba(245,158,11,0.2), rgba(251,191,36,0.05)); }

.blog-card-img-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s ease;
}

.blog-card:hover .blog-card-img-icon { transform: scale(1.1) rotate(6deg); }
.blog-card-img-icon svg { width: 26px; height: 26px; color: #fff; }

.blog-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
}

.blog-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    line-height: 1.4;
}

.blog-card-desc {
    font-size: 0.83rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--purple-light, #c084fc);
    text-decoration: none;
    transition: gap 0.2s ease, color 0.2s ease;
}

.blog-card-link:hover { gap: 0.5rem; color: #fff; }
.blog-card-link svg { width: 14px; height: 14px; }

/* Empty state */
.blog-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 4rem 2rem;
    color: var(--text-muted);
    text-align: center;
}

.blog-empty svg { width: 48px; height: 48px; opacity: 0.4; }

/* Newsletter */
.blog-newsletter {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
}

.blog-newsletter-glow {
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle at center, rgba(168,85,247,0.15), transparent 65%);
    pointer-events: none;
}

.blog-newsletter-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.blog-newsletter-content h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 0; }

.blog-newsletter-form {
    display: flex;
    gap: 0.75rem;
    width: 100%;
    max-width: 480px;
    flex-wrap: wrap;
    justify-content: center;
}

.blog-newsletter-input {
    flex: 1;
    min-width: 220px;
    padding: 0.75rem 1.2rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    color: var(--text-main);
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s ease;
}

.blog-newsletter-input::placeholder { color: var(--text-muted); }
.blog-newsletter-input:focus { border-color: rgba(168,85,247,0.5); }

@media (max-width: 900px) {
    .blog-featured-card { grid-template-columns: 1fr; }
    .blog-featured-img { min-height: 180px; }
    .blog-featured-body { padding: 1.75rem; }
    .blog-read-btn { margin-left: 0; margin-top: 0.5rem; }
}

@media (max-width: 600px) {
    .blog-grid { grid-template-columns: 1fr; }
    .blog-newsletter-form { flex-direction: column; }
    .blog-newsletter-input { min-width: 0; width: 100%; }
}

/* =========================================
   Careers Page (Desktop)
   ========================================= */

.careers-hero {
    text-align: center;
    padding: 8rem 2rem 4rem;
}

.careers-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 3rem 4rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 32px;
    margin: 3rem auto 6rem;
    width: 100%;
    max-width: 1100px;
}

.careers-stat {
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: fit-content;
}

.careers-stat-num {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-main);
    display: block;
    line-height: 1;
}

.careers-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.careers-stat-divider {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.15), transparent);
    flex-shrink: 0;
}

.careers-jobs-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.job-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.job-card:hover {
    transform: translateY(-4px);
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.job-card-left {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.job-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: rgba(168, 85, 247, 0.1);
    color: var(--purple-main);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.job-tags {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.job-tag {
    padding: 0.35rem 0.85rem;
    border-radius: 100px;
    background: rgba(168, 85, 247, 0.15);
    color: var(--purple-light);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.job-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.job-meta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.job-meta i {
    width: 14px;
    height: 14px;
    vertical-align: middle;
}

.job-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 700px;
}

.job-apply-btn {
    white-space: nowrap;
}

@media (max-width: 992px) {
    .job-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }
    .job-card-right {
        width: 100%;
    }
    .job-apply-btn {
        width: 100%;
    }
}

/* =========================================
   AI Agents Section
   ========================================= */

.agents-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    margin-top: 4rem;
}

/* Agent Terminal */
.agents-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
    perspective: 1500px; /* Added for 3D effect */
}

.agent-terminal {
    background: #0d0d15;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    height: 400px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(168, 85, 247, 0.05);
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out, box-shadow 0.3s ease;
    will-change: transform;
}

.agent-terminal:hover {
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(168, 85, 247, 0.15);
}

.terminal-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-dots { display: flex; gap: 6px; }
.terminal-dots span { width: 10px; height: 10px; border-radius: 50%; }
.terminal-dots span:nth-child(1) { background: #ff5f56; }
.terminal-dots span:nth-child(2) { background: #ffbd2e; }
.terminal-dots span:nth-child(3) { background: #27c93f; }

.terminal-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.terminal-status {
    font-size: 0.65rem;
    color: #4ade80;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
}

.terminal-body {
    padding: 1.5rem;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    color: #a78bfa;
    overflow-y: auto;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: rgba(168, 85, 247, 0.3) transparent;
}

.terminal-body::-webkit-scrollbar {
    width: 6px;
}

.terminal-body::-webkit-scrollbar-track {
    background: transparent;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.2);
    border-radius: 10px;
}

.terminal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 85, 247, 0.4);
}

.log-line { 
    margin-bottom: 0.75rem; 
    opacity: 0.8; 
    display: flex;
    gap: 0.5rem;
    animation: terminal-fade-in 0.3s ease forwards;
}

.log-line.highlight { 
    color: #fff; 
    font-weight: 700; 
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.5); 
}

@keyframes terminal-fade-in {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 0.8; transform: translateY(0); }
}

/* Agents Bento Grid */
.agents-bento {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.5rem;
}

.bento-item {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.3s ease;
}

.bento-item:hover {
    border-color: var(--purple-main);
    transform: scale(1.02);
}

.bento-icon {
    width: 44px;
    height: 44px;
    background: rgba(168, 85, 247, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bento-icon svg { width: 22px; height: 22px; color: var(--purple-light); }
.bento-title { color: #fff; font-size: 1.1rem; margin: 0; }
.bento-desc { color: var(--text-muted); font-size: 0.85rem; line-height: 1.6; margin: 0; }

@media (max-width: 992px) {
    .agents-container { grid-template-columns: 1fr; }
    .agent-terminal { height: 300px; }
}

@media (max-width: 600px) {
    .agents-bento { grid-template-columns: 1fr; }
}

/* =========================================
   Logo Marquee
   ========================================= */

.logo-marquee-wrap {
    background: rgba(15, 10, 30, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem 0;
    overflow: hidden;
    margin-top: 4rem;
}

.logo-marquee {
    display: flex;
    white-space: nowrap;
}

.logo-marquee-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    animation: marquee-scroll 30s linear infinite;
}

.logo-marquee-content span {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 0.2em;
}

.logo-placeholder {
    font-size: 1.2rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: -0.05em;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.logo-placeholder:hover { opacity: 1; color: #fff; }

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =========================================
   Process Roadmap
   ========================================= */

.process-roadmap {
    max-width: 800px;
    margin: 4rem auto 0;
    position: relative;
    padding-left: 3rem;
}

.process-line {
    position: absolute;
    left: 11px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--purple-main), transparent);
    opacity: 0.3;
}

.process-step {
    position: relative;
    margin-bottom: 4rem;
}

.process-step:last-child { margin-bottom: 0; }

.process-number {
    position: absolute;
    left: -3rem;
    top: 0;
    width: 24px;
    height: 24px;
    background: #07070d;
    border: 2px solid var(--purple-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--purple-light);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
    z-index: 2;
}

.process-content h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0.75rem;
}

.process-content p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 600px;
}

@media (max-width: 600px) {
    .process-roadmap { padding-left: 2rem; }
    .process-number { left: -2rem; }
}

/* =========================================
   Enterprise IT Section
   ========================================= */

.it-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

@media (max-width: 992px) {
    .it-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .it-grid { grid-template-columns: 1fr; }
}

/* =========================================
   AI Chat Widget
   ========================================= */

.chat-widget-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    font-family: inherit;
}

.chat-bubble {
    width: 60px;
    height: 60px;
    background: var(--purple-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(168, 85, 247, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-bubble:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 12px 40px rgba(168, 85, 247, 0.6);
}

.chat-bubble i {
    color: #fff;
    width: 28px;
    height: 28px;
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 500px;
    background: rgba(13, 13, 21, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.8);
    transform: translateY(20px) scale(0.9);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform-origin: bottom right;
}

.chat-window.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: all;
}

.chat-header {
    padding: 1.5rem;
    background: rgba(168, 85, 247, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chat-agent-avatar {
    width: 40px;
    height: 40px;
    background: var(--purple-main);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-agent-info h4 { color: #fff; margin: 0; font-size: 1rem; }
.chat-agent-info span { color: var(--purple-light); font-size: 0.75rem; font-weight: 600; display: flex; align-items: center; gap: 4px; }

.chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    max-width: 80%;
    padding: 0.8rem 1.2rem;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.5;
    position: relative;
    animation: message-in 0.3s ease-out;
}

@keyframes message-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.message.agent {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-bottom-left-radius: 4px;
}

.message.user {
    align-self: flex-end;
    background: var(--purple-main);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.chat-input-area {
    padding: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 0.75rem;
}

.chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    color: #fff;
    font-size: 0.9rem;
}

.chat-send-btn {
    width: 40px;
    height: 40px;
    background: var(--purple-main);
    border: none;
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Typing Indicator */
.typing {
    display: flex;
    gap: 4px;
    padding: 10px;
}
.typing span {
    width: 6px;
    height: 6px;
    background: var(--purple-light);
    border-radius: 50%;
    animation: typing-bounce 1s infinite ease-in-out;
}
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
}

/* Global Footer Standard (All Pages) */
.hover-footer {
    margin: 2rem !important;
    margin-top: 6rem !important;
    border-radius: 24px !important;
    padding: 0 !important;
}
.footer-content-wrapper {
    padding: 4rem 2rem !important;
}

@media (max-width: 768px) {
    /* Navigation Reset */
    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: 85%; height: 100vh;
        background: rgba(3, 3, 7, 0.99);
        backdrop-filter: blur(25px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        border-left: 1px solid rgba(168, 85, 247, 0.3);
    }
    .nav-links.active { right: 0; }
    .mobile-menu-btn { display: flex !important; position: relative; z-index: 1000; }

    /* Global Typography & Layout - REFINED PADDING */
    .section-padding { padding: 4rem 0 !important; }
    .container { padding: 0 1rem !important; width: 100% !important; max-width: 100% !important; box-sizing: border-box !important; }
    .page-wrapper { padding: 0 !important; overflow: visible !important; width: 100% !important; box-sizing: border-box !important; }
    main { width: 100% !important; overflow: visible !important; padding: 0 !important; box-sizing: border-box !important; }
    
    /* Header Stabilization (Pill Look Restored) */
    .header { 
        top: 1rem !important; 
        left: 50% !important; 
        transform: translateX(-50%) !important; 
        width: calc(100% - 2rem) !important; 
        max-width: 1000px !important; 
    }
    .nav-container { 
        border-radius: 999px !important; 
        border: 1px solid var(--border-light) !important;
        padding: 0.75rem 1.5rem !important;
        width: 100% !important;
    }
    .mobile-menu-btn { display: flex !important; margin-right: 0.5rem; }

    h1, .page-title, .hero-title { font-size: 1.85rem !important; line-height: 1.2 !important; margin-bottom: 1.2rem !important; text-align: center !important; padding: 0 !important; }
    h2, .section-title { font-size: 1.6rem !important; line-height: 1.3 !important; margin-top: 1.5rem !important; text-align: center !important; padding: 0 !important; }
    p, .page-desc, .hero-subtitle { font-size: 0.95rem !important; width: 100% !important; margin: 0 auto 1.5rem !important; text-align: center !important; line-height: 1.6 !important; opacity: 0.8 !important; padding: 0 0.5rem !important; box-sizing: border-box !important; }

    /* Universal Grid Force-Stack & Perfect Alignment */
    .grid, .blog-grid, .solutions-grid, .contact-grid, .mission-grid, 
    .services-hub-grid, .it-grid, .hover-footer-grid, .about-stats, 
    .process-grid, .faq-container, .careers-stats { 
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 2.5rem !important; /* Healthy gap between cards */
        width: 100% !important;
        margin-bottom: 2.5rem !important;
    }
    .careers-stat-divider { display: none !important; }
    
    /* Hero Layout & Padding Consistency */
    .service-hero, .services-hero, .about-hero, .contact-hero, .blog-hero, .hero, .careers-hero, .verify-hero { 
        padding-top: 8rem !important; 
        padding-left: 0 !important; 
        padding-right: 0 !important; 
        padding-bottom: 4rem !important;
        min-height: auto !important; 
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        overflow: visible !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .hero-container, .service-hero .container, .services-hero .container, .about-hero .container, 
    .contact-hero .container, .blog-hero .container, .careers-hero .container, .verify-hero .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* RESTORE HOME PAGE ROBOT BACKGROUND */
    .hero .hero-bg-3d { 
        position: absolute !important; 
        z-index: 0 !important; 
        opacity: 0.6 !important; 
        display: block !important;
        pointer-events: none !important;
    }
    .hero .hero-bg-3d canvas { display: block !important; width: 100% !important; height: 100% !important; }

    /* AGGRESSIVE HIDE ALL FAILING 3D ON SUB-PAGES */
    .service-hero iframe, .about-hero iframe, .blog-hero iframe, .contact-hero iframe, 
    .services-hero iframe, .verify-hero iframe, .careers-hero iframe,
    .hero-spline, .hero-spline-bg, .spline-glow, .about-glow, .blog-glow, .contact-glow, 
    .services-glow, .verify-glow, .hero-features-floating, spline-viewer { 
        display: none !important; 
    }

    /* Standardized Hero Background for Sub-pages */
    .service-hero, .about-hero, .contact-hero, .blog-hero, .careers-hero, .verify-hero, .services-hero {
        background: radial-gradient(circle at top, rgba(168, 85, 247, 0.15), transparent 70%) !important;
    }

    /* REFINED CARDS & CONTENT SIZES */
    .hub-card, .marketing-card, .sub-service-card, .glass-card, 
    .location-map-card, .location-map-wrapper, .it-card { 
        padding: 2.5rem 1.5rem !important; 
        width: 100% !important; 
        max-width: 100% !important;
        margin: 0 !important;
        align-items: center !important; 
        text-align: center !important; 
        min-height: auto !important;
        border-radius: 28px !important; /* Premium Rounded Look */
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        box-sizing: border-box !important;
        background: rgba(14, 14, 17, 0.6) !important;
    }
    .hub-card .card-icon, .marketing-card .card-icon, .sub-service-card .card-icon { 
        position: static !important; 
        margin-bottom: 1.5rem !important; 
        width: 60px !important; 
        height: 60px !important; 
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    /* Full-width banners and sections with backgrounds (Keep Bleed) */
    section[style*="background"], section[style*="background-color"], .glass-card.text-center {
        border-radius: 0 !important; 
        margin-left: -1rem !important; /* Offset container padding */
        margin-right: -1rem !important;
        width: calc(100% + 2rem) !important;
        padding: 4rem 1.5rem !important; 
        box-sizing: border-box !important;
    }

    /* BUTTON DESIGN SYSTEM (PILL SHAPE & CENTERING) */
    .btn, .verify-btn, .hero-cta .btn, .shiny-cta { 
        padding: 0.95rem 2rem !important; 
        font-size: 0.9rem !important;
        width: 100% !important;
        max-width: 300px !important;
        margin: 0.75rem auto !important;
        border-radius: 999px !important; 
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        font-weight: 700 !important;
    }
    .btn-secondary { background: rgba(255, 255, 255, 0.05) !important; border: 1px solid rgba(255, 255, 255, 0.1) !important; color: #fff !important; }
    .hero-cta { flex-direction: column !important; align-items: center !important; width: 100% !important; }

    /* Page-Specific Fixes */
    .verify-input-wrap { flex-direction: column !important; border-radius: 24px !important; padding: 1.5rem !important; width: 100% !important; }
    .verify-input { text-align: center !important; margin-bottom: 1.25rem !important; width: 100% !important; }
    .verify-btn { width: 100% !important; max-width: none !important; margin: 0 !important; }

    /* Badge Alignment */
    .badge { margin: 0 auto 1.5rem !important; padding: 0.6rem 1.2rem !important; border-radius: 999px !important; background: rgba(168, 85, 247, 0.1) !important; border: 1px solid rgba(168, 85, 247, 0.2) !important; }

    /* Footer Refinement */
    .hover-footer { margin: 1rem !important; margin-top: 4rem !important; border-radius: 28px !important; border: 1px solid rgba(255, 255, 255, 0.08) !important; }
    .footer-content-wrapper { padding: 4rem 1.5rem !important; }
    .footer-contact-item { justify-content: center !important; text-align: center !important; }
    .footer-bottom-flex { text-align: center !important; align-items: center !important; }
    .footer-col-links ul { padding: 0 !important; }
    .footer-col-links li { margin: 0 auto 0.85rem !important; }
    .back-to-top { display: none !important; }

    /* Chat Widget Mobile Stabilization */
    .chat-widget-container { bottom: 1.5rem !important; right: 1rem !important; }
    .chat-bubble { width: 56px !important; height: 56px !important; }
    .chat-window { width: calc(100vw - 2rem) !important; height: 70vh !important; bottom: 70px !important; right: 0 !important; }
}

@media (max-width: 480px) {
    .section-padding { padding: 3.5rem 0 !important; }
    h1, .page-title { font-size: 1.7rem !important; }
}
