:root {
    --primary-color: #66B2FF;
    --secondary-color: #B0B0B0;
    --dark-color: #E0E0E0; /* This variable isn't widely used, but kept for consistency */

    --body-bg: #0F1F3D;
    --header-footer-bg: #0A192F;
    --section-bg: #1A2D4A;
    --text-color: #E0E0E0;
    --light-text-color: #F8F9FA;
    --border-color: #444;

    --white: #FFFFFF;
    --section-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); /* Slightly stronger section shadow */
    --button-shadow: 0 8px 20px rgba(102, 178, 255, 0.4); /* Slightly stronger button shadow */

    --dark-blue-rgb: 10, 25, 47;
    --dark-blue-rgb-header: 6, 16, 31;

    --nav-height: 80px;
    --section-padding-y: 80px; /* New variable for consistent vertical section padding */
    --container-padding-x: 25px; /* New variable for consistent horizontal container padding */
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Roboto', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7; /* Increased for better readability */
    color: var(--text-color);
    background-color: var(--body-bg);
    background-image: url('images/background2.jpg'); /* Ensure this path is correct */
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    padding-top: var(--nav-height); /* Space for fixed header */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    overflow-x: hidden; /* Prevent horizontal scroll on small overflows */
}

/* Overlay for background image */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(var(--dark-blue-rgb-header), 0.75); /* Slightly increased opacity */
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding-x); /* Using variable for consistency */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* General Section Spacing */
section {
    padding: var(--section-padding-y) 0; /* Consistent vertical padding for all main sections */
    position: relative; /* Useful for positioning content within sections */
}

/* Typography Consistency */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 25px; /* Consistent space below headings */
    line-height: 1.2;
    color: var(--light-text-color); /* Ensure headings stand out */
}

h2 {
    font-size: 2.8em; /* Adjusted for larger section titles */
    text-align: center;
    margin-bottom: 50px; /* More space below main section headings */
    color: var(--primary-color); /* Highlight section titles with primary color */
}

p {
    margin-bottom: 15px; /* Consistent spacing for paragraphs */
}

/* ================= HEADER ================= */
header {
    background: linear-gradient(90deg, #06101F 0%, #0D1A30 100%);
    color: var(--light-text-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6); /* Stronger header shadow */
    border-bottom: 3px solid #1abc9c; /* Keeps the vibrant border */
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

header::after {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg, #1abc9c, #66B2FF, #1abc9c);
    animation: gradient-slide 5s linear infinite;
}

@keyframes gradient-slide {
    0% { background-position: 0% }
    100% { background-position: 100% }
}

.main-header-content {
    min-height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--container-padding-x); /* Consistent with container padding */
}

.logo {
    font-size: 2.2rem; /* Slightly larger logo */
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    color: #1abc9c;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 50px; /* Increased gap between nav links and action button */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px; /* Increased gap between individual nav items */
}

.nav-links li a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    padding: 12px 18px; /* Slightly more padding for click area and visual space */
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow: hidden; /* Ensure ::after pseudo-element stays within bounds */
}

.nav-links li a::after {
    content: '';
    display: block;
    height: 2px;
    width: 0%;
    background-color: var(--primary-color);
    position: absolute;
    bottom: 0;
    left: 0;
    transition: width 0.3s ease-out; /* Smooth animation */
}

.nav-links li a:hover::after {
    width: 100%;
}

.nav-links li a:hover {
    background-color: #0078ff;
    color: var(--white);
}

/* Header Action Button */
.header-actions .btn {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: bold;
    border: none;
    padding: 12px 28px; /* Adjusted to a more typical button size */
    border-radius: 6px;
    box-shadow: var(--button-shadow);
    transition: all 0.3s ease;
}

.header-actions .btn:hover {
    background-color: #3399FF;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 178, 255, 0.8); /* More prominent shadow on hover */
}

/* Test Promo Wrapper (integrated into section flow if used) */
.test-promo-wrapper {
    margin-top: 50px; /* More space from elements above */
    margin-bottom: 50px; /* More space to elements below */
    text-align: center;
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    align-items: center;
    justify-content: center;
    gap: 30px; /* Increased gap */
}

.test-promo-wrapper img {
    width: clamp(250px, 40vw, 400px); /* Responsive image size */
    height: auto;
    border-radius: 10px; /* Slightly more rounded corners */
    box-shadow: 0 6px 18px rgba(0,0,0,0.5); /* Stronger shadow */
}

