/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Base Colors - Default Dark Mode */
    --primary: #6C63FF;
    --primary-dark: #4A44D4;
    --accent: #FF6584;
    --accent-glow: rgba(255, 101, 132, 0.4);

    --bg-dark: #0f0c29;
    --bg-mid: #302b63;
    --bg-light: #24243e;

    --text-main: #ffffff;
    --text-muted: #b3b3d4;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);

    --nav-bg: rgba(15, 12, 41, 0.6);
    --drawer-bg: rgba(15, 12, 41, 0.95);
}

body.light-mode {
    --bg-dark: #e6e9f0;
    --bg-mid: #eef1f5;
    --bg-light: #ffffff;

    --text-main: #1a1a2e;
    --text-muted: #4a4a6a;
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(0, 0, 0, 0.1);

    --nav-bg: rgba(255, 255, 255, 0.8);
    --drawer-bg: rgba(255, 255, 255, 0.98);
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-main);
    background: linear-gradient(135deg, var(--bg-dark), var(--bg-mid), var(--bg-light));
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    min-height: 100vh;
    overflow-x: hidden;
    /* Only hide horizontal scroll */
    position: relative;
    /* Removed fixed center alignment and added vertical flex layout */
    display: flex;
    flex-direction: column;
}

/* Right-to-Left Mode for Arabic */
body.rtl-mode {
    direction: rtl;
    text-align: right;
    font-family: 'Poppins', sans-serif;
    /* Poppins supports Arabic scripts nicely */
}

body.rtl-mode .logo-container,
body.rtl-mode .nav-left .nav-logo-img {
    margin-right: 0;
    margin-left: 15px;
    /* Adjust icons spacing for RTL */
}

body.rtl-mode .feature-card i {
    margin-right: 0;
    display: inline-block;
}

body.rtl-mode .btn i,
body.rtl-mode .drawer-links i {
    margin-right: 0;
    margin-left: 10px;
}

body.rtl-mode .step-item {
    text-align: right;
}

/* Animations */
@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(5deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes orb-drift {
    0% {
        transform: translate(0, 0);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    100% {
        transform: translate(0, 0);
    }
}

/* Background Orbs */
.background-orbs {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: orb-drift 20s infinite alternate ease-in-out;
}

.orb-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: var(--primary);
}

.orb-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: #FF6584;
    animation-delay: -5s;
}

.orb-3 {
    top: 40%;
    left: 40%;
    width: 30vw;
    height: 30vw;
    background: #00D2FF;
    animation-delay: -10s;
}

/* Layout Grid */
.hero-container {
    position: relative;
    z-index: 10;
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 992px) {
    .content-wrapper {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .info-section {
        width: 100%;
        max-width: 800px;
    }
}

/* Interactive Row Layout */
.interactive-row {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    width: 100%;
    margin-top: 3rem;
}



/* Left Side: Glassmorphism Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.2);
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Header & Typography */
.card-header {
    margin-bottom: 2rem;
}

.logo-container {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    padding: 6px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 25px var(--accent-glow);
    animation: float 6s ease-in-out infinite;
}

.logo-container .hero-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 14px;
}

