/* CSS Variables */
:root {
    --primary-color: #0FC2C0;
    --primary-light: #4fd1cf;
    --primary-glow: rgba(15, 194, 192, 0.6);
    --secondary-color: #A855F7;
    --secondary-glow: rgba(168, 85, 247, 0.6);
    --accent-gold: #FACC15;

    --text-white: #ffffff;
    --text-muted: #9ca3af;

    --bg-dark: #020617;
    /* Slate 950 essentially */
    --glass-bg: rgba(15, 23, 42, 0.6);
    /* Darker, more premium glass */
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.15);

    --font-heading: 'Cairo', sans-serif;
    --font-body: 'Cairo', sans-serif;

    --ease-elastic: cubic-bezier(0.68, -0.6, 0.32, 1.6);
    --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--bg-dark), var(--primary-color));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* Global Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    cursor: none;
    /* Hide default cursor */
}

/* Restoring cursor on mobile/touch devices is crucial for UX */
@media (hover: none) and (pointer: coarse) {
    body {
        cursor: auto;
    }

    .cursor-dot,
    .cursor-outline {
        display: none;
    }
}

/* --- Cinema Grade Film Grain --- */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9998;
    pointer-events: none;
    opacity: 0.07;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='1'/%3E%3C/svg%3E");
}

/* Optimize Grain for Mobile */
@media (max-width: 768px) {
    .grain-overlay {
        display: none;
        /* Significant performance boost for mobile */
    }
}

/* --- Executive Custom Cursor --- */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

body:hover .cursor-outline {
    opacity: 1;
}

/* Liquid Metal Text Effect */
.liquid-text {
    background-image: linear-gradient(-225deg,
            #fff 0%,
            #4fd1cf 29%,
            #facc15 67%,
            #fff 100%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
    display: inline-block;
    font-weight: 900;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-content {
    text-align: center;
}

.loader-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    animation: pulseGlow 1.5s infinite alternate;
}

.loader-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.progress {
    width: 0%;
    height: 100%;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
    animation: loadBar 2s ease-in-out forwards;
}

@keyframes loadBar {
    0% {
        width: 0;
    }

    100% {
        width: 100%;
    }
}

@keyframes pulseGlow {
    from {
        filter: drop-shadow(0 0 5px var(--primary-color));
        transform: scale(1);
    }

    to {
        filter: drop-shadow(0 0 20px var(--primary-color));
        transform: scale(1.1);
    }
}

/* Interactive Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Typography & Utilities */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

p {
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-light) 0%, #fff 50%, var(--secondary-color) 100%);
    background-clip: text;
    /* Standard property */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    background-size: 200% auto;
    animation: shine 5s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* Enhanced Glassmorphism */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 1px solid var(--glass-highlight);
    border-left: 1px solid var(--glass-highlight);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    border-radius: 24px;
    transition: transform 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth);
}

.glass:hover {
    box-shadow: 0 15px 40px -5px rgba(15, 194, 192, 0.15);
}

/* Buttons with Neon Effect */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s var(--ease-elastic);
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: transparent;
    color: #fff;
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 15px rgba(15, 194, 192, 0.2), inset 0 0 15px rgba(15, 194, 192, 0.1);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--primary-color);
    transition: all 0.4s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    width: 100%;
}

.btn-primary:hover {
    color: #000;
    box-shadow: 0 0 40px var(--primary-glow);
    transform: translateY(-3px);
    border-color: var(--primary-light);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-white);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #fff;
    transform: translateY(-3px);
}

/* Navbar */
.header {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    z-index: 100;
    transition: all 0.4s var(--ease-smooth);
    max-width: 1300px;
    margin: 0 auto;
}

.header.scrolled {
    background: rgba(2, 6, 23, 0.85);
    /* Darker on scroll */
    top: 10px;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}

.logo {
    display: flex;
    gap: 12px;
    align-items: center;
}

.logo-icon {
    font-size: 2rem;
    color: var(--primary-color);
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

.logo-text h1 {
    margin: 0;
    font-size: 1.5rem;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.logo-text span {
    font-size: 0.8rem;
    font-family: 'Inter', sans-serif;
    opacity: 0.7;
    letter-spacing: 2px;
}

/* Navbar Enhancements */
.nav-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 102;
    padding: 5px;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(2, 6, 23, 0.98);
    backdrop-filter: blur(20px);
    z-index: 101;
    display: flex;
    flex-direction: column;
    padding: 20px;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    visibility: hidden;
}

.mobile-menu.active {
    transform: translateY(0);
    visibility: visible;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.close-menu-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
}

.mobile-logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: #fff;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
    width: 100%;
}

