/* Custom Design Tokens & variables */
:root {
    --bg-dark: #1D121B;
    --bg-card: rgba(29, 18, 27, 0.45);
    --border-glow: rgba(236, 72, 153, 0.2);
    --border-muted: rgba(255, 255, 255, 0.07);
    --primary: #8B5CF6;
    --secondary: #EC4899;
    --text-primary: #f8fafc;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --font-heading: 'Playfair Display', 'Outfit', sans-serif;
    --font-body: 'Candara', sans-serif;
    --glass-blur: blur(16px);
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(ellipse at 20% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 80%, rgba(236, 72, 153, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 50%, rgba(168, 85, 247, 0.04) 0%, transparent 70%);
    animation: none;
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    overflow-y: scroll;                        /* Always show scrollbar — prevents layout shift */
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-overflow-scrolling: touch;         /* iOS momentum scrolling */
    overscroll-behavior-y: none;               /* Prevent page bounce/chaining */
    text-rendering: optimizeLegibility;
}



/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* Preloader Overlay */
.preloader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #120A10;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s cubic-bezier(0.77, 0, 0.175, 1), visibility 0.8s;
}

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

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

.logo-container {
    position: relative;
    margin-bottom: 2rem;
}

.preloader-logo {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 242, 254, 0.2);
}

.logo-glow {
    position: absolute;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.4) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(10px);
    z-index: -1;
}

.progress-ring-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.progress-ring__circle {
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.1s;
}

.percentage {
    position: absolute;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.preloader-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Header styling */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(5, 7, 10, 0.8) 0%, rgba(5, 7, 10, 0) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    will-change: transform;
    transform: translateZ(0);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.brand-dot {
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.6);
}

.brand-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.2rem;
    color: var(--text-primary);
}

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

.nav-item {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-item:hover {
    color: var(--primary);
}

.cta-button {
    text-decoration: none;
    color: #05070a;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.4);
}

/* Canvas background container */
.canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    overflow: hidden;
    background-color: var(--bg-dark);
    pointer-events: none;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.canvas-container.canvas-hidden {
    opacity: 0;
    visibility: hidden;
}

#animation-canvas {
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    will-change: transform;
}

.canvas-overlay-vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 30%, rgba(7, 9, 14, 0.7) 85%, rgba(7, 9, 14, 0.95) 100%);
    pointer-events: none;
}

/* Animation Logo Overlay */
#animation-logo {
    opacity: 1;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
#animation-logo.opacity-0 {
    opacity: 0;
}
.logo-fade-image {
    max-width: 250px;
    object-fit: contain;
    animation: logoPulse 3s infinite ease-in-out;
}
@media (min-width: 768px) {
    .logo-fade-image {
        max-width: 400px;
    }
}
@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 30px rgba(139, 92, 246, 0.3));
    }
    50% {
        transform: scale(1.02);
        filter: drop-shadow(0 0 45px rgba(139, 92, 246, 0.5));
    }
}

/* Scroll Container and Sections */
.scroll-container {
    position: relative;
    z-index: 2;
    pointer-events: none;
    will-change: transform;
}

.scroll-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 8%;
    pointer-events: auto;
    contain: layout style;           /* Isolate layout recalculations per section */
}

/* Slide contents and layouts */
.slide-content {
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.8s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-content.active {
    opacity: 1;
    pointer-events: auto;
    box-shadow: 0 30px 70px rgba(139, 92, 246, 0.12), 0 0 40px rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.35);
}

.dark .slide-content.active {
    box-shadow: 0 30px 70px rgba(139, 92, 246, 0.22), 0 0 50px rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.25);
}

/* Text alignments */
.left-align {
    align-self: flex-start;
    margin-right: auto;
}

.right-align {
    align-self: flex-end;
    margin-left: auto;
}

.center-align {
    align-self: center;
    margin: 0 auto;
    text-align: center;
    max-width: 650px;
}

