/* ===============================
   ABOUT PAGE STYLE
================================ */
.stacked-cards {
  position: relative;
 
  aspect-ratio: 4 / 3;
  perspective: 1200px;
}

/* ===============================
   BASE CARD STYLE
================================ */
.stacked-cards .card {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.5rem;

  box-shadow: 0 30px 70px rgba(0,0,0,0.25);

  transform-style: preserve-3d;
  cursor: pointer;

  transition:
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.6s ease,
    box-shadow 0.45s ease;
}

/* ===============================
   INITIAL STACK (VISIBLE BACK CARDS)
================================ */
.card-1 { z-index: 4; }
.card-2 { z-index: 3; transform: scale(0.96); opacity: 0.85; }
.card-3 { z-index: 2; transform: scale(0.92); opacity: 0.7; }
.card-4 { z-index: 1; transform: scale(0.88); opacity: 0.55; }

/* ===============================
   SCROLL REVEAL → FAN OUT
================================ */
.is-visible .card-1 {
  transform: translate(-40px, -18px) rotate(-6deg);
}

.is-visible .card-2 {
  transform: translate(40px, 18px) rotate(6deg);
  opacity: 0.9;
}

.is-visible .card-3 {
  transform: translate(72px, 34px) rotate(10deg);
  opacity: 0.85;
}

.is-visible .card-4 {
  transform: translate(-72px, -34px) rotate(-10deg);
  opacity: 0.8;
}

/* ===============================
   HOVER → BOTH CARDS REACT TOGETHER
   (NO Z-INDEX CHANGE)
================================ */
.stacked-cards:hover .card-1 {
  transform:
    translate(-48px, -26px)
    rotate(-10deg)
    rotateX(6deg);
  box-shadow: 0 40px 90px rgba(0,0,0,0.35);
}

.stacked-cards:hover .card-2 {
  transform:
    translate(48px, 26px)
    rotate(10deg)
    rotateX(6deg);
  box-shadow: 0 34px 80px rgba(0,0,0,0.28);
}

/* ===============================
   MOBILE → SIMPLE & CLEAN
================================ */
@media (max-width: 768px) {
  .is-visible .card-1 {
    transform: translateY(-32px);
  }
  .is-visible .card-2 {
    transform: translateY(32px);
  }

  .stacked-cards:hover .card {
    transform: none;
    box-shadow: 0 25px 60px rgba(0,0,0,0.25);
  }
}

/* ------------------------------------------------------------------------- */
/* ==========================================
   CREATIVE VALUE CARDS - ALWAYS ACTIVE
   ========================================== */

.value-card {
    position: relative;
    perspective: 1000px;
}

.value-card-inner {
    position: relative;
    padding: 2rem;
    border-radius: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid rgba(59, 130, 246, 0.3);
    backdrop-filter: blur(10px);
    overflow: hidden;
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.value-card:hover .value-card-inner {
    transform: translateY(-16px) scale(1.03);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
}

/* Animated glow background - ALWAYS VISIBLE */
.value-card-glow {
    position: absolute;
    inset: -50%;
    opacity: 0.25;
    pointer-events: none;
    filter: blur(40px);
    animation: rotate-glow 8s linear infinite;
}

.value-card:hover .value-card-glow {
    opacity: 0.4;
}

.value-card-glow-blue {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.8), transparent 70%);
}

.value-card-glow-purple {
    background: radial-gradient(circle, rgba(147, 51, 234, 0.8), transparent 70%);
}

.value-card-glow-pink {
    background: radial-gradient(circle, rgba(236, 72, 153, 0.8), transparent 70%);
}

.value-card-glow-green {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.8), transparent 70%);
}
.value-card-glow-orange {
    background: radial-gradient(circle, rgb(242, 103, 17, 0.8), transparent 70%);
}
.value-card-glow-yellow {
    background: radial-gradient(circle, rgba(242, 208, 17, 0.8), transparent 70%);
}

@keyframes rotate-glow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Icon wrapper with pulsing ring */
.value-icon-wrapper {
    position: relative;
    width: fit-content;
}

.value-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    transform: scale(1.05) rotate(-4deg);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.value-card:hover .value-icon {
    transform: scale(1.15) rotate(-12deg);
}

/* Pulsing ring effect - ALWAYS ACTIVE */
.value-icon-ring {
    position: absolute;
    inset: -8px;
    border-radius: 1.25rem;
    opacity: 1;
    animation: pulse-ring 2s ease-out infinite;
}

.value-card:hover .value-icon-ring {
    animation: pulse-ring-fast 1.5s ease-out infinite;
}

.value-icon-ring-blue {
    border: 2px solid rgba(59, 130, 246, 0.6);
}

.value-icon-ring-purple {
    border: 2px solid rgba(147, 51, 234, 0.6);
}

