/* ============================================
   NurQuantum.com - Styles
   Phase 1: Foundation + Navigation
   ============================================ */

/* ===========================================
   1. CSS Custom Properties
   =========================================== */
:root {
    /* === COLORS === */
    --bg-primary: #0a0a0a;
    --bg-secondary: #0d0d12;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.05);

    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(212, 175, 55, 0.15);

    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.65);
    --text-muted: rgba(255, 255, 255, 0.47);

    --accent-gold: #D4AF37;
    --accent-gold-dim: rgba(212, 175, 55, 0.12);
    --accent-teal: #2dd4a8;
    --accent-teal-dim: rgba(45, 212, 168, 0.1);
    --accent-blue: #6e9fff;

    /* === TYPOGRAPHY === */
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-arabic: 'Amiri', serif;

    /* === SPACING === */
    --section-padding-y: 120px;
    --section-padding-x: 48px;
    --container-max: 1200px;
    --navbar-height: 80px;

    /* === TRANSITIONS === */
    --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-base: 0.3s ease;

    /* === Z-INDEX SCALE === */
    --z-canvas: 1;
    --z-content: 1;
    --z-showcase: 2;
    --z-hero-content: 3;
    --z-mobile-menu: 99;
    --z-navbar: 100;
}

/* ===========================================
   2. Reset / Base Styles
   =========================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Accessibility: reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
        transition-duration: 0.01ms;
        scroll-behavior: auto;
    }
}

/* ===========================================
   3. Typography
   =========================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-body);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===========================================
   4. Layout Utilities
   =========================================== */
.section-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--section-padding-y) var(--section-padding-x);
    position: relative;
    z-index: 2;
}

section[id] {
    scroll-margin-top: var(--navbar-height);
}

/* ===========================================
   5. Section Label Pattern
   =========================================== */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-teal);
    font-weight: 500;
    margin-bottom: 14px;
}

.label-line {
    width: 24px;
    height: 1px;
    background: var(--accent-teal);
}

/* ===========================================
   6. Section Title and Subtitle
   =========================================== */
.section-title {
    font-size: clamp(1.8rem, 2vw + 1rem, 2.5rem);
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.7;
}

/* ===========================================
   6a. Hero Section - Layout
   =========================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    z-index: var(--z-showcase);
}

/* ===========================================
   6b. Hero Video Background
   =========================================== */
.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ===========================================
   6c. Hero Overlay
   =========================================== */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(10, 10, 10, 0.78) 0%,
        rgba(10, 10, 10, 0.45) 50%,
        rgba(10, 10, 10, 0.12) 100%
    );
    z-index: 1;
}

/* ===========================================
   6d. Hero Content Container
   =========================================== */
.hero-content {
    position: relative;
    z-index: var(--z-hero-content);
    max-width: 580px;
    padding: calc(var(--navbar-height) + 60px) var(--section-padding-x) 80px;
}

/* ===========================================
   6e. Hero Video - Mobile + Reduced Motion Fallback
   =========================================== */
@media (max-width: 768px) {
    .hero-video {
        display: none;
    }
    .hero-video-wrapper {
        background: url('../assets/video/noor-beam-poster.jpg') center/cover no-repeat;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-video {
        display: none;
    }
    .hero-video-wrapper {
        background: url('../assets/video/noor-beam-poster.jpg') center/cover no-repeat;
    }
}

/* ===========================================
   6f. Hero Content Elements
   =========================================== */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--accent-gold-dim);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 100px;
    font-size: 0.78rem;
    color: var(--accent-gold);
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-gold);
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.4); }
}

.hero-arabic {
    font-family: var(--font-arabic);
    font-size: 1.4rem;
    color: var(--accent-gold);
    letter-spacing: 0.08em;
    unicode-bidi: isolate;
    margin-bottom: 16px;
}

.hero-title {
    font-size: clamp(2.8rem, 6vw, 4.8rem);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 22px;
}

