/* Mobile-First Base Styles */
:root {
    --primary-color: #ff4500;
    --secondary-color: #333;
    --background-color: #fff;
    --text-color: #333;
    --spacing-unit: 1rem;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Enhanced Mobile Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.95);
    padding: 0.5rem 1rem;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.logo {
    font-size: 1.2rem;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    height: 30px;
    width: auto;
}

/* Mobile Menu Button */
.hamburger {
    display: block;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    margin: 4px 0;
    transition: 0.3s;
}

/* Mobile Navigation Menu */
.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    padding: 5rem 2rem 2rem;
    transition: 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nav-menu.active {
    right: 0;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.8rem 0;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hero Section Mobile Optimization */
.hero-section {
    min-height: 100vh;
    width: 100%;
    padding: 6rem 1rem 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    background-color: #000;
    overflow: hidden;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    gap: 1.5rem;
    padding: 2rem 1rem;
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.hero-title .brand {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.hero-title .model {
    font-size: clamp(2rem, 7vw, 3.5rem);
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 2px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-description {
    font-size: clamp(1rem, 4vw, 1.2rem);
    color: #fff;
    max-width: 90%;
    margin: 0 auto;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 300px;
    margin-top: 2rem;
}

.hero-button {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    border: none;
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.3);
}

/* Tablet and Desktop Styles */
@media (min-width: 768px) {
    .hero-section {
        justify-content: center;
        padding: 4rem 2rem;
    }

    .hero-content {
        max-width: 800px;
    }

    .hero-buttons {
        flex-direction: row;
        max-width: 100%;
        justify-content: center;
        gap: 1.5rem;
    }

    .hero-button {
        width: auto;
        min-width: 200px;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 100%;
    padding: 0 1rem;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.2rem);
    margin-bottom: 2rem;
    color: #fff;
}

/* Feature Cards Mobile Layout */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem;
}

.feature-card {
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Price Cards Mobile Layout */
.price-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem;
}

.price-card {
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Call to Action Mobile */
.cta-section {
    padding: 3rem 1rem;
    text-align: center;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
    margin-top: 1rem;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Media Queries for Larger Screens */
@media (min-width: 768px) {
    .hamburger {
        display: none;
    }

    .nav-menu {
        position: static;
        width: auto;
        height: auto;
        padding: 0;
        background: none;
        flex-direction: row;
        gap: 2rem;
        overflow: visible;
    }

    .nav-menu a {
        padding: 0.5rem 1rem;
        border: none;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .price-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .price-cards {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-content {
        max-width: 800px;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading State */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}