/* ==========================================
   RS-Techie Custom Light Green Theme Styling
   ========================================== */

/* Design Tokens & Theme Variables */
:root {
    --primary: #1e5631;         /* Deep Forest Green (matching logo) */
    --primary-light: #2d7a42;   /* Medium Emerald Green */
    --accent: #4caf50;          /* Bright Mint/Green */
    --accent-glow: rgba(76, 175, 80, 0.15);
    
    --bg-base: #ffffff;         /* Pure white background */
    --bg-secondary: #f4faf6;    /* Soft Mint Tint for alternating sections */
    --bg-card: rgba(255, 255, 255, 0.85); /* Glassmorphic light card */
    --border-color: rgba(30, 86, 49, 0.08); /* Soft green border */
    --border-focus: rgba(76, 175, 80, 0.4);
    
    --text-main: #1a2d21;       /* Dark charcoal-green for high readability */
    --text-muted: #5c7062;      /* Medium muted green-gray */
    --text-light: #ffffff;
    
    --font-outfit: 'Outfit', sans-serif;
    --font-inter: 'Inter', sans-serif;
    
    --shadow-sm: 0 4px 6px -1px rgba(30, 86, 49, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(30, 86, 49, 0.08), 0 4px 6px -2px rgba(30, 86, 49, 0.03);
    --shadow-lg: 0 20px 25px -5px rgba(30, 86, 49, 0.1), 0 10px 10px -5px rgba(30, 86, 49, 0.04);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset & Base Elements */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-inter);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4 {
    font-family: var(--font-outfit);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

a {
    text-decoration: none;
    transition: var(--transition-smooth);
    color: var(--primary-light);
}

/* Canvas Particle Background */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    opacity: 0.65;
}

/* Common Layout Wrapper */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
}

/* Header & Sticky Navigation — glassmorphic, elevates on scroll */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 8px 24px -14px rgba(30, 86, 49, 0.18);
    transition: var(--transition-smooth);
}

.main-header.is-scrolled {
    background: rgba(255, 255, 255, 0.88);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 12px 32px -10px rgba(30, 86, 49, 0.22);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 44px;
    width: 44px;
    object-fit: contain;
    filter: drop-shadow(0 3px 6px rgba(30, 86, 49, 0.18));
}

.logo-text {
    font-family: var(--font-outfit);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: capitalize;
}

.logo-text span {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    font-family: var(--font-outfit);
    font-weight: 600;
    font-size: 0.96rem;
    color: var(--text-main);
    padding: 9px 16px;
    border-radius: 9999px;
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.65);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 4px 12px rgba(30, 86, 49, 0.14);
    transform: translateY(-1px);
}

.nav-cart-link {
    position: relative;
}

.nav-cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    margin-left: 6px;
    background: linear-gradient(135deg, #e64545, #c62828);
    color: #fff;
    font-family: var(--font-outfit);
    font-size: 0.68rem;
    font-weight: 700;
    border-radius: 9999px;
    vertical-align: middle;
    position: relative;
    top: -1px;
    box-shadow: 0 2px 6px rgba(198, 40, 40, 0.4);
}

.nav-cta-btn {
    font-family: var(--font-outfit);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 10px 22px;
    margin-left: 6px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: var(--text-light);
    border-radius: 9999px;
    box-shadow: 0 4px 14px rgba(30, 86, 49, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.nav-cta-btn:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 86, 49, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Hamburger button for mobile */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    cursor: pointer;
    z-index: 1100;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 2px 8px rgba(30, 86, 49, 0.1);
    transition: var(--transition-smooth);
}

.hamburger-btn:hover {
    background: rgba(255, 255, 255, 0.75);
}

.hamburger-btn .bar {
    width: 20px;
    height: 2px;
    background-color: var(--primary);
    border-radius: 4px;
    transition: var(--transition-smooth);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding-top: 140px;
    padding-bottom: 80px;
    background: radial-gradient(circle at 10% 10%, rgba(76, 175, 80, 0.05) 0%, transparent 60%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(30, 86, 49, 0.06);
    border: 1px solid rgba(30, 86, 49, 0.1);
    color: var(--primary);
    font-family: var(--font-outfit);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 9999px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    background: linear-gradient(135deg, var(--primary) 30%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}

.hero-slogan {
    font-family: var(--font-outfit);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-light);
    font-style: italic;
    margin-bottom: 20px;
    border-left: 3px solid var(--accent);
    padding-left: 12px;
}

/* Hero image text — frosted glass chip at top-right, does NOT float */
.hero-img-text {
    position: absolute;
    top: 0;
    right: 0;
    padding: 13px 18px 15px;
    text-align: right;
    z-index: 2;
    pointer-events: none;
    background: rgba(6, 18, 10, 0.20);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 0 24px 0 14px;
    border-left: 1px solid rgba(76, 175, 80, 0.18);
    border-bottom: 1px solid rgba(76, 175, 80, 0.12);
}
.hero-img-line1 {
    display: block;
    font-family: var(--font-outfit);
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(210, 245, 220, 0.9);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.7), 0 1px 5px rgba(0, 0, 0, 0.8);
}
.hero-img-line2 {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 1.55em;
}
.hero-img-dynamic {
    font-family: var(--font-outfit);
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.01em;
    text-shadow: 0 0 12px rgba(76, 175, 80, 0.9), 0 0 28px rgba(76, 175, 80, 0.4), 0 1px 6px rgba(0, 0, 0, 0.9);
}
.hero-img-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background-color: #6ecb8a;
    margin-left: 3px;
    flex-shrink: 0;
    border-radius: 1px;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.95), 0 0 18px rgba(76, 175, 80, 0.5);
    animation: rst-tw-blink 0.85s step-end infinite;
}
@keyframes rst-tw-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 620px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.btn {
    display: inline-block;
    font-family: var(--font-outfit);
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 28px;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: var(--text-light);
    box-shadow: 0 4px 14px rgba(30, 86, 49, 0.2);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 86, 49, 0.25);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid rgba(30, 86, 49, 0.2);
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: rgba(30, 86, 49, 0.03);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid var(--border-color);
    padding-top: 32px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-outfit);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

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

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 440px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: floatImage 6s ease-in-out infinite;
}