.hero-title .highlight {
    background: linear-gradient(135deg, #f0d78c, var(--accent-gold), #f0d78c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 480px;
    margin-bottom: 36px;
}

.hero-subtitle em {
    color: var(--accent-gold);
    font-style: normal;
    font-weight: 500;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 32px;
    background: linear-gradient(135deg, var(--accent-gold), #c9a230);
    color: var(--bg-primary);
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-base);
    letter-spacing: 0.02em;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.3);
}

.btn-primary svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-base);
}

.btn-primary:hover svg {
    transform: translateX(3px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 32px;
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 500;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-base);
}

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

/* 6g. Hero Scroll Indicator — removed */

/* ===========================================
   6h. Hero Entrance Animations
   =========================================== */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gated behind .hero-animated (added by JS) so crawlers see visible content */
.hero-animated .hero-badge {
    opacity: 0;
    animation: fadeSlideUp 0.8s var(--ease-smooth) 0.3s forwards;
}

.hero-animated .hero-arabic {
    opacity: 0;
    animation: fadeSlideUp 0.8s var(--ease-smooth) 0.45s forwards;
}

.hero-animated .hero-title {
    opacity: 0;
    animation: fadeSlideUp 0.8s var(--ease-smooth) 0.6s forwards;
}

.hero-animated .hero-subtitle {
    opacity: 0;
    animation: fadeSlideUp 0.8s var(--ease-smooth) 0.8s forwards;
}

.hero-animated .hero-cta-group {
    opacity: 0;
    animation: fadeSlideUp 0.8s var(--ease-smooth) 1.0s forwards;
}

/* hero-scroll entrance animation removed */

/* ===========================================
   7. Navbar Skeleton
   =========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-navbar);
    padding: 20px var(--section-padding-x);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: all var(--transition-base);
}

/* ===========================================
   8. Logo Styles
   =========================================== */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-mark {
    width: 38px;
    height: 38px;
}

.logo-mark svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.logo-text span {
    font-weight: 700;
    color: var(--accent-gold);
}

/* ===========================================
   9. Nav Links Skeleton
   =========================================== */
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: color var(--transition-base);
    font-weight: 400;
}

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

.nav-links .nav-cta {
    padding: 8px 20px;
    border: 1px solid var(--accent-gold);
    border-radius: 6px;
    color: var(--accent-gold);
    font-weight: 500;
    transition: all var(--transition-base);
}

/* ===========================================
   10. Footer Skeleton
   =========================================== */
.footer {
    border-top: 2px solid transparent;
    border-image: linear-gradient(90deg, transparent, var(--accent-gold), transparent) 1;
    padding: 60px var(--section-padding-x) 40px;
    background: var(--bg-primary);
    position: relative;
    z-index: var(--z-content);
}

/* ===========================================
   11. Mobile Toggle Base
   =========================================== */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
}

.mobile-toggle span {
    width: 22px;
    height: 1.5px;
    background: var(--text-primary);
    display: block;
    transition: all var(--transition-base);
}

/* ===========================
   12. NAVBAR - Scrolled State
   =========================== */
.navbar.scrolled {
    padding: 14px var(--section-padding-x);
    background: rgba(10, 10, 10, 0.85);
    border-bottom: 1px solid var(--border-subtle);
}

/* Desktop-only blur for performance (avoid mobile GPU cost) */
@media (min-width: 1024px) {
    .navbar.scrolled {
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
}

/* ===========================
   13. Nav CTA Hover
   =========================== */
.nav-links .nav-cta:hover {
    background: var(--accent-gold);
    color: var(--bg-primary);
}

/* ===========================
   14. MOBILE NAVIGATION
   =========================== */
@media (max-width: 968px) {
    .mobile-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.95);
        border-bottom: 1px solid var(--border-subtle);
        flex-direction: column;
        padding: 20px var(--section-padding-x);
        gap: 16px;
        z-index: var(--z-mobile-menu);
    }

    .nav-links.show {
        display: flex;
    }

    .nav-links a {
        font-size: 1rem;
        padding: 8px 0;
    }

    .nav-links .nav-cta {
        text-align: center;
        margin-top: 8px;
    }
}