.value-icon-ring-pink {
    border: 2px solid rgba(236, 72, 153, 0.6);
}

.value-icon-ring-green {
    border: 2px solid rgba(16, 185, 129, 0.6);
}
.value-icon-ring-orange {
    border: 2px solid rgb(242, 103, 17, 0.6);
}
.value-icon-ring-yellow {
    border: 2px solid rgba(242, 208, 17, 0.6);
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes pulse-ring-fast {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Number indicator - ALWAYS VISIBLE */
.value-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    opacity: 0.8;
    transform: translateX(2px);
    transition: all 0.3s ease;
}

.value-card:hover .value-number {
    opacity: 1;
    transform: translateX(6px);
}

/* Description - BRIGHTER BY DEFAULT */
.value-description {
    color: var(--text-primary);
    line-height: 1.6;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.value-card:hover .value-description {
    opacity: 1;
}

/* Arrow indicator - ALWAYS VISIBLE */
.value-arrow {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    opacity: 0.7;
    transform: translate(0, 0);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    color: var(--text-secondary);
}

.value-card:hover .value-arrow {
    opacity: 1;
    transform: translate(4px, -4px);
}

@media (prefers-reduced-motion: reduce) {
    .value-card-glow,
    .value-icon-ring {
        animation: none !important;
    }
    
    .value-card-inner,
    .value-icon,
    .value-number,
    .value-arrow {
        transform: none !important;
    }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .value-card-inner {
        transform: translateY(-4px) scale(1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }
    
    .value-card:hover .value-card-inner {
        transform: translateY(-8px) scale(1.01);
    }
    
    .value-icon {
        transform: scale(1.02) rotate(-2deg);
    }
    
    .value-card:hover .value-icon {
        transform: scale(1.08) rotate(-6deg);
    }
}


/* ------------------------------------------------------- */
/* ==========================================
   CAPABILITY IMAGE HOVER EFFECTS
   (Image only - simplified version)
   ========================================== */

.capability-image-wrapper {
    position: relative;
    overflow: hidden;
}

.capability-image-inner {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
}

/* Main image with hover effects */
.capability-image {
    display: block;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.capability-image-wrapper:hover .capability-image {
    transform: scale(1.1) rotate(2deg);
    filter: brightness(1.15) contrast(1.05) saturate(1.1);
}

/* Animated glow effect on hover */
.capability-glow {
    position: absolute;
    inset: -20%;
    border-radius: 1rem;
    opacity: 0;
    filter: blur(30px);
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.capability-image-wrapper:hover .capability-glow {
    opacity: 0.5;
    animation: glow-pulse 2s ease-in-out infinite;
}

.capability-glow-blue {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.8), transparent 70%);
}

.capability-glow-purple {
    background: radial-gradient(circle, rgba(147, 51, 234, 0.8), transparent 70%);
}

.capability-glow-pink {
    background: radial-gradient(circle, rgba(236, 72, 153, 0.8), transparent 70%);
}

.capability-glow-green {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.8), transparent 70%);
}

@keyframes glow-pulse {
    0%, 100% { 
        opacity: 0.5; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.7;
        transform: scale(1.05);
    }
}

/* Responsive - reduce effects on mobile */
@media (max-width: 1024px) {
    .capability-image-wrapper:hover .capability-image {
        transform: scale(1.05) rotate(1deg);
    }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .capability-image,
    .capability-glow {
        animation: none !important;
        transition: none !important;
    }
    
    .capability-image-wrapper:hover .capability-image {
        transform: none !important;
        filter: none !important;
    }
}



/* ==========================================
   GLASSMORPHISM HERO SECTION
   ========================================== */

/* Main Glass Card */
.hero-glass-card {
    position: relative;
    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: 2rem;
    padding: 3rem;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.hero-glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 20px 60px rgba(59, 130, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
}

@media (max-width: 768px) {
    .hero-glass-card {
        padding: 2rem 1.5rem;
        border-radius: 1.5rem;
    }
}

/* Animated Background Orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    pointer-events: none;
}

.hero-orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.8), transparent);
    top: -10%;
    right: -10%;
    animation: float-orb-hero-1 20s ease-in-out infinite;
}

.hero-orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.8), transparent);
    bottom: -10%;
    left: -10%;
    animation: float-orb-hero-2 25s ease-in-out infinite;
}

.hero-orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.8), transparent);
    top: 50%;
    left: 50%;
    animation: float-orb-hero-3 30s ease-in-out infinite;
}

@keyframes float-orb-hero-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, 40px) scale(1.1); }
}

@keyframes float-orb-hero-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -30px) scale(1.15); }
}

@keyframes float-orb-hero-3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(calc(-50% + 20px), calc(-50% - 20px)) scale(1.2); }
}



/* CTA Buttons */
.hero-cta-primary {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    color: white;
    font-weight: 600;
    font-size: 1.125rem;
    border-radius: 9999px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
    position: relative;
    overflow: hidden;
}

.hero-cta-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1D4ED8, #6D28D9);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.hero-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.6);
}

.hero-cta-primary:hover::before {
    opacity: 1;
}

.hero-cta-secondary {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.125rem;
    border-radius: 9999px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.hero-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.2);
}