.hero-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Floating Image Animation */
@keyframes floatImage {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Hero 3D animation — desktop/pointer devices only */
@media (hover: hover) {
    .hero-image-wrapper {
        --mx: 50%; --my: 50%;
        isolation: isolate;
        transition: transform 0.12s ease-out;
        will-change: transform;
    }

    /* Spotlight overlay — hidden on slow CPUs via JS (useSpotlight guard) */
    .hero-image-wrapper::before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: inherit;
        background: radial-gradient(
            circle at var(--mx) var(--my),
            rgba(76, 175, 80, 0.18) 0%,
            transparent 60%
        );
        opacity: 0;
        transition: opacity 0.35s;
        pointer-events: none;
        z-index: 1;
    }
    .hero-image-wrapper:hover::before { opacity: 1; }

    /* Shimmer sweep */
    .hero-image-wrapper::after {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: inherit;
        background: linear-gradient(
            105deg,
            transparent 30%,
            rgba(255, 255, 255, 0.45) 50%,
            transparent 65%
        );
        background-size: 300% 100%;
        background-position: 100% center;
        pointer-events: none;
        z-index: 2;
    }
    .hero-image-wrapper.shimmer-run::after {
        animation: hero-shimmer 0.7s ease-out forwards;
    }

    /* Hero content card — service-card-style border + 3D tilt */
    .hero-content {
        border: 1px solid var(--border-color);
        border-radius: 20px;
        padding: 24px 28px;
        position: relative;
        transform-style: preserve-3d;
        will-change: transform;
        /* Merge reveal's existing transition with border/shadow — transform handled by JS inline on tilt-back */
        transition: opacity      0.8s cubic-bezier(0.25, 1, 0.5, 1),
                    transform    0.8s cubic-bezier(0.25, 1, 0.5, 1),
                    border-color 0.4s cubic-bezier(0.25, 1, 0.5, 1),
                    box-shadow   0.4s cubic-bezier(0.25, 1, 0.5, 1);
    }
    .hero-content:hover {
        border-color: var(--primary-light);
        box-shadow: 0 15px 40px rgba(30, 86, 49, 0.08), 0 5px 15px rgba(76, 175, 80, 0.03),
                    inset 0 4px 0 var(--primary);
    }

    /* Shine element — cursor-tracked radial glow, same pattern as .service-card-shine */
    .hero-content-shine {
        position: absolute;
        inset: 0;
        border-radius: inherit;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.25s ease;
        z-index: 0;
    }

    /* All direct children stay above the shine layer */
    .hero-content > *:not(.hero-content-shine) { position: relative; z-index: 1; }

    /* 3D Z-depth layers — natural parallax comes free from perspective tilt on the container */
    .hero-badge       { transform: translateZ(22px); }
    .hero-title       { transform: translateZ(18px); will-change: transform; }
    .hero-slogan      { transform: translateZ(14px); will-change: transform; }
    .hero-description { transform: translateZ(8px);  will-change: transform; }
    .hero-actions     { transform: translateZ(20px); transform-style: preserve-3d; will-change: transform; }
    .hero-stats       { transform: translateZ(6px);  }

    /* "Explore Products" CTA raised higher on the Z-axis so it reads as uplifted,
       like the floating .service-icon-box icons (sits ~44px, lifts to ~52px on hover). */
    .hero-cta                   { transform: translateZ(24px); will-change: transform; }
    .btn-primary.hero-cta:hover { transform: translateZ(32px) translateY(-2px); }
}

@keyframes hero-shimmer {
    from { background-position: 100% center; }
    to   { background-position: 0%   center; }
}

/* Section Common Headers */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 56px auto;
}

.section-badge {
    display: inline-block;
    background: rgba(76, 175, 80, 0.1);
    color: var(--primary-light);
    font-family: var(--font-outfit);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Services Grid Section */
.services-section {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 36px 30px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
                border-color 0.4s cubic-bezier(0.25, 1, 0.5, 1),
                box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1),
                background-color 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    transform-style: preserve-3d;
}

.service-card:hover {
    border-color: var(--primary-light);
    box-shadow: 0 15px 30px rgba(30, 86, 49, 0.08), 0 5px 15px rgba(76, 175, 80, 0.03),
                inset 0 4px 0 var(--primary);
    background-color: #ffffff;
}