/* ===========================
   15. Mobile Section Padding
   =========================== */
@media (max-width: 768px) {
    :root {
        --section-padding-x: 24px;
        --section-padding-y: 80px;
    }
}

/* ===========================
   16. FOOTER
   =========================== */
.footer-inner {
    max-width: var(--container-max);
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 2fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-subtle);
}

/* ===========================
   17. Footer Brand Column
   =========================== */
.footer-brand .nav-logo {
    margin-bottom: 16px;
}

.footer-brand .logo-mark {
    width: 32px;
    height: 32px;
}

.footer-brand .logo-text {
    font-size: 1.05rem;
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 240px;
}

/* ===========================
   18. Footer Navigation Columns
   =========================== */
.footer-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer-nav-col h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-weight: 600;
}

.footer-nav-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-col li {
    margin-bottom: 10px;
}

.footer-nav-col a {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: color var(--transition-base);
}

.footer-nav-col a:hover {
    color: var(--text-primary);
}

/* ===========================
   19. Footer Social Links
   =========================== */
.footer-social h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    transition: all var(--transition-base);
}

.social-link:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.social-link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* ===========================
   20. Footer Bottom (Copyright + Legal)
   =========================== */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
}

.footer-copyright {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: color var(--transition-base);
}

.footer-legal a:hover {
    color: var(--text-secondary);
}

/* ===========================
   21. Bismillah Section
   =========================== */
.footer-bismillah {
    text-align: center;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
}

.footer-bismillah p {
    font-family: var(--font-arabic);
    font-size: 0.95rem;
    color: var(--accent-gold);
    opacity: 0.35;
}

/* ===========================
   22. Footer Responsive
   =========================== */
@media (max-width: 968px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-nav {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-nav {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .footer-legal {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
}

/* ===========================================
   23-25. (Showcase section removed)
   =========================================== */

/* ===========================================
   26. Canvas Particle Background
   =========================================== */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-canvas);
    pointer-events: none;
}

/* ===========================================
   27. Products Section - Bento Grid
   =========================================== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 56px;
}

.bento-card.featured {
    grid-column: span 2;
    grid-row: span 2;
}

/* ===========================================
   28. Products - Card Styles
   =========================================== */
.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease-smooth);
}

.bento-card.featured {
    padding: 40px;
}

.card-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.card-badge.live {
    background: rgba(45, 212, 168, 0.12);
    color: var(--accent-teal);
    border: 1px solid rgba(45, 212, 168, 0.2);
}

.card-badge.research {
    background: rgba(110, 159, 255, 0.12);
    color: var(--accent-blue);
    border: 1px solid rgba(110, 159, 255, 0.2);
}

.card-badge.soon {
    background: var(--accent-gold-dim);
    color: var(--accent-gold);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon svg {
    width: 40px;
    height: 40px;
}

.bento-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 12px 0 8px;
}

.bento-card p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Falah logo image in card header */
.card-icon-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 16px;
}

/* Falah feature carousel */
.falah-carousel {
    margin-top: 24px;
    overflow: hidden;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
}

.falah-slides {
    display: flex;
    transition: transform 0.5s var(--ease-smooth);
}

.falah-slide {
    min-width: 100%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 16px 16px;
    gap: 8px;
    text-align: center;
}