/* Corner Decorations */
.corner-decoration {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(59, 130, 246, 0.3);
    opacity: 0.6;
    transition: all 0.4s ease;
}

.hero-glass-card:hover .corner-decoration {
    opacity: 1;
    border-color: rgba(59, 130, 246, 0.6);
}

.corner-tl {
    top: 1rem;
    left: 1rem;
    border-right: none;
    border-bottom: none;
    border-radius: 1rem 0 0 0;
}

.corner-tr {
    top: 1rem;
    right: 1rem;
    border-left: none;
    border-bottom: none;
    border-radius: 0 1rem 0 0;
}

.corner-bl {
    bottom: 1rem;
    left: 1rem;
    border-right: none;
    border-top: none;
    border-radius: 0 0 0 1rem;
}

.corner-br {
    bottom: 1rem;
    right: 1rem;
    border-left: none;
    border-top: none;
    border-radius: 0 0 1rem 0;
}





/* Scroll Indicator */
.scroll-indicator {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    position: relative;
    opacity: 0.6;
}

.scroll-indicator-dot {
    width: 6px;
    height: 6px;
    background: rgba(59, 130, 246, 0.8);
    border-radius: 50%;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
    0%, 100% {
        top: 8px;
        opacity: 1;
    }
    50% {
        top: 30px;
        opacity: 0.3;
    }
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .floating-info-card {
        display: none;
    }
    
    .hero-orb {
        filter: blur(60px);
    }
}

@media (max-width: 768px) {
    .hero-stat-card {
        padding: 1rem 0.5rem;
    }
    
    .hero-cta-primary,
    .hero-cta-secondary {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }
    
    .corner-decoration {
        width: 25px;
        height: 25px;
    }
}

/* Dark/Light Mode Support */
[data-theme="light"] .hero-glass-card {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(59, 130, 246, 0.2);
}

[data-theme="light"] .hero-stat-card {
    background: rgba(59, 130, 246, 0.05);
    border-color: rgba(59, 130, 246, 0.15);
}

[data-theme="light"] .hero-cta-secondary {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .hero-orb,
    .floating-info-card,
    .scroll-indicator-dot {
        animation: none !important;
    }
    
    .hero-glass-card,
    .hero-stat-card,
    .hero-cta-primary,
    .hero-cta-secondary {
        transition: none !important;
    }
}

/* --------------------------------------------------------------------------- */
     /* Gradient border animation */
        @keyframes gradient-rotate {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        .gradient-border-card {
            position: relative;
            background: var(--glass-bg);
            border-radius: 1.5rem;
            padding: 2px;
            background: linear-gradient(60deg, #3B82F6, #8B5CF6, #EC4899, #3B82F6);
            background-size: 300% 300%;
            animation: gradient-rotate 3s ease infinite;
        }

        /* .gradient-border-card:hover {
            animation: gradient-rotate 3s ease infinite;
        } */

        .gradient-border-inner {
            background: var(--bg-primary);
            border-radius: 1.4rem;
            padding: 2rem;
        }

        /* Feature card hover */
        .feature-card {
            transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
        }

        .feature-card:hover {
            transform: translateY(-12px) scale(1.02);
        }

        /* Process step animation */
        .process-step {
            position: relative;
        }

        .process-line {
            position: absolute;
            width: 2px;
            height: 0;
            background: linear-gradient(to bottom, #3B82F6, #8B5CF6);
            left: 2rem;
            top: 4rem;
            transition: height 1s ease;
        }

        .process-step.is-visible .process-line {
            height: calc(100% - 4rem);
        }

        /* Pricing card glow */
        .pricing-card {
            position: relative;
            overflow: hidden;
        }

        .pricing-glow {
            position: absolute;
            inset: -100%;
            background: radial-gradient(circle, rgba(59, 130, 246, 0.3), transparent 60%);
            opacity: 0;
            transition: opacity 0.6s ease;
        }

        .pricing-card:hover .pricing-glow {
            opacity: 1;
            animation: rotate-glow 4s linear infinite;
        }

        @keyframes rotate-glow {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        /* Tech stack item */
        .tech-item {
            transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        }

        .tech-item:hover {
            transform: translateY(-8px) rotate(5deg) scale(1.1);
        }
/* ------------------------------------------------------------------- */