:root {
    --bg-color: #000000;
    --surface-1: rgba(255, 255, 255, 0.03);
    --surface-2: rgba(255, 255, 255, 0.08);
    --border-color: rgba(255, 255, 255, 0.1);
    --primary: #F5C518;
    --amber: #E8A000;
    --text-primary: #F5F5F7;
    --text-secondary: #86868B;
    --text-muted: #424245;
    --red-accent: #FF3B30;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Apple-like font stack */
    font-family: -apple-system, BlinkMacSystemFont, "Outfit", "SF Pro Display", "Segoe UI", sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
}

/* Font Support for Farsi/Dari */
html[lang="fa"] body {
    font-family: Tahoma, Arial, sans-serif;
    letter-spacing: normal;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Typography */
h1, h2, h3 {
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

h2 { font-size: clamp(2.5rem, 6vw, 4rem); margin-bottom: 1.5rem; }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); margin-bottom: 0.5rem; font-weight: 600; letter-spacing: -0.02em; }

p { font-weight: 400; color: var(--text-secondary); margin-bottom: 1rem; font-size: 1.125rem; }

.container {
    max-width: 1000px; /* Tighter container for Apple feel */
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 120px 0;
    position: relative;
    z-index: 10;
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s var(--ease), transform 1s var(--ease);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Glass Cards (Hyper UI) */
.glass-card {
    background: var(--surface-1);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 40px;
    transition: transform 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease);
}

.glass-card:hover {
    background: var(--surface-2);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 40px; /* Pill shape */
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    border: 1px solid transparent;
    letter-spacing: -0.01em;
}

.btn-primary {
    background-color: var(--text-primary);
    color: var(--bg-color);
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background-color: var(--surface-2);
    border-color: rgba(255,255,255,0.3);
}

/* Special Yellow CTA */
.btn-accent {
    background-color: var(--primary);
    color: #000;
}
.btn-accent:hover {
    background-color: var(--amber);
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(245, 197, 24, 0.2);
}

/* Language Switcher */
.lang-switch {
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
    transition: all 0.3s var(--ease);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    appearance: none;
    -webkit-appearance: none;
}

.lang-switch:hover {
    border-color: rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
}

.lang-switch option {
    background: #111;
    color: var(--text-primary);
}

/* 1. Sticky Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: all 0.4s var(--ease);
    padding: 24px 0;
    border-bottom: 1px solid transparent;
}

nav.scrolled {
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
}

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

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.02em;
}

.logo svg {
    width: 24px;
    height: 24px;
    fill: var(--primary);
}

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

.nav-phone {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    background: none;
    border: none;
    font-family: inherit;
    cursor: pointer;
    padding: 0;
}

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

.nav-cta {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
    transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease), transform 0.4s var(--ease);
    padding: 8px 20px;
    font-size: 0.9rem;
}

nav.scrolled:not(.cta-hidden) .nav-cta {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

/* 2. Hero - Center Aligned Hyper UI */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    position: relative;
}

/* Subtle glowing orb in background */
.hero::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, rgba(245, 197, 24, 0.05) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

.hero-content {
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gradient-text {
    background: linear-gradient(180deg, #FFFFFF 0%, #A0A0A5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: clamp(3.5rem, 10vw, 7rem);
    margin-bottom: 1.5rem;
    line-height: 1.05;
}

.hero .subline {
    font-size: clamp(1.2rem, 3vw, 1.75rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 650px;
    font-weight: 400;
    letter-spacing: 0;
}

.hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 30px;
    background-color: var(--surface-1);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2.5rem;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.badge::before {
    content: '';
    display: inline-block;
    width: 8px; height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    margin-inline-end: 8px;
    box-shadow: 0 0 8px var(--primary);
}

/* 3. Trust Strip */
.trust-strip {
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(90deg, transparent, var(--surface-1), transparent);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.trust-value {
    color: var(--text-primary);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 4px;
    letter-spacing: -0.04em;
}

.trust-label {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.trust-desc {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 0;
}

/* 4. Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 64px;
}

.service-card {
    padding: 48px;
}

.service-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(245, 197, 24, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border: 1px solid rgba(245, 197, 24, 0.2);
}

.service-icon {
    width: 28px;
    height: 28px;
    stroke: var(--primary);
}

/* 5. Showcase */
.showcase {
    text-align: center;
}

.pills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 40px;
}

.pill {
    background-color: var(--surface-1);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 0.95rem;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

/* 6. About You */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    width: 100%;
    aspect-ratio: 4/5;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-bullets {
    margin-top: 32px;
}

.about-bullets li {
    position: relative;
    padding-inline-start: 32px;
    margin-bottom: 16px;
    color: var(--text-primary);
    font-size: 1.125rem;
}

.about-bullets li::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 10px;
    width: 8px; height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
}

/* 7. Testimonials */
.test-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 64px;
}

.test-card {
    padding: 40px 32px;
}

.stars {
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 24px;
    letter-spacing: 4px;
}

.test-quote {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.test-author {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* 8. FAQ */
.faq-accordion {
    max-width: 800px;
    margin: 64px auto 0;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-item:first-child {
    border-top: 1px solid var(--border-color);
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 32px 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    letter-spacing: -0.01em;
}

html[dir="rtl"] .faq-question {
    text-align: right;
}

.faq-icon {
    width: 24px; height: 24px;
    position: relative;
}

.faq-icon::before, .faq-icon::after {
    content: '';
    position: absolute;
    background-color: var(--text-secondary);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.4s var(--ease);
}
.faq-icon::before { width: 16px; height: 2px; }
.faq-icon::after { width: 2px; height: 16px; }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease), opacity 0.4s var(--ease);
    opacity: 0;
    color: var(--text-secondary);
}

.faq-item.active .faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 32px;
    opacity: 1;
}

/* 9. Contact CTA & Headlights */
.cta-section {
    text-align: center;
    padding: 120px 0 48px;
    background: radial-gradient(ellipse at bottom, var(--surface-1) 0%, transparent 70%);
}

.headlights-wrapper {
    margin: 48px auto 32px;
    max-width: 720px;
    position: relative;
    display: flex;
    justify-content: center;
}

.headlights-img {
    width: 100%;
    height: auto;
    /* Aura effect blending into the dark background */
    -webkit-mask-image: radial-gradient(ellipse, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 75%);
    mask-image: radial-gradient(ellipse, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 75%);
    transition: transform 1.5s var(--ease);
    filter: drop-shadow(0 0 40px rgba(245, 197, 24, 0.15));
}

.headlights-wrapper.active .headlights-img {
    transform: scale(1.03); /* Subtle zoom in when it reveals */
}

.phone-huge {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    background: linear-gradient(180deg, #FFFFFF 0%, #A0A0A5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 32px 0;
    display: block;
    letter-spacing: -0.04em;
}

.cta-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 8px;
}

/* 10. Footer */
footer {
    padding: 48px 24px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.8rem;
}

.footer-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.footer-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px 0;
}

.footer-meta p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.8rem;
}

.footer-meta p:not(:last-child)::after {
    content: "·";
    margin: 0 10px;
    color: var(--text-muted);
    opacity: 0.5;
}

.footer-copy {
    margin: 8px 0 0;
    color: var(--text-muted);
    font-size: 0.8rem;
}

footer strong {
    color: var(--text-secondary);
    font-weight: 600;
}

/* Mobile Sticky Bar */
.mobile-sticky-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 12px 16px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 100;
    border-top: 1px solid var(--border-color);
    gap: 12px;
    box-sizing: border-box;
}

.mobile-sticky-bar .btn {
    flex: 1;
    min-height: 48px;
    padding: 12px 16px;
    font-size: 1rem;
}

/* Action sheets (email + call) */
.action-sheet {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), visibility 0.25s var(--ease);
}

.action-sheet.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.action-sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.action-sheet-panel {
    position: relative;
    width: 100%;
    max-width: 400px;
    background: #111;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 28px 24px 24px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
    transform: translateY(24px);
    transition: transform 0.3s var(--ease);
    text-align: center;
}

.action-sheet.open .action-sheet-panel {
    transform: translateY(0);
}

.action-sheet-panel h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.action-sheet-value {
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 24px;
    word-break: break-all;
}

.action-sheet-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-sheet-actions .btn {
    width: 100%;
}

.action-sheet-close {
    margin-top: 16px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font: inherit;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 8px;
}

.action-sheet-close:hover {
    color: var(--text-primary);
}

button.phone-huge,
a.phone-huge {
    background: none;
    border: none;
    cursor: pointer;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

@media (min-width: 769px) {
    .action-sheet {
        align-items: center;
    }

    .action-sheet-panel {
        transform: translateY(12px) scale(0.98);
    }

    .action-sheet.open .action-sheet-panel {
        transform: translateY(0) scale(1);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
    .test-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { gap: 40px; }
}

@media (max-width: 768px) {
    /* Base */
    body {
        padding-bottom: calc(80px + env(safe-area-inset-bottom));
        overflow-x: hidden;
    }

    .container {
        padding: 0 20px;
    }

    section {
        padding: 64px 0;
    }

    h2 {
        font-size: clamp(1.75rem, 7vw, 2.25rem);
        margin-bottom: 1rem;
    }

    h3 {
        font-size: 1.15rem;
    }

    p {
        font-size: 1rem;
    }

    .btn {
        min-height: 48px;
        padding: 12px 24px;
        font-size: 1rem;
    }

    /* Nav: logo + language only */
    nav {
        padding: 14px 0;
    }

    nav.scrolled {
        padding: 12px 0;
    }

    .logo {
        font-size: 1.1rem;
        gap: 8px;
    }

    .logo svg {
        width: 22px;
        height: 22px;
    }

    .nav-phone,
    .nav-cta {
        display: none !important;
    }

    .nav-actions {
        gap: 8px;
    }

    .lang-switch {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    /* Sticky Call / Email bar always on */
    .mobile-sticky-bar {
        display: flex;
    }

    /* Hero */
    .hero {
        min-height: auto;
        padding: 100px 0 48px;
        align-items: flex-start;
    }

    .hero::before {
        width: 120vw;
        height: 80vw;
    }

    .badge {
        font-size: 0.8rem;
        padding: 6px 12px;
        margin-bottom: 1.5rem;
    }

    .gradient-text {
        font-size: clamp(2.25rem, 10vw, 3rem);
        margin-bottom: 1rem;
    }

    .hero .subline {
        font-size: 1.05rem;
        margin-bottom: 2rem;
        line-height: 1.45;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    /* Trust */
    .trust-strip {
        padding: 40px 0;
    }

    .trust-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px 16px;
    }

    .trust-value {
        font-size: 1.75rem;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 36px;
    }

    .service-card,
    .glass-card {
        padding: 28px 24px;
    }

    .glass-card:hover {
        transform: none;
    }

    .service-icon-wrap {
        width: 48px;
        height: 48px;
        margin-bottom: 16px;
    }

    /* Showcase pills */
    .pills {
        gap: 8px;
        margin-top: 28px;
    }

    .pill {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-image {
        max-width: 320px;
        margin: 0 auto;
        aspect-ratio: 4/5;
    }

    .about-bullets li {
        font-size: 1rem;
        margin-bottom: 12px;
    }

    /* Testimonials */
    .test-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .test-card {
        padding: 28px 24px;
    }

    .test-quote {
        font-size: 1rem;
    }

    /* FAQ */
    .faq-question {
        font-size: 1.05rem;
        padding: 20px 0;
        gap: 16px;
    }

    .faq-item.active .faq-answer {
        padding-bottom: 20px;
    }

    /* Contact CTA */
    .cta-section {
        padding: 64px 0 40px;
    }

    .phone-huge {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
        margin: 20px 0;
    }

    .cta-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
        margin-bottom: 8px;
    }

    .cta-actions .btn {
        width: 100%;
        padding: 14px 24px !important;
        font-size: 1.05rem !important;
    }

    .headlights-wrapper {
        margin: 28px auto 0;
        max-width: 100%;
    }

    /* Footer */
    .footer-meta {
        flex-direction: column;
        gap: 4px;
    }

    .footer-meta p:not(:last-child)::after {
        content: none;
        margin: 0;
    }

    footer {
        padding: 36px 20px 24px;
    }

    /* Action sheets */
    .action-sheet {
        padding: 12px;
        padding-bottom: max(12px, env(safe-area-inset-bottom));
    }

    .action-sheet-panel {
        padding: 24px 20px 20px;
        border-radius: 20px;
    }

    .action-sheet-actions .btn {
        min-height: 48px;
    }

    .action-sheet-close {
        min-height: 44px;
        padding: 12px;
    }
}