.title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.title .highlight {
    background: linear-gradient(to right, #FF6584, #FFB88C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.tagline {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Body Content */
.description {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #e0e0f0;
    margin-bottom: 2rem;
}

.features {
    display: flex;
    list-style: none;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.6rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-item i {
    color: var(--accent);
}

/* Buttons */
.cta-container {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

@media (min-width: 480px) {
    .cta-container {
        flex-direction: row;
        justify-content: center;
    }
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.8rem 1.5rem;
    border-radius: 16px;
    text-decoration: none;
    color: white;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    flex: 1;
}

.btn-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.btn-subtext {
    font-size: 0.65rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-maintext {
    font-size: 1.2rem;
    font-weight: 700;
}

.btn-apple {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-apple:hover {
    background: #000;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-android {
    background: linear-gradient(135deg, #3DDC84, #2E8B57);
    box-shadow: 0 10px 20px rgba(61, 220, 132, 0.3);
}

.btn-android:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(61, 220, 132, 0.5);
}

.btn:active,
.btn.clicked {
    transform: scale(0.95) translateY(0);
}

/* Footer */
.card-footer {
    margin-top: 2.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.7;
    line-height: 1.5;
}

/* Decorative Elements */
.floating-star {
    position: absolute;
    color: var(--text-muted);
    opacity: 0.5;
    z-index: -1;
    animation: float 8s ease-in-out infinite;
}

.star-1 {
    top: 0;
    right: -5%;
    font-size: 2rem;
    color: #FFD700;
    opacity: 0.8;
    animation-delay: 1s;
}

.star-2 {
    bottom: 20%;
    left: -5%;
    font-size: 1.5rem;
    color: #E0E0FF;
    animation-delay: 2s;
}

.star-3 {
    top: 30%;
    left: 45%;
    font-size: 2.5rem;
    color: #FF6584;
    opacity: 0.6;
    animation-delay: 0s;
}

/* === Interactive Demo Section === */
.demo-section {
    width: 100%;
}

.phone-frame {
    width: 320px;
    height: 650px;
    margin: 0 auto;
    background: #1a1a2e;
    border-radius: 40px;
    box-shadow:
        0 0 0 10px #2a2a4a,
        0 30px 60px rgba(0, 0, 0, 0.6),
        inset 0 0 20px rgba(0, 0, 0, 0.8);
    position: relative;
    overflow: hidden;
    border: 2px solid #555;
}

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

.app-screen {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    position: relative;
}

.demo-image-container {
    height: 55%;
    width: 100%;
    background: #e0e0e0;
    overflow: hidden;
}

.demo-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.demo-text-container {
    height: 30%;
    padding: 1.5rem;
    background: #ffffff;
    color: #333;
    overflow-y: auto;
}

#demo-text {
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
    transition: opacity 0.3s ease;
}

.demo-controls {
    height: 15%;
    background: #f8f9fa;
    border-top: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 1.5rem;
    position: relative;
}

.control-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.4);
    transition: transform 0.2s, background 0.2s;
}

.control-btn:hover {
    transform: scale(1.05);
    background: var(--primary-dark);
}

.progress-bar-bg {
    width: 80%;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    margin-top: 15px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--accent);
    transition: width 0.1s linear;
}

/* --- Lock Overlay Styles --- */
.demo-lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 12, 41, 0.85);
    /* Dark blur */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 50;
    /* Above the demo image/text but inside app-screen */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    text-align: center;
    border-radius: 35px;
    /* Match phone inner screen */
    padding: 2rem 1rem;
}

.demo-lock-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.demo-lock-overlay .lock-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1rem;
    text-shadow: 0 0 20px var(--accent-glow);
}

.demo-lock-overlay h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.demo-lock-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.demo-lock-overlay .lock-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.demo-lock-overlay .lock-btn {
    transform: scale(0.8);
    width: 100%;
    margin: -5px 0;
    /* Tighten up the visual gap caused by scaling */
}

/* Shake/Pulse animation when trying to play while locked */
@keyframes lockPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.demo-lock-overlay.pulse .lock-icon {
    animation: lockPulse 0.4s ease;
    color: #ff3333;
}

/* === New Section Layouts === */
.content-section {
    position: relative;
    z-index: 10;
    width: 95%;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 2rem 1rem;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    color: white;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    /* slight brighten on hover */
}

.feature-card i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: white;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* How It Works List */
.how-it-works-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 20px;
}

.step-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    box-shadow: 0 5px 15px var(--accent-glow);
}

.step-text h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.step-text p {
    color: var(--text-muted);
    line-height: 1.5;
}

/* Footer Full Width */
.site-footer {
    position: relative;
    z-index: 10;
    margin-top: auto;
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent);
}

@media (min-width: 768px) {
    .content-section {
        margin: 6rem auto;
    }
}

/* === Multi-Story Premium Library === */
.demo-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    width: 100%;
}


.library-container {
    background: rgba(20, 25, 40, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    border-radius: 24px;
    padding: 2rem 1rem;
    width: 100%;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .interactive-row {
        flex-direction: row;
        align-items: center;
        max-width: 1250px;
        margin: 4rem auto 0;
        justify-content: center;
        gap: 1rem;
    }

    .demo-section {
        flex-shrink: 0;
        width: 320px;
    }

    .library-container {
        margin-top: 0;
        margin-left: 0;
        flex-grow: 1;
        width: calc(100% - 330px);
        max-width: 900px;
        min-width: 0;
    }
}

.library-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
}

.library-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Apple-style Segmented Control for Languages */
.language-selector {
    display: flex;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    padding: 4px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.lang-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 8px 16px;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    position: relative;
    outline: none;
}

.lang-btn:hover:not(.active) {
    color: rgba(255, 255, 255, 0.9);
}

.lang-btn.active {
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 4px 12px rgba(255, 101, 132, 0.4);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.story-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    scroll-snap-type: x mandatory;
    scroll-padding: 1rem;
    align-items: center;
}

.story-grid::-webkit-scrollbar {
    height: 8px;
}

.story-grid::-webkit-scrollbar-track {
    background: transparent;
}

.story-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.story-grid:hover::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
}

/* Premium Story Card -> Book Container */
.story-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0;
    flex: 0 0 160px;
    height: 240px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.story-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    pointer-events: none;
    z-index: 5;
}

.story-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.story-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.story-card:hover img {
    transform: scale(1.08);
}

.story-card.active {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(255, 101, 132, 0.3);
    transform: translateY(-3px);
}

.story-card .story-name-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    padding: 2.5rem 0.8rem 0.8rem;
    pointer-events: none;
    z-index: 2;
}

.story-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    display: block;
    text-align: left;
}



/* Make phone image fill height better */
.demo-image-container {
    height: 45%;
}

.demo-text-container {
    height: 40%;
}

/* === Advanced UI Components === */

/* Top Navigation Bar */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    z-index: 1000;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: contain;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

body.light-mode .nav-logo-img {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.nav-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.4rem;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    color: var(--accent);
    transform: scale(1.1);
}

/* Push down main content so it's not hidden under the fixed nav */
main {
    padding-top: 70px;
}

/* Side Drawer */
.drawer {
    position: fixed;
    top: 0;
    right: -300px;
    /* Hidden by default */
    width: 300px;
    height: 100vh;
    background: var(--drawer-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-left: 1px solid var(--glass-border);
    z-index: 1002;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.drawer.open {
    right: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.drawer-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    color: var(--text-main);
}

.drawer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex-grow: 1;
}

.drawer-links a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 1.2rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: color 0.2s;
}

.drawer-links a:hover {
    color: var(--accent);
}

.drawer-links i {
    width: 24px;
    text-align: center;
    color: var(--primary);
}

.drawer-footer {
    margin-top: auto;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    padding-top: 1.5rem;
}

.drawer-footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-icons a {
    color: var(--text-main);
    font-size: 1.5rem;
    transition: color 0.2s, transform 0.2s;
}

.social-icons a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

/* Drawer Backdrop */
.drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.drawer-backdrop.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Splash Screen / Language Overlay */
.splash-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-dark);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
}

.splash-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.splash-content {
    text-align: center;
    max-width: 500px;
    width: 90%;
    transform: translateY(0);
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.splash-overlay.hidden .splash-content {
    transform: translateY(-50px);
}

.splash-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.splash-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.splash-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.splash-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.splash-btn:hover {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--accent-glow);
    border-color: transparent;
}

/* Segmented Control slider background pill */
.lang-slider {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 4px;
    width: calc(33.33% - 2.66px);
    /* Roughly 1/3 minus padding */
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 10px;
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(255, 101, 132, 0.4);
}

/* Because the background pill provides the color, 
   we remove the background from the active button itself */
.lang-btn.active {
    background: transparent;
    box-shadow: none;
}