/**
 * Landing Page Styles
 * Maktoub - AI-Powered Arabic Letter Generator
 *
 * CSS Variable Integration with themes.css
 */

/* ==================== CSS Variables Extensions ==================== */
:root {
    --landing-hero-height: 100vh;
    --landing-section-padding: 120px;
    --landing-card-radius: 16px;
    --landing-transition: 0.3s ease;
    --landing-transition-slow: 0.6s ease;
}

/* ==================== NAVIGATION ==================== */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
    background: transparent;
}

.landing-nav.scrolled {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    padding: 12px 0;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}

.nav-logo {
    display: flex;
    align-items: center;
    transform: translateY(0);
    /* Explicit transform baseline for GSAP */
    margin: 0;
    /* Explicit margin reset */
}

.nav-logo .logo-image {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links .nav-link {
    display: inline-flex;
    align-items: center;
    height: 32px;
    color: var(--text-secondary);
    text-decoration: none;
    font-family: 'Janna LT', 'Tajawal', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    transition: color var(--landing-transition);
    position: relative;
    transform: translateY(0);
    /* Explicit transform baseline for GSAP */
    margin: 0;
    /* Explicit margin reset */
}

.nav-links .nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-links .nav-link:hover::after {
    width: 100%;
}

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

.nav-actions {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    margin-inline-start: auto;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative;
    z-index: 10;
}

/* Login link - styled like nav-link for consistency */
.btn-outline {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0;
    border: none !important;
    border-radius: 0;
    color: var(--text-secondary) !important;
    text-decoration: none;
    font-family: 'Janna LT', 'Tajawal', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    transition: color var(--landing-transition);
    background: transparent !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative;
    z-index: 10;
    white-space: nowrap;
    transform: translateY(0);
    /* Explicit transform baseline for GSAP */
    margin: 0;
    /* Explicit margin reset */
}

.btn-outline::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.btn-outline:hover {
    color: var(--text-primary) !important;
    background: transparent;
}

.btn-outline:hover::after {
    width: 100%;
}

/* Signup button - subtle CTA */
.btn-primary-nav {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 16px;
    background: var(--color-primary) !important;
    border-radius: 16px;
    color: #FFFFFF !important;
    text-decoration: none;
    font-family: 'Janna LT', 'Tajawal', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    transition: background var(--landing-transition), box-shadow var(--landing-transition), transform var(--landing-transition);
    /* Specific transitions, not 'all' */
    border: none;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative;
    z-index: 10;
    white-space: nowrap;
    transform: translateY(0);
    /* Explicit transform baseline for GSAP */
    margin: 0;
    /* Explicit margin reset */
}

.btn-primary-nav:hover {
    background: var(--btn-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(30, 168, 150, 0.3);
}

/* Theme Toggle Button - minimal style */
/* IMPORTANT: Override ALL conflicting properties from themes.css (.theme-toggle is 40x40 there) */
.landing-nav .theme-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 32px !important;
    /* Override themes.css 40px */
    height: 32px !important;
    /* Override themes.css 40px */
    padding: 6px !important;
    /* Override themes.css 8px */
    background: transparent !important;
    border: none !important;
    /* Override themes.css border */
    border-radius: 6px !important;
    cursor: pointer;
    transition: background 0.3s ease !important;
    /* Specific transition, not 'all' */
    opacity: 1 !important;
    visibility: visible !important;
    position: relative;
    z-index: 10;
    transform: translateY(0);
    /* Explicit transform baseline for GSAP */
    margin: 0;
    /* Explicit margin reset */
    box-sizing: border-box;
}

.landing-nav .theme-toggle:hover {
    background: rgba(30, 168, 150, 0.2) !important;
}

.landing-nav .theme-toggle svg {
    width: 20px;
    height: 20px;
    fill: var(--text-secondary) !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition: fill 0.3s ease;
}

.landing-nav .theme-toggle:hover svg {
    fill: var(--color-primary) !important;
}

/* Show/hide sun/moon based on theme */
[data-theme="dark"] .landing-nav .theme-toggle .sun-icon {
    display: block;
}

[data-theme="dark"] .landing-nav .theme-toggle .moon-icon {
    display: none;
}

[data-theme="light"] .landing-nav .theme-toggle .sun-icon {
    display: none;
}

[data-theme="light"] .landing-nav .theme-toggle .moon-icon {
    display: block;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    padding: 8px;
    background: transparent;
    border: 1px solid var(--border-primary);
    border-radius: 6px;
    color: var(--text-primary);
    cursor: pointer;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    padding: 24px;
    flex-direction: column;
    gap: 16px;
    border-bottom: 1px solid var(--border-primary);
}

.mobile-menu.active {
    display: flex;
}

.mobile-nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-secondary);
}

