/* Cursor Following Blob */
.blob {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(24, 189, 217, 0.3) 0%, rgba(0, 229, 255, 0.15) 40%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    filter: blur(60px);
    opacity: 0.8;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* Glassmorphic Header */
.glassmorphic-header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 35px;
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.36),
        inset 0 0 80px rgba(255, 255, 255, 0.05);
    margin-top: 20px;
    transform-style: preserve-3d;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: visible;
}

/* Mobile: Increase header height when menu is open */
@media (max-width: 767px) {
    .glassmorphic-header {
        height: auto;
        min-height: 70px;
    }
}

.glassmorphic-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 35px;
    padding: 2px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.2),
        rgba(255, 255, 255, 0.05)
    );
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Gradient Text for Hero */
/* ... existing styles ... */
/* Header & Animated Navigation */
/* ... existing styles ... */
/* Utility width to match header ratio (8:30) */
.w-30 { width: 7.5rem; }
/* Improve mobile hit-area and z-index for menu toggle */
#nav-toggle {
    position: relative;
    z-index: 200; /* Ensure toggle stays above dropdown and header effects */
    min-width: 44px; /* iOS recommended touch target */
    min-height: 44px; /* iOS recommended touch target */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

#burger-icon {
    display: inline-block;
}

#burger-icon span {
    display: block;
    height: 3px; /* ensure consistent tap area */
}
/* Glassmorphic Button */
.glassmorphic-button {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 35px;
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.36),
        inset 0 0 80px rgba(255, 255, 255, 0.05);
    width: fit-content;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
}

.glassmorphic-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 35px;
    padding: 2px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.2),
        rgba(255, 255, 255, 0.05)
    );
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.glassmorphic-button:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(0, 229, 255, 0.2),
        inset 0 0 80px rgba(255, 255, 255, 0.08);
}

/* Glassmorphic Footer */
.glassmorphic-footer {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.4),
        0 0 60px rgba(0, 229, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 0 80px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.glassmorphic-footer::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

/* Sparky Holepunch Effect */
.sparky-holepunch::before {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.5) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(20px);
    z-index: 0;
}