.service-icon-box {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(30, 86, 49, 0.05);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: background-color 0.4s cubic-bezier(0.25, 1, 0.5, 1),
                color 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    animation: svc-icon-float 3s ease-in-out infinite;
    will-change: transform;
}

@keyframes svc-icon-float {
    0%, 100% { transform: translateZ(42px) translateY(0px); }
    50%       { transform: translateZ(49px) translateY(-4px); }
}

.service-card:hover .service-icon-box {
    animation: none;
    transform: translateZ(53px) translateY(-3px) scale(1.08);
    background-color: var(--primary);
    color: var(--text-light);
}

.service-card.svc-active .service-icon-box {
    animation: none;
    transform: translateZ(42px);
    background-color: var(--primary);
    color: var(--text-light);
}

.service-card-title {
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: var(--primary);
    transform: translateZ(15px);
}

.service-card-text {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Interactive Simulator Section */
.simulator-section {
    position: relative;
    background: radial-gradient(circle at 90% 90%, rgba(76, 175, 80, 0.04) 0%, transparent 60%);
}

.simulator-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
}

.simulator-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.simulator-features {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(76, 175, 80, 0.15);
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.85rem;
}

.feature-item span {
    font-weight: 500;
    color: var(--text-main);
}

/* Smartphone Simulator Mockup */
.simulator-mockup {
    display: flex;
    justify-content: center;
}

.phone-container {
    width: 320px;
    height: 560px;
    border-radius: 36px;
    background: #0d1117;
    border: 10px solid #2d3748;
    box-shadow: var(--shadow-lg), 0 25px 50px -12px rgba(30, 86, 49, 0.25);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.phone-notch {
    width: 120px;
    height: 18px;
    background: #2d3748;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 10;
}

.phone-header {
    background: #075e54; /* WhatsApp Green */
    color: #ffffff;
    padding: 24px 16px 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 5;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.phone-back-arrow {
    font-size: 1.1rem;
    cursor: pointer;
}

.phone-contact-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.phone-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(255,255,255,0.2);
}

.phone-contact-name {
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-outfit);
}

.phone-contact-status {
    font-size: 0.65rem;
    opacity: 0.85;
}

.phone-header-icons {
    display: flex;
    gap: 12px;
    font-size: 0.9rem;
    opacity: 0.85;
}