.mobile-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.mobile-menu-actions .btn-outline,
.mobile-menu-actions .btn-primary-nav {
    text-align: center;
}

/* Mobile Theme Toggle */
.mobile-theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 20px;
    background: rgba(30, 168, 150, 0.15);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    color: var(--text-secondary);
    font-family: 'Janna LT', 'Tajawal', sans-serif;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-theme-toggle:hover {
    background: rgba(30, 168, 150, 0.25);
    border-color: var(--color-primary);
}

.mobile-theme-toggle svg {
    width: 22px;
    height: 22px;
    fill: var(--color-primary);
}

[data-theme="dark"] .mobile-theme-toggle .sun-icon {
    display: block;
}

[data-theme="dark"] .mobile-theme-toggle .moon-icon {
    display: none;
}

[data-theme="light"] .mobile-theme-toggle .sun-icon {
    display: none;
}

[data-theme="light"] .mobile-theme-toggle .moon-icon {
    display: block;
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    min-height: var(--landing-hero-height);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 120px 64px 80px;
    overflow: hidden;
}

/* Parallax Background Layers */
.hero-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.hero-bg-1 {
    background-image: var(--hero-bg-url);
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    transform: scale(1.1);
}

.hero-bg-2 {
    background: radial-gradient(circle at 30% 50%, rgba(30, 168, 150, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(160, 236, 220, 0.1) 0%, transparent 40%);
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231EA896' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-element {
    position: absolute;
    opacity: 0.6;
    will-change: transform;
}

.float-1 {
    top: 15%;
    right: 10%;
}

.float-2 {
    top: 55%;
    left: 8%;
}

.float-3 {
    bottom: 25%;
    right: 12%;
}

.float-4 {
    top: 30%;
    left: 15%;
}

.floating-element img,
.floating-element svg {
    width: 60px;
    height: 60px;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
}

.hero-text-wrapper {
    margin-bottom: 48px;
}

.hero-subtitle {
    color: var(--color-primary);
    font-family: 'Janna LT', 'Tajawal', sans-serif;
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
    opacity: 0;
    transform: translateY(30px);
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.title-line {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.title-line .word {
    display: inline-block;
    color: var(--text-primary);
    font-family: 'Janna LT', 'Tajawal', sans-serif;
    font-size: 72px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    opacity: 0;
    transform: translateY(60px);
}

.title-line .word.brand-name {
    color: var(--color-primary);
    font-size: 84px;
}

.title-line .word.highlight {
    color: var(--color-primary);
    position: relative;
}

.title-line .word.highlight::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    height: 12px;
    background: var(--color-primary);
    opacity: 0.2;
    transform: scaleX(0);
    transform-origin: right;
    border-radius: 4px;
}

.hero-description {
    color: var(--text-tertiary);
    font-family: 'Janna LT', 'Tajawal', sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
}

/* Hero CTA Buttons */
.hero-cta {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 64px;
    opacity: 0;
    transform: translateY(30px);
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    background: var(--btn-primary-bg);
    border-radius: 10px;
    color: #FFFFFF;
    text-decoration: none;
    font-family: 'Janna LT', 'Tajawal', sans-serif;
    font-size: 18px;
    font-weight: 700;
    transition: all var(--landing-transition);
    box-shadow: 0 4px 20px rgba(30, 168, 150, 0.3);
}

.btn-hero-primary:hover {
    background: var(--btn-primary-hover);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(30, 168, 150, 0.4);
}

.btn-hero-primary svg {
    transition: transform 0.3s ease;
}

.btn-hero-primary:hover svg {
    transform: rotate(15deg) scale(1.1);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    background: transparent;
    border: 2px solid var(--border-primary);
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-family: 'Janna LT', 'Tajawal', sans-serif;
    font-size: 18px;
    font-weight: 500;
    transition: all var(--landing-transition);
}

.btn-hero-secondary:hover {
    border-color: var(--color-primary);
    color: var(--text-primary);
    transform: translateY(-4px);
    background: var(--bg-hover);
}

.btn-hero-secondary svg {
    transition: transform 0.3s ease;
}

.btn-hero-secondary:hover svg {
    transform: translateY(4px);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    opacity: 0;
    transform: translateY(30px);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: inline-block;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
}

.stat-suffix {
    color: var(--color-primary);
    font-family: 'Inter', sans-serif;
    font-size: 36px;
    font-weight: 700;
}

.stat-label {
    display: block;
    color: var(--text-muted);
    font-family: 'Janna LT', 'Tajawal', sans-serif;
    font-size: 14px;
    margin-top: 8px;
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: var(--border-primary);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-family: 'Janna LT', 'Tajawal', sans-serif;
    font-size: 12px;
    opacity: 0;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--border-primary);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s ease infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(12px);
        opacity: 0;
    }
}

