/* 
   Anime Lingo - Stylesheet
   Design Language: Premium Glassmorphism & Cyberpunk Dark Neon
*/

:root {
    --bg-dark: #07020E;
    --bg-card: rgba(20, 10, 35, 0.4);
    --border-glass: rgba(255, 255, 255, 0.08);
    
    --color-primary: #BB86FC;
    --color-secondary: #00D4AA;
    --color-pink: #FF4081;
    --color-orange: #FF6B35;
    
    --text-primary: #FFFFFF;
    --text-secondary: #B3ADC2;
    --text-muted: #6B637B;
    
    --gradient-hero: linear-gradient(135deg, #18082B 0%, #07020E 100%);
    --gradient-accent: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    --gradient-pink: linear-gradient(135deg, var(--color-pink) 0%, var(--color-orange) 100%);
    --gradient-teal: linear-gradient(135deg, #00F2FE 0%, #4FACFE 100%);
    
    --font-ar: 'Cairo', sans-serif;
    --font-en: 'Outfit', sans-serif;
}

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

/* Bilingual visibility and layout logic */
body.lang-ar .en { display: none !important; }
body.lang-en .ar { display: none !important; }

body.lang-ar {
    direction: rtl;
    font-family: var(--font-ar);
}

body.lang-en {
    direction: ltr;
    font-family: var(--font-en);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Language switch button styling */
.lang-switch-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.lang-switch-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--color-secondary);
    transform: translateY(-1px);
}

.lang-switch-btn i {
    font-size: 0.95rem;
    color: var(--color-secondary);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography Helpers */
h1, h2, h3, h4 {
    font-weight: 800;
    letter-spacing: -0.5px;
}

.gradient-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.highlight {
    color: var(--color-secondary);
}

.text-success {
    color: var(--color-secondary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 12px;
    font-family: var(--font-ar);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-accent);
    color: #07020E;
    box-shadow: 0 4px 20px rgba(0, 212, 170, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 212, 170, 0.5);
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-secondary);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 40px;
    border-radius: 16px;
    font-size: 1.1rem;
}

.btn-large small {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    opacity: 0.8;
    margin-top: 2px;
    font-family: var(--font-en);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(187, 134, 252, 0.1);
    border: 1px solid rgba(187, 134, 252, 0.2);
    color: var(--color-primary);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.badge-success {
    background: rgba(0, 212, 170, 0.1);
    border-color: rgba(0, 212, 170, 0.2);
    color: var(--color-secondary);
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(7, 2, 14, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    transition: all 0.3s ease;
}

.header-container {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.25);
    object-fit: cover;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-en);
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--color-secondary);
}

/* Hero Section */
.hero {
    padding-top: 180px;
    padding-bottom: 100px;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(187, 134, 252, 0.15) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -200px;
    left: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 212, 170, 0.12) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 640px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    width: 100%;
}

.hero-meta {
    display: flex;
    gap: 24px;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

.hero-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Phone Mockup */
.hero-graphic {
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-icon-showcase {
    position: relative;
    width: 240px;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 4s ease-in-out infinite;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.app-icon-showcase:hover {
    transform: scale(1.08);
}

.icon-glow {
    position: absolute;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(0, 212, 170, 0.35) 0%, transparent 65%);
    z-index: 1;
    filter: blur(30px);
    pointer-events: none;
}

.app-main-icon {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    border-radius: 24%;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Features Section */
.features {
    padding: 100px 0;
    position: relative;
    background-color: var(--bg-dark);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    padding: 36px;
    border-radius: 24px;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 35px rgba(7, 2, 14, 0.5);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 24px;
}

.icon-purple {
    background: rgba(187, 134, 252, 0.1);
    color: var(--color-primary);
    border: 1px solid rgba(187, 134, 252, 0.2);
}

.icon-teal {
    background: rgba(0, 212, 170, 0.1);
    color: var(--color-secondary);
    border: 1px solid rgba(0, 212, 170, 0.2);
}

.icon-pink {
    background: rgba(255, 64, 129, 0.1);
    color: var(--color-pink);
    border: 1px solid rgba(255, 64, 129, 0.2);
}

.icon-orange {
    background: rgba(255, 107, 53, 0.1);
    color: var(--color-orange);
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Security Section */
.security {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0F051C 100%);
    position: relative;
}

.security-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
}

.security-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.security-content > p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.security-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.security-list li {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.sec-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(0, 212, 170, 0.08);
    border: 1px solid rgba(0, 212, 170, 0.15);
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.security-list li strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.security-list li p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.security-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.shield-wrapper {
    position: relative;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(0, 212, 170, 0.1) 0%, transparent 70%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.shield-icon {
    font-size: 7rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 10px 25px rgba(0, 212, 170, 0.3));
    z-index: 2;
    animation: float 4s ease-in-out infinite;
}

.shield-pulse {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 2px solid rgba(0, 212, 170, 0.3);
    z-index: 1;
    animation: pulse 3s infinite;
}

/* Download Banner */
.download-banner {
    padding: 100px 0;
    background: var(--gradient-hero);
    position: relative;
}

.download-container {
    text-align: center;
    max-width: 900px;
}

.download-content h2 {
    font-size: 3rem;
    margin-bottom: 16px;
}

.download-subtitle {
    color: var(--text-secondary);
    font-size: 1.25rem;
    margin-bottom: 48px;
}

.download-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 24px;
}

.download-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.download-card.recommended {
    border-color: rgba(0, 212, 170, 0.35);
    background: linear-gradient(180deg, rgba(20, 10, 35, 0.4) 0%, rgba(0, 212, 170, 0.05) 100%);
    box-shadow: 0 4px 20px rgba(0, 212, 170, 0.1);
}

.download-card.recommended:hover {
    border-color: var(--color-secondary);
    box-shadow: 0 15px 35px rgba(0, 212, 170, 0.2);
}

.recommend-badge {
    position: absolute;
    top: -15px;
    background: var(--gradient-accent);
    color: #07020E;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: 100px;
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.download-icon {
    font-size: 2.2rem;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.download-card.recommended .download-icon {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.download-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.card-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    min-height: 54px;
}

.download-card .btn {
    width: 100%;
}

/* Footer */
.footer {
    background-color: #040109;
    padding: 40px 0;
    border-top: 1px solid var(--border-glass);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--color-primary);
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(0.85);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

/* Media Queries */
@media (max-width: 991px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .security-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .security-visual {
        order: -1;
    }
}

@media (max-width: 576px) {
    .header-container {
        height: 70px;
    }
    
    .nav {
        display: none; /* Can toggle on mobile via js later if needed */
    }
    
    .hero {
        padding-top: 140px;
        padding-bottom: 60px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn {
        width: 100%;
    }
    
    .features {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .security {
        padding: 60px 0;
    }
    
    .security-content h2 {
        font-size: 2rem;
    }
    
    .download-banner {
        padding: 60px 0;
    }
    
    .download-content h2 {
        font-size: 2.2rem;
    }

    .download-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .card-desc {
        min-height: auto;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}