/* Slide visual area — animated illustrations */
.falah-slide-visual {
    position: relative;
    width: 100%;
    height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.falah-ambient-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.falah-visual-svg {
    width: 160px;
    height: 140px;
}

.falah-slide-title {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.falah-slide-subtitle {
    font-size: 0.72rem;
    color: #888;
    line-height: 1.4;
    max-width: 220px;
}

/* Blocker slide — floating icons */
.blocker-icons-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.blocker-icon {
    position: absolute;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.blocker-icon.visible {
    opacity: 1;
    transform: scale(1);
}

.blocker-icon.shielded {
    background: linear-gradient(135deg, rgba(74,124,89,0.6), rgba(110,207,141,0.6)) !important;
    border-color: rgba(110,207,141,0.5) !important;
}

.blocker-shield {
    transition: opacity 0.6s ease;
}

.blocker-check {
    transition: stroke-dashoffset 0.8s ease 0.3s;
}

/* Pomodoro slide — timer pills */
.pomo-pills {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.pomo-pill {
    padding: 4px 14px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(0, 0, 0, 0.02);
    font-family: 'Amiri', serif;
    font-size: 14px;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.pomo-pill.active {
    border-color: #E8B86D;
    background: rgba(232, 184, 109, 0.08);
    color: #E8B86D;
    box-shadow: 0 0 12px rgba(232, 184, 109, 0.12);
}

.pomo-ring {
    transition: stroke-dashoffset 0.1s linear;
}

/* Prayer slide — state badge & dots */
.prayer-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: 16px;
    background: rgba(74, 222, 128, 0.07);
    border: 1px solid rgba(74, 222, 128, 0.2);
    transition: all 0.5s ease;
}

.prayer-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ADE80;
    box-shadow: 0 0 6px rgba(74, 222, 128, 0.4);
    transition: all 0.5s ease;
}

.prayer-badge-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #4ADE80;
    letter-spacing: 0.5px;
    transition: color 0.5s ease;
}

.prayer-ring {
    transition: stroke-dashoffset 0.6s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.5s ease;
}

.prayer-check, .prayer-dash, .prayer-pending {
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.prayer-state-dots {
    display: flex;
    gap: 16px;
    margin-top: 4px;
}

.prayer-state-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    opacity: 0.3;
    transition: opacity 0.4s ease;
}

.prayer-state-dot.active {
    opacity: 1;
}

.prayer-state-dot-circle {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.prayer-state-dot.active .prayer-state-dot-circle {
    width: 9px;
    height: 9px;
    box-shadow: 0 0 8px currentColor;
}

.prayer-state-dot-label {
    font-size: 7px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Tasbih slide — beads & dhikr */
.tasbih-ring {
    transition: stroke-dashoffset 0.08s linear;
}

.tasbih-dhikr {
    margin-top: 2px;
}

.tasbih-arabic {
    font-family: 'Amiri', serif;
    font-size: 14px;
    color: #E8B86D;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.falah-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 0 0 16px;
}

.falah-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.12);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Arrow navigation buttons */
.falah-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-70%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #777;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 2;
}

.falah-arrow:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #1a1a1a;
    border-color: rgba(0, 0, 0, 0.15);
}

.falah-arrow-prev { left: 8px; }
.falah-arrow-next { right: 8px; }

.falah-dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--accent-teal);
}

/* Falah "See more" CTA ghost button */
.falah-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 10px 20px;
    border: 1px solid rgba(45, 212, 168, 0.3);
    border-radius: 8px;
    color: var(--accent-teal);
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-base);
}

.falah-cta:hover {
    background: rgba(45, 212, 168, 0.08);
    border-color: rgba(45, 212, 168, 0.5);
}

.falah-cta svg {
    width: 14px;
    height: 14px;
    transition: transform var(--transition-base);
}

.falah-cta:hover svg {
    transform: translateX(3px);
}

/* Reduced motion: instant slide changes */
@media (prefers-reduced-motion: reduce) {
    .falah-slides {
        transition: none;
    }
}

/* ===========================================
   29. Products - Hover Effects
   =========================================== */
.bento-card:hover {
    border-color: var(--border-glow);
    background: var(--bg-card-hover);
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.06);
}

.bento-glow {
    position: absolute;
    pointer-events: none;
}

/* ===========================================
   30. Philosophy Section - Layout
   =========================================== */
.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 56px;
}

/* ===========================================
   31. Philosophy - Visual Element
   =========================================== */