/* ==================== FEATURES SECTION ==================== */
.features-section {
    padding: var(--landing-section-padding) 64px;
    background: var(--bg-secondary);
    position: relative;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(40px);
}

.section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(30, 168, 150, 0.1);
    border: 1px solid rgba(30, 168, 150, 0.2);
    border-radius: 20px;
    color: var(--color-primary);
    font-family: 'Janna LT', 'Tajawal', sans-serif;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.section-title {
    color: var(--text-primary);
    font-family: 'Janna LT', 'Tajawal', sans-serif;
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.section-title .highlight {
    color: var(--color-primary);
}

.section-description {
    color: var(--text-tertiary);
    font-family: 'Janna LT', 'Tajawal', sans-serif;
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    position: relative;
    padding: 40px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-secondary);
    border-radius: var(--landing-card-radius);
    text-align: center;
    overflow: hidden;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(40px);
}

.feature-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.feature-card:hover .feature-glow {
    opacity: 1;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: rgba(30, 168, 150, 0.1);
    border-radius: 20px;
    transition: transform 0.4s ease;
}

.feature-icon img,
.feature-icon svg {
    width: 48px;
    height: 48px;
}

.feature-title {
    color: var(--text-primary);
    font-family: 'Janna LT', 'Tajawal', sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-description {
    color: var(--text-tertiary);
    font-family: 'Janna LT', 'Tajawal', sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

/* ==================== CTA SECTION ==================== */
.cta-section {
    padding: var(--landing-section-padding) 64px;
    position: relative;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.cta-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(30, 168, 150, 0.15) 0%, transparent 70%);
}

.cta-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='10' cy='10' r='1' fill='%231EA896' fill-opacity='0.3'/%3E%3C/svg%3E");
    background-size: 40px 40px;
    animation: particlesFloat 30s linear infinite;
}

@keyframes particlesFloat {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-200px);
    }
}

.cta-container {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content {
    text-align: center;
    padding: 80px 60px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: scale(0.95);
}

.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(30, 168, 150, 0.1);
    border-radius: 20px;
    margin-bottom: 24px;
}

.cta-badge-icon {
    width: 20px;
    height: 20px;
}

.cta-badge span {
    color: var(--color-primary);
    font-family: 'Janna LT', 'Tajawal', sans-serif;
    font-size: 14px;
    font-weight: 600;
}

.cta-title {
    color: var(--text-primary);
    font-family: 'Janna LT', 'Tajawal', sans-serif;
    font-size: 42px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 20px;
}

.cta-title .highlight-animated {
    color: var(--color-primary);
    position: relative;
    display: inline-block;
}

.cta-description {
    color: var(--text-tertiary);
    font-family: 'Janna LT', 'Tajawal', sans-serif;
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 36px;
    background: var(--btn-primary-bg);
    border-radius: 10px;
    color: #FFFFFF;
    text-decoration: none;
    font-family: 'Janna LT', 'Tajawal', sans-serif;
    font-size: 18px;
    font-weight: 700;
    transition: all var(--landing-transition);
    box-shadow: 0 4px 20px rgba(30, 168, 150, 0.3);
}

