/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-black: #000000;
    --color-gold: #d4af37;
    --color-gold-light: rgba(212, 175, 55, 0.1);
    --color-gold-medium: rgba(212, 175, 55, 0.3);
    --color-gold-dark: rgba(212, 175, 55, 0.8);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
        Cantarell, sans-serif;
    background-color: var(--color-black);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Header and Navigation - Unified */
.site-header {
    position: sticky;
    top: 0;
    z-index: 5;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.35);
}

.site-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 1rem clamp(1.5rem, 5vw, 4rem);
    position: relative;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    padding-left: 1rem;
}

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

.brand__mark img {
    width: 50px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    padding: 0;
    margin: 0;
    justify-content: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links a {
    text-decoration: none;
    font-size: 0.95rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding-bottom: 0.3rem;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    color: var(--color-gold);
    border-color: var(--color-gold);
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: flex-end;
    padding-right: 1rem;
}

.btn-nav {
    padding: 0.5rem 1.25rem;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 4px;
    transition: var(--transition);
    border: 1px solid transparent;
    white-space: nowrap;
}

.btn-nav--signin {
    color: #ffffff;
    border-color: rgba(212, 175, 55, 0.35);
}

.btn-nav--signin:hover {
    color: var(--color-gold);
    border-color: var(--color-gold);
}

.btn-nav--signup {
    background-color: var(--color-gold);
    color: var(--color-black);
    border-color: var(--color-gold);
}

.btn-nav--signup:hover {
    background-color: transparent;
    color: var(--color-gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.btn-nav--logout {
    color: #ffffff;
    border-color: rgba(212, 175, 55, 0.35);
    background: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-nav--logout:hover {
    color: var(--color-gold);
    border-color: var(--color-gold);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    position: absolute;
    right: 1rem;
    z-index: 10;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--color-gold);
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 768px) {
    /* Mobile navigation handled by template.css */

    /* Hero section mobile fixes */
    .hero {
        min-height: 80vh;
        padding-top: 6rem; /* Account for sticky header */
        padding-bottom: 2rem;
        display: flex;
        align-items: center;
    }

    .hero-content {
        padding: 1rem 0;
        width: 100%;
    }

    .hero-logo-wrapper {
        margin-bottom: 1.5rem;
    }

    .hero-logo {
        width: 120px;
        max-width: 100%;
    }

    .hero-slogan {
        font-size: 1.5rem;
        letter-spacing: normal;
        margin-bottom: 1rem;
        line-height: 1.4;
    }

    .hero-description {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        padding: 0 2rem;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .btn {
        width: 100%;
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Section adjustments */
    section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 2rem;
        letter-spacing: normal;
        margin-bottom: 1rem;
    }

    .title-underline {
        width: 60px;
    }

    /* Container responsive */
    .container {
        padding: 0 1.5rem;
    }

    /* Features grid mobile */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .feature-card {
        padding: 2rem 1.5rem;
        margin: 0 auto;
        width: 100%;
        max-width: 400px;
    }

    /* Steps grid mobile */
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .step-card {
        padding: 2rem 1.5rem;
        margin: 0 auto;
        width: 100%;
        max-width: 400px;
    }

    /* About section mobile */
    .about-description {
        font-size: 1rem;
        padding: 0;
        line-height: 1.7;
        text-align: justify; /* Better reading for Arabic blocks */
    }

    /* CTA section mobile */
    .cta {
        padding: 4rem 0;
    }

    .cta-title {
        font-size: 1.75rem;
        letter-spacing: normal;
        padding: 0 1rem;
        line-height: 1.4;
        margin-bottom: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
        padding: 0 2rem;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    background: linear-gradient(135deg, var(--color-black) 0%, #1a1a1a 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(
            circle at 20% 50%,
            var(--color-gold-light) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 80% 80%,
            var(--color-gold-light) 0%,
            transparent 50%
        );
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0) translateX(0);
    }
    33% {
        transform: translateY(-20px) translateX(10px);
    }
    66% {
        transform: translateY(10px) translateX(-15px);
    }
}

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 1;
    position: relative;
}

.hero-logo-wrapper {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo {
    width: 180px;
    height: auto;
    max-width: 180px;
    filter: drop-shadow(0 0 25px var(--color-gold-dark));
    animation: pulseGlow 3s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%,
    100% {
        opacity: 0.9;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

.hero-slogan {
    font-size: 28px;
    color: var(--color-gold);
    margin-bottom: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    opacity: 0.9;
}

.hero-description {
    font-size: 18px;
    color: #cccccc;
    margin-bottom: 2.5rem;
    line-height: 1.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 4px;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-gold);
    color: var(--color-black);
    border-color: var(--color-gold);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-gold);
    border-color: var(--color-gold);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--color-gold-medium);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-gold);
    border-color: var(--color-gold);
}

.btn-secondary:hover {
    background-color: var(--color-gold);
    color: var(--color-black);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--color-gold-medium);
}

/* Section Styles */
section {
    padding: 80px 0;
    position: relative;
}

@media (max-width: 768px) {
    section {
        padding: 50px 0;
    }
}

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

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

@media (max-width: 768px) {
    .section-header {
        margin-bottom: 2.5rem;
    }
}

@media (max-width: 480px) {
    .section-header {
        margin-bottom: 2rem;
    }
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.title-underline {
    width: 100px;
    height: 3px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--color-gold),
        transparent
    );
    margin: 0 auto;
}

/* About Section */
.about {
    background-color: #0a0a0a;
}

.about-description {
    font-size: 18px;
    color: #cccccc;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* Features Section */
.features {
    background-color: var(--color-black);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background-color: #0a0a0a;
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--color-gold-medium);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-gold);
    box-shadow: 0 10px 30px var(--color-gold-medium);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 1rem;
    color: var(--color-gold);
}

.feature-icon i {
    filter: drop-shadow(0 0 10px var(--color-gold-medium));
}

.feature-title {
    font-size: 22px;
    color: var(--color-gold);
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.feature-description {
    color: #cccccc;
    line-height: 1.6;
}

/* How to Start Section */
.how-to-start {
    background-color: #0a0a0a;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step-card {
    background-color: var(--color-black);
    padding: 2.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--color-gold);
    transition: var(--transition);
}

.step-card:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px var(--color-gold-medium);
}

.step-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.step-title {
    font-size: 22px;
    color: var(--color-gold);
    margin-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.step-description {
    color: #cccccc;
    line-height: 1.6;
}

/* Call to Action Section */
.cta {
    background: linear-gradient(135deg, var(--color-black) 0%, #1a1a1a 100%);
    padding: 100px 0;
}

.cta-content {
    text-align: center;
}

.cta-title {
    font-size: 42px;
    color: var(--color-gold);
    margin-bottom: 2.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer - Unified */
.copyright {
    color: #888888;
    font-size: 14px;
}

/* Particles Canvas */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */

@media (max-width: 480px) {
    /* Hero section smaller screens */
    .hero {
        min-height: 70vh;
        padding: 0.5rem 0;
    }

    .hero-logo {
        width: 100px;
        max-width: 100px;
    }

    .hero-slogan {
        font-size: 18px;
        letter-spacing: 0.5px;
        margin-bottom: 0.75rem;
        padding: 0 0.5rem;
    }

    .hero-description {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }

    .hero-buttons {
        padding: 0 1rem;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.85rem;
        letter-spacing: 0.5px;
    }

    /* Sections padding */
    section {
        padding: 2.5rem 0;
    }

    .section-title {
        font-size: 24px;
        letter-spacing: 0.5px;
        padding: 0 0.5rem;
    }

    .container {
        padding: 0 0.75rem;
    }

    /* Cards adjustments */
    .feature-card,
    .step-card {
        padding: 1.5rem 1rem;
        max-width: 100%;
    }

    .feature-title,
    .step-title {
        font-size: 18px;
        margin-bottom: 0.75rem;
    }

    .feature-description,
    .step-description {
        font-size: 14px;
        line-height: 1.5;
    }

    .feature-icon {
        font-size: 36px;
        margin-bottom: 0.75rem;
    }

    .step-number {
        font-size: 36px;
        margin-bottom: 0.75rem;
    }

    /* About section */
    .about-description {
        font-size: 14px;
        padding: 0 1rem;
        line-height: 1.6;
    }

    /* CTA section */
    .cta {
        padding: 3rem 0;
    }

    .cta-title {
        font-size: 22px;
        letter-spacing: 0.5px;
        padding: 0 1rem;
    }

    .cta-buttons {
        padding: 0 1rem;
    }
}

@media (max-width: 320px) {
    /* Hero section very small screens */
    .hero {
        min-height: 60vh;
        padding: 0.25rem 0;
    }

    .hero-logo {
        width: 80px;
        max-width: 80px;
    }

    .hero-slogan {
        font-size: 16px;
        margin-bottom: 0.5rem;
        padding: 0 0.5rem;
    }

    .hero-description {
        font-size: 13px;
        margin-bottom: 1.25rem;
        padding: 0 0.75rem;
        line-height: 1.4;
    }

    .hero-buttons {
        padding: 0 0.75rem;
    }

    .btn {
        padding: 10px 16px;
        font-size: 0.8rem;
        letter-spacing: 0.25px;
    }

    /* Sections */
    section {
        padding: 2rem 0;
    }

    .section-title {
        font-size: 20px;
        padding: 0 0.5rem;
    }

    .container {
        padding: 0 0.5rem;
    }

    /* Cards very small */
    .feature-card,
    .step-card {
        padding: 1rem 0.75rem;
    }

    .feature-title,
    .step-title {
        font-size: 16px;
        margin-bottom: 0.5rem;
    }

    .feature-description,
    .step-description {
        font-size: 13px;
        line-height: 1.4;
    }

    .feature-icon {
        font-size: 32px;
        margin-bottom: 0.5rem;
    }

    .step-number {
        font-size: 32px;
        margin-bottom: 0.5rem;
    }

    /* About section very small */
    .about-description {
        font-size: 13px;
        padding: 0 0.75rem;
        line-height: 1.5;
    }

    /* CTA section very small */
    .cta {
        padding: 2.5rem 0;
    }

    .cta-title {
        font-size: 18px;
        padding: 0 0.75rem;
        margin-bottom: 1.5rem;
    }

    .cta-buttons {
        padding: 0 0.75rem;
    }
}