.phone-chat-area {
    flex: 1;
    background: #efe7dd; /* Classic WhatsApp Chat BG */
    background-image: 
        radial-gradient(rgba(0,0,0,0.03) 1px, transparent 0),
        radial-gradient(rgba(0,0,0,0.03) 1px, transparent 0);
    background-size: 16px 16px;
    background-position: 0 0, 8px 8px;
    padding: 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Chat bubble styling */
.chat-bubble {
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.82rem;
    max-width: 85%;
    line-height: 1.4;
    word-wrap: break-word;
    box-shadow: 0 1px 1px rgba(0,0,0,0.06);
    animation: bubblePop 0.25s ease-out forwards;
}

@keyframes bubblePop {
    from { opacity: 0; transform: translateY(6px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-bubble.bot {
    background: #ffffff;
    align-self: flex-start;
    border-top-left-radius: 2px;
    color: #111827;
}

.chat-bubble.user {
    background: #dcf8c6; /* WhatsApp User Green */
    align-self: flex-end;
    border-top-right-radius: 2px;
    color: #111827;
}

/* Simulator Interactive Choices area */
.phone-options-area {
    background: rgba(255, 255, 255, 0.85);
    border-top: 1px solid rgba(0,0,0,0.05);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 5;
}

.sim-choice-btn {
    width: 100%;
    padding: 8px 12px;
    background: #ffffff;
    border: 1px solid var(--primary-light);
    color: var(--primary);
    font-family: var(--font-outfit);
    font-weight: 700;
    font-size: 0.78rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.sim-choice-btn:hover {
    background: var(--primary);
    color: var(--text-light);
    border-color: var(--primary);
}

.phone-input-bar {
    background: #f0f0f0;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid rgba(0,0,0,0.06);
    z-index: 5;
}

.emoji-icon {
    font-size: 1.1rem;
    color: #8c9094;
    cursor: pointer;
}

.mock-chat-input {
    flex: 1;
    border: none;
    background: #ffffff;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 0.8rem;
    outline: none;
}

.send-icon {
    font-size: 1rem;
    color: #075e54;
    cursor: pointer;
}

/* Contact & Quote Section */
.contact-section {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
}

.contact-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(30, 86, 49, 0.05);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.detail-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.detail-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
}

.detail-value:hover {
    color: var(--primary-light);
}

/* Contact Form Styling */
.contact-form-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Contact Section Tab Switcher (Chat with Leporis / Send a Message) */
.contact-tab-switcher {
    display: flex;
    gap: 6px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 5px;
    margin-bottom: 24px;
}

.contact-tab-btn {
    flex: 1;
    border: none;
    background: transparent;
    font-family: var(--font-outfit);
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-muted);
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.contact-tab-btn:hover { color: var(--text-main); }

.contact-tab-btn.active {
    background: var(--bg-base);
    color: var(--primary);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.form-title {
    font-size: 1.75rem;
    margin-bottom: 8px;
    color: var(--primary);
}

.form-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.quote-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    background: #ffffff;
    border-radius: 8px;
    font-family: var(--font-inter);
    font-size: 0.95rem;
    color: var(--text-main);
    transition: var(--transition-smooth);
    outline: none;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-status {
    font-size: 0.9rem;
    font-weight: 500;
    display: none;
    padding: 10px 14px;
    border-radius: 8px;
}

.form-status.success {
    display: block;
    background: rgba(76, 175, 80, 0.1);
    color: var(--primary-light);
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.form-status.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.submit-btn {
    background: var(--primary);
    color: var(--text-light);
    border: none;
    font-family: var(--font-outfit);
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(30, 86, 49, 0.15);
}

.submit-btn:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(30, 86, 49, 0.2);
}

.btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: var(--text-light);
    border-radius: 50%;
    display: none;
    animation: buttonSpin 0.8s linear infinite;
}

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

/* Footer Section */
.main-footer {
    background-color: var(--primary);
    color: rgba(255, 255, 255, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px 40px;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 48px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-brand .logo-text {
    color: #ffffff;
}

.footer-desc {
    font-size: 0.95rem;
    max-width: 320px;
}

.footer-links-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-header {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-light);
    width: fit-content;
}

.footer-link {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-smooth);
}

.footer-link:hover {
    color: #ffffff;
    transform: translateX(2px);
}

/* Footer bottom bar: copyright + social icons, separated from the link columns.
   Deliberately left-grouped (not right-aligned) — the Leporis floating widget
   is fixed to the viewport's bottom-right corner (see leporis_floating_widget.php),
   so that corner is reserved and must stay clear of footer content. */
.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 24px 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-copyright {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-smooth);
}

.footer-social-icon:hover {
    background: var(--primary-light);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Footer newsletter form */
.footer-newsletter-form {
    margin: 4px 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    max-width: 340px;
}

.footer-newsletter-input {
    flex: 1;
    min-width: 180px;
    padding: 9px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: inherit;
    font-size: 0.85rem;
}

.footer-newsletter-btn {
    padding: 9px 16px;
    font-size: 0.85rem;
    white-space: nowrap;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.06);
}

.footer-newsletter-btn:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
}

.footer-newsletter-msg {
    font-size: 0.78rem;
    margin: 0;
    min-height: 1em;
}

.footer-staff-links {
    margin-top: 8px;
    font-size: 0.8rem;
}

.footer-staff-link {
    color: rgba(255, 255, 255, 0.45);
    transition: var(--transition-smooth);
}

.footer-staff-link:hover {
    color: rgba(255, 255, 255, 0.85);
}

.footer-staff-divider {
    color: rgba(255, 255, 255, 0.25);
    margin: 0 8px;
}

/* ==========================================
   Service Cards — 3D Tilt + Shine + Active State
   ========================================== */
.service-card {
    cursor: pointer;
}

.service-card.svc-active {
    border-color: var(--primary-light) !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.22), 0 10px 28px rgba(30, 86, 49, 0.09),
                inset 0 4px 0 var(--primary) !important;
    transform: none !important;
}

.service-card.svc-active::before {
    opacity: 1;
}

.service-card-shine {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 1;
}

/* ==========================================
   Service Detail — Row-inject Accordion
   ========================================== */
.service-detail-slot {
    grid-column: 1 / -1;
    overflow: visible;
    position: relative;
    margin-top: 0;
    transition: margin-top 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-detail-slot.open {
    margin-top: 12px;
}

.service-detail-slot::before {
    content: '';
    position: absolute;
    top: 0;
    left: var(--caret-x, 50%);
    transform: translateX(-50%) translateY(-100%);
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-bottom-color: rgba(76, 175, 80, 0.35);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease 0.28s;
}

.service-detail-slot.open::before {
    opacity: 1;
}

.svc-slot-inner {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    background: var(--bg-card);
    border: 1px solid rgba(76, 175, 80, 0.28);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(30, 86, 49, 0.08);
    padding: 0 36px;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.32s ease,
                padding 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-detail-slot.open .svc-slot-inner {
    max-height: 800px;
    opacity: 1;
    padding: 32px 36px 28px;
}

.svc-slot-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.svc-slot-title-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.svc-slot-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(30, 86, 49, 0.06);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.svc-slot-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin: 0;
}

.svc-slot-close {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 1.3rem;
    line-height: 1;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.svc-slot-close:hover {
    color: #ef4444;
    border-color: #ef4444;
}

.svc-slot-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 20px;
}

.svc-slot-col h4 {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-light);
    margin-bottom: 12px;
    font-weight: 700;
}

.svc-slot-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.svc-features-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.svc-features-list li {
    display: flex;
    gap: 9px;
    font-size: 0.87rem;
    color: var(--text-main);
    margin-bottom: 7px;
    align-items: flex-start;
}

.svc-bullet {
    color: var(--primary-light);
    font-weight: bold;
    flex-shrink: 0;
}

.svc-slot-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 18px;
    display: flex;
    justify-content: flex-end;
}

.modal-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.tech-tag {
    background: rgba(76, 175, 80, 0.08);
    color: var(--primary-light);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(76, 175, 80, 0.15);
}

.modal-timeline-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.timeline-step {
    display: flex;
    gap: 12px;
}

.step-num-badge {
    width: 22px;
    height: 22px;
    background: var(--primary);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 2px;
}