.btn-cta-primary:hover {
    background: var(--btn-primary-hover);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(30, 168, 150, 0.4);
}

.btn-cta-primary svg {
    transition: transform 0.3s ease;
}

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

.btn-cta-secondary {
    padding: 18px 36px;
    background: transparent;
    border: 2px solid var(--border-primary);
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-family: 'Janna LT', 'Tajawal', sans-serif;
    font-size: 18px;
    font-weight: 500;
    transition: all var(--landing-transition);
}

.btn-cta-secondary:hover {
    border-color: var(--color-primary);
    color: var(--text-primary);
    background: var(--bg-hover);
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-family: 'Janna LT', 'Tajawal', sans-serif;
    font-size: 14px;
}

.trust-badge svg {
    flex-shrink: 0;
}

/* ==================== FOOTER ==================== */
.landing-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-secondary);
    padding: 80px 64px 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo-link {
    display: inline-block;
    margin-bottom: 16px;
}

.footer-logo {
    height: 40px;
}

.footer-tagline {
    color: var(--text-muted);
    font-family: 'Janna LT', 'Tajawal', sans-serif;
    font-size: 14px;
    line-height: 1.7;
}

.footer-links-grid {
    display: flex;
    gap: 80px;
}

.footer-links-column h4 {
    color: var(--text-primary);
    font-family: 'Janna LT', 'Tajawal', sans-serif;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-links-column a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-family: 'Janna LT', 'Tajawal', sans-serif;
    font-size: 14px;
    margin-bottom: 12px;
    transition: color var(--landing-transition);
}

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

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--border-secondary);
    text-align: center;
}

.footer-bottom .copyright {
    color: var(--text-muted);
    font-family: 'Janna LT', 'Tajawal', sans-serif;
    font-size: 14px;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 32px;
    }

    .hero-section {
        padding: 100px 32px 60px;
    }

    .title-line .word {
        font-size: 56px;
    }

    .title-line .word.brand-name {
        font-size: 64px;
    }

    .features-section,
    .cta-section {
        padding: 80px 32px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-links-grid {
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-actions {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-section {
        padding: 100px 24px 60px;
        min-height: auto;
    }

    .hero-subtitle {
        font-size: 22px;
    }

    .title-line .word {
        font-size: 40px;
    }

    .title-line .word.brand-name {
        font-size: 48px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 32px;
    }

    .stat-divider {
        width: 48px;
        height: 1px;
    }

    .stat-number {
        font-size: 40px;
    }

    .section-title {
        font-size: 36px;
    }

    .section-header {
        margin-bottom: 48px;
    }

    .features-section,
    .cta-section {
        padding: 60px 24px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .cta-content {
        padding: 48px 32px;
    }

    .cta-title {
        font-size: 32px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        max-width: 300px;
        text-align: center;
        justify-content: center;
    }

    .trust-badges {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    .landing-footer {
        padding: 48px 24px 32px;
    }

    .footer-content {
        flex-direction: column;
        gap: 48px;
    }

    .footer-brand {
        max-width: 100%;
        text-align: center;
    }

    .footer-logo-link {
        display: flex;
        justify-content: center;
    }

    .footer-links-grid {
        flex-wrap: wrap;
        gap: 32px;
        justify-content: center;
    }

    .footer-links-column {
        text-align: center;
        min-width: 120px;
    }

    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 16px;
    }

    .hero-section {
        padding: 80px 16px 40px;
    }

    .title-line {
        gap: 8px;
    }

    .title-line .word {
        font-size: 32px;
    }

    .title-line .word.brand-name {
        font-size: 40px;
    }

    .hero-description {
        font-size: 15px;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 16px 24px;
        font-size: 16px;
    }

    .stat-number {
        font-size: 36px;
    }

    .stat-suffix {
        font-size: 28px;
    }

    .section-title {
        font-size: 28px;
    }

    .section-description {
        font-size: 16px;
    }

    .feature-card {
        padding: 32px 24px;
    }

    .feature-title {
        font-size: 20px;
    }

    .cta-content {
        padding: 40px 20px;
    }

    .cta-title {
        font-size: 26px;
    }

    .cta-description {
        font-size: 16px;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        padding: 16px 24px;
        font-size: 16px;
    }

    .footer-links-grid {
        gap: 24px;
    }
}

/* ==================== ANIMATIONS ==================== */
/* Initial states for GSAP - Elements start hidden */
.hero-subtitle,
.hero-description,
.hero-cta,
.hero-stats,
.section-header,
.feature-card,
.cta-content {
    will-change: transform, opacity;
}

/* Ensure smooth theme transitions */
.landing-nav,
.hero-section,
.features-section,
.cta-section,
.landing-footer,
.contact-hero,
.contact-section,
.faq-section {
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* ==================== CONTACT PAGE STYLES ==================== */

/* Contact Hero Section */
.contact-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 160px 64px 80px;
    overflow: hidden;
    text-align: center;
}

.contact-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.contact-bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center top, rgba(30, 168, 150, 0.15) 0%, transparent 60%);
}

.contact-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231EA896' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.contact-hero-content {
    position: relative;
    z-index: 10;
    max-width: 700px;
}