/* Glassmorphism Card Style */
.glass-card {
    background: rgba(253, 252, 254, 0.65);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.45);
    border-left: 1px solid rgba(255, 255, 255, 0.35);
    padding: 2.5rem;
    border-radius: 24px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(139, 92, 246, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    transform: translateZ(0);        /* Force GPU compositing layer */
    transition: box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                border-color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dark .glass-card {
    background: rgba(20, 20, 25, 0.55); /* Translucent dark backing in dark mode */
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.glass-card .title-main,
.glass-card .title-sub {
    color: #1f2937; /* Gray-900 in light mode */
}

.dark .glass-card .title-main,
.dark .glass-card .title-sub {
    color: #ffffff; /* White in dark mode */
}

.glass-card .description-text {
    color: #4b5563; /* Gray-600 in light mode */
}

.dark .glass-card .description-text {
    color: #d1d5db; /* Gray-300 in dark mode */
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), transparent 70%);
    pointer-events: none;
}

/* ====================================================
   PREMIUM FROSTED GLASS (GLASSMORPHISM) UPGRADE
   ==================================================== */

.premium-glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.65), rgba(245, 240, 255, 0.55));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 40px -10px rgba(139, 92, 246, 0.08),
                inset 0 1px 2px rgba(255, 255, 255, 0.45);
    border-radius: 28px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

.dark .premium-glass-card {
    background: linear-gradient(135deg, rgba(245, 240, 255, 0.15), rgba(255, 255, 255, 0.12));
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.4),
                inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.premium-glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px -10px rgba(139, 92, 246, 0.15),
                inset 0 1px 2px rgba(255, 255, 255, 0.5);
    border-color: rgba(139, 92, 246, 0.3);
}

.dark .premium-glass-card:hover {
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.55),
                inset 0 1px 1px rgba(255, 255, 255, 0.25);
    border-color: rgba(139, 92, 246, 0.25);
}

/* Glassmorphism item style for 8 layers inner items */
.premium-glass-item {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 20px;
    box-shadow: 0 4px 20px -5px rgba(139, 92, 246, 0.04),
                inset 0 1px 1px rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dark .premium-glass-item {
    background: rgba(245, 240, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.2),
                inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.premium-glass-item:hover {
    background: rgba(255, 255, 255, 0.55);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-2px);
}

.dark .premium-glass-item:hover {
    background: rgba(245, 240, 255, 0.12);
    border-color: rgba(139, 92, 246, 0.25);
}

/* Glassmorphism card for FAQ items */
.premium-glass-faq-card {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 20px;
    box-shadow: 0 4px 25px -5px rgba(139, 92, 246, 0.04),
                inset 0 1px 1px rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dark .premium-glass-faq-card {
    background: rgba(245, 240, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 25px -5px rgba(0, 0, 0, 0.2),
                inset 0 1px 1px rgba(255, 255, 255, 0.08);
}

.premium-glass-faq-card:hover {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(139, 92, 246, 0.3);
}

.dark .premium-glass-faq-card:hover {
    background: rgba(245, 240, 255, 0.14);
    border-color: rgba(139, 92, 246, 0.25);
}

/* Floating Animations for Petals, Flowers, and Butterflies */
@keyframes float-slow {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-8px, -15px) rotate(4deg); }
}

@keyframes float-medium {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(12px, -20px) rotate(-6deg); }
}

@keyframes float-fast {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-6px, -10px) rotate(3deg); }
}

.animate-float-slow {
    animation: float-slow 10s ease-in-out infinite;
}

.animate-float-medium {
    animation: float-medium 7s ease-in-out infinite;
}

.animate-float-fast {
    animation: float-fast 5s ease-in-out infinite;
}

/* Decorative container shapes */
.deco-petal {
    filter: drop-shadow(0 4px 10px rgba(236, 72, 153, 0.05));
    transition: opacity 0.3s;
}

.deco-lavender {
    filter: drop-shadow(0 4px 12px rgba(139, 92, 246, 0.05));
    transition: opacity 0.3s;
}

.deco-butterfly {
    filter: drop-shadow(0 6px 15px rgba(236, 72, 153, 0.08));
    transition: opacity 0.3s;
}

/* Card details */
.category-tag {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.title-main {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.title-sub {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.description-text, p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-family: 'Candara', sans-serif;
}

/* Feature Pills inside cards */
.feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.feature-pills span {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary);
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.15);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
}

/* Mouse Scroll down Indicator */
.scroll-indicator-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1rem;
    opacity: 0.8;
}

.mouse-icon {
    width: 20px;
    height: 32px;
    border: 2px solid var(--text-muted);
    border-radius: 20px;
    position: relative;
}

.mouse-wheel {
    width: 4px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 20px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.8s infinite ease-in-out;
}

