/* ===== CSS Variables - High-Contrast Mystical Design System v1.4.0 ===== */
:root {
    --color-primary: #1a0f2e;
    --color-secondary: #2d1b4e;
    --color-accent-gold: #FFD700;
    --color-accent-cyan: #00CED1;
    --color-purple: #9370DB;
    --color-indigo: #4B0082;

    /* High-Contrast Text Levels */
    --color-text-light: rgba(255, 255, 255, 0.98);
    --color-text-body: rgba(255, 255, 255, 0.92);
    --color-text-ivory: #FAF9F6;
    --color-text-muted: rgba(255, 255, 255, 0.85);
    --color-overlay: rgba(26, 15, 46, 0.85);

    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;

    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Glass Card System - Enhanced */
    --glass-bg: rgba(15, 8, 30, 0.8);
    --glass-bg-strong: rgba(15, 8, 30, 0.85);
    --glass-border: rgba(255, 215, 0, 0.15);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    --glass-shadow-hover: 0 12px 48px rgba(0, 0, 0, 0.6);

    /* Section Overlays - Strengthened */
    --overlay-light: rgba(26, 15, 46, 0.7);
    --overlay-medium: rgba(26, 15, 46, 0.8);
    --overlay-strong: rgba(26, 15, 46, 0.88);

    /* Typography Enhancements */
    --text-shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.6);
    --text-shadow-medium: 0 3px 12px rgba(0, 0, 0, 0.7);
    --text-shadow-strong: 0 4px 16px rgba(0, 0, 0, 0.8);
    --text-glow-gold: 0 0 20px rgba(255, 215, 0, 0.3);

    /* Hero Content Separation - NEW */
    --hero-content-overlay: radial-gradient(ellipse 80% 60% at center, rgba(26, 15, 46, 0.92) 0%, transparent 100%);
    --hero-vignette: radial-gradient(ellipse at center, transparent 30%, rgba(0, 0, 0, 0.4) 100%);

    /* Accessibility Focus States - NEW */
    --focus-ring: 0 0 0 3px rgba(255, 215, 0, 0.6);
    --focus-ring-offset: 0 0 0 1px rgba(26, 15, 46, 1), 0 0 0 4px rgba(255, 215, 0, 0.6);

    /* Enhanced Text Readability - NEW */
    --hero-text-bright: rgba(255, 255, 255, 0.99);
    --hero-headline-glow: 0 0 30px rgba(255, 215, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.8);
    --body-text-strong: rgba(255, 255, 255, 0.93);
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: url('https://res.cloudinary.com/dplctxlmw/image/upload/v1769714069/Golden_Horizon_WEB_1920x1080_hi2hxd.webp') no-repeat center center fixed;
    background-size: cover;
    color: var(--color-text-body);
    line-height: 1.8;
    overflow-x: hidden;
}

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

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-smooth);
    background: rgba(26, 15, 46, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.navbar.scrolled {
    background: rgba(26, 15, 46, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    padding: 15px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-accent-gold);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    color: var(--color-text-light);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
    position: relative;
    text-shadow: var(--text-shadow-soft);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent-gold);
    transition: var(--transition-smooth);
}

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

.nav-links a:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
    border-radius: 4px;
}

.cta-button {
    background: linear-gradient(135deg, var(--color-accent-gold) 0%, #FFA500 100%);
    color: var(--color-primary);
    padding: 12px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.5);
}

.cta-button:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring-offset), 0 6px 25px rgba(255, 215, 0, 0.5);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at center, rgba(26, 15, 46, 0.75) 0%, rgba(26, 15, 46, 0.92) 100%),
        linear-gradient(180deg, rgba(26, 15, 46, 0.88) 0%, rgba(26, 15, 46, 0.8) 50%, rgba(26, 15, 46, 0.92) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 60px 20px 40px;
}

.hero-content::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 100%;
    background: var(--hero-content-overlay);
    z-index: -1;
    pointer-events: none;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 700;
    margin-bottom: 24px;
    color: #FFD700;
    animation: fadeInUp 1s ease-out;
    text-shadow:
        0 0 20px rgba(255, 215, 0, 0.8),
        0 0 40px rgba(255, 215, 0, 0.6),
        0 0 60px rgba(255, 215, 0, 0.4),
        0 4px 16px rgba(0, 0, 0, 0.8);
    filter: brightness(1.2);
}