.philosophy-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.wave-container {
    width: 100%;
    max-width: 420px;
}

.wave-container svg {
    width: 100%;
    height: auto;
}

.philosophy-quote {
    font-family: var(--font-arabic);
    font-size: 3rem;
    color: var(--accent-gold);
    opacity: 0.7;
    text-align: center;
    letter-spacing: 0.05em;
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 12px;
    padding: 16px 32px;
    background: rgba(212, 175, 55, 0.03);
}

/* ===========================================
   32. Philosophy - Content & Values
   =========================================== */
/* Philosophy content card (Light of Noor box) */
.philosophy-content {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 40px;
}

.philosophy-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.philosophy-content p {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.values {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.value-tag {
    padding: 7px 16px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    cursor: default;
    transition: all 0.3s ease;
}

.value-tag.gold {
    background: var(--accent-gold-dim);
    color: var(--accent-gold);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.value-tag.teal {
    background: var(--accent-teal-dim);
    color: var(--accent-teal);
    border: 1px solid rgba(45, 212, 168, 0.15);
}

.value-tag:hover {
    transform: translateY(-1px);
}

/* ===========================================
   33. Technology Section - Concept Cards
   =========================================== */
.concept-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 56px;
}

.concept-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: all 0.4s var(--ease-smooth);
}

.concept-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-3px);
}

/* ===========================================
   34. Technology - SVG Visualizations
   =========================================== */
.concept-visual {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.concept-visual svg {
    width: 100%;
    height: 100%;
}

.concept-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    text-transform: none;
    letter-spacing: normal;
}

.concept-card p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ===========================================
   35. Approach Section - Methodology Grid
   =========================================== */
.methodology-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 56px;
}

.methodology-item {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.methodology-item:hover {
    border-color: var(--border-glow);
}

.methodology-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gold-dim);
    border-radius: 10px;
    padding: 8px;
}

.methodology-icon svg {
    width: 20px;
    height: 20px;
}

.methodology-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    text-transform: none;
    letter-spacing: normal;
}

.methodology-item p {
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* ===========================================
   36. CTA Section
   =========================================== */
.cta-section {
    text-align: center;
    overflow: hidden;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.06), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-section .section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.cta-section .section-subtitle {
    max-width: 560px;
    margin: 0 auto;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 32px;
    flex-wrap: wrap;
}

/* ===========================================
   37. Radial Glow Accents
   =========================================== */
.bento-card.featured .bento-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(212, 175, 55, 0.04), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.bento-card.featured > *:not(.bento-glow) {
    position: relative;
    z-index: 1;
}

/* ===========================================
   37a. Light Section Theme
   Alternating dark/white layout inspired by Huly.io.
   Applied via .section-light on Products & Approach.
   =========================================== */
.section-light {
    background: #f9f9f9;
    position: relative;
    /* No z-index: lets particle canvas (z-index:0) render above section bg
       while .section-container (z-index:2) keeps content above particles */
}

/* .section-container already has position:relative + z-index:2 globally */

/* Sharp dark/white border at top */
.section-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
    z-index: 1;
}

/* Sharp white/dark border at bottom */
.section-light::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.06);
    pointer-events: none;
    z-index: 1;
}

/* --- Text overrides --- */
.section-light .section-title {
    color: #0a0a0a;
}

.section-light .section-subtitle {
    color: #555;
}