.step-desc-text {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ==========================================
   Responsive Styling (Breakpoints)
   ========================================== */

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 32px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .svc-slot-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .svc-slot-inner {
        padding: 0 20px;
    }

    .service-detail-slot.open .svc-slot-inner {
        padding: 24px 20px 20px;
    }

    .simulator-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .phone-container {
        max-width: 340px;
        height: 560px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 12px 20px;
    }
    
    .hamburger-btn {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 73px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 73px);
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(20px) saturate(160%);
        -webkit-backdrop-filter: blur(20px) saturate(160%);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 48px;
        gap: 14px;
        transition: var(--transition-smooth);
        border-top: 1px solid rgba(255, 255, 255, 0.6);
        box-shadow: 0 20px 40px -12px rgba(30, 86, 49, 0.2);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        font-size: 1.15rem;
        padding: 12px 24px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
        padding-top: 40px;
    }
    
    .hero-slogan {
        border-left: none;
        border-bottom: 2px solid var(--accent);
        padding-left: 0;
        padding-bottom: 8px;
        display: inline-block;
    }

    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }

    .svc-slot-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-newsletter-form {
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
    }

    .footer-links-group {
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .logo-area {
        justify-content: center;
    }

    .footer-link:hover {
        transform: none;
    }
}

/* Animations active classes */
.hamburger-btn.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================
   6. Page Preloader Styling
   ========================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #ffffff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    opacity: 1;
    visibility: visible;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.preloader-logo {
    height: 80px;
    width: 80px;
    animation: logoPulse 1.8s ease-in-out infinite;
}

.preloader-bar {
    width: 140px;
    height: 3px;
    background: rgba(30, 86, 49, 0.08);
    border-radius: 99px;
    overflow: hidden;
    position: relative;
}

.preloader-progress {
    position: absolute;
    height: 100%;
    width: 50%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 99px;
    animation: progressSlide 1.5s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.08); opacity: 1; filter: drop-shadow(0 0 10px rgba(76, 175, 80, 0.25)); }
}

@keyframes progressSlide {
    0% { left: -50%; }
    100% { left: 100%; }
}

/* ==========================================
   7. Scroll-Reveal Class Styling
   ========================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform, opacity;
}

.reveal.reveal-visible {
    opacity: 1;
    transform: translateY(0);
    will-change: auto;
}

/* ==========================================
   8. Contact Us Dual Buttons & Footer Socials
   ========================================== */
.form-buttons-group {
    display: flex;
    gap: 16px;
    margin-top: 10px;
}

.form-action-btn {
    flex: 1;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-family: var(--font-outfit);
    font-weight: 700;
    font-size: 1rem;
    padding: 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    text-align: center;
}

.btn-submit {
    background: var(--primary);
    color: var(--text-light);
    box-shadow: 0 4px 10px rgba(30, 86, 49, 0.15);
}

.btn-submit:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(30, 86, 49, 0.2);
}

.btn-whatsapp {
    background: #25d366; /* WhatsApp brand color */
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.15);
}

.btn-whatsapp:hover {
    background: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(37, 211, 102, 0.2);
}

@media (max-width: 576px) {
    .form-buttons-group {
        flex-direction: column;
        gap: 12px;
    }
}

/* ──────────────────────────────────────────────────────────────
   PROFILE DROPDOWN
   ────────────────────────────────────────────────────────────── */

.nav-profile-wrapper {
    position: relative;
    margin-left: 6px;
}

.nav-profile-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    color: var(--text-main);
    font-family: var(--font-outfit);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 6px 12px 6px 6px;
    border-radius: 9999px;
    transition: var(--transition-smooth);
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 2px 8px rgba(30, 86, 49, 0.1);
}
.nav-profile-btn:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-1px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 4px 14px rgba(30, 86, 49, 0.16);
}

.nav-profile-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid rgba(76,175,80,0.4);
    box-shadow: 0 2px 6px rgba(30, 86, 49, 0.3);
    overflow: hidden;
}

.nav-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.nav-profile-caret {
    transition: transform 0.2s;
    opacity: 0.6;
}
.nav-profile-wrapper.is-open .nav-profile-caret { transform: rotate(180deg); }

/* Dropdown panel */
.nav-profile-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    min-width: 240px;
    background: #ffffff;
    border: 1px solid rgba(30,86,49,0.12);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
    z-index: 1100;
    overflow: hidden;
    animation: profileDropIn 0.15s ease;
}
.nav-profile-wrapper.is-open .nav-profile-dropdown { display: block; }

@keyframes profileDropIn {
    from { opacity: 0; transform: translateY(-6px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0)   scale(1); }
}

.nav-profile-dropdown-header {
    padding: 14px 16px 12px;
    border-bottom: 1px solid rgba(30,86,49,0.08);
    background: linear-gradient(135deg, rgba(30,86,49,0.04), rgba(76,175,80,0.03));
}
.nav-dropdown-fullname {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a2e1a;
    margin-bottom: 2px;
}
.nav-dropdown-email {
    display: block;
    font-size: 0.75rem;
    color: #6a8a6a;
    word-break: break-all;
}
.nav-dropdown-credits {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(30,86,49,0.08);
    color: var(--primary);
    border-radius: 99px;
    padding: 2px 10px;
}