.hero-subtitle {
    font-size: clamp(20px, 3vw, 26px);
    color: var(--hero-text-bright);
    max-width: 700px;
    margin: 0 auto 48px;
    line-height: 1.7;
    text-shadow: var(--text-shadow-strong);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.app-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.app-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: var(--color-text-light);
    text-decoration: none;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.app-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--color-accent-gold);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.app-button:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring), 0 8px 25px rgba(0, 0, 0, 0.3);
}

.app-button div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.app-button .small {
    font-size: 12px;
    opacity: 0.8;
}

.app-button .large {
    font-size: 18px;
    font-weight: 600;
}

/* ===== Section Styles ===== */
section {
    padding: 100px 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 5vw, 48px);
    text-align: center;
    margin-bottom: 60px;
    color: var(--color-text-ivory);
    text-shadow: var(--text-shadow-medium), var(--text-glow-gold);
}

.section-subtitle {
    text-align: center;
    font-size: 20px;
    color: var(--color-text-muted);
    margin-top: -40px;
    margin-bottom: 60px;
    text-shadow: var(--text-shadow-medium);
}

/* ===== How It Works ===== */
.how-it-works {
    position: relative;
    background: linear-gradient(180deg, transparent 0%, rgba(45, 27, 78, 0.3) 100%);
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay-medium);
    pointer-events: none;
    z-index: 0;
}

.how-it-works .container {
    position: relative;
    z-index: 1;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.step {
    text-align: center;
    padding: 40px 32px;
    background: var(--glass-bg-strong);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
}

.step:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: var(--glass-shadow-hover);
}

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

.step h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    margin-bottom: 16px;
    color: #ffffff;
    text-shadow: var(--text-shadow-medium);
}

.step p {
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.9;
    font-size: 16px;
}

/* Step Image Panel */
.step-image-panel {
    padding: 0;
    overflow: visible;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.step-image-panel:hover {
    transform: scale(1.3) !important;
    box-shadow: 0 40px 120px rgba(255, 215, 0, 0.3);
    z-index: 10 !important;
}

.step-panel-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    pointer-events: none;
}

/* ===== Features ===== */
.features {
    position: relative;
    background: linear-gradient(180deg, rgba(45, 27, 78, 0.2) 0%, transparent 50%, rgba(45, 27, 78, 0.2) 100%);
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay-medium);
    pointer-events: none;
    z-index: 0;
}

.features::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('assets/papyrus-astrology.png');
    background-size: 800px;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.04;
    pointer-events: none;
    z-index: 1;
}

.features .container {
    position: relative;
    z-index: 2;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.feature-row.reverse {
    direction: rtl;
}

.feature-row.reverse>* {
    direction: ltr;
}

.feature-content h3 {
    font-family: var(--font-heading);
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--color-text-ivory);
    text-shadow: var(--text-shadow-medium), var(--text-glow-gold);
}

.feature-content p {
    font-size: 18px;
    color: var(--body-text-strong);
    margin-bottom: 24px;
    line-height: 1.9;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 12px 0;
    padding-left: 32px;
    position: relative;
    color: rgba(255, 255, 255, 0.96);
    font-size: 17px;
}

.feature-list li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--color-accent-cyan);
    font-size: 20px;
}

.feature-image {
    position: relative;
    overflow: visible;
}

.feature-image img {
    width: 100%;
    max-width: 550px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-image img:hover {
    transform: scale(1.3);
    box-shadow: 0 40px 120px rgba(255, 215, 0, 0.3);
    z-index: 10;
}

/* ===== Showcase ===== */
.showcase {
    background: linear-gradient(180deg, rgba(45, 27, 78, 0.3) 0%, transparent 100%);
}

.showcase-phones {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: -40px;
    position: relative;
    min-height: 600px;
    overflow: visible;
}

.phone {
    width: 150%;
    max-width: 676px;
    height: auto;
    border-radius: 30px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.phone:hover {
    transform: scale(1.3) !important;
    box-shadow: 0 40px 120px rgba(255, 215, 0, 0.3);
    z-index: 10 !important;
}

.phone-1 {
    transform: rotate(-5deg) translateX(40px);
    z-index: 1;
}

.phone-2 {
    z-index: 3;
    transform: scale(1.1);
}

.phone-3 {
    transform: rotate(5deg) translateX(-40px);
    z-index: 2;
}

/* ===== Testimonials ===== */
.testimonials {
    position: relative;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay-medium);
    pointer-events: none;
    z-index: 0;
}

.testimonials .container {
    position: relative;
    z-index: 1;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.testimonial-card {
    background: var(--glass-bg-strong);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
}

.testimonial-card:hover {
    border-color: rgba(0, 206, 209, 0.4);
    transform: translateY(-8px);
    box-shadow: var(--glass-shadow-hover);
}

.stars {
    color: var(--color-accent-gold);
    font-size: 24px;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 17px;
    line-height: 2;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 24px;
    font-style: normal;
}

.testimonial-author {
    color: var(--color-accent-cyan);
    font-weight: 600;
    padding-top: 16px;
    border-top: 2px solid rgba(255, 215, 0, 0.2);
    margin-top: 8px;
}

/* ===== FAQ ===== */
.faq {
    position: relative;
    background: linear-gradient(180deg, transparent 0%, rgba(45, 27, 78, 0.3) 100%);
}

.faq::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay-light);
    pointer-events: none;
    z-index: 0;
}