.contact-badge {
    margin-bottom: 24px;
}

.contact-hero-title {
    color: var(--text-primary);
    font-family: 'Janna LT', 'Tajawal', sans-serif;
    font-size: 56px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
}

.contact-hero-title .highlight {
    color: var(--color-primary);
}

.contact-hero-description {
    color: var(--text-tertiary);
    font-family: 'Janna LT', 'Tajawal', sans-serif;
    font-size: 20px;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}

/* Contact Section */
.contact-section {
    padding: 80px 64px 120px;
    background: var(--bg-secondary);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Contact Info Grid */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 64px;
}

.contact-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-secondary);
    border-radius: var(--landing-card-radius);
    padding: 32px;
    text-align: center;
    transition: all 0.4s ease;
}

.contact-info-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.contact-info-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: rgba(30, 168, 150, 0.1);
    border-radius: 16px;
}

.contact-info-title {
    color: var(--text-primary);
    font-family: 'Janna LT', 'Tajawal', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.contact-info-text {
    color: var(--text-tertiary);
    font-family: 'Janna LT', 'Tajawal', sans-serif;
    font-size: 16px;
    margin-bottom: 16px;
}

.contact-info-link {
    color: var(--color-primary);
    font-family: 'Janna LT', 'Tajawal', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-link:hover {
    color: var(--color-primary-light);
}

/* Contact Form Wrapper */
.contact-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-secondary);
    border-radius: var(--landing-card-radius);
    padding: 48px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-form-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-form-title {
    color: var(--text-primary);
    font-family: 'Janna LT', 'Tajawal', sans-serif;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
}

.contact-form-subtitle {
    color: var(--text-tertiary);
    font-family: 'Janna LT', 'Tajawal', sans-serif;
    font-size: 16px;
}

/* Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    color: var(--text-primary);
    font-family: 'Janna LT', 'Tajawal', sans-serif;
    font-size: 14px;
    font-weight: 600;
}

.form-input {
    background: var(--bg-secondary);
    border: 1px solid var(--border-secondary);
    border-radius: 10px;
    padding: 14px 18px;
    color: var(--text-primary);
    font-family: 'Janna LT', 'Tajawal', sans-serif;
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(30, 168, 150, 0.15);
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23A0ECDC' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 18px center;
    padding-left: 40px;
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
}

/* Submit Button */
.btn-contact-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 18px 32px;
    background: var(--btn-primary-bg);
    border: none;
    border-radius: 12px;
    color: #FFFFFF;
    font-family: 'Janna LT', 'Tajawal', sans-serif;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(30, 168, 150, 0.3);
}

.btn-contact-submit:hover {
    background: var(--btn-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(30, 168, 150, 0.4);
}

.btn-contact-submit:active {
    transform: translateY(0);
}

.btn-contact-submit .btn-spinner {
    display: none;
}

.btn-contact-submit.loading .btn-text,
.btn-contact-submit.loading .btn-icon {
    display: none;
}

.btn-contact-submit.loading .btn-spinner {
    display: block;
}

/* Success Message */
.form-success-message {
    display: none;
    text-align: center;
    padding: 40px;
}

.success-icon {
    margin-bottom: 24px;
}

.success-icon svg {
    width: 80px;
    height: 80px;
}

.success-title {
    color: var(--text-primary);
    font-family: 'Janna LT', 'Tajawal', sans-serif;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
}

.success-text {
    color: var(--text-tertiary);
    font-family: 'Janna LT', 'Tajawal', sans-serif;
    font-size: 16px;
    margin-bottom: 32px;
}

.btn-send-another {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background: transparent;
    border: 2px solid var(--border-primary);
    border-radius: 10px;
    color: var(--text-secondary);
    font-family: 'Janna LT', 'Tajawal', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-send-another:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--bg-hover);
}

