/* ============================================
   DESKTOP-ONLY ENHANCEMENTS
   Applied only on screens 769px and wider
   Mobile users won't load these styles
   ============================================ */

@media (min-width: 769px) {
    
    /* ============================================
       ANIMATED GRADIENT TITLES
       Desktop-only color-shifting enhancement
       ============================================ */
    
    .section-title {
        background: linear-gradient(
            135deg, 
            #06b6d4 0%, 
            #3b82f6 30%, 
            #8b5cf6 60%, 
            #a855f7 100%
        );
        background-size: 300% 300%;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        /* Only run gradientShift on true desktops (>1024px) — on tablets the
           infinite background-position animation on clipped-gradient text causes
           GPU repaint flickering (Nexus 10, iPad, Surface etc.) */
        animation: none;
        /* Isolate to compositor layer to prevent neighbouring animations interfering */
        transform: translateZ(0);
        backface-visibility: hidden;
    }

    @keyframes gradientShift {
        0% { background-position: 0% 50%; }
        25% { background-position: 100% 50%; }
        50% { background-position: 50% 100%; }
        75% { background-position: 0% 100%; }
        100% { background-position: 0% 50%; }
    }

    /* Re-enable shimmer only on proper desktops where GPU handles it well */
    @media (min-width: 1100px) {
        .section-title {
            animation: gradientShift 8s ease-in-out infinite;
        }
    }
    
    /* Enhanced glow on hover */
    .section-title:hover {
        animation-duration: 4s;
        filter: brightness(1.15) saturate(1.3);
        transition: filter 0.3s ease;
    }
    
    /* ============================================
       SMOOTH SCROLL ANIMATIONS
       ============================================ */
    
    /* Add animation class to elements via JavaScript */
    .fade-in-up {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }
    
    .fade-in-up.visible {
        opacity: 1;
        transform: translateY(0);
    }
    
    .fade-in-left {
        opacity: 0;
        transform: translateX(-30px);
        transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }
    
    .fade-in-left.visible {
        opacity: 1;
        transform: translateX(0);
    }
    
    .fade-in-right {
        opacity: 0;
        transform: translateX(30px);
        transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }
    
    .fade-in-right.visible {
        opacity: 1;
        transform: translateX(0);
    }
    
    /* ============================================
       ENHANCED HERO SECTION — DESKTOP (home page only)
       ============================================ */

    body.home-page .hero {
        position: relative;
        min-height: 88vh !important;
        overflow: hidden;
        background:
            radial-gradient(ellipse at 70% 15%, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
            radial-gradient(ellipse at 25% 85%, rgba(168, 85, 247, 0.12) 0%, transparent 50%),
            repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(6, 182, 212, 0.07) 40px, rgba(6, 182, 212, 0.07) 41px),
            repeating-linear-gradient(-45deg, transparent, transparent 40px, rgba(168, 85, 247, 0.05) 40px, rgba(168, 85, 247, 0.05) 41px),
            linear-gradient(135deg, rgba(6, 182, 212, 0.03) 0%, rgba(59, 130, 246, 0.05) 50%, rgba(168, 85, 247, 0.03) 100%) !important;
    }

    /* Glowing orb — top-left cyan */
    body.home-page .hero::before {
        content: '';
        position: absolute;
        top: -80px;
        left: -80px;
        width: 520px;
        height: 520px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(6, 182, 212, 0.18) 0%, rgba(59, 130, 246, 0.09) 45%, transparent 70%);
        filter: blur(60px);
        pointer-events: none;
        z-index: 0;
        animation: heroOrb1 9s ease-in-out infinite alternate;
    }

    /* Glowing orb — bottom-right purple */
    body.home-page .hero::after {
        content: '';
        position: absolute;
        bottom: -100px;
        right: -80px;
        width: 600px;
        height: 600px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(139, 92, 246, 0.16) 0%, rgba(168, 85, 247, 0.08) 45%, transparent 70%);
        filter: blur(70px);
        pointer-events: none;
        z-index: 0;
        animation: heroOrb2 11s ease-in-out infinite alternate;
    }

    @keyframes heroOrb1 {
        0%   { transform: translate(0, 0) scale(1); opacity: 0.7; }
        50%  { transform: translate(40px, 30px) scale(1.08); opacity: 1; }
        100% { transform: translate(20px, 60px) scale(0.95); opacity: 0.8; }
    }

    @keyframes heroOrb2 {
        0%   { transform: translate(0, 0) scale(1); opacity: 0.6; }
        50%  { transform: translate(-30px, -40px) scale(1.1); opacity: 1; }
        100% { transform: translate(-60px, -20px) scale(0.92); opacity: 0.75; }
    }

    @keyframes pulse-glow {
        0%   { opacity: 0.5; transform: scale(1); }
        100% { opacity: 1;   transform: scale(1.1); }
    }

    /* Ensure content sits above orbs */
    body.home-page .hero-wrapper {
        position: relative;
        z-index: 1;
        max-width: 820px !important;
        margin: 0 auto !important;
        text-align: center;
    }

    body.home-page .hero-content {
        position: relative;
        z-index: 1;
        text-align: center !important;
        width: 100%;
    }

    /* Badge */
    body.home-page .hero-badge {
        display: inline-block;
        padding: 0.65rem 1.8rem;
        background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
        border: none;
        border-radius: 50px;
        font-size: 1rem;
        font-weight: 700;
        color: #fff;
        margin-bottom: 1.5rem;
        letter-spacing: 0.02em;
        box-shadow: 0 4px 20px rgba(245, 158, 11, 0.45), 0 0 40px rgba(245, 158, 11, 0.2);
        animation: pulse 2.5s ease-in-out infinite;
    }

    /* Big bold title */
    body.home-page .hero-title {
        font-size: clamp(2.8rem, 4.5vw, 4.8rem) !important;
        font-weight: 900 !important;
        line-height: 1.12 !important;
        margin-bottom: 1.4rem !important;
        background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 25%, #8b5cf6 50%, #a855f7 75%, #06b6d4 100%);
        background-size: 300% 300%;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        animation: titleGradient 6s ease-in-out infinite;
        letter-spacing: -0.02em;
        filter: drop-shadow(0 4px 24px rgba(139, 92, 246, 0.35));
    }

    /* Subtitle */
    body.home-page .hero-subtitle {
        font-size: 1.3rem !important;
        color: #cbd5e1 !important;
        font-weight: 400 !important;
        margin-bottom: 1.2rem !important;
        line-height: 1.6 !important;
        letter-spacing: 0.01em;
    }

    /* Description paragraph */
    body.home-page .hero-description p {
        font-size: 1.05rem;
        color: #94a3b8;
        line-height: 1.75;
        max-width: 640px;
        margin: 0 auto 2rem;
    }

    /* About page stats — prevent label wrapping */
    body.about-page .stats {
        max-width: 520px !important;
        gap: 2rem !important;
    }

    body.about-page .stat-item {
        text-align: center !important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    body.about-page .stat-item p {
        white-space: nowrap;
        text-align: center;
    }

    @keyframes titleGradient {
        0%   { background-position: 0% 50%; }
        33%  { background-position: 100% 0%; }
        66%  { background-position: 50% 100%; }
        100% { background-position: 0% 50%; }
    }

    /* Stats row (home page hero) */
    body.home-page .hero-stats {
        margin-top: 2.5rem;
        gap: 2rem;
        justify-content: center;
    }

    body.home-page .hero-stats .stat-item {
        padding: 1rem 1.5rem;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(6, 182, 212, 0.18);
        border-radius: 12px;
        backdrop-filter: blur(10px);
        transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    }

    body.home-page .hero-stats .stat-item:hover {
        transform: translateY(-4px);
        border-color: rgba(6, 182, 212, 0.45);
        box-shadow: 0 8px 30px rgba(6, 182, 212, 0.15);
    }

    body.home-page .hero-stats .stat-value {
        font-size: 1.8rem;
        font-weight: 800;
        color: #06b6d4;
        display: block;
        line-height: 1.1;
        text-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
    }

    body.home-page .hero-stats .stat-label {
        font-size: 0.8rem;
        color: #94a3b8;
        margin-top: 0.3rem;
        display: block;
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }
    
    /* ============================================
       ENHANCED BUTTONS
       ============================================ */
    
    .cta-button,
    .btn,
    button[type="submit"],
    .package-button,
    .view-project {
        position: relative;
        overflow: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
    }
    
    .cta-button::before,
    .btn::before,
    button[type="submit"]::before,
    .package-button::before,
    .view-project::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.2);
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
    }
    
    .cta-button:hover,
    .btn:hover,
    button[type="submit"]:hover,
    .package-button:hover,
    .view-project:hover {
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 8px 25px rgba(6, 182, 212, 0.4), 0 0 20px rgba(6, 182, 212, 0.2);
    }
    
    .cta-button:hover::before,
    .btn:hover::before,
    button[type="submit"]:hover::before,
    .package-button:hover::before,
    .view-project:hover::before {
        width: 300px;
        height: 300px;
    }
    
    .cta-button:active,
    .btn:active,
    button[type="submit"]:active,
    .package-button:active,
    .view-project:active {
        transform: translateY(-1px) scale(0.98);
    }
    
    /* ============================================
       ENHANCED CARD SHADOWS & EFFECTS
       ============================================ */
    
    .package-demo-card,
    .service-card,
    .benefit-card,
    .process-step,
    .faq-item,
    .portfolio-item {
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }
    
    .package-demo-card:hover,
    .service-card:hover,
    .benefit-card:hover,
    .process-step:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 15px 40px rgba(6, 182, 212, 0.2), 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .portfolio-item:hover {
        transform: translateY(-5px) scale(1.01);
        box-shadow: 0 12px 35px rgba(6, 182, 212, 0.15), 0 5px 15px rgba(0, 0, 0, 0.08);
    }
    
    /* ============================================
       GLASSMORPHISM EFFECTS
       ============================================ */
    
    .package-overlay,
    .nav,
    .cookie-banner {
        backdrop-filter: blur(10px) saturate(180%);
        -webkit-backdrop-filter: blur(10px) saturate(180%);
        background: rgba(255, 255, 255, 0.08) !important;
    }
    
    .package-overlay.standard {
        background: linear-gradient(135deg, rgba(30, 58, 95, 0.95), rgba(21, 43, 70, 0.98)) !important;
        backdrop-filter: blur(12px) saturate(180%);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    
    .package-overlay.enhanced {
        background: linear-gradient(135deg, rgba(245, 87, 108, 0.95), rgba(240, 77, 96, 0.98)) !important;
        backdrop-filter: blur(12px) saturate(180%);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    
    .package-overlay.professional {
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.95), rgba(118, 75, 162, 0.98)) !important;
        backdrop-filter: blur(12px) saturate(180%);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }
    
    /* ============================================
       ENHANCED NAVIGATION
       ============================================ */
    
    .nav {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(6, 182, 212, 0.05);
        border-bottom: 1px solid rgba(6, 182, 212, 0.1);
    }
    
    .nav.scrolled {
        box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12), 0 3px 12px rgba(6, 182, 212, 0.08);
    }
    
    .nav-links a {
        position: relative;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .nav-links a::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 50%;
        width: 0;
        height: 2px;
        background: linear-gradient(90deg, #06b6d4, #3b82f6);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        transform: translateX(-50%);
    }
    
    .nav-links a:hover::after {
        width: 100%;
    }
    
    .nav-links a:hover {
        color: #06b6d4;
        transform: translateY(-2px);
    }
    
    /* ============================================
       PARALLAX EFFECT
       ============================================ */
    
    .hero-content,
    .hero-title,
    .hero-subtitle {
        will-change: transform;
    }
    
    /* ============================================
       SECTION REVEAL ANIMATIONS
       ============================================ */
    
    section {
        opacity: 0;
        transform: translateY(40px);
        animation: section-reveal 0.8s ease-out forwards;
    }
    
    @keyframes section-reveal {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* ============================================
       ENHANCED PRICING CARDS
       ============================================ */
    
    .pricing-card {
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
    }
    
    .pricing-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.1), transparent);
        transition: left 0.6s;
    }
    
    .pricing-card:hover::before {
        left: 100%;
    }
    
    .pricing-card:hover {
        transform: translateY(-10px) scale(1.03);
        box-shadow: 0 20px 50px rgba(6, 182, 212, 0.25), 0 10px 20px rgba(0, 0, 0, 0.15);
    }
    
    /* ============================================
       ENHANCED FAQ ITEMS
       ============================================ */
    
    .faq-item {
        border-left: 3px solid transparent;
        transition: all 0.3s ease;
    }
    
    .faq-item:hover {
        border-left-color: #06b6d4;
        background: linear-gradient(90deg, rgba(6, 182, 212, 0.05) 0%, transparent 100%);
        box-shadow: 0 8px 20px rgba(6, 182, 212, 0.1);
    }
    
    /* ============================================
       SERVICE CARDS WITH ICONS
       ============================================ */
    
    .service-card i,
    .benefit-card i {
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .service-card:hover i,
    .benefit-card:hover i {
        transform: scale(1.2) rotate(5deg);
        color: #06b6d4;
        filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.5));
    }
    
    /* ============================================
       FOOTER ENHANCEMENTS
       ============================================ */
    
    footer {
        position: relative;
        overflow: hidden;
    }
    
    footer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.5), transparent);
        box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
    }
    
    footer a {
        transition: all 0.3s ease;
        position: relative;
    }
    
    footer a::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 0;
        height: 1px;
        background: #06b6d4;
        transition: width 0.3s ease;
    }
    
    footer a:hover::after {
        width: 100%;
    }
    
    footer a:hover {
        color: #06b6d4;
        transform: translateX(3px);
    }
    
    /* ============================================
       SMOOTH PAGE TRANSITIONS
       ============================================ */
    
    * {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    /* ============================================
       ENHANCED FORM INPUTS
       ============================================ */
    
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea,
    select {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border: 2px solid #e2e8f0;
    }
    
    input[type="text"]:focus,
    input[type="email"]:focus,
    input[type="tel"]:focus,
    textarea:focus,
    select:focus {
        border-color: #06b6d4;
        box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1), 0 4px 15px rgba(6, 182, 212, 0.15);
        transform: translateY(-2px);
    }
    
    /* ============================================
       ENHANCED TRUST BADGES
       ============================================ */
    
    .trust-badge {
        transition: all 0.3s ease;
    }
    
    .trust-badge:hover {
        transform: translateY(-5px) scale(1.05);
        filter: brightness(1.1);
    }
    
    /* ============================================
       ANIMATED GRADIENT BACKGROUNDS
       ============================================ */
    
    @keyframes gradient-shift {
        0% {
            background-position: 0% 50%;
        }
        50% {
            background-position: 100% 50%;
        }
        100% {
            background-position: 0% 50%;
        }
    }
    
    .animated-gradient {
        background-size: 200% 200%;
        animation: gradient-shift 8s ease infinite;
    }
    
    /* ============================================
       SCROLL PROGRESS INDICATOR
       ============================================ */
    
    .scroll-progress {
        position: fixed;
        top: 0;
        left: 0;
        height: 4px;
        background: linear-gradient(90deg, #06b6d4, #3b82f6, #8b5cf6);
        z-index: 9999;
        transition: width 0.1s ease-out;
        box-shadow: 0 2px 10px rgba(6, 182, 212, 0.5);
    }
    
}
/* ============================================
   TABLET FIX: Disable 88vh min-height on hero
   so content is NOT vertically-centered in a
   huge space on iPad / Zenbook Fold / etc.
   ============================================ */
@media (min-width: 769px) and (max-width: 1199px) {
    body.home-page .hero {
        min-height: auto !important;
        justify-content: flex-start !important;
        padding-top: 80px !important;
    }
}

/* ============================================
   INNER PAGE NAVBAR CLEARANCE (iPad Pro / tablets)
   Ensure .page-section on inner pages always
   clears the fixed navbar at all tablet widths.
   ============================================ */
@media (min-width: 769px) and (max-width: 968px) {
    section:not(.hero) {
        padding-top: 85px !important;
    }
}
@media (min-width: 969px) and (max-width: 1199px) {
    section:not(.hero) {
        padding-top: 90px !important;
    }
}