/* Contact Icon Buttons */
.contact-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.15), rgba(24, 189, 217, 0.1));
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1.5px solid rgba(0, 229, 255, 0.3);
    border-radius: 16px;
    color: #00E5FF;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 4px 15px rgba(0, 229, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.contact-icon-btn:hover {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.3), rgba(24, 189, 217, 0.25));
    border-color: rgba(0, 229, 255, 0.8);
    color: #fff;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 12px 30px rgba(0, 229, 255, 0.4),
        0 0 20px rgba(0, 229, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.contact-icon-btn svg {
    filter: drop-shadow(0 2px 4px rgba(0, 229, 255, 0.3));
    transition: filter 0.3s ease;
}

.contact-icon-btn:hover svg {
    filter: drop-shadow(0 4px 8px rgba(0, 229, 255, 0.6));
}

/* Navigation Links Slide Animation (Desktop) */
.nav-links-slide {
    position: absolute;
    right: 100%;
    margin-right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    white-space: nowrap;
}

.nav-links-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

/* Mobile Dropdown Menu */
@media (max-width: 767px) {
    .nav-links-slide {
        position: absolute;
        top: calc(100% + 0.5rem);
        right: 0;
        left: auto;
        margin: 0;
        min-width: 200px;
        flex-direction: column;
        gap: 0;
        background: rgba(10, 8, 7, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 15px;
        transform: translateY(-10px) scale(0.95);
        box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
        overflow: hidden;
        z-index: 150; /* keep below nav-toggle */
    }
    /* Mobile fixed sheet mode: place dropdown below header reliably */
    .nav-links-slide.mobile-sheet {
        position: fixed;
        left: 50%;
        top: var(--dropdown-top, 88px);
        transform: translateX(-50%) scale(0.98);
        width: min(90vw, 340px);
        z-index: 150;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .nav-links-slide.mobile-sheet.mobile-active {
        opacity: 1;
        transform: translateX(-50%) scale(1);
        pointer-events: auto;
        max-height: 320px;
        overflow-y: auto;
    }
    
    .nav-links-slide.mobile-active {
        opacity: 1;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }
    
    .nav-mobile-link {
        animation: slideDownLink 0.3s ease-out forwards;
        opacity: 0;
        text-align: left;
    }
    
    .nav-mobile-link:nth-child(1) {
        animation-delay: 0.05s;
    }
    
    .nav-mobile-link:nth-child(2) {
        animation-delay: 0.1s;
    }
    
    .nav-mobile-link:last-child {
        border-bottom: none;
    }
    
    /* Ensure header allows dropdown overflow */
    .glassmorphic-header {
        overflow: visible;
    }
}


@keyframes slideDownLink {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.nav-slide-link {
    display: inline-block;
    opacity: 0;
    transform: translateX(20px);
    animation: slideInLink 0.4s ease-out forwards;
}

.nav-slide-link:nth-child(1) {
    animation-delay: 0.05s;
}

.nav-slide-link:nth-child(2) {
    animation-delay: 0.1s;
}

.nav-slide-link:nth-child(3) {
    animation-delay: 0.15s;
}

@keyframes slideInLink {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Gradient Text Effect */
.gradient-text {
    background: linear-gradient(45deg, #18bdd9, #00E5FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent; /* Ensure full glyph fill (avoids descender clipping on WebKit) */
    display: inline; /* Better baseline alignment for descenders like g/j/y */
    padding-bottom: 0.05em; /* Tiny buffer so tails render fully */
}

/* Hover Glow Effect */
.hover-glow {
    display: inline-block;
    transition: all 0.3s ease;
    cursor: default;
    position: relative;
}

.hover-glow:hover,
.glow-active {
    color: #00E5FF;
    text-shadow: 
        0 0 10px rgba(0, 229, 255, 0.8),
        0 0 20px rgba(0, 229, 255, 0.6),
        0 0 30px rgba(0, 229, 255, 0.4),
        0 0 40px rgba(0, 229, 255, 0.2);
    transform: scale(1.05);
}

/* Font Roulette Effect */
.font-roulette {
    display: inline-block;
    cursor: pointer;
    transition: transform 0.1s ease;
    min-width: 200px;
    text-align: center;
    position: relative;
    z-index: 10;
}

.font-roulette:hover {
    transform: scale(1.02);
}

/* Agile Partnership Glassmorphic Slab */
.agile-slab {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.4),
        inset 0 0 80px rgba(255, 255, 255, 0.03);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    transform-style: preserve-3d;
}

.agile-slab::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

/* Liquid merge effect on scroll */
.agile-slab.merging::before {
    opacity: 1;
}

.agile-slab.merging {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    transform: translateY(-10px);
}

/* FLOATING BUBBLE CLIENT LOGO ANIMATION */
.client-logo-scroller {
    position: relative;
    width: 100%;
    height: 140px; /* Increased to accommodate 120px logos */
    overflow: hidden;
    margin: 2rem 0;
}

.bubble-track {
    display: flex;
    position: absolute;
    animation: scroll 30s linear infinite;
    width: max-content;
    will-change: transform;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.client-bubble {
    flex: 0 0 auto;
    width: 200px;
    padding: 0 40px;
    height: 140px; /* Increased for larger logos */
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-bubble img {
    width: auto;
    height: 120px; /* Logo size increased as requested */
    object-fit: contain;
    opacity: 0.8;
    transition: all 0.3s ease;
    filter: grayscale(100%);
}

.client-bubble:hover img {
    opacity: 1;
    transform: scale(1.1);
    filter: grayscale(0%);
}

/* Pause animation on hover */
.client-logo-scroller:hover .bubble-track {
    animation-play-state: paused;
}
/* Quick Link Cards */
/* ... existing styles ... */
/* AI Modal Styles */
/* ... existing AI modal styles ... */
/* ANIMATED FOOTER SOCIALS */
/* ... existing footer styles ... */

/* NEW G3c "Why Choose Us" Section Styles */
.g3c-container
{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 40px 0;
}

.g3c-container .box
{
  position: relative;
  width: 320px;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px 30px;
  transition: 0.5s;
}

.g3c-container .box::before
{
  content:' ';
  position: absolute;
  top: 0;
  left: 50px;
  width: 50%;
  height: 100%;
  text-decoration: none;
  background: #2a2a2a; /* Adapted for dark theme */
  border-radius: 8px;
  transform: skewX(15deg);
  transition: 0.5s;
}

.g3c-container .box::after
{
  content:'';
  position: absolute;
  top: 0;
  left: 50;
  width: 50%;
  height: 100%;
  background: #2a2a2a; /* Adapted for dark theme */
  border-radius: 8px;
  transform: skewX(15deg);
  transition: 0.5s;
  filter: blur(30px);
}

.g3c-container .box:hover:before,
.g3c-container .box:hover:after
{
  transform: skewX(0deg);
  left: 20px;
  width: calc(100% - 90px);
}

/* Using signature and brand colors for the gradients */
.g3c-container .box:nth-child(1):before,
.g3c-container .box:nth-child(1):after
{
  background: linear-gradient(315deg, #18bdd9, #007BFF)
}

.g3c-container .box:nth-child(2):before,
.g3c-container .box:nth-child(2):after
{
  background: linear-gradient(315deg, #00E5FF, #18bdd9)
}

.g3c-container .box:nth-child(3):before,
.g3c-container .box:nth-child(3):after
{
    background: linear-gradient(315deg, #18bdd9, #00E5FF)
}

.g3c-container .box:nth-child(4):before,
.g3c-container .box:nth-child(4):after
{
  background: linear-gradient(315deg, #007BFF, #00E5FF)
}

.g3c-container .box span
{
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  pointer-events: none;
}

.g3c-container .box span::before
{
  content:'';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: 0.1s;  
  animation: g3c-animate 2s ease-in-out infinite;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08)
}

.g3c-container .box:hover span::before
{
  top: -50px;
  left: 50px;
  width: 100px;
  height: 100px;
  opacity: 1;
}

.g3c-container .box span::after
{
  content:'';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: 0.5s;
  animation: g3c-animate 2s ease-in-out infinite;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  animation-delay: -1s;
}

.g3c-container .box:hover span:after
{
  bottom: -50px;
  right: 50px;
  width: 100px;
  height: 100px;
  opacity: 1;
}

@keyframes g3c-animate
{
  0%, 100%
  {
    transform: translateY(10px);
  }
  
  50%
  {
    transform: translateY(-10px);
  }
}

.g3c-container .box .content
{
  position: relative;
  left: 0;
  padding: 20px 40px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  z-index: 1;
  transition: 0.5s;
  color: #fff;
}

.g3c-container .box:hover .content
{
  left: -25px;
  padding: 60px 40px;
}

.g3c-container .box .content h2
{
  font-family: 'Inter', sans-serif; /* Using main font */
  font-size: 1.5em; /* Adjusted size */
  color: #fff;
  margin-bottom: 10px;
}

.g3c-container .box .content p
{
  font-family: 'Inter', sans-serif; /* Using main font */
  font-size: 1em; /* Adjusted size */
  margin-bottom: 10px;
  line-height: 1.5em;
}

/* 3D Tilt Effect for Glassmorphic Elements */
.glassmorphic-3d {
    perspective: 1000px;
}

.glassmorphic-header.tilt-active,
.glassmorphic-button.tilt-active,
.glassmorphic-footer.tilt-active,
.agile-slab.tilt-active,
.g3c-container .box.tilt-active,
.sparky-card.tilt-active {
    transform: translateZ(20px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(0, 229, 255, 0.15),
        inset 0 2px 0 rgba(255, 255, 255, 0.15);
}

/* Sparky Cards */
.sparky-card {
    transform-style: preserve-3d;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