/* FAQ Section */
.faq-section {
    padding: var(--landing-section-padding) 64px;
    background: var(--bg-primary);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-secondary);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.faq-item.active {
    border-color: var(--color-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 24px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: 'Janna LT', 'Tajawal', sans-serif;
    font-size: 18px;
    font-weight: 600;
    text-align: right;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: var(--color-primary);
}

.faq-icon {
    flex-shrink: 0;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.faq-answer {
    height: 0;
    opacity: 0;
    overflow: hidden;
}

.faq-answer p {
    padding: 0 24px 24px;
    color: var(--text-tertiary);
    font-family: 'Janna LT', 'Tajawal', sans-serif;
    font-size: 16px;
    line-height: 1.8;
}

/* Active nav link styling */
.nav-link.active {
    color: var(--color-primary);
}

.nav-link.active::after {
    width: 100%;
}

/* ==================== CONTACT PAGE RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .contact-hero {
        padding: 140px 32px 60px;
    }

    .contact-hero-title {
        font-size: 44px;
    }

    .contact-section {
        padding: 60px 32px 80px;
    }

    .contact-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .faq-section {
        padding: 80px 32px;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 120px 24px 48px;
        min-height: auto;
    }

    .contact-hero-title {
        font-size: 36px;
    }

    .contact-hero-description {
        font-size: 16px;
    }

    .contact-section {
        padding: 48px 24px 64px;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .contact-form-wrapper {
        padding: 32px 24px;
    }

    .contact-form-title {
        font-size: 26px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .faq-section {
        padding: 60px 24px;
    }

    .faq-question {
        font-size: 16px;
        padding: 20px;
    }

    .faq-answer p {
        padding: 0 20px 20px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .contact-hero {
        padding: 100px 16px 40px;
    }

    .contact-hero-title {
        font-size: 28px;
    }

    .contact-section {
        padding: 32px 16px 48px;
    }

    .contact-form-wrapper {
        padding: 24px 16px;
    }

    .contact-form-title {
        font-size: 22px;
    }

    .btn-contact-submit {
        padding: 16px 24px;
        font-size: 16px;
    }

    .faq-section {
        padding: 48px 16px;
    }
}

/* ==================== NAV PROFILE DROPDOWN ==================== */
/* Copied from pricing.css and adapted for landing page dark theme default */

.nav-profile-dropdown {
    position: relative;
    margin-inline-start: 1rem;
}

.nav-profile-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 0.35rem 1rem 0.35rem 0.35rem;
    /* Adjusted padding for pill shape */
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-profile-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.nav-profile-name {
    font-weight: 500;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: 'Janna LT', 'Tajawal', sans-serif;
    font-size: 14px;
}

/* Rounded Avatar */
.nav-profile-btn img {
    border-radius: 50%;
    width: 32px;
    height: 32px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-profile-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 200px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-secondary);
    border-radius: 16px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

/* Light mode overrides for dropdown */
[data-theme="light"] .nav-profile-menu {
    background: #FFFFFF;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.05);
}

.nav-profile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-profile-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s ease;
    text-align: right;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    font-family: 'Janna LT', 'Tajawal', sans-serif;
    font-weight: 500;
}

.nav-profile-item:hover {
    background: rgba(30, 168, 150, 0.1);
    color: var(--color-primary);
}

/* Red Logout Button */
.nav-profile-item.logout-btn {
    margin-top: 4px;
    border-top: 1px solid var(--border-primary);
    border-radius: 0 0 12px 12px;
    color: #F87171;
    /* Red-400 */
}

.nav-profile-item.logout-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
    /* Red-500 */
}

/* Hide on mobile if needed, though we handle mobile separately */
@media (max-width: 768px) {
    .nav-profile-dropdown {
        display: none;
    }
}