@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    /* --- PREMIUM DARK PALETTE --- */
    --color-bg: #0B0F19; /* Deep Space Navy/Black */
    --color-surface: rgba(20, 27, 45, 0.6); /* Translucent dark slate */
    
    --color-primary: #00F2FE; /* Bright Cyan */
    --color-primary-dark: #00C2CB;
    --color-accent: #4FACFE; /* Soft Blue */
    
    --color-text: #FFFFFF; /* Pure White */
    --color-text-dim: #94A3B8; /* Slate gray */
    
    --grad-primary: linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary) 100%);
    
    --glass-bg: rgba(11, 15, 25, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    --glass-blur: blur(16px);

    /* --- LAYOUT --- */
    --radius-xl: 20px;
    --radius-lg: 12px;
    --radius-md: 8px;
    --max-width: 1280px;
    --nav-height: 80px;

    --font-main: 'Plus Jakarta Sans', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Background grid effect */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
}

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0; left: 0; width: 0%; height: 3px;
    background: var(--grad-primary);
    z-index: 2000;
    box-shadow: 0 0 10px var(--color-primary);
}

/* ============================================
   TYPOGRAPHY (Perfectly Scaled)
   ============================================ */
h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }

.text-gradient {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

p {
    color: var(--color-text-dim);
    font-size: 1.1rem;
    max-width: 600px;
}

/* ============================================
   COMPONENTS
   ============================================ */

/* --- Navigation --- */
.main-nav {
    position: fixed;
    top: 0; left: 0; width: 100%; height: var(--nav-height);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: center;
    z-index: 1000;
}

.nav-container {
    width: 90%;
    max-width: var(--max-width);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.nav-links a {
    color: var(--color-text-dim);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--color-primary);
}

.brand-logo,
.main-nav .nav-logo {
    align-items: center;
    display: inline-flex;
    gap: 0.55rem;
    isolation: isolate;
    line-height: 1;
    position: relative;
    text-decoration: none;
}

.brand-logo::before,
.brand-logo::after,
.main-nav .nav-logo::before,
.main-nav .nav-logo::after {
    color: var(--color-primary);
    display: inline-block;
    font-size: clamp(2.15rem, 3.2vw, 3.2rem);
    font-weight: 800;
    line-height: 0.8;
    text-shadow: 0 0 14px rgba(0,242,254,0.65);
    transform-origin: center;
    z-index: 2;
}

.brand-logo::before,
.main-nav .nav-logo::before {
    animation: bracketLeftDrift 2.4s ease-in-out infinite;
    content: '[';
}

.brand-logo::after,
.main-nav .nav-logo::after {
    animation: bracketRightDrift 2.4s ease-in-out infinite;
    content: ']';
}

.brand-logo img,
.main-nav .nav-logo img {
    height: clamp(52px, 4.9vw, 68px) !important;
    object-fit: contain;
    width: auto;
}

footer .brand-logo img,
footer .nav-logo img {
    height: clamp(58px, 5.4vw, 76px) !important;
}

@keyframes bracketLeftDrift {
    0%, 100% {
        opacity: 0.82;
        transform: translateX(0) scaleY(1);
    }
    50% {
        opacity: 1;
        transform: translateX(-8px) scaleY(1.12);
    }
}

@keyframes bracketRightDrift {
    0%, 100% {
        opacity: 0.82;
        transform: translateX(0) scaleY(1);
    }
    50% {
        opacity: 1;
        transform: translateX(8px) scaleY(1.12);
    }
}

/* --- Premium Cards --- */
.glass-card {
    background: var(--color-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    --hover-lift: 0px;
    --parallax-y: 0px;
    --section-parallax-y: 0px;
    transform: translate3d(0, calc(var(--hover-lift) + var(--parallax-y) + var(--section-parallax-y)), 0);
}

.glass-card:hover {
    --hover-lift: -5px;
    border-color: rgba(0, 242, 254, 0.3);
    box-shadow: 0 20px 40px rgba(0, 242, 254, 0.1);
}

/* --- Premium Buttons --- */
.btn-primary {
    background: var(--grad-primary);
    color: #0B0F19;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 242, 254, 0.5);
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text);
    border: 1px solid var(--glass-border);
    padding: 0.8rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Forms */
.payment-input {
    width: 100%;
    padding: 1rem;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

textarea.payment-input {
    resize: vertical;
    min-height: 120px;
    max-height: 300px;
}

.payment-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(0, 242, 254, 0.2);
}

@keyframes inputPulse {
    0% {
        border-color: var(--glass-border);
        box-shadow: none;
    }
    30% {
        border-color: var(--color-primary);
        box-shadow: 0 0 15px rgba(0, 242, 254, 0.8);
        transform: scale(1.02);
    }
    70% {
        border-color: var(--color-primary);
        box-shadow: 0 0 15px rgba(0, 242, 254, 0.8);
        transform: scale(1.02);
    }
    100% {
        border-color: var(--color-primary);
        box-shadow: 0 0 0 2px rgba(0, 242, 254, 0.2);
        transform: scale(1);
    }
}

.field-highlight {
    animation: inputPulse 1.2s ease-out;
    border-color: var(--color-primary) !important;
    color: white !important;
}

/* ============================================
   LAYOUTS
   ============================================ */
.page {
    padding: 140px 2rem 4rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

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

/* Fawatim-inspired motion system, adapted for Medicienna */
.main-nav {
    transition: height 0.28s ease, background 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.main-nav.is-scrolled {
    background: rgba(11, 15, 25, 0.92);
    border-color: rgba(0,242,254,0.18);
    box-shadow: 0 14px 34px rgba(0,0,0,0.32);
}

.med-hero-section {
    align-items: center;
    display: grid;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

.med-hero-section.page {
    max-width: none;
    padding: clamp(6.5rem, 10vh, 9rem) clamp(1.25rem, 4vw, 3rem) clamp(4rem, 8vh, 6rem);
}

.med-hero-section .hero-layout {
    gap: clamp(2rem, 5vw, 4.5rem);
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    margin: 0 auto;
    min-height: min(760px, calc(100vh - var(--nav-height)));
    width: min(var(--max-width), 92vw);
}

.med-hero-section .hero-title {
    max-width: 11ch;
}

.med-hero-section .hero-copy {
    max-width: 620px;
}

.med-hero-ambient {
    animation: ambientPulse 9s ease-in-out infinite;
    background:
        radial-gradient(circle at 50% 44%, rgba(0, 242, 254, 0.18), transparent 34%),
        radial-gradient(circle at 12% 22%, rgba(79, 172, 254, 0.12), transparent 18%),
        radial-gradient(circle at 88% 26%, rgba(0, 194, 203, 0.13), transparent 16%),
        linear-gradient(135deg, rgba(11,15,25,0.98), rgba(11,15,25,0.72));
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: -3;
}

.med-hero-grid {
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: clamp(54px, 6vw, 88px) clamp(54px, 6vw, 88px);
    inset: 0;
    mask-image: radial-gradient(circle at center, black 0%, transparent 70%);
    opacity: 0.34;
    pointer-events: none;
    position: absolute;
    z-index: -2;
}

.hero-text-area > *,
.hero-media {
    animation: riseIn 850ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-copy {
    animation-delay: 180ms;
}

.hero-actions {
    animation-delay: 320ms;
}

.hero-media {
    animation-delay: 220ms;
}

.hero-title {
    display: block;
}

.hero-title .rubber-letter {
    animation: letterIn 700ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
    animation-delay: var(--letter-delay, 0ms);
    display: inline-block;
    transform-origin: center bottom;
}

.hero-title .rubber-letter:hover {
    animation: rubberBand 850ms both;
}

.hero-image-card {
    isolation: isolate;
    min-height: 340px;
    height: clamp(340px, 44vh, 540px) !important;
}

.hero-image-card::after {
    background: linear-gradient(135deg, rgba(0,242,254,0.22), transparent 42%, rgba(79,172,254,0.18));
    content: '';
    inset: 0;
    mix-blend-mode: screen;
    opacity: 0.55;
    pointer-events: none;
    position: absolute;
    z-index: 3;
}

/* Landing Page Hero Image Carousel */
.hero-carousel-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 2s ease-in-out, transform 2s ease-in-out;
    z-index: 1;
    will-change: opacity, transform;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

.carousel-slide.active {
    opacity: 0.8;
    transform: scale(1.08);
    transition: opacity 2s ease-in-out, transform 6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 2;
}

/* Premium Carousel Indicators */
.carousel-indicators {
    display: flex;
    gap: 8px;
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    z-index: 15;
}

.indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.indicator-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.indicator-dot.active {
    background: var(--color-primary);
    box-shadow: 0 0 10px var(--color-primary);
    width: 20px;
    border-radius: 4px;
}

.scroll-pill {
    border: 2px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    bottom: clamp(22px, 4vh, 38px);
    height: 50px;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
    width: 30px;
    z-index: 20;
}

.scroll-pill::after {
    animation: scrollDot 1.8s ease-in-out infinite;
    background: var(--color-primary);
    border-radius: 999px;
    content: '';
    height: 8px;
    left: 50%;
    position: absolute;
    top: 10px;
    transform: translateX(-50%);
    width: 4px;
}

.med-hero-wave {
    bottom: 0;
    height: clamp(96px, 14vh, 170px);
    left: 0;
    opacity: 0.68;
    overflow: hidden;
    pointer-events: none;
    position: absolute;
    right: 0;
    z-index: -1;
}

.wave-svg {
    bottom: 0;
    fill: rgba(0,242,254,0.18);
    height: 180px;
    left: 0;
    position: absolute;
    transform-origin: center;
    width: 220%;
}

.wave-a {
    animation: waveDrift 16s linear infinite;
}

.wave-b {
    animation: waveDrift 22s linear infinite reverse;
    fill: rgba(79,172,254,0.16);
    opacity: 0.9;
}

.motion-ready .motion-reveal {
    --reveal-y: 34px;
    --parallax-y: 0px;
    --section-parallax-y: 0px;
    --hover-lift: 0px;
    opacity: 0;
    transform: translate3d(0, calc(var(--reveal-y) + var(--parallax-y) + var(--section-parallax-y) + var(--hover-lift)), 0);
    transition: opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1), transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
}

.motion-ready .motion-reveal.is-visible {
    opacity: 1;
    --reveal-y: 0px;
}

.motion-ready .glass-card.motion-reveal:hover {
    --hover-lift: -5px;
}

.motion-parallax:not(.motion-reveal),
.section-parallax:not(.motion-reveal) {
    --parallax-y: 0px;
    --section-parallax-y: 0px;
    transform: translate3d(0, calc(var(--parallax-y) + var(--section-parallax-y)), 0);
    transition: transform 0.16s linear;
}

body::after {
    background: linear-gradient(180deg, rgba(0,242,254,0.16), rgba(11,15,25,0.98) 38%, rgba(11,15,25,1));
    content: '';
    inset: 0;
    pointer-events: none;
    position: fixed;
    transform: translateY(102%);
    transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 99999;
}

body.is-page-leaving::after {
    transform: translateY(0);
}

.glass-card,
.service-card,
.product-feature {
    will-change: transform;
}

.glass-card::before {
    background: linear-gradient(135deg, rgba(0,242,254,0.2), transparent 45%, rgba(255,255,255,0.05));
    content: '';
    inset: -1px;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    transition: opacity 0.26s ease;
}

.glass-card:hover::before {
    opacity: 1;
}

@keyframes ambientPulse {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.14); }
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes letterIn {
    from {
        opacity: 0;
        transform: translateY(34px) scaleY(0.72);
    }
    to {
        opacity: 1;
        transform: translateY(0) scaleY(1);
    }
}

@keyframes rubberBand {
    0% { transform: scale3d(1, 1, 1); }
    30% { transform: scale3d(1.34, 0.64, 1); }
    40% { transform: scale3d(0.78, 1.22, 1); }
    50% { transform: scale3d(1.16, 0.86, 1); }
    65% { transform: scale3d(0.95, 1.04, 1); }
    75% { transform: scale3d(1.04, 0.98, 1); }
    100% { transform: scale3d(1, 1, 1); }
}

@keyframes scrollDot {
    0% {
        opacity: 0;
        transform: translate(-50%, 0);
    }
    30%, 70% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(-50%, 18px);
    }
}

@keyframes waveDrift {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Product showcase */
.products-page {
    max-width: min(1320px, 100%);
}

.products-hero {
    text-align: center;
    margin-bottom: 5rem;
}

.products-hero p {
    margin: 1rem auto 0;
    font-size: 1.1rem;
}

.products-search {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.products-search .payment-input {
    max-width: 440px;
    background: rgba(255,255,255,0.05);
}

.product-section {
    margin-bottom: 5rem;
}

.product-section-heading {
    text-align: center;
    margin-bottom: 3.5rem;
}

.product-section-heading.compact {
    margin-bottom: 2rem;
}

.product-section-heading span,
.product-eyebrow {
    color: var(--color-primary);
    display: inline-flex;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.product-section-heading h2 {
    margin-bottom: 0.8rem;
}

.product-section-heading p {
    margin: 0 auto;
    color: var(--color-text-dim);
}

.product-showcase {
    display: grid;
    gap: clamp(4rem, 8vw, 7rem);
}

.product-feature {
    align-items: center;
    display: grid;
    grid-template-columns: minmax(320px, 1.08fr) minmax(300px, 0.92fr);
    gap: clamp(2rem, 6vw, 6rem);
    min-height: 520px;
    position: relative;
}

.product-feature::before {
    background: linear-gradient(90deg, transparent, rgba(0, 242, 254, 0.18), transparent);
    content: '';
    height: 1px;
    left: 8%;
    opacity: 0.65;
    position: absolute;
    right: 8%;
    top: -2rem;
}

.product-feature:nth-child(even) .product-visual {
    order: 2;
}

.product-feature:nth-child(even) .product-copy {
    order: 1;
    text-align: right;
}

.product-feature:nth-child(even) .product-copy p {
    margin-left: auto;
}

.product-visual {
    min-width: 0;
    position: relative;
}

.product-cutout {
    align-items: center;
    aspect-ratio: 1;
    background:
        radial-gradient(circle at 32% 24%, rgba(255,255,255,0.24), transparent 28%),
        radial-gradient(circle at 72% 76%, rgba(79,172,254,0.24), transparent 32%),
        linear-gradient(145deg, rgba(255,255,255,0.1), rgba(0,242,254,0.08));
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 50%;
    box-shadow: 0 35px 80px rgba(0,0,0,0.45), inset 0 0 60px rgba(0,242,254,0.08);
    display: flex;
    justify-content: center;
    margin: 0 auto;
    max-width: 380px;
    overflow: visible;
    position: relative;
    transition: transform 0.35s ease-out;
}

.product-cutout::before {
    border: 1px solid rgba(0,242,254,0.45);
    border-radius: 50%;
    content: '';
    inset: 5.5%;
    position: absolute;
}

.product-cutout::after {
    background:
        linear-gradient(135deg, rgba(0,242,254,0.22), transparent 35%),
        linear-gradient(315deg, rgba(79,172,254,0.2), transparent 40%);
    content: '';
    inset: 0;
    opacity: 0.7;
    position: absolute;
}

.product-cutout-labels {
    animation: slowSpin 26s linear infinite;
    border: 1px dashed rgba(255,255,255,0.24);
    border-radius: 50%;
    color: rgba(255,255,255,0.52);
    font-size: clamp(0.6rem, 1vw, 0.78rem);
    font-weight: 800;
    inset: 2%;
    letter-spacing: 0.18em;
    line-height: 1;
    pointer-events: none;
    position: absolute;
    text-transform: uppercase;
    z-index: 3;
}

.product-cutout-labels span {
    left: 50%;
    position: absolute;
    top: 50%;
    transform-origin: 0 0;
    white-space: nowrap;
}

.product-cutout-labels span:nth-child(1) { transform: rotate(10deg) translate(36%, -50%); }
.product-cutout-labels span:nth-child(2) { transform: rotate(105deg) translate(36%, -50%); }
.product-cutout-labels span:nth-child(3) { transform: rotate(195deg) translate(36%, -50%); }
.product-cutout-labels span:nth-child(4) { transform: rotate(285deg) translate(36%, -50%); }

.product-gallery {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    position: absolute;
    z-index: 4;
}

.product-image {
    animation: productFloat 5s ease-in-out infinite;
    display: block;
    filter: drop-shadow(0 28px 32px rgba(0,0,0,0.4));
    max-height: 95%;
    max-width: 115%;
    object-fit: contain;
    opacity: 0;
    position: absolute;
    transform: translate3d(42px, calc(var(--product-shift, 0px) + 14px), 0) rotate(calc(var(--product-tilt, 0deg) + 4deg)) scale(0.9);
    transition: opacity 0.38s ease, transform 0.48s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.product-image.is-active {
    opacity: 1;
    transform: translate3d(0, var(--product-shift, 0px), 0) rotate(var(--product-tilt, 0deg)) scale(1);
    z-index: 2;
}

.product-feature:hover .product-image.is-active {
    transform: translate3d(0, calc(var(--product-shift, 0px) - 10px), 0) rotate(var(--product-tilt, 0deg)) scale(1.04);
}

.product-carousel-btn {
    align-items: center;
    background: rgba(11, 15, 25, 0.72);
    border: 1px solid rgba(0,242,254,0.28);
    border-radius: 50%;
    color: var(--color-primary);
    cursor: pointer;
    display: flex;
    height: 42px;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    width: 42px;
    z-index: 8;
}

.product-carousel-btn:hover {
    background: rgba(0,242,254,0.14);
    box-shadow: 0 0 18px rgba(0,242,254,0.25);
    transform: translateY(-50%) scale(1.08);
}

.product-carousel-btn.prev {
    left: 7%;
}

.product-carousel-btn.next {
    right: 7%;
}

.product-carousel-dots {
    bottom: 9%;
    display: flex;
    gap: 0.55rem;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
    z-index: 8;
}

.product-carousel-dots button {
    background: rgba(255,255,255,0.28);
    border: none;
    border-radius: 999px;
    cursor: pointer;
    height: 8px;
    padding: 0;
    transition: background 0.25s ease, width 0.25s ease;
    width: 8px;
}

.product-carousel-dots button.is-active {
    background: var(--color-primary);
    box-shadow: 0 0 12px rgba(0,242,254,0.45);
    width: 28px;
}

.product-copy {
    min-width: 0;
}

.product-copy h3 {
    font-size: clamp(2rem, 5vw, 3.75rem);
    margin-bottom: 1rem;
}

.product-copy p {
    font-size: 1rem;
    margin-bottom: 1.6rem;
}

.product-meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.4rem;
}

.product-price {
    background: rgba(0,242,254,0.1);
    border: 1px solid rgba(0,242,254,0.28);
    border-radius: 999px;
    color: var(--color-primary);
    font-size: 1rem;
    font-weight: 800;
    padding: 0.45rem 1rem;
}

.product-chip {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    color: var(--color-text-dim);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    padding: 0.42rem 0.9rem;
    text-transform: uppercase;
}

/* Product Details Dropdown Styles */
.product-details-container {
    margin-bottom: 1.5rem;
    position: relative;
}

.btn-view-details {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--color-text-dim);
    padding: 0.55rem 1.25rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-view-details:hover {
    color: #FFFFFF;
    border-color: var(--color-primary);
    background: rgba(0, 242, 254, 0.05);
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.15);
}

.btn-view-details.is-open i {
    transform: rotate(180deg);
}

.product-details-dropdown {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0;
    margin-top: 0;
    transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease, margin 0.3s ease;
    border-top: 1px dashed rgba(255, 255, 255, 0.05);
}

.product-details-dropdown.is-open {
    max-height: 800px;
    opacity: 1;
    margin-top: 0.6rem;
    padding-top: 0.8rem;
}

.details-tab-btn:hover {
    color: white !important;
}

.product-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.product-actions .btn-primary,
.product-actions .btn-secondary {
    border-radius: 999px;
    justify-content: center;
    min-width: 150px;
    padding: 0.8rem 1.4rem;
}

.product-empty {
    color: var(--color-text-dim);
    margin: 0 auto;
    padding: 4rem 1rem;
    text-align: center;
}

@keyframes slowSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes productFloat {
    0%, 100% { margin-top: 0; }
    50% { margin-top: -12px; }
}

/* Custom Cursor */
.custom-cursor {
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    box-shadow: 0 0 10px var(--color-primary);
    transition: transform 0.1s ease;
    display: none;
}
@media (pointer: fine) { .custom-cursor { display: block; } }

/* Responsive */
@media (max-width: 1024px) {
    .nav-links { display: none; } /* Simplified for now, add burger later if needed */
    .hero-content { flex-direction: column; text-align: center; }
    p { margin-left: auto; margin-right: auto; }
    .hero-layout {
        grid-template-columns: 1fr !important;
        min-height: auto !important;
        text-align: center;
    }
    .med-hero-section .hero-title {
        max-width: none;
    }
    .med-hero-section .hero-image-card {
        height: clamp(300px, 48vh, 460px) !important;
    }
    .hero-actions {
        justify-content: center;
    }
    .product-feature,
    .product-feature:nth-child(even) {
        grid-template-columns: 1fr;
        min-height: auto;
        text-align: center;
    }
    .product-feature:nth-child(even) .product-visual,
    .product-feature:nth-child(even) .product-copy {
        order: initial;
        text-align: center;
    }
    .product-feature:nth-child(even) .product-copy p,
    .product-copy p {
        margin-left: auto;
        margin-right: auto;
    }
    .product-meta,
    .product-actions {
        justify-content: center;
    }
    .product-cutout {
        max-width: min(560px, 88vw);
    }
}

@media (max-width: 640px) {
    .article-modal-container {
        border-radius: 12px !important;
        max-height: 92vh !important;
        padding: 3.75rem 1.25rem 1.75rem !important;
        width: calc(100% - 1rem) !important;
    }
    .article-modal-container .article-modal-meta {
        align-items: flex-start !important;
        flex-wrap: wrap;
        gap: 8px !important;
    }
    .article-modal-container .article-modal-title {
        font-size: 1.75rem !important;
        line-height: 1.2 !important;
        overflow-wrap: anywhere;
    }
    .article-modal-container .article-modal-banner {
        height: 220px !important;
    }
    .products-page {
        padding-left: 1.2rem;
        padding-right: 1.2rem;
    }
    .product-showcase {
        gap: 4rem;
    }
    .product-feature {
        gap: 1.5rem;
    }
    .product-cutout-labels {
        display: none;
    }
    .product-carousel-btn {
        height: 38px;
        width: 38px;
    }
    .product-carousel-btn.prev {
        left: 4%;
    }
    .product-carousel-btn.next {
        right: 4%;
    }
    .product-actions .btn-primary,
    .product-actions .btn-secondary {
        width: 100%;
    }
    .med-hero-wave {
        height: 100px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 1ms !important;
    }
    .motion-ready .motion-reveal,
    .motion-parallax,
    .section-parallax,
    body::after {
        transform: none !important;
    }
}

/* Parallax Decorative Background Layers */
.parallax-bg-layer {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: -1;
    opacity: 0.8;
}

.layer-deep {
    z-index: -3;
}

.layer-mid {
    z-index: -2;
}

.layer-fore {
    z-index: -1;
}

/* Ensure smooth section transitions on the single page */
.med-section {
    position: relative;
    overflow: visible; /* to allow parallax background glow breakouts */
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 8rem;
}

/* CEO Portrait clean container & hover animation */
.ceo-portrait-container {
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-radius: 24px;
    cursor: pointer;
}

.ceo-portrait-container img {
    width: 100%;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.ceo-portrait-container:hover img {
    transform: scale(1.04);
}

/* Hover Overlay for text */
.ceo-details-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 3rem 2rem 2rem;
    background: linear-gradient(to top, rgba(11, 15, 25, 0.95) 0%, rgba(11, 15, 25, 0.7) 60%, transparent 100%);
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
}

.ceo-portrait-container:hover .ceo-details-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   HEADING BLOCK REVEAL ANIMATIONS (MIRA STYLES)
   ============================================ */
.heading-reveal {
    --reveal-color: #00F2FE; /* Cyan block highlight overlay */
}

.heading-reveal span {
    position: relative;
    overflow: hidden;
    display: inline-block;
    opacity: 0;
    padding: 0.1em 0.15em;
    margin: -0.1em -0.15em;
    vertical-align: bottom;
}

/* If the heading has text-gradient, apply gradient styling directly to the span */
.heading-reveal.text-gradient span {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* If the heading is standard, define color */
.heading-reveal:not(.text-gradient) span {
    color: #FFFFFF;
}

.heading-reveal span::after {
    content: "";
    position: absolute;
    inset: 0;
    top: -5%;
    background-color: var(--reveal-color);
    transform: translateX(-101%);
}

/* When active, trigger sliding overlay mask and opacity change */
.heading-reveal.is-active span {
    animation: text-reveal-fade 0.8s calc(var(--index) * 0.25s) steps(1) forwards;
}

.heading-reveal.is-active span::after {
    animation: block-reveal-slide 0.8s calc(var(--index) * 0.25s) cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

@keyframes block-reveal-slide {
    0% { transform: translateX(-101%); }
    45%, 55% { transform: translateX(0); }
    100% { transform: translateX(101%); }
}

@keyframes text-reveal-fade {
    0% { opacity: 0; }
    50%, 100% { opacity: 1; }
}

/* ============================================
   EXCELLENCE RAIL GRID (BORDER SEPARATORS)
   ============================================ */
.excellence-rail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    margin-top: 4rem;
    margin-bottom: 6rem;
    background: rgba(11, 15, 25, 0.2);
}

.excellence-rail-item {
    padding: 4rem 3rem;
    position: relative;
    transition: background-color 0.4s ease;
}

/* Divider vertical borders */
.excellence-rail-item:not(:last-child) {
    border-right: 1px solid var(--glass-border);
}

/* Top active accent glow rail line */
.excellence-rail-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: var(--grad-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.excellence-rail-item:hover::before {
    transform: scaleX(1);
}

.excellence-rail-item:hover {
    background: rgba(0, 242, 254, 0.02);
}

.excellence-rail-item i {
    font-size: 2.2rem;
    color: var(--color-primary);
    margin-bottom: 1.8rem;
    display: inline-block;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.excellence-rail-item:hover i {
    transform: translateY(-4px) scale(1.05);
    filter: drop-shadow(0 0 8px rgba(0, 242, 254, 0.5));
}

.excellence-rail-item h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    color: #FFFFFF;
}

.excellence-rail-item p {
    color: var(--color-text-dim);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: none;
}

/* ============================================
   LEADERSHIP RAIL GRID (BORDER SEPARATORS)
   ============================================ */
.leadership-rail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 6rem;
    background: rgba(11, 15, 25, 0.2);
}

.leadership-rail-item {
    padding: 3.5rem 2rem;
    text-align: center;
    position: relative;
    transition: background-color 0.4s ease;
}

.leadership-rail-item:not(:last-child) {
    border-right: 1px solid var(--glass-border);
}

.leadership-rail-item:hover {
    background: rgba(0, 242, 254, 0.02);
}

.leadership-avatar-wrapper {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    margin: 0 auto 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 242, 254, 0.25);
    overflow: hidden;
    position: relative;
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.leadership-rail-item:hover .leadership-avatar-wrapper {
    border-color: var(--color-primary);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
    transform: scale(1.04);
}

.leadership-avatar-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.leadership-rail-item h4 {
    font-size: 1.15rem;
    margin-bottom: 0.3rem;
    color: #FFFFFF;
}

.leadership-rail-item p {
    color: var(--color-primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0;
}

/* ============================================
   RESPONSIVE LAYOUT OVERRIDES FOR RAIL GRIDS
   ============================================ */
@media (max-width: 1024px) {
    .excellence-rail-grid {
        grid-template-columns: 1fr;
    }
    .excellence-rail-item:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
    }
    
    .leadership-rail-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .leadership-rail-item:nth-child(even) {
        border-right: none;
    }
    .leadership-rail-item:nth-child(1),
    .leadership-rail-item:nth-child(2) {
        border-bottom: 1px solid var(--glass-border);
    }
}

@media (max-width: 640px) {
    .leadership-rail-grid {
        grid-template-columns: 1fr;
    }
    .leadership-rail-item:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
    }
}

/* ============================================
   PRODUCTS CONTROLS BAR & FILTER BUTTONS
   ============================================ */
.products-controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 3rem auto 2.5rem;
    padding: 1.25rem 2rem;
    background: var(--color-surface);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    max-width: var(--max-width);
}

.category-filters {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: var(--color-text-dim);
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    color: #0B0F19;
    background: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}

.view-controls {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.view-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: var(--color-text-dim);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.view-btn:hover,
.view-btn.active {
    color: #FFFFFF;
    border-color: var(--color-primary);
    background: rgba(0, 242, 254, 0.1);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.25);
}

/* ============================================
   PRODUCT CATALOG GRID VIEW (3-COLUMN CARDS)
   ============================================ */
.product-grid-view {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 2rem;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

.product-grid-item {
    background: var(--color-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.25rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
}

.product-grid-item:hover {
    border-color: rgba(0, 242, 254, 0.3);
    box-shadow: 0 15px 35px rgba(0, 242, 254, 0.15);
    transform: translateY(-4px);
}

.product-grid-item .grid-img-wrap {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    padding: 15px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.05);
    overflow: hidden;
}

.product-grid-item .grid-img-wrap img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-grid-item:hover .grid-img-wrap img {
    transform: scale(1.05);
}

/* Custom sizing enhancement for Baraka product images (+15%) */
.product-image.is-baraka.is-active {
    transform: translate3d(0, var(--product-shift, 0px), 0) rotate(var(--product-tilt, 0deg)) scale(1.15) !important;
}

.product-feature:hover .product-image.is-baraka.is-active {
    transform: translate3d(0, calc(var(--product-shift, 0px) - 10px), 0) rotate(var(--product-tilt, 0deg)) scale(1.21) !important;
}

.product-grid-item .grid-img-wrap.is-baraka img {
    transform: scale(1.15);
}

.product-grid-item:hover .grid-img-wrap.is-baraka img {
    transform: scale(1.21);
}

.product-grid-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.6rem;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-grid-item p {
    font-size: 0.9rem;
    color: var(--color-text-dim);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    height: 4.8em; /* 3 lines of description */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.product-grid-item .grid-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-grid-item .grid-price {
    font-weight: 800;
    color: var(--color-primary);
    font-size: 1.2rem;
}

@media (max-width: 1024px) {
    .product-grid-view {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .product-grid-view {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .products-controls-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 1.25rem;
    }
    .view-controls {
        justify-content: space-between;
    }
}

/* ============================================
   FEATURED ESSENTIALS CAROUSEL
   ============================================ */
.featured-carousel-container {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    background: var(--color-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-shadow);
    padding: 3rem 4rem;
    min-height: 420px;
    display: flex;
    align-items: center;
    margin: 2rem auto;
    max-width: var(--max-width);
}

.featured-carousel-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    visibility: hidden;
    padding: 3rem 4rem;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
    z-index: 1;
}

.featured-carousel-slide.is-active {
    opacity: 1;
    visibility: visible;
    position: relative;
    z-index: 2;
}

.featured-carousel-image-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 100%;
    min-height: 250px;
}

.featured-carousel-image-wrap img {
    max-height: 280px;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.4));
    animation: productFloat 6s ease-in-out infinite;
}

.featured-carousel-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-carousel-tag {
    color: var(--color-primary);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.featured-carousel-content h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    margin-bottom: 1rem;
    color: #FFFFFF;
}

.featured-carousel-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-dim);
    margin-bottom: 2rem;
    max-width: 550px;
}

.featured-carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.featured-carousel-dots button {
    background: rgba(255, 255, 255, 0.28);
    border: none;
    border-radius: 50%;
    width: 10px;
    height: 10px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    padding: 0;
}

.featured-carousel-dots button.is-active {
    background: var(--color-primary);
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

.featured-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(11, 15, 25, 0.75);
    border: 1px solid rgba(0, 242, 254, 0.25);
    border-radius: 50%;
    color: var(--color-primary);
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5;
}

.featured-carousel-arrow:hover {
    background: var(--color-primary);
    color: #0B0F19;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}

.featured-carousel-arrow.prev {
    left: 20px;
}

.featured-carousel-arrow.next {
    right: 20px;
}

@media (max-width: 1024px) {
    .featured-carousel-container {
        padding: 2rem;
    }
    .featured-carousel-slide {
        grid-template-columns: 1fr;
        padding: 2rem;
        gap: 2rem;
        text-align: center;
    }
    .featured-carousel-content p {
        margin: 0 auto 2rem;
    }
    .featured-carousel-arrow {
        display: none; /* hide arrows on tablet/mobile and rely on dots/swipe */
    }
}