/* --- Bento cards on white --- */
.section-light .bento-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.section-light .bento-card:hover {
    border-color: rgba(0, 0, 0, 0.12);
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.section-light .bento-card h3 {
    color: #0a0a0a;
}

.section-light .bento-card p {
    color: #555;
}

/* Featured card glow adapts to white */
.section-light .bento-card.featured .bento-glow {
    background: radial-gradient(circle at 30% 30%, rgba(212, 175, 55, 0.06), transparent 60%);
}

/* Falah carousel uses light theme (matches white section) */
.section-light .falah-carousel {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

/* Falah CTA on white card */
.section-light .falah-cta {
    color: var(--accent-teal);
    border-color: rgba(45, 212, 168, 0.4);
}

.section-light .falah-cta:hover {
    background: rgba(45, 212, 168, 0.08);
    border-color: var(--accent-teal);
}

/* --- Methodology items on white (Approach section) --- */
.section-light .methodology-item {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.section-light .methodology-item:hover {
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.section-light .methodology-item h3 {
    color: #0a0a0a;
}

.section-light .methodology-item p {
    color: #555;
}

.section-light .methodology-icon {
    background: rgba(212, 175, 55, 0.1);
}

/* --- Card badges: keep tinted backgrounds, boost contrast on white --- */
.section-light .card-badge.live {
    background: rgba(45, 212, 168, 0.1);
    border-color: rgba(45, 212, 168, 0.25);
}

.section-light .card-badge.research {
    background: rgba(110, 159, 255, 0.1);
    border-color: rgba(110, 159, 255, 0.25);
}

.section-light .card-badge.soon {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.25);
}

/* ===========================================
   38. Scroll Reveal System
   =========================================== */
/* Gated behind .reveal-enabled (added by JS) so crawlers see all section content */
.reveal-enabled .reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .reveal-delay-1,
    .reveal-delay-2,
    .reveal-delay-3,
    .reveal-delay-4 {
        transition-delay: 0s;
    }
}

/* ===========================================
   39. Responsive: Large Breakpoint (1440px+)
   =========================================== */
@media (min-width: 1440px) {
    :root {
        --container-max: 1400px;
    }
}

/* ===========================================
   40. Responsive: Tablet Breakpoint (768px-1024px)
   =========================================== */
@media (max-width: 1024px) {
    /* -- Products: bento grid to 2 columns -- */
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Featured card keeps span 2 at tablet (fills full width of 2-col grid) */

    /* -- Philosophy: stack to single column at tablet too -- */
    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* -- Technology: concept cards to 2 columns -- */
    .concept-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* -- Approach: methodology grid to 2 columns -- */
    .methodology-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===========================================
   41. Responsive: Mobile Breakpoint (< 768px)
   =========================================== */
@media (max-width: 767px) {
    /* -- Products: bento grid to single column -- */
    .bento-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 32px;
    }

    .bento-card.featured {
        grid-column: span 1;
        grid-row: span 1;
        padding: 28px;
    }

    .bento-card {
        padding: 24px;
    }

    /* -- Falah carousel: reduce visuals on mobile -- */
    .falah-slide {
        padding: 16px 12px 12px;
    }

    .falah-slide-visual {
        height: 130px;
    }

    .falah-visual-svg {
        width: 130px;
        height: 115px;
    }

    .falah-cta {
        font-size: 0.78rem;
        padding: 8px 16px;
    }

    /* -- Philosophy: stack to single column -- */
    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .philosophy-quote {
        font-size: 2rem;
        padding: 12px 20px;
    }

    /* -- Technology: concept cards to single column -- */
    .concept-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* -- Approach: methodology grid to single column -- */
    .methodology-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* -- Hero content: tighten for narrow screens -- */
    .hero-content {
        max-width: 100%;
        padding: 0 8px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        text-align: center;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* -- Touch targets: minimum 44px for interactive elements -- */
    .nav-links a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .footer-nav-col a {
        display: inline-block;
        padding: 6px 0;
        min-height: 44px;
        line-height: 32px;
    }

    /* -- CTA section: tighten spacing -- */
    .cta-content {
        padding: 0 8px;
    }
}

/* ===========================================
   Breakpoint Summary
   -------------------------------------------
   Large:   min-width: 1440px  (container 1400px)
   Laptop:  1024px - 1440px    (default desktop styles)
   Tablet:  max-width: 1024px  (2-col grids)
   Mobile:  max-width: 767px   (1-col, touch targets)
   Legacy:  968px (nav/footer), 768px (video/showcase/padding), 480px (footer nav)
   =========================================== */