.test-promo-wrapper button {
    background-color: #0078ff;
    color: var(--white);
    border: none;
    font-size: 26px; /* Larger font size */
    padding: 15px 25px; /* More padding for a bigger button */
    border-radius: 8px; /* Slightly more rounded */
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}
.test-promo-wrapper button:hover {
    background-color: #005fcc;
    transform: translateY(-2px);
}

/* Popup Basic Styling (hidden by default) */
.popup-overlay {
    display: none; /* Hide by default, JavaScript will show */
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0; /* For fade-in animation */
    transition: opacity 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    display: flex;
}

.popup-content {
    text-align: center;
    background: var(--white);
    border-radius: 12px;
    padding: 30px; /* More padding */
    max-width: 600px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    transform: scale(0.9); /* For pop-in animation */
    transition: transform 0.3s ease;
}

.popup-overlay.active .popup-content {
    transform: scale(1);
}

.popup-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 25px; /* More space below image */
}

.popup-btn {
    background-color: #0078ff;
    color: var(--white);
    padding: 14px 28px; /* Consistent button padding */
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 17px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.popup-btn:hover {
    background-color: #005fcc;
    transform: translateY(-2px);
}

.close-popup {
    position: absolute;
    top: 15px; /* Slightly more space from top */
    right: 15px; /* Slightly more space from right */
    background: transparent;
    border: none;
    font-size: 28px; /* Larger close icon */
    color: var(--secondary-color); /* Muted color */
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
}

.close-popup:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

/* ================= HERO ================= */
.hero-section {
    position: relative;
    height: 85vh; /* Slightly more height for impact */
    background: url('images/hero_background.jpg') no-repeat center center/cover; /* Ensure path is correct */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-text-color);
    padding: var(--section-padding-y) 0; /* Ensure it respects section padding */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 15, 30, 0.75); /* Slightly darker overlay */
}

.hero-content {
    position: relative; /* Changed from center to relative for z-index to work */
    z-index: 2;
    max-width: 900px; /* Wider content area */
    color: var(--white); /* Ensures text is white */
    padding: 0 20px; /* Internal padding for text */
}

.hero-content h1 {
    font-size: 4.5em; /* Larger and more impactful heading */
    margin-bottom: 35px; /* More space below heading */
    line-height: 1.1; /* Tighter line height for large heading */
    color: var(--primary-color);
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.5); /* Subtle text shadow */
}

.hero-content p {
    font-size: 1.4em; /* Larger paragraph for readability */
    margin-bottom: 45px; /* More space before the button */
    max-width: 700px; /* Constrain paragraph width */
    margin-left: auto;
    margin-right: auto;
    color: var(--light-text-color);
}

/* General Button Styling (used for .btn, .btn-primary) */
.btn {
    display: inline-flex; /* Use flex for centering content if needed */
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 18px 35px; /* More generous padding for primary buttons */
    text-decoration: none;
    border-radius: 8px; /* Slightly more rounded */
    font-weight: 700;
    font-size: 1.1em; /* Slightly larger font size */
    box-shadow: var(--button-shadow);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    min-height: 54px; /* Ensure minimum touch target size */
}

.btn:hover {
    background-color: #3399FF;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 178, 255, 0.6);
}

.btn-primary { /* Explicit primary button style */
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--header-footer-bg); /* Dark text on secondary buttons */
    box-shadow: none; /* No shadow for secondary by default */
    padding: 15px 30px; /* Slightly less padding than primary */
    font-size: 1em;
}

.btn-secondary:hover {
    background-color: #999999; /* Slightly darker secondary on hover */
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); /* Subtle shadow on hover */
}


/* ================= MODEL GALLERY ================= */
.model-gallery-section { /* Assuming this is wrapped in its own section */
    background-color: var(--section-bg);
}

.model-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 40px; /* Increased gap between model items */
    justify-content: center;
    margin-top: 60px; /* More space from section title */
    margin-bottom: 20px; /* Space before end of section or next element */
}

.model-item {
    background-color: var(--header-footer-bg); /* Darker background for items for contrast */
    border: 1px solid var(--border-color);
    border-radius: 10px; /* Slightly more rounded */
    overflow: hidden;
    box-shadow: var(--section-shadow);
    text-align: center;
    padding: 30px; /* More internal padding for a roomier look */
    flex: 1 1 320px; /* Allow items to grow/shrink, with a base of 320px */
    max-width: 380px; /* Max width to prevent overly wide cards */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--text-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.model-item:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4); /* Stronger shadow on hover */
}