.faq .container {
    position: relative;
    z-index: 1;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    background: var(--glass-bg);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    transition: var(--transition-smooth);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.faq-item:hover {
    border-color: var(--color-accent-gold);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

.faq-question {
    width: 100%;
    padding: 24px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
    text-shadow: var(--text-shadow-soft);
}

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

.faq-question:focus-visible {
    outline: none;
    box-shadow: inset var(--focus-ring);
    border-radius: 8px;
}

.faq-icon {
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 24px 24px;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.9;
    font-size: 16px;
}

/* ===== Knowledge Section ===== */
.knowledge {
    position: relative;
    background: linear-gradient(180deg, rgba(45, 27, 78, 0.3) 0%, transparent 100%);
}

.knowledge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay-medium);
    pointer-events: none;
    z-index: 0;
}

.knowledge .container {
    position: relative;
    z-index: 1;
}

.knowledge-image-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    background: var(--glass-bg-strong);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: zoom-in;
    position: relative;
}

.knowledge-image-container:hover {
    transform: scale(1.5);
    box-shadow: 0 30px 100px rgba(255, 215, 0, 0.4);
    border-color: rgba(255, 215, 0, 0.5);
    z-index: 100;
}

.knowledge-image {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

/* ===== History of Palmistry Section ===== */
.history {
    padding: 120px 0;
    background: rgba(20, 10, 40, 0.9);
    position: relative;
    overflow: hidden;
}

.history::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay-medium);
    pointer-events: none;
    z-index: 0;
}

.history .container {
    position: relative;
    z-index: 1;
}

.history-content {
    max-width: 900px;
    margin: 0 auto;
}

.history-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 60px;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
}

.history-timeline {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 60px;
}

.timeline-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    padding: 30px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.timeline-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 215, 0, 0.4);
    transform: translateX(10px);
}

.timeline-item h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: #FFD700;
    margin-bottom: 15px;
}

.timeline-item p,
.timeline-item div {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
}

.timeline-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

.timeline-list li {
    margin-bottom: 15px;
    padding-left: 0;
}

.timeline-list li:last-child {
    margin-bottom: 0;
}

.timeline-list li strong {
    font-family: 'Inter', sans-serif;
    color: #FFD700;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.timeline-list li span {
    display: block;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
}

.history-insights {
    background: rgba(255, 215, 0, 0.05);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 40px;
}

.history-insights h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    color: #FFD700;
    margin-bottom: 25px;
    text-align: center;
}

.insights-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.insights-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.insights-list li::before {
    content: "✦";
    position: absolute;
    left: 0;
    color: #FFD700;
    font-size: 1.2rem;
}

.history-disclaimer {
    background: rgba(255, 255, 255, 0.02);
    border-left: 4px solid rgba(255, 215, 0, 0.4);
    padding: 25px 30px;
    border-radius: 8px;
    font-style: italic;
}

.history-disclaimer h4 {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    color: #FFD700;
    margin-bottom: 12px;
}

.history-disclaimer p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
}

/* ===== Footer ===== */
.footer {
    background: linear-gradient(180deg, rgba(45, 27, 78, 0.5) 0%, var(--color-primary) 100%);
    padding: 80px 0 40px;
}

.footer-content {
    text-align: center;
    margin-bottom: 60px;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: 16px;
    color: var(--color-accent-gold);
    text-shadow: var(--text-shadow-medium), var(--text-glow-gold);
}

.footer-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 40px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

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

.social-links a {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    transition: var(--transition-smooth);
}

.social-links a:hover {
    background: var(--color-accent-gold);
    color: var(--color-primary);
    transform: translateY(-3px);
}

.legal-links {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

.legal-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
}

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