.nav-profile-dropdown-body { padding: 6px; }

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 9px 10px;
    border-radius: 7px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #1a2e1a;
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s, color 0.15s;
}
.nav-dropdown-item:hover  { background: rgba(30,86,49,0.07); color: var(--primary); }
.nav-dropdown-item svg    { flex-shrink: 0; opacity: 0.6; }
.nav-dropdown-divider     { height: 1px; background: rgba(30,86,49,0.08); margin: 4px 0; }
.nav-dropdown-danger      { color: #c62828; }
.nav-dropdown-danger:hover { background: rgba(198,40,40,0.07); color: #b71c1c; }
.nav-dropdown-logout      { color: #5a5a5a; }
.nav-dropdown-logout:hover { background: rgba(0,0,0,0.05); color: #1a1a1a; }

/* Mobile: profile dropdown goes static inside the slide-in nav */
@media (max-width: 768px) {
    .nav-profile-wrapper { width: 100%; text-align: center; margin-left: 0; }
    .nav-cta-btn         { margin-left: 0; }
    .nav-profile-btn     { width: 100%; justify-content: center; font-size: 1.1rem; padding: 8px 16px; }
    .nav-profile-dropdown {
        position: static;
        box-shadow: none;
        border: 1px solid rgba(30,86,49,0.1);
        border-radius: 10px;
        animation: none;
        margin-top: 8px;
        background: rgba(255,255,255,0.9);
    }
}

/* ──────────────────────────────────────────────────────────────
   MY PRODUCTS DROPDOWN — consolidates owned product portals so
   the nav stays a fixed width regardless of how many a customer owns
   ────────────────────────────────────────────────────────────── */

.nav-products-wrapper {
    position: relative;
    margin-left: 4px;
}

.nav-products-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    color: var(--text-main);
    font-family: var(--font-outfit);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 9999px;
    transition: var(--transition-smooth);
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 2px 8px rgba(30, 86, 49, 0.1);
}
.nav-products-btn svg:first-child { opacity: 0.7; }
.nav-products-btn:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-1px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 4px 14px rgba(30, 86, 49, 0.16);
}

.nav-products-caret {
    transition: transform 0.2s;
    opacity: 0.6;
}
.nav-products-wrapper.is-open .nav-products-caret { transform: rotate(180deg); }

/* Ambient nudge on the collapsed trigger itself for Leporis/WhatsApp users,
   so consolidating products into a dropdown doesn't fully bury the
   "something's live" signal the standalone nav-link used to give. */
[data-user-type="leporis"] .nav-products-btn::after {
    content: '';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4caf50;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
    animation: rst-status-dot 2s ease-in-out infinite;
}

.nav-products-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    min-width: 260px;
    background: #ffffff;
    border: 1px solid rgba(30,86,49,0.12);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
    z-index: 1100;
    overflow: hidden;
    animation: profileDropIn 0.15s ease;
}
.nav-products-wrapper.is-open .nav-products-dropdown { display: block; }

.nav-products-dropdown-header {
    padding: 12px 16px 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #6a8a6a;
    background: linear-gradient(135deg, rgba(30,86,49,0.04), rgba(76,175,80,0.03));
}

.nav-products-dropdown-body { padding: 6px; }

.nav-product-link {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 10px 10px;
    border-radius: 7px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #1a2e1a;
    transition: background 0.15s, color 0.15s;
}
.nav-product-link:hover { background: rgba(30,86,49,0.07); color: var(--primary); }

.nav-product-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4caf50;
    flex-shrink: 0;
}
[data-user-type="leporis"] .nav-product-link[href*="whatsapp"] .nav-product-dot {
    animation: rst-status-dot 2s ease-in-out infinite;
}

/* Mobile: My Products dropdown goes static inside the slide-in nav, same
   treatment as the profile dropdown right above it */
@media (max-width: 768px) {
    .nav-products-wrapper { width: 100%; text-align: center; margin-left: 0; }
    .nav-products-btn     { width: 100%; justify-content: center; font-size: 1.1rem; padding: 10px 16px; }
    .nav-products-dropdown {
        position: static;
        box-shadow: none;
        border: 1px solid rgba(30,86,49,0.1);
        border-radius: 10px;
        animation: none;
        margin-top: 8px;
        background: rgba(255,255,255,0.9);
    }
}

/* ──────────────────────────────────────────────────────────────
   MODAL — shared base (used by Delete Account; reuse for others)
   ────────────────────────────────────────────────────────────── */

.rst-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.rst-modal-box {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.2);
    max-width: 480px;
    width: 100%;
    overflow: hidden;
    animation: modalSlideIn 0.2s ease;
}
@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(12px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.rst-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #f0e4e4;
    background: #fff5f5;
}
.rst-modal-header h2 { font-size: 1.1rem; color: #c62828; margin: 0; }
.rst-modal-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}
.rst-modal-close:hover { color: #c62828; background: rgba(198,40,40,0.07); }

.rst-modal-body { padding: 20px 24px; }

.rst-modal-lead {
    font-size: 0.9rem;
    color: #333;
    line-height: 1.6;
    margin-bottom: 14px;
}
.rst-modal-alert {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: #7a5500;
    margin-bottom: 14px;
    line-height: 1.5;
}
.rst-modal-list {
    font-size: 0.84rem;
    color: #555;
    padding-left: 18px;
    line-height: 2;
    margin-bottom: 4px;
}

.rst-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid #eee;
    background: #fafafa;
}

