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

:root {
    --primary-dark: #2C2435;
    --accent-gold: #A88B4F;
    --text-light: #E0E0E0;
    --text-gray: #B0B0B0;
    --white: #FFFFFF;
    --gradient-overlay: linear-gradient(135deg, rgba(44, 36, 53, 0.95) 0%, rgba(44, 36, 53, 0.85) 100%);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
    --hero-parallax-x: 0px;
    --hero-parallax-y: 0px;
    --hero-scroll-y: 0px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Cairo', sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--primary-dark);
    overflow-x: hidden;
}

body[dir="rtl"] {
    font-family: 'Cairo', 'Inter', sans-serif;
}

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

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--accent-gold);
    z-index: 1100;
    transition: width 0.2s ease-out;
    box-shadow: 0 0 10px rgba(168, 139, 79, 0.6);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(44, 36, 53, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

.navbar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(168, 139, 79, 0.12), transparent, rgba(168, 139, 79, 0.12));
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

body.scrolled .navbar {
    background: rgba(26, 21, 32, 0.98);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
    padding: 0.75rem 0;
}

body.scrolled .navbar::after {
    opacity: 1;
}

.nav-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1.5rem;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-self: center;
    justify-content: center;
}

.logo {
    height: 70px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-self: flex-start;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
    transform: scaleX(1);
}

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

.nav-links a:focus-visible {
    color: var(--accent-gold);
    outline: none;
}

.language-switcher {
    display: flex;
    gap: 0.5rem;
    background: rgba(168, 139, 79, 0.1);
    padding: 0.25rem;
    border-radius: 8px;
    justify-self: flex-end;
}

.lang-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    border-radius: 6px;
    transition: var(--transition);
    font-weight: 500;
}

.lang-btn.active {
    background: var(--accent-gold);
    color: var(--primary-dark);
}

.lang-btn:hover {
    background: rgba(168, 139, 79, 0.3);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    justify-self: flex-end;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    border-radius: 2px;
    transition: var(--transition);
}

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

.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
    transform: translate3d(calc(var(--hero-parallax-x) + 0px), calc(var(--hero-parallax-y) + var(--hero-scroll-y)), 0) scale(1.08);
    transition: transform 0.8s ease-out;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    filter: brightness(0.4);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 36, 53, 0.85) 0%, rgba(44, 36, 53, 0.75) 100%);
    z-index: 1;
    transform: translate3d(calc(var(--hero-parallax-x) * 0.6), calc(var(--hero-parallax-y) * 0.6 + var(--hero-scroll-y) * 0.7), 0);
    transition: transform 0.9s ease-out, background 0.5s ease;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(168, 139, 79, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(168, 139, 79, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    padding: 2rem 0;
}

.hero-content .hero-title,
.hero-content .hero-subtitle,
.hero-content .hero-subsubtitle,
.hero-content .hero-buttons {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.hero-content.ready .hero-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.hero-content.ready .hero-subtitle {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.hero-content.ready .hero-subsubtitle {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.hero-content.ready .hero-buttons {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}
.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-light) 0%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-gray);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.hero-subsubtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

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

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: var(--accent-gold);
    color: var(--primary-dark);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--accent-gold);
}

.btn-secondary:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.1rem;
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(168, 139, 79, 0.35);
}

.btn:active {
    transform: scale(0.98);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.btn-primary:hover {
    background: #B89A60;
    color: var(--primary-dark);
}

.btn-secondary:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
}

.btn-outline:hover {
    background: var(--text-light);
    color: var(--primary-dark);
    border-color: transparent;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    --scroll-indicator-x: -50%;
    transform: translateX(var(--scroll-indicator-x));
    text-align: center;
    color: var(--text-gray);
    font-size: 0.875rem;
    z-index: 3;
    animation: bounce 2s infinite;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    text-decoration: none;
}

.scroll-indicator:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 6px;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--accent-gold);
    border-bottom: 2px solid var(--accent-gold);
    transform: rotate(45deg);
    margin: 0.5rem auto;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(var(--scroll-indicator-x)) translateY(0);
    }
    40% {
        transform: translateX(var(--scroll-indicator-x)) translateY(-10px);
    }
    60% {
    transform: translateX(var(--scroll-indicator-x)) translateY(-5px);
    }
}

@keyframes particleDrift {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    100% {
        transform: translate3d(30px, -30px, 0) scale(1.05);
    }
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: var(--primary-dark);
}

.partners {
    padding: 5rem 0;
    background: var(--primary-dark);
}

.partners-card {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.partners-label {
    color: var(--accent-gold);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.partners-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.partners-subtitle {
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.partners-logos {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
}

.partner-logo {
    border: 1px solid rgba(168, 139, 79, 0.3);
    border-radius: 16px;
    padding: 2rem;
    color: var(--accent-gold);
    font-weight: 600;
    text-transform: uppercase;
    background: rgba(168, 139, 79, 0.05);
}

.early-access {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(44, 36, 53, 0.95) 0%, rgba(26, 21, 32, 0.95) 100%);
    position: relative;
    overflow: hidden;
}

.early-access::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(168, 139, 79, 0.15) 0%, transparent 70%);
    animation: rotateGradient 20s linear infinite;
    pointer-events: none;
}

@keyframes rotateGradient {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.early-access-card {
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid rgba(168, 139, 79, 0.35);
    border-radius: 24px;
    padding: 3rem;
    background: rgba(0, 0, 0, 0.35);
    text-align: center;
    position: relative;
    animation: pulseGlow 3s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(168, 139, 79, 0.2),
                0 0 40px rgba(168, 139, 79, 0.1);
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(168, 139, 79, 0.2),
                    0 0 40px rgba(168, 139, 79, 0.1),
                    0 0 60px rgba(168, 139, 79, 0.05);
        border-color: rgba(168, 139, 79, 0.35);
    }
    50% {
        box-shadow: 0 0 30px rgba(168, 139, 79, 0.4),
                    0 0 60px rgba(168, 139, 79, 0.2),
                    0 0 90px rgba(168, 139, 79, 0.1);
        border-color: rgba(168, 139, 79, 0.6);
    }
}

.early-access-label {
    color: var(--accent-gold);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.early-access-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--text-light) 0%, var(--accent-gold) 50%, var(--text-light) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
    text-align: center;
    position: relative;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
}

.early-access-subtitle {
    color: var(--text-gray);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.early-access-note {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.early-access-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    padding: 0;
    text-align: left;
}

body[dir="rtl"] .early-access-list {
    text-align: right;
}

.early-access-list li {
    padding: 1.5rem;
    border: 1px solid rgba(168, 139, 79, 0.3);
    border-radius: 16px;
    background: rgba(168, 139, 79, 0.05);
    color: var(--text-light);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
    transition: all 0.3s ease;
}

.early-access-list li:nth-child(1) { animation-delay: 0.1s; }
.early-access-list li:nth-child(2) { animation-delay: 0.2s; }
.early-access-list li:nth-child(3) { animation-delay: 0.3s; }
.early-access-list li:nth-child(4) { animation-delay: 0.4s; }
.early-access-list li:nth-child(5) { animation-delay: 0.5s; }

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

.early-access-list li:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
    box-shadow: 0 10px 25px rgba(168, 139, 79, 0.3);
    background: rgba(168, 139, 79, 0.1);
}

.faqs {
    padding: 5rem 0;
    background: var(--primary-dark);
}

.section-label {
    color: var(--accent-gold);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.faq-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.faq-item {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(168, 139, 79, 0.3);
    border-radius: 20px;
    padding: 1.5rem;
    transition: var(--transition);
}

.faq-item.active {
    border-color: var(--accent-gold);
    box-shadow: 0 20px 40px rgba(168, 139, 79, 0.2);
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1.1rem;
    text-align: left;
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

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

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

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

.faq-item.active .faq-answer {
    margin-top: 0.5rem;
}

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

[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease, filter 0.8s ease;
}

[data-animate].in-view {
    opacity: 1;
    transform: translateY(0);
    filter: none;
}

[data-animate="fade-up"] {
    transform: translateY(40px);
}

[data-animate="fade-up"].in-view {
    transform: translateY(0);
}

[data-animate="slide-left"] {
    transform: translateX(40px);
}

[data-animate="slide-left"].in-view {
    transform: translateX(0);
}

[data-animate="slide-right"] {
    transform: translateX(-40px);
}

[data-animate="slide-right"].in-view {
    transform: translateX(0);
}

[data-animate="scale-in"] {
    transform: scale(0.95);
    filter: blur(4px);
}

[data-animate="scale-in"].in-view {
    transform: scale(1);
}

[data-animate="tilt-in"] {
    transform: perspective(1000px) rotateX(6deg) translateY(40px);
}

[data-animate="tilt-in"].in-view {
    transform: perspective(1000px) rotateX(0deg) translateY(0);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    background: rgba(168, 139, 79, 0.05);
    border: 1px solid rgba(168, 139, 79, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-gold);
    box-shadow: 0 20px 40px rgba(168, 139, 79, 0.2);
    background: rgba(168, 139, 79, 0.1);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.feature-description {
    color: var(--text-gray);
    line-height: 1.7;
}

/* About Section */
.about {
    padding: 6rem 0;
    background: rgba(168, 139, 79, 0.03);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text .section-title {
    text-align: left;
}

body[dir="rtl"] .about-text .section-title {
    text-align: right;
}

.about-description {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.125rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(168, 139, 79, 0.1);
    border-radius: 15px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.about-image {
    position: relative;
}

.about-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    height: 100%;
    justify-items: center;
}

.about-image-item {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    border: 2px solid rgba(168, 139, 79, 0.3);
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.about-image-item:hover {
    transform: translateY(-5px) scale(1.02) rotate(-1deg);
    border-color: var(--accent-gold);
    box-shadow: 0 15px 40px rgba(168, 139, 79, 0.3);
}

.about-image-item:first-child {
    grid-row: 1 / 2;
    min-height: 300px;
}

.about-image-item:last-child {
    grid-row: 1 / 2;
    min-height: 300px;
}

/* CTA Section */
.cta {
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: none;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 36, 53, 0.8) 0%, rgba(61, 47, 74, 0.95) 100%),
        url('pic2.jpeg') center/cover no-repeat;
    z-index: 0;
}

.cta::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(168, 139, 79, 0.25), transparent 40%),
        radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.15), transparent 45%),
        radial-gradient(circle at 50% 80%, rgba(168, 139, 79, 0.15), transparent 55%);
    z-index: 0;
    opacity: 0.6;
    animation: particleDrift 18s infinite alternate;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.cta-subtitle {
    font-size: 1.125rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
}

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

/* Registration Form Section */
.registration {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(44, 36, 53, 0.95) 0%, rgba(61, 47, 74, 0.95) 100%);
    position: relative;
}

.registration::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 50% 50%, rgba(168, 139, 79, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.registration::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(168, 139, 79, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
    opacity: 0.4;
    animation: particleDrift 22s infinite alternate-reverse;
    pointer-events: none;
}

.registration-form-container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.registration-form {
    background: rgba(168, 139, 79, 0.08);
    border: 1px solid rgba(168, 139, 79, 0.3);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(10px);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.registration-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    align-items: stretch;
}

.registration-form .form-group.full-width {
    grid-column: 1 / -1;
}

.registration-form label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
    margin: 0;
    padding: 0;
    margin-bottom: 0.5rem;
    text-align: right;
    display: block;
    width: 100%;
    position: static;
    z-index: 1;
    line-height: 1.5;
    order: -1;
    flex-shrink: 0;
}

body[dir="ltr"] .registration-form label {
    text-align: left;
}

.registration-form input,
.registration-form select {
    padding: 1rem 1.25rem;
    background: rgba(44, 36, 53, 0.6);
    border: 1px solid rgba(168, 139, 79, 0.3);
    border-radius: 10px;
    color: var(--text-light);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
    width: 100%;
    display: block;
    box-sizing: border-box;
    position: relative;
    z-index: 0;
    margin: 0;
    margin-top: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    order: 1;
    flex-shrink: 0;
}

@keyframes focusGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(168, 139, 79, 0.1);
    }
    100% {
        box-shadow: 0 0 0 6px rgba(168, 139, 79, 0.05);
    }
}

.registration-form input:focus,
.registration-form select:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: rgba(44, 36, 53, 0.85);
    box-shadow: 0 0 25px rgba(168, 139, 79, 0.25);
    animation: focusGlow 0.6s ease-out forwards;
}

.registration-form select {
    cursor: pointer;
}

.registration-form select option {
    background: var(--primary-dark);
    color: var(--text-light);
}

.form-submit {
    margin-top: 2rem;
    text-align: center;
}

.form-submit .btn {
    min-width: 200px;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: var(--primary-dark);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.contact-item p {
    color: var(--text-gray);
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border: 1px solid rgba(168, 139, 79, 0.3);
    border-radius: 8px;
}

.social-links a:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
}

.contact-form {
    background: rgba(168, 139, 79, 0.05);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(168, 139, 79, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(44, 36, 53, 0.5);
    border: 1px solid rgba(168, 139, 79, 0.3);
    border-radius: 10px;
    color: var(--text-light);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 25px rgba(168, 139, 79, 0.2);
    animation: focusGlow 0.6s ease-out forwards;
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--text-gray);
    pointer-events: none;
    transition: var(--transition);
}