@keyframes scrollWheel {
    0% {
        top: 6px;
        opacity: 1;
    }
    50% {
        top: 16px;
        opacity: 0;
    }
    100% {
        top: 6px;
        opacity: 1;
    }
}

.scroll-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    color: var(--text-secondary);
}

.scroll-indicator-global {
    position: fixed;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    z-index: 10;
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

.scroll-indicator-global.fade-out {
    opacity: 0;
    transform: translate(-50%, 15px);
}

/* Details specs section (Footer land) */
.details-section {
    position: relative;
    background-color: #040609;
    padding: 8rem 0 0 0;
    width: 100%;
    z-index: 3;
    pointer-events: auto;
    border-top: 1px solid var(--border-muted);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4%;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

.spec-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-muted);
    padding: 2.5rem;
    border-radius: 16px;
    transition: transform 0.4s, border-color 0.4s, box-shadow 0.4s;
}

.spec-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-glow);
    box-shadow: 0 10px 30px rgba(0, 242, 254, 0.05);
}

.spec-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.spec-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.spec-value {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.8rem;
}

.spec-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Specs Action Banner */
.specs-banner {
    position: relative;
    background: radial-gradient(circle at top right, rgba(0, 242, 254, 0.1), transparent), rgba(13, 18, 30, 0.4);
    border: 1px solid var(--border-glow);
    padding: 4rem 3rem;
    border-radius: 24px;
    margin-bottom: 6rem;
    text-align: center;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    overflow: hidden;
}

.specs-banner h2 {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.specs-banner p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
}

.cta-group {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cta-primary {
    text-decoration: none;
    color: #05070a;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.25);
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 242, 254, 0.4);
}

.cta-secondary {
    text-decoration: none;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-muted);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: background-color 0.3s, border-color 0.3s;
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Footer Section */
.site-footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border-muted);
    text-align: center;
}

.site-footer p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ====================================================
   MOBILE NAVIGATION MENU
   ==================================================== */

/* Full-screen overlay wrapper */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    pointer-events: none;
    visibility: hidden;
}

.mobile-menu-overlay.is-open {
    pointer-events: auto;
    visibility: visible;
}

/* Dark translucent backdrop */
.mobile-menu-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 5, 15, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-overlay.is-open .mobile-menu-backdrop {
    opacity: 1;
}

/* Slide-in panel from right */
.mobile-menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100%;
    display: flex;
    flex-direction: column;
    background: rgba(248, 245, 255, 0.92);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-left: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: -8px 0 40px rgba(139, 92, 246, 0.15);
    transform: translateX(100%);
    transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
    overflow: hidden;
    will-change: transform;
}

.dark .mobile-menu-panel {
    background: rgba(18, 10, 24, 0.94);
    border-left: 1px solid rgba(139, 92, 246, 0.25);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.5);
}

.mobile-menu-overlay.is-open .mobile-menu-panel {
    transform: translateX(0);
}

/* Decorative gradient top strip */
.mobile-menu-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8B5CF6, #EC4899);
}

/* Individual nav links */
.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 500;
    color: #3F3F46;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    transform: translateX(0);
}

.dark .mobile-nav-link {
    color: #E4E4E7;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
    background: rgba(139, 92, 246, 0.1);
    color: #8B5CF6;
    transform: translateX(4px);
    outline: none;
}

