@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Poppins:wght@300;400;600&display=swap');

:root {
    --primary-red: #d63031;
    --light-gray: #f5f6fa;
    --dark-slate: #2f3640;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }

body { background-color: var(--light-gray); color: var(--dark-slate); overflow-x: hidden; line-height: 1.6; }

/* Navigation - Responsive */
nav {
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.main-logo { height: 45px; width: auto; transition: 0.3s; }

nav ul { display: flex; list-style: none; }
nav ul li { margin-left: 20px; }
nav ul li a { 
    text-decoration: none; 
    color: var(--dark-slate); 
    font-weight: 600; 
    text-transform: uppercase; 
    font-size: 0.85rem; 
    transition: 0.3s;
}
nav ul li a:hover { color: var(--primary-red); }

/* Hero Section - Optimized for Speed & Mobile */
.hero {
    height: 80vh; 
    background: linear-gradient(45deg, rgba(0,0,0,0.8) 0%, rgba(214,48,49,0.3) 100%), 
                url('img/main\ cover\ image.jpg'); 
    background-size: cover;
    background-position: center;
    background-attachment: scroll; /* Changed to scroll for better mobile performance */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 5%;
}

.hero-content h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.5rem, 8vw, 5rem); /* Auto-sizes based on screen */
    letter-spacing: 5px;
    text-transform: uppercase;
    text-shadow: 2px 2px 15px rgba(0,0,0,0.5);
    margin-bottom: 10px;
}

.hero-content p {
    font-size: clamp(1rem, 3vw, 1.4rem);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 30px;
}

/* Content Container */
.container { padding: 60px 8%; }

.section-title {
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 40px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-red);
    margin: 15px auto;
}

/* Grid System */
.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 40px; 
    align-items: center; 
}

/* Buttons */
.btn {
    background: var(--primary-red);
    color: white;
    padding: 15px 40px;
    text-decoration: none;
    display: inline-block;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    transition: 0.4s;
}
.btn:hover { background: #ab2626; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(214,48,49,0.3); }

/* Footer */
footer { background: var(--dark-slate); color: white; padding: 40px 5%; text-align: center; }

/* Mobile Menu Fix */
@media (max-width: 600px) {
    nav { flex-direction: column; gap: 10px; }
    nav ul li { margin: 0 10px; }
    .hero { background-attachment: scroll; } /* Better for mobile battery */
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}