.copyright {
    color: var(--color-text-muted);
    font-size: 14px;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .feature-row,
    .feature-row.reverse {
        grid-template-columns: 1fr;
        gap: 40px;
        direction: ltr;
    }

    .feature-image {
        text-align: center;
    }

    .showcase-phones {
        flex-direction: column;
        gap: 30px;
        min-height: auto;
    }

    .phone-1,
    .phone-2,
    .phone-3 {
        transform: none !important;
        width: 350px;
    }

    .app-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .app-button {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    section {
        padding: 60px 0;
    }

    .section-title {
        margin-bottom: 40px;
    }

    .steps {
        grid-template-columns: 1fr;
    }
}

/* ===== Video Demo Section ===== */
.video-demo {
    background: linear-gradient(180deg, rgba(45, 27, 78, 0.2) 0%, transparent 100%);
}

.video-thumbnail-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.video-thumbnail {
    position: relative;
    border-radius: 20px;
    overflow: visible;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.video-thumbnail:hover {
    transform: scale(1.3) !important;
    box-shadow: 0 40px 120px rgba(255, 215, 0, 0.3);
    z-index: 10 !important;
}

.thumbnail-image {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
}

.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    pointer-events: none;
}

.play-icon {
    filter: drop-shadow(0 8px 20px rgba(255, 215, 0, 0.5));
    animation: pulse 2s ease-in-out infinite;
}

.tap-to-play {
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 16px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    text-shadow: var(--text-shadow-strong), var(--text-glow-gold);
}

/* ===== Video Modal ===== */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    animation: fadeIn 0.3s ease-out;
}

.video-modal.active {
    display: flex;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    cursor: default;
    animation: scaleIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-close-button {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--color-text-light);
    font-size: 40px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

.video-close-button:hover {
    background: var(--color-accent-gold);
    color: var(--color-primary);
    transform: rotate(90deg);
}

.video-modal-content video {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 40px 120px rgba(255, 215, 0, 0.4);
}

/* ===== Animations ===== */
@keyframes pulse {

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

    50% {
        transform: scale(1.1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== Responsive Adjustments for Video Modal ===== */
@media (max-width: 768px) {
    .video-close-button {
        top: -40px;
        width: 40px;
        height: 40px;
        font-size: 30px;
    }

    .video-modal-content {
        width: 95%;
    }
}

/* ===== Fixed Home Button ===== */
.home-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-accent-gold) 0%, #FFA500 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: var(--color-primary);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    z-index: 1500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px;
    opacity: 0;
    pointer-events: none;
}

.home-button:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.6);
}

.home-button svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

.home-button span {
    font-family: var(--font-heading);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.home-button:active {
    transform: translateY(-2px) scale(1.05);
}

@media (max-width: 768px) {
    .home-button {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .home-button svg {
        width: 18px;
        height: 18px;
    }

    .home-button span {
        font-size: 8px;
    }
}

/* ===== Language Switcher (Navbar) ===== */
.language-switcher {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    padding: 6px;
    border-radius: 50px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lang-btn {
    padding: 8px 12px;
    border-radius: 50px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: var(--font-body);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-btn svg {
    display: block;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}


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

.lang-btn.active {
    background: linear-gradient(135deg, var(--color-accent-gold) 0%, #FFA500 100%);
    color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.lang-btn:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

/* ===== Language Modal (First Visit) ===== */
.language-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 15, 46, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

.language-modal.active {
    display: flex;
}

.language-modal-content {
    background: var(--glass-bg-strong);
    border: 2px solid var(--glass-border);
    border-radius: 24px;
    padding: 60px 50px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    max-width: 500px;
    animation: scaleIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.language-modal-title {
    font-family: var(--font-heading);
    font-size: 32px;
    color: var(--color-accent-gold);
    margin-bottom: 16px;
    text-shadow: var(--text-glow-gold);
}

.language-modal-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
}

.language-modal-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.language-modal-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 16px;
    cursor: pointer;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-width: 160px;
}

.language-modal-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-accent-gold);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(255, 215, 0, 0.3);
}

.language-modal-btn:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring-offset);
}

.flag-icon {
    font-size: 48px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flag-icon svg {
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}


.lang-label {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text-light);
    font-family: var(--font-body);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Language Modal */
@media (max-width: 768px) {
    .language-switcher {
        gap: 4px;
        padding: 4px;
    }

    .lang-btn {
        padding: 6px 14px;
        font-size: 12px;
    }

    .language-modal-content {
        margin: 20px;
        padding: 40px 30px;
    }

    .language-modal-title {
        font-size: 24px;
    }

    .language-modal-subtitle {
        font-size: 16px;
    }

    .language-modal-buttons {
        flex-direction: column;
        gap: 16px;
    }

    .language-modal-btn {
        width: 100%;
        padding: 24px 30px;
    }
}