.model-item img {
    max-width: 100%;
    height: 220px; /* Slightly taller images for more presence */
    object-fit: cover;
    border-radius: 8px; /* Consistent border radius */
    margin-bottom: 25px; /* More space below the image */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Subtle image shadow */
}

.model-item h3 {
    font-size: 2em; /* Larger title for model items */
    margin-bottom: 15px; /* More space below the item title */
    color: var(--primary-color);
}

.model-item p {
    font-size: 1.05em; /* Slightly larger paragraph text */
    margin-bottom: 25px; /* More space above the button/next element */
    flex-grow: 1;
    color: var(--secondary-color);
}


/* ================= CONTACT FORM ================= */
.contact-section { /* Assuming this is wrapped in its own section */
    background-color: var(--body-bg); /* Background for the contact section */
}

.contact-form {
    max-width: 700px; /* Slightly wider form */
    margin: 0 auto;
    background-color: var(--header-footer-bg);
    padding: 40px; /* Increased internal padding for the form */
    border-radius: 12px; /* More rounded corners */
    box-shadow: var(--section-shadow);
}

.contact-form label {
    display: block;
    margin-bottom: 10px; /* Slightly more space below labels */
    font-weight: 700;
    color: var(--light-text-color); /* Light label text */
    font-size: 1.1em;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"], /* Corrected input type for phone */
.contact-form input[type="date"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 14px; /* Slightly more padding for input fields */
    margin-bottom: 25px; /* More space between form fields */
    border: 1px solid var(--border-color);
    border-radius: 8px; /* Consistent rounded borders */
    font-size: 1.05em; /* Slightly larger font inside inputs */
    box-sizing: border-box;
    background-color: rgba(var(--dark-blue-rgb), 0.6); /* Translucent dark background */
    color: var(--light-text-color); /* Light text input */
    outline: none; /* Remove default outline */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: var(--primary-color); /* Highlight border on focus */
    box-shadow: 0 0 0 3px rgba(var(--dark-blue-rgb), 0.5); /* Subtle glow on focus */
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px; /* Minimum height for textarea */
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(var(--text-color), 0.6); /* Semi-transparent placeholder text */
    opacity: 1;
}

.contact-form button[type="submit"] {
    width: auto; /* Allow button to size itself */
    padding: 15px 40px;
    margin-top: 20px; /* More space above the submit button */
}

/* Contact Section Specific Info */
#contact-info { /* Assuming a separate div/section for contact details */
    text-align: center;
    margin-top: 30px; /* Space from form if separate */
    color: var(--secondary-color);
    font-size: 1.1em;
}

#contact-info p {
    margin-bottom: 10px;
}

#contact-info i {
    margin-right: 10px;
    color: var(--primary-color);
}

#contact-info address {
    font-style: normal;
    margin-bottom: 10px;
}

/* ================= FOOTER ================= */
footer {
    background-color: var(--header-footer-bg);
    color: var(--secondary-color);
    padding: 60px 0; /* More vertical padding for the footer */
    text-align: center;
    font-size: 0.95em;
    border-top: 1px solid var(--border-color); /* Subtle top border */
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px; /* Increased gap between footer elements */
}

footer p {
    margin: 0;
}

.social-links {
    margin-top: 15px;
}

.social-links a {
    color: var(--light-text-color);
    font-size: 1.8em; /* Slightly larger social icons */
    margin: 0 15px; /* More space between social icons */
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
    display: inline-block;
    padding: 5px; /* Increase clickable area */
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px) scale(1.1); /* Subtle lift and scale */
}

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) { /* Tablet breakpoint */
    :root {
        --section-padding-y: 60px;
        --container-padding-x: 20px;
    }

    .main-header-content {
        padding: 0 20px;
    }

    .hero-content h1 {
        font-size: 3.5em;
    }

    .hero-content p {
        font-size: 1.2em;
    }

    .nav-links {
        gap: 30px; /* Reduce gap for nav links on tablets */
    }

    .main-nav {
        gap: 30px;
    }

    h2 {
        font-size: 2.5em;
        margin-bottom: 40px;
    }

    .model-gallery {
        gap: 30px;
    }

    .model-item {
        flex: 1 1 280px;
        max-width: 320px;
    }

    .model-item img {
        height: 180px;
    }

    .contact-form {
        padding: 30px;
    }
}