/* Stagger link animation when menu opens */
.mobile-menu-overlay.is-open .mobile-nav-link {
    animation: navLinkSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.mobile-menu-overlay.is-open li:nth-child(1) .mobile-nav-link { animation-delay: 0.08s; }
.mobile-menu-overlay.is-open li:nth-child(2) .mobile-nav-link { animation-delay: 0.12s; }
.mobile-menu-overlay.is-open li:nth-child(3) .mobile-nav-link { animation-delay: 0.16s; }
.mobile-menu-overlay.is-open li:nth-child(4) .mobile-nav-link { animation-delay: 0.20s; }
.mobile-menu-overlay.is-open li:nth-child(5) .mobile-nav-link { animation-delay: 0.24s; }
.mobile-menu-overlay.is-open li:nth-child(6) .mobile-nav-link { animation-delay: 0.28s; }

@keyframes navLinkSlideIn {
    from { opacity: 0; transform: translateX(16px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Buy Now CTA button in menu */
.mobile-buy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 1rem;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mobile-buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(139, 92, 246, 0.45);
}

/* Hamburger animated to X */
.mobile-menu-btn-open .hamburger-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.mobile-menu-btn-open .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.mobile-menu-btn-open .hamburger-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Lock body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}



/* Mobile Responsiveness styling */
@media (max-width: 768px) {
    .main-header {
        padding: 1rem 5%;
    }
    
    .nav-links {
        display: none; /* simple hidden for demo site layout, premium sites collapse */
    }

    .scroll-section {
        padding: 0 5%;
    }

    .slide-content {
        max-width: 100%;
        padding: 1.5rem;
    }

    .title-main {
        font-size: 2.2rem;
    }

    .title-sub {
        font-size: 1.7rem;
    }

    .specs-banner {
        padding: 3rem 1.5rem;
    }

    .specs-banner h2 {
        font-size: 1.8rem;
    }

    .cta-group {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Premium Glassmorphism Section Backgrounds */
.glass-section {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 50px rgba(139, 92, 246, 0.03);
    position: relative;
    transform: translateZ(0);        /* Promote each section to its own compositor layer */
    contain: layout style;           /* Scope reflows inside the section */
}

.dark .glass-section {
    background: rgba(24, 24, 27, 0.45);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}



/* Scroll Reveal Animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .particle { display: none; }
}



/* Footer Font Color Overrides */
html:not(.dark) footer,
html:not(.dark) footer p,
html:not(.dark) footer span,
html:not(.dark) footer h4,
html:not(.dark) footer a {
    color: #000000 !important;
}
html:not(.dark) footer a:hover {
    color: #7C3AED !important; /* Elegant primary-dark hover state */
}
html:not(.dark) footer svg {
    fill: #000000 !important;
    color: #000000 !important;
}
html:not(.dark) footer svg:hover {
    fill: #7C3AED !important;
    color: #7C3AED !important;
}


/* RTL Support & Bilingual styling */
html[dir="rtl"] {
    --font-heading: 'Cairo', 'Playfair Display', sans-serif;
    --font-body: 'Cairo', 'Lora', sans-serif;
    text-align: right;
}

html[dir="rtl"] .text-left {
    text-align: right !important;
}

html[dir="rtl"] .text-right {
    text-align: left !important;
}

html[dir="rtl"] .left-align {
    align-self: flex-end;
    margin-right: 0;
    margin-left: auto;
}

html[dir="rtl"] .right-align {
    align-self: flex-start;
    margin-left: 0;
    margin-right: auto;
}

html[dir="rtl"] .pr-4 {
    padding-right: 0 !important;
    padding-left: 1rem !important;
}

html[dir="rtl"] .pl-4 {
    padding-left: 0 !important;
    padding-right: 1rem !important;
}

html[dir="rtl"] .pl-5 {
    padding-left: 0 !important;
    padding-right: 1.25rem !important;
}

html[dir="rtl"] .border-l-2 {
    border-left-width: 0 !important;
    border-right-width: 2px !important;
}

html[dir="rtl"] .mr-1 {
    margin-right: 0 !important;
    margin-left: 0.25rem !important;
}

html[dir="rtl"] .ml-2 {
    margin-left: 0 !important;
    margin-right: 0.5rem !important;
}

html[dir="rtl"] .space-x-3 > :not([hidden]) ~ :not([hidden]),
html[dir="rtl"] .space-x-4 > :not([hidden]) ~ :not([hidden]),
html[dir="rtl"] .space-x-5 > :not([hidden]) ~ :not([hidden]),
html[dir="rtl"] .space-x-6 > :not([hidden]) ~ :not([hidden]),
html[dir="rtl"] .space-x-8 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-x-reverse: 1;
}

html[dir="rtl"] .right-1\/4 {
    right: auto !important;
    left: 25% !important;
}

html[dir="rtl"] .left-1\/4 {
    left: auto !important;
    right: 25% !important;
}

html[dir="rtl"] .right-\[10\%\] {
    right: auto !important;
    left: 10% !important;
}

html[dir="rtl"] .left-\[10\%\] {
    left: auto !important;
    right: 10% !important;
}

html[dir="rtl"] .text-justify {
    text-align: right;
}

/* Ensure the language toggle button is styled correctly on mobile */
#lang-toggle-btn {
    font-family: 'Cairo', sans-serif;
}