.mobile-nav-links a {
    font-size: 1.3rem;
    font-weight: 600;
}

.desktop-only {
    display: none;
}

@media(min-width: 992px) {
    .nav-links.desktop-nav {
        display: flex;
        gap: 40px;
    }

    .desktop-only {
        display: inline-flex;
    }

    .mobile-menu-btn {
        display: none;
    }
}

@media(max-width: 991px) {
    .nav-links.desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 80px;
    position: relative;
    overflow: visible;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Desktop: 2 Columns */
@media (min-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: 80px;
        text-align: right;
        /* Adjust for RTL */
    }

    .hero-content {
        text-align: right;
        /* RTL Alignment */
    }

    html[dir="ltr"] .hero-content {
        text-align: left;
    }

    .hero-buttons {
        align-items: flex-start;
        flex-direction: row;
    }
}

/* Mobile: Center text */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-content {
        text-align: center;
        order: 1;
    }

    .hero-image {
        order: 2;
        margin-top: 20px;
    }

    .phone-mockup {
        width: 280px;
        height: 580px;
    }
}

.hero-content {
    text-align: center;
}

.badge {
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    color: var(--secondary-color);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.1);
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 24px;
    line-height: 1.15;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
    justify-content: center;
}

/* 3D Phone with Floating Elements */
.hero-image {
    perspective: 1500px;
    display: flex;
    justify-content: center;
    position: relative;
}

.phone-wrapper {
    position: relative;
    z-index: 10;
    transform-style: preserve-3d;
    animation: floatHero 8s ease-in-out infinite;
    will-change: transform;
    /* Hint to browser to promote to layer */
}

@keyframes floatHero {

    0%,
    100% {
        transform: translateY(0) rotateY(-5deg);
    }

    50% {
        transform: translateY(-30px) rotateY(5deg);
    }
}

.phone-mockup {
    width: 320px;
    height: 650px;
    background: #000;
    border-radius: 50px;
    border: 8px solid #1e293b;
    position: relative;
    box-shadow: 0 0 0 2px #334155, 0 50px 100px -20px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

.screen-content {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    height: 100%;
    width: 100%;
    border-radius: 42px;
    position: relative;
    overflow: hidden;
}

/* --- Aurora Background (The Billion-Timer) --- */
.aurora-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
    background: #000;
}

.aurora-blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.4;
    border-radius: 50%;
    animation: drift 20s infinite alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: #0fc2c0;
    animation-delay: 0s;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: #7c3aed;
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 40vw;
    height: 40vw;
    background: #facc15;
    opacity: 0.2;
    animation-delay: -10s;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, -50px) scale(1.1);
    }
}

/* --- Holographic / Prismatic Effects --- */
.holo-card {
    position: relative;
    z-index: 1;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(20, 30, 50, 0.4);
    /* Semi-transparent dark */
}

/* The iridescent border sheen */
.holo-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            rgba(15, 194, 192, 0.3),
            rgba(168, 85, 247, 0.3),
            rgba(255, 255, 255, 0.2),
            transparent);
    transform: skewX(-25deg);
    transition: 0.5s;
    pointer-events: none;
    z-index: 10;
}

.holo-card:hover::after {
    left: 150%;
    transition: 0.7s ease-in-out;
}

/* --- Magnetic Button Wrapper --- */
.magnetic-wrap {
    display: inline-block;
    position: relative;
    z-index: 5;
}

.magnetic-area {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    z-index: 10;
    /* Debug: background: rgba(255,0,0,0.1); */
}

/* --- Text Glitch / Scramble Effect Styling --- */
.scramble-text {
    font-family: monospace;
    /* Tech feel during scramble */
    color: var(--primary-color);
}

.hero-title .scramble-text {
    font-family: var(--font-heading);
    /* Revert after done */
}

/* --- Hyper-Realistic Phone Reflections --- */
.phone-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(105deg, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0.1) 25%, rgba(255, 255, 255, 0) 30%);
    z-index: 20;
    pointer-events: none;
    border-radius: 45px;
}

/* Internal Phone UI */
.app-header {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    color: #fff;
    font-size: 0.8rem;
}

.app-hero-card {
    margin: 10px 20px;
    padding: 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 25px;
    height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.4);
}

.app-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 0 20px;
    margin-top: 20px;
}

.app-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.8rem;
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.app-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Floating Elements around phone */
.float-el {
    position: absolute;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 25px;
    border-radius: 15px;
    color: #fff;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: floatEl 6s ease-in-out infinite alternate;
}

.float-1 {
    top: 10%;
    right: -60px;
    animation-delay: 1s;
}

.float-2 {
    bottom: 20%;
    left: -60px;
    animation-delay: -2s;
    background: rgba(15, 194, 192, 0.1);
    border-color: var(--primary-color);
}

@keyframes floatEl {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-20px);
    }
}

/* Floating Icons in 3D Space */
.float-el {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(15, 23, 42, 0.8);
}

.icon-box {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 30px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.gradient-1 {
    color: #facc15;
    border-color: rgba(250, 204, 21, 0.3);
}

.gradient-2 {
    color: #0fc2c0;
    border-color: rgba(15, 194, 192, 0.3);
}

.gradient-3 {
    color: #a855f7;
    border-color: rgba(168, 85, 247, 0.3);
}

/* FAQ Accordion */
.accordion-item {
    overflow: hidden;
    margin-bottom: 20px;
}

.accordion-header {
    width: 100%;
    padding: 30px;
    background: transparent;
    color: #fff;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    cursor: pointer;
    font-weight: 700;
}

.accordion-content {
    max-height: 0;
    opacity: 0;
    /* Hidden state */
    transition: max-height 0.5s var(--ease-smooth), opacity 0.5s var(--ease-smooth);
    background: rgba(0, 0, 0, 0.3);
}

.content-inner {
    padding: 30px;
    line-height: 1.8;
    color: var(--text-muted);
}

/* Responsive */
@media(min-width: 992px) {
    .header {
        width: 90%;
    }

    .hero-container {
        grid-template-columns: 1.2fr 1fr;
        text-align: right;
    }

    .hero-content {
        text-align: right;
    }

    .hero-title {
        font-size: 5rem;
    }

    .hero-buttons {
        flex-direction: row;
        justify-content: flex-start;
    }
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: 1s var(--ease-smooth);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Force visibility on mobile to ensure content appears */
@media (max-width: 768px) {
    .reveal {
        opacity: 1 !important;
        transform: translateY(0) !important;
        transition: none !important;
    }
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* Quote Section */
.quote-section {
    padding: 150px 0;
    margin: 100px 0;
    position: relative;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('assets/verse_bg.png');
    /* Overlay to ensure text readability */
    box-shadow: inset 0 0 0 2000px rgba(2, 6, 23, 0.7);
}

/* Placeholder for quote bg */
/* --- Restored & Enhanced Features Section --- */
.features {
    padding: 120px 0;
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.section-subtitle {
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: inline-block;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    position: relative;
}

.feature-card {
    padding: 40px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

/* Mouse spotlight fallback */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.06), transparent 40%);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

/* Ensure icon box stays on top of effects */
.feature-card .icon-box,
.feature-card h3,
.feature-card p {
    position: relative;
    z-index: 2;
}

/* --- Restored Screenshots Grid --- */
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
}

@media (max-width: 768px) {
    .screenshots-grid {
        grid-template-columns: 1fr;
        /* Single column on mobile for better visibility */
        gap: 40px;
    }
}

.screenshot-mobile-frame {
    background: #0b0f19;
    border: 4px solid #1e293b;
    border-radius: 30px;
    overflow: hidden;
    aspect-ratio: 9/19;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: transform 0.6s var(--ease-elastic);
}

.screenshot-mobile-frame:hover {
    transform: scale(1.02) translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 30px 60px -10px rgba(15, 194, 192, 0.3);
}

.screenshot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
}

.bg-gradient-1 {
    background: linear-gradient(45deg, #1e293b, #0f172a);
}

.bg-gradient-2 {
    background: linear-gradient(45deg, #334155, #1e293b);
}

.bg-gradient-3 {
    background: linear-gradient(45deg, #475569, #334155);
}

.bg-gradient-4 {
    background: linear-gradient(45deg, #1e293b, #0f172a);
}

/* Start animations helpers */
.transform-up {
    margin-top: -60px;
}

@media(min-width: 992px) {
    .screenshots-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Fix Hero Title Color for Scramble */
.hero-title {
    color: var(--text-white);
    min-height: 1.2em;
    /* Prevent jump during scramble start */
}

.quote-section {
    background-image: radial-gradient(#1e293b 1px, transparent 1px);
    background-size: 30px 30px;
    background-color: #0b1120;
}

/* Footer Instagram Icon */
.footer-links .fa-instagram {
    font-size: 2.2rem;
    /* Much larger */
    vertical-align: middle;
    margin-right: 8px;
    color: #E1306C;
    /* Insta Brand Color by default */
    filter: drop-shadow(0 0 5px rgba(225, 48, 108, 0.5));
    /* Glow for clarity */
    transition: transform 0.3s ease, filter 0.3s ease;
}

.footer-links a:hover .fa-instagram {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px rgba(225, 48, 108, 0.8));
}

/* --- Mobile Compatibility Fixes --- */
@media (max-width: 768px) {

    /* Prevent overlapping cards in screenshot grid */
    .transform-up {
        margin-top: 0 !important;
    }

    /* Adjust Hero Title size for small screens */
    .hero-title {
        font-size: 2.2rem !important;
        margin-bottom: 15px;
    }

    /* Resize Phone Mockup to fit screen */
    .phone-mockup {
        width: 280px !important;
        height: auto !important;
        aspect-ratio: 9/19;
        margin: 0 auto;
    }

    /* Reduce excessive padding */
    .hero {
        padding-top: 100px;
        padding-bottom: 40px;
    }

    .features,
    .screenshots,
    .quote-section,
    .download,
    .faq {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    /* Fix container padding */
    .container {
        padding: 0 20px;
    }

    /* Reduce blob size/opacity on mobile to prevent distraction */
    .aurora-blob {
        opacity: 0.3;
        filter: blur(60px);
    }

    /* FAQ Mobile Fixes */
    .accordion-header {
        padding: 20px;
        font-size: 1rem;
        /* Smaller font for mobile */
        gap: 15px;
        /* Space between text and icon */
        text-align: right;
    }

    .content-inner {
        padding: 20px;
        font-size: 0.95rem;
    }

    .icon-wrapper {
        min-width: 24px;
        /* Prevent icon from shrinking */
    }
}

/* --- Language Selector --- */
.lang-switch-wrapper {
    display: flex;
    align-items: center;
    margin: 0 10px;
    /* Reduced margin */
}

@media (max-width: 768px) {
    .btn-primary.btn-sm span {
        display: none;
        /* Hide text on mobile download button to save space */
    }

    .btn-primary.btn-sm {
        padding: 10px 15px;
        /* Compact button */
    }

    .lang-switch-wrapper {
        margin: 0 8px;
    }

    /* Ensure FAQ content is visible when open */
    .accordion-content {
        visibility: visible;
        opacity: 1;
    }
}

.lang-select {
    background: rgba(15, 23, 42, 0.6);
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    outline: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.lang-select:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(15, 194, 192, 0.2);
}

.lang-select option {
    background: #020617;
    /* bg-dark */
    color: #fff;
    padding: 10px;
}

/* LTR Overrides */
html[dir="ltr"] {
    text-align: left;
    /* Default alignment */
}

/* Flip text align for specific centered elements if needed? No, standard center works. */
html[dir="ltr"] .hero-content,
html[dir="ltr"] .section-header,
html[dir="ltr"] .loader-content,
html[dir="ltr"] .download-content,
html[dir="ltr"] .footer-content {
    /* These are centered by design usually */
    text-align: center;
}

html[dir="ltr"] .feature-card,
html[dir="ltr"] .text-start-ltr {
    text-align: left;
}

html[dir="ltr"] .accordion-header {
    text-align: left;
    flex-direction: row-reverse;
    /* Put icon on right? */
}

/* In RTL: Text ... Icon. Flex row.
   In LTR: Text ... Icon. Flex row.
   The accordion header has `justify-content: space-between`.
   So Text is at start, Icon at end.
   In RTL: Start is Right. Icon is Left.
   In LTR: Start is Left. Icon is Right.
   This is perfect. No change needed for flex order.
*/

/* Adjustments for icons in scrambled text or buttons might be automatic via flex gap */