@media (max-width: 768px) { /* Mobile Large breakpoint */
    :root {
        --nav-height: 70px; /* Slightly smaller nav height */
        --section-padding-y: 50px;
        --container-padding-x: 15px;
    }

    body {
        padding-top: var(--nav-height);
    }

    .main-header-content {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px var(--container-padding-x);
        min-height: auto; /* Allow header to shrink */
    }

    .logo {
        font-size: 1.8rem;
        margin-bottom: 10px; /* Space below logo when stacked */
    }

    .main-nav {
        flex-direction: column; /* Stack nav links and action button */
        align-items: flex-start;
        width: 100%;
        gap: 20px; /* Space between stacked nav and button */
    }

    .nav-links {
        flex-direction: column; /* Stack nav links */
        align-items: flex-start;
        width: 100%;
        gap: 15px; /* Reduced gap for stacked nav items */
        padding-top: 10px; /* Space from logo/header content */
        transform: translateY(-100%); /* Start off-screen (for JS toggle) */
        transition: transform 0.3s ease-out;
    }

    .nav-links.active {
        transform: translateY(0); /* Slide in */
    }

    .header-actions {
        width: 100%; /* Make action button full width if stacked */
    }
    .header-actions .btn {
        width: 100%;
        padding: 12px 20px; /* Adjusted padding for smaller button */
    }

    .hero-section {
        height: auto; /* Allow hero height to be content-driven */
        min-height: 70vh; /* Ensure a minimum height */
        padding: calc(var(--section-padding-y) + 20px) 0; /* Add some extra top padding if needed */
    }

    .hero-content h1 {
        font-size: 3em;
        margin-bottom: 25px;
    }

    .hero-content p {
        font-size: 1.1em;
        margin-bottom: 30px;
    }

    .btn {
        padding: 15px 25px;
        font-size: 1em;
    }

    h2 {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .model-gallery {
        margin-top: 40px;
        gap: 20px;
    }

    .model-item {
        flex: 1 1 100%; /* Stack model items on very small screens */
        max-width: 90%; /* Max width for items */
        padding: 25px;
    }
    .model-item img {
        height: 160px;
    }

    .test-promo-wrapper {
        flex-direction: column;
        gap: 20px;
        margin-top: 40px;
        margin-bottom: 40px;
    }

    .test-promo-wrapper img {
        width: 80%; /* Smaller on mobile */
    }

    .test-promo-wrapper button {
        font-size: 20px;
        padding: 12px 20px;
    }

    .contact-form {
        padding: 25px;
    }

    .contact-form label {
        font-size: 1em;
    }

    .contact-form input,
    .contact-form textarea,
    .contact-form select {
        padding: 12px;
        margin-bottom: 20px;
        font-size: 1em;
    }

    footer .container {
        gap: 20px;
    }
}

@media (max-width: 480px) { /* Mobile Small breakpoint (e.g., iPhone SE) */
    :root {
        --section-padding-y: 40px;
        --container-padding-x: 10px;
    }

    .logo {
        font-size: 1.6rem;
    }

    .hero-content h1 {
        font-size: 2.5em;
    }

    .hero-content p {
        font-size: 1em;
        margin-bottom: 25px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.95em;
        min-height: 48px;
    }

    h2 {
        font-size: 1.8em;
        margin-bottom: 25px;
    }

    .model-item {
        padding: 20px;
    }

    .test-promo-wrapper img {
        width: 95%;
    }

    .test-promo-wrapper button {
        font-size: 18px;
        padding: 10px 18px;
    }

    .social-links a {
        font-size: 1.6em;
        margin: 0 10px;
    }

    footer {
        padding: 40px 0;
    }.hero-section {
height: 100vh;
background-size: cover;
background-position: center;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
color: white;
position: relative;
margin: 0;
padding: 0;
}

.hero-section .overlay {
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 100%;
background-color: rgba(0, 0, 0, 0.4);
}

.hero-section .content {
position: relative;
z-index: 2;
padding: 20px;
}

.hero-section h1 {
font-size: 3em;
margin-bottom: 0.5em;
}

.hero-section h2 {
font-size: 1.5em;
font-weight: normal;
}

.hero-section .countdown {
font-size: 2em;
margin-top: 1em;
font-weight: bold;
}

@media (max-width: 768px) {
.hero-section h1 { font-size: 2em; }
.hero-section h2 { font-size: 1.2em; }
.hero-section .countdown { font-size: 1.2em; }
}
}