.registration-form .form-group label {
    position: static;
    top: auto;
    left: auto;
    pointer-events: auto;
    display: block;
    background: transparent;
    color: var(--text-light);
    padding: 0;
    margin: 0 0 0.5rem;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -0.5rem;
    left: 0.75rem;
    font-size: 0.875rem;
    color: var(--accent-gold);
    background: var(--primary-dark);
    padding: 0 0.5rem;
}

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

/* Gallery Section */
.gallery {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(44, 36, 53, 0.95) 0%, rgba(61, 47, 74, 0.95) 100%);
    position: relative;
}

.gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 50% 50%, rgba(168, 139, 79, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
    z-index: 2;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: rgba(168, 139, 79, 0.1);
    border: 1px solid rgba(168, 139, 79, 0.2);
    transition: var(--transition);
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-10px) rotateX(3deg) rotateY(-3deg);
    box-shadow: 0 20px 40px rgba(168, 139, 79, 0.3);
    border-color: var(--accent-gold);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(44, 36, 53, 0.9) 0%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-content {
    width: 100%;
}

.gallery-title {
    color: var(--accent-gold);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

/* Footer */
/* Sponsored Section */
.sponsored {
    background: rgba(26, 21, 32, 0.85);
    padding: 3rem 0;
    border-top: 1px solid rgba(168, 139, 79, 0.3);
    border-bottom: 1px solid rgba(168, 139, 79, 0.3);
}

.sponsored-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    text-align: center;
}

.sponsored-label {
    color: var(--text-gray);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 300;
    margin: 0;
}

.sponsored-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.sponsored-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.sponsor-image {
    max-width: 200px;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: brightness(0.9);
    transition: var(--transition);
}

.sponsor-image:hover {
    filter: brightness(1.1);
    transform: scale(1.05);
}

.saudi-logo {
    max-width: 150px;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: brightness(0.9);
    transition: var(--transition);
}

.saudi-logo:hover {
    filter: brightness(1.1);
    transform: scale(1.05);
}

.footer {
    background: rgba(26, 21, 32, 0.8);
    padding: 3rem 0;
    border-top: 1px solid rgba(168, 139, 79, 0.2);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo-img {
    height: 40px;
    width: auto;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-copyright {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Mobile Menu */
.nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(44, 36, 53, 0.98);
    backdrop-filter: blur(10px);
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    gap: 1.5rem;
}

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

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

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

body.menu-open {
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-content {
        grid-template-columns: 1fr auto;
    }

    .logo-container {
        grid-column: 1 / -1;
    }

    .nav-links {
        display: none;
    }

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

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

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

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .about-images-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .about-image-item {
        min-height: 250px;
    }

    .registration {
        padding: 4rem 0;
    }

    .registration-form {
        padding: 2rem;
    }

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

    .form-group.full-width {
        grid-column: 1;
    }

    .sponsored {
        padding: 2rem 0;
    }

    .sponsored-logos {
        gap: 2rem;
    }

    .sponsor-image {
        max-width: 150px;
        max-height: 80px;
    }

    .saudi-logo {
        max-width: 120px;
        max-height: 80px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .gallery {
        padding: 4rem 0;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .gallery-item {
        aspect-ratio: 16/9;
    }
}

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

    .logo {
        height: 60px;
    }

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

    .feature-card,
    .contact-form {
        padding: 1.5rem;
    }
}

/* RTL Support */
body[dir="rtl"] .nav-links a::after {
    right: 0;
    left: auto;
    transform-origin: right;
}

body[dir="rtl"] .scroll-indicator {
    left: auto;
    right: 50%;
    --scroll-indicator-x: 50%;
}

body[dir="rtl"] .form-group label {
    right: 1rem;
    left: auto;
}

body[dir="rtl"] .form-group input:focus + label,
body[dir="rtl"] .form-group input:not(:placeholder-shown) + label,
body[dir="rtl"] .form-group textarea:focus + label,
body[dir="rtl"] .form-group textarea:not(:placeholder-shown) + label {
    right: 0.75rem;
    left: auto;
}

body[dir="rtl"] .scroll-arrow {
    transform: rotate(-135deg);
}

body[dir="rtl"] .hero-buttons,
body[dir="rtl"] .cta-buttons {
    flex-direction: row-reverse;
}