.rst-btn-danger {
    background: #c62828;
    color: #fff;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
}
.rst-btn-danger:disabled { opacity: 0.45; cursor: not-allowed; }
.rst-btn-danger:not(:disabled):hover { background: #b71c1c; }

/* Friendly (non-destructive) modal header variant — .rst-modal-header on its
   own is styled red for the Delete Account modal specifically; prompts like
   "add your WhatsApp number" need to read as helpful, not alarming. */
.rst-modal-header-friendly { background: #f0f9f0; border-bottom-color: rgba(76,175,80,0.15); }
.rst-modal-header-friendly h2 { color: var(--primary); }

/* Visually secondary but still fully legible "skip" action — deliberately
   not hidden or hard to find, just lighter weight than the primary button. */
.rst-modal-skip {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: underline;
    cursor: pointer;
    padding: 8px 4px;
}
.rst-modal-skip:hover { color: var(--text-main); }

/* ──────────────────────────────────────────────────────────────
   USER-TYPE MICRO-ANIMATIONS
   Three visitor states: anonymous / no-product / leporis.
   Body carries [data-user-type] set by site_header.php.
   GPU-composited only (transform, opacity, box-shadow).
   All animations are suppressed for prefers-reduced-motion.
   ────────────────────────────────────────────────────────────── */

/* — Keyframes — */

/* Two-beat heartbeat with a long rest: lub-dub … pause … */
@keyframes rst-heartbeat {
    0%, 22%, 100% { transform: scale(1); }
    6%            { transform: scale(1.07); }
    13%           { transform: scale(1.02); }
    18%           { transform: scale(1.055); }
}

/* Soft green glow breathing */
@keyframes rst-glow-pulse {
    0%, 100% { box-shadow: 0 4px 14px rgba(30,86,49,0.18); }
    50%       { box-shadow: 0 4px 26px rgba(30,86,49,0.50), 0 0 0 4px rgba(30,86,49,0.10); }
}

/* Gentle two-hop bounce on a nav link */
@keyframes rst-nav-bounce {
    0%, 10%, 100% { transform: translateY(0); }
    4%            { transform: translateY(-4px); }
    8%            { transform: translateY(-2px); }
}

/* Expanding ring ripple */
@keyframes rst-ring-pulse {
    0%, 55%, 100% { box-shadow: 0 0 0 0 rgba(76,175,80,0); }
    28%            { box-shadow: 0 0 0 8px rgba(76,175,80,0.22); }
}

/* Pulsing status indicator dot */
@keyframes rst-status-dot {
    0%, 100% { opacity: 1;    transform: scale(1); }
    50%       { opacity: 0.3; transform: scale(0.8); }
}

/* Amber warning glow on expiring trial card */
@keyframes rst-amber-glow {
    0%, 100% { box-shadow: none; }
    50%       { box-shadow: 0 0 0 3px rgba(255,152,0,0.28), 0 6px 22px rgba(255,152,0,0.12); }
}

/* Spring-pop for badge on page load */
@keyframes rst-badge-pop {
    0%   { transform: scale(0); opacity: 0; }
    60%  { transform: scale(1.28); opacity: 1; }
    80%  { transform: scale(0.9); }
    100% { transform: scale(1); }
}

/* Periodic cart shake — draws eye to non-empty cart on all pages */
@keyframes rst-cart-wiggle {
    0%, 13%, 100% { transform: scale(1) rotate(0deg); }
    4%            { transform: scale(1.2) rotate(-14deg); }
    8%            { transform: scale(1.2) rotate(14deg); }
    11%           { transform: scale(1.1) rotate(-7deg); }
}

/* — Anonymous: visitor without an account — */

/* Login button heartbeat — fires every 7 s starting 3 s after load */
[data-user-type="anonymous"] .nav-cta-btn:not(:hover):not(:focus-visible) {
    animation: rst-heartbeat 7s ease-in-out 3s infinite;
    transform-origin: center;
}

/* Hero "Explore Products" CTA glow — gentle breathing */
[data-user-type="anonymous"] .btn-primary.hero-cta:not(:hover):not(:focus-visible) {
    animation: rst-glow-pulse 5s ease-in-out 4s infinite;
}

/* "Products" nav link — delayed two-hop bounce */
[data-user-type="anonymous"] .nav-link[href*="products"]:not(:hover):not(:focus-visible) {
    animation: rst-nav-bounce 12s ease-in-out 10s infinite;
    display: inline-block;
}

/* — No-product: logged in but hasn't purchased — */

/* "Products" nav link — persistent bounce reminder */
[data-user-type="no-product"] .nav-link[href*="products"]:not(:hover):not(:focus-visible) {
    animation: rst-nav-bounce 9s ease-in-out 4s infinite;
    display: inline-block;
}

/* Cart link — ripple ring inviting them to browse */
[data-user-type="no-product"] .nav-cart-link:not(:hover):not(:focus-visible) {
    animation: rst-ring-pulse 10s ease-in-out 6s infinite;
    border-radius: 4px;
}

/* Empty-state "Browse Products" button on dashboard */
[data-user-type="no-product"] .empty-state .btn-primary:not(:hover):not(:focus-visible) {
    animation: rst-glow-pulse 6s ease-in-out 2s infinite;
}

/* — Leporis: WhatsApp platform user — */
/* Live-status dot for the owned WhatsApp product now lives on
   .nav-products-btn (collapsed trigger) and .nav-product-link (dropdown
   item) — see the MY PRODUCTS DROPDOWN section. Previously this was a
   [href*="whatsapp"] selector on .nav-link, which also (incorrectly)
   matched the static "Digital Marketing" page at /services/whatsapp-marketing. */

/* Trial-expiring card — amber pulse (class added by PHP when status = expiring) */
.trial-expiring:not(:hover) {
    animation: rst-amber-glow 5s ease-in-out 1s infinite;
}

/* Cart badge — pop on load then periodic wiggle — fires for ALL user types
   when cart is not empty (.nav-cart-badge only renders when $cartCount > 0) */
.nav-cart-badge {
    transform-origin: center top;
    animation: rst-badge-pop 0.45s cubic-bezier(0.34,1.56,0.64,1) 1s both,
               rst-cart-wiggle 7s ease-in-out 4s infinite;
}

/* — Newsletter / preferences toggle switch — */
.rst-toggle-wrap {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 26px;
    flex-shrink: 0;
}
.rst-toggle-wrap input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.rst-toggle-slider {
    position: absolute;
    inset: 0;
    background: #ccc;
    border-radius: 26px;
    cursor: pointer;
    transition: background 0.25s;
}
.rst-toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.25s;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.rst-toggle-wrap input:checked + .rst-toggle-slider { background: var(--primary-light); }
.rst-toggle-wrap input:checked + .rst-toggle-slider::before { transform: translateX(20px); }

/* — Accessibility — */
@media (prefers-reduced-motion: reduce) {
    .nav-cta-btn,
    .btn-primary.hero-cta,
    .nav-link,
    .nav-cart-link,
    .nav-cart-badge,
    .trial-expiring,
    .nav-product-dot,
    [data-user-type="leporis"] .nav-products-btn::after {
        animation: none !important;
    }
    .hero-image-wrapper { animation: none !important; transition: none !important; }
    .hero-image-wrapper::after { animation: none !important; }
    .hero-content { transition: none !important; }
    .hero-content-shine { transition: none !important; }
    .hero-badge, .hero-title, .hero-slogan, .hero-description, .hero-actions, .hero-stats { transform: none !important; will-change: auto; }
}

/* ==========================================
   Service Card Group Differentiator (Digital Marketing vs Software & AI)
   Corner glow wash + icon halo ring, colored per group via [data-group].
   Scoped to [data-group] so it never affects .service-card elsewhere
   (service-page "how it works" steps, etc.) which don't set that attribute.
   No overflow:hidden — the gradient self-fades before reaching the card
   edges, since overflow:hidden conflicts with transform-style:preserve-3d
   and flattens the icon's native 3D hover elevation.
   ========================================== */
.service-card[data-group]::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 100% 0%, #f59e0b 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}
.service-card[data-group]:hover::before { opacity: 0.22; }
.service-card[data-group="tech"]::before { background: radial-gradient(circle at 100% 0%, #1e5631 0%, transparent 55%); }

.service-card[data-group] .service-icon-box { position: relative; transform-style: preserve-3d; }
.service-card[data-group] .service-icon-box::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 16px;
    border: 2px solid #f59e0b;
    opacity: 0;
    transform: translateZ(0px) scale(0.8);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.25,1,0.5,1);
}
.service-card[data-group]:hover .service-icon-box::after { opacity: 0.55; transform: translateZ(18px) scale(1.15); }
.service-card[data-group="tech"] .service-icon-box::after { border-color: #1e5631; }

/* ==========================================
   Blog Hero Banner — 6 generic gradient themes, cycled per article.
   No external images (no hosting/broken-link risk) — a soft radial glow
   sits behind the title so it reads like a real hero image, not flat color.
   ========================================== */
.blog-hero-banner {
    position: relative;
    border-radius: 20px;
    padding: 64px 40px;
    margin-top: 20px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.blog-hero-glow {
    position: absolute;
    top: 50%; left: 50%;
    width: 70%; height: 140%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255,255,255,0.35) 0%, transparent 65%);
    pointer-events: none;
}
.blog-hero-banner h1 {
    position: relative;
    z-index: 1;
    color: #fff;
    text-align: center;
    font-size: 2rem;
    line-height: 1.3;
    max-width: 700px;
    margin: 0;
    text-shadow: 0 0 28px rgba(255,255,255,0.6), 0 2px 10px rgba(0,0,0,0.3);
}
.blog-hero-theme-1 { background: linear-gradient(135deg, #1e5631 0%, #4caf50 100%); }
.blog-hero-theme-2 { background: linear-gradient(135deg, #0f766e 0%, #2dd4bf 100%); }
.blog-hero-theme-3 { background: linear-gradient(135deg, #92400e 0%, #f59e0b 100%); }
.blog-hero-theme-4 { background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%); }
.blog-hero-theme-5 { background: linear-gradient(135deg, #581c87 0%, #a855f7 100%); }
.blog-hero-theme-6 { background: linear-gradient(135deg, #164e63 0%, #06b6d4 100%); }
