/* Base Styles & Variables */
:root {
    --primary-color: #eb0a1e; /* Toyota Red */
    --primary-hover: #c40818;
    --dark-bg: #121212;
    --darker-bg: #0a0a0a;
    --light-bg: #f5f5f5;
    --text-light: #ffffff;
    --text-muted: #a0a0a0;
    --text-dark: #333333;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --font-primary: 'Tajawal', sans-serif;
    --font-heading: 'Cairo', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: url('img/bg.png') no-repeat center center fixed;
    background-size: cover;
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Header & Navbar */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}

header.scrolled {
    background-color: rgba(10, 10, 10, 0.98);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    padding: 5px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    transition: var(--transition);
}

.logo {
    max-height: 60px;
    border-radius: 8px;
    transition: var(--transition);
}

header.scrolled .logo {
    max-height: 50px;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.navbar ul li a {
    font-size: 1.1rem;
    font-weight: 700;
    position: relative;
    padding: 5px 0;
}

.navbar ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    right: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.navbar ul li a:hover::after {
    width: 100%;
    left: 0;
}

.navbar ul li a:hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(20,20,20,0.7) 100%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--darker-bg) 100%);
}

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

.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    background: linear-gradient(45deg, #fff, #a0a0a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero .subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #e0e0e0;
}

.badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.badge {
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.badge-brand {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(235, 10, 30, 0.4);
}

.badge-year {
    background-color: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
}

.btn {
    display: inline-block;
    padding: 12px 35px;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 5px 20px rgba(235, 10, 30, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(235, 10, 30, 0.5);
}

/* Sections */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 10px;
}

.underline {
    height: 4px;
    width: 70px;
    background-color: var(--primary-color);
    margin: 0 auto;
    border-radius: 2px;
}

.section-subtitle {
    margin-top: 15px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* About Section */
.about-section {
    background-color: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(8px);
}

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

.about-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.05);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(235, 10, 30, 0.1);
}

.about-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.about-card p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Gallery Section */
.gallery-section {
    background-color: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(8px);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background-color: #1a1a1a;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px dashed rgba(255,255,255,0.2);
    transition: var(--transition);
}

.gallery-item:hover {
    border-color: var(--primary-color);
    transform: scale(1.03);
}

.gallery-item i {
    font-size: 3rem;
    color: rgba(255,255,255,0.2);
    margin-bottom: 10px;
}

.gallery-item span {
    color: var(--text-muted);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* Contact Section */
.contact-section {
    background-color: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(8px);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: center;
}

.contact-info {
    background: rgba(255,255,255,0.03);
    padding: 40px;
    border-radius: 16px;
    height: 100%;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.contact-list {
    list-style: none;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-list i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.contact-list a {
    color: var(--text-light);
    font-size: 1.1rem;
}

.contact-list a:hover {
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    padding: 40px 0 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

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

.footer-logo h3 {
    font-size: 1.5rem;
}

footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-up.show {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* Responsive */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(10, 10, 10, 0.95);
        padding: 20px 0;
        flex-direction: column;
        align-items: center;
        transform: translateY(-150%);
        opacity: 0;
        transition: var(--transition);
        z-index: -1;
    }

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

    .navbar ul {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}
