/* Reset & Base Styles */

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #000000;
    color: #e0e0e0;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900; /* Montserrat Black */
    text-transform: uppercase;
    color: #ffffff;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

h1::after, h2::after, h3::after {
    content: '.';
    color: #ED1C24; /* Ferrari Red */
}

h2 {
    font-size: 3.5rem; /* Larger size */
    border-bottom: 2px solid #293133; /* Anthracite underline */
    display: inline-block;
    padding-bottom: 10px;
}

p {
    color: #a0a0a0; /* Grey variation */
    max-width: 800px;
    margin: 0 auto 1.5rem auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.text-link {
    color: #ffffff; /* White to stand out from grey text */
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.text-link:hover,
.text-link:active {
    text-decoration: underline;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent; /* Transparent sticky header */
    transition: all 0.4s ease;
    padding: 40px 5%; /* Larger initial padding */
}

header.scrolled {
    padding: 15px 5%; /* Compact padding on scroll */
    background-color: rgba(0, 0, 0, 0.8); /* Optional: Darker background on scroll for readability */
    backdrop-filter: blur(10px);
}

/* Optional: Add background on scroll if needed, but user requested transparent overlay. 
   We keep it transparent but ensure readability via hero overlay. */

    nav {
        display: flex;
        justify-content: space-between;
        align-items: center; /* Vertical align items */
        position: relative; /* Needed for absolute centering of nav-links */
    }

    .logo-container {
        z-index: 20; /* Ensure logo is clickable */
        display: flex;
        align-items: center; /* Center logo vertically if container has height */
    }

    .logo-container img {
        height: 70px; /* Larger initial logo */
        width: auto;
        display: block; /* Remove bottom space */
        transition: height 0.4s ease;
    }

header.scrolled .logo-container img {
    height: 40px; /* Smaller logo on scroll */
}

.nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.nav-links a {
    margin: 0 20px;
    font-size: 1.1rem; /* Larger initial font size */
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
    transition: font-size 0.4s ease, color 0.3s ease;
}

header.scrolled .nav-links a {
    font-size: 0.9rem; /* Smaller font size on scroll */
}

.nav-links a:hover {
    color: #ffffff;
}

/* Subtle Ferrari Red Accent on Hover */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #ED1C24;
    transition: width 0.3s ease;
}

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

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    background-image: url('images/hero_image.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Overlays */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 150px; /* Height of the overlay gradient */
    z-index: 1;
    pointer-events: none;
}

/* Top Overlay */
.hero::before {
    top: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, transparent 100%);
}

/* Bottom Overlay */
.hero::after {
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,1) 0%, transparent 100%);
}

/* Full dark tint for text readability if needed, usually high-end wants the image to pop.
   We'll add a subtle overall darkening. */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

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

.hero-content h1 {
    font-size: 6rem; /* Much larger title */
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.hero-content p {
    font-size: 1.4rem;
    color: #d0d0d0;
}

/* Scroll Down Button */
.scroll-down {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: inline-block;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    padding-top: 60px;
}

.scroll-down span {
    position: absolute;
    top: 0;
    left: 50%;
    width: 24px;
    height: 24px;
    margin-left: -12px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
    animation: sdb 2s infinite;
    opacity: 0;
    box-sizing: border-box;
}

.scroll-down span:nth-of-type(1) {
    top: 0px;
    animation-delay: 0s;
}
.scroll-down span:nth-of-type(2) {
    top: 16px;
    animation-delay: .15s;
}
.scroll-down span:nth-of-type(3) {
    top: 32px;
    animation-delay: .3s;
}

@keyframes sdb {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Sections */
section {
    padding: 100px 5%;
    text-align: center;
    min-height: 60vh; /* Ensure some height */
}

#over-ons {
    background-color: #000000;
}

#contact {
    background-color: #0a0a0a; /* Very slight contrast */
    border-top: 1px solid #1a1a1a;
}

/* Cards or Content styling */
.about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 40px;
    flex-wrap: wrap;
}

.content-box {
    background-color: transparent; /* No background */
    padding: 0; /* No padding */
    border: none; /* No border */
    text-align: left;
    flex: 1;
    min-width: 300px;
}

.content-box p {
    color: #ffffff; /* White text */
    margin-bottom: 1.5rem;
}

.about-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    border: 1px solid #293133;
}

/* Contact Form */
.contact-container {
    max-width: 600px;
    margin: 40px auto;
    text-align: left;
}

#contact-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.form-group {
    flex: 1 1 45%; /* Two columns */
    min-width: 250px;
}

.form-group.full-width {
    flex: 1 1 100%;
}

input, textarea {
    width: 100%;
    padding: 15px;
    background-color: #151515;
    border: none;
    border-bottom: 2px solid #293133;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

input::placeholder, textarea::placeholder {
    color: #666;
}

input:focus, textarea:focus {
    border-bottom-color: #ED1C24;
    background-color: #1a1a1a;
}

textarea {
    resize: vertical;
}

.submit-btn {
    background-color: #293133;
    color: #ffffff;
    border: none;
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    width: 100%;
    font-family: 'Montserrat', sans-serif;
}

.submit-btn:hover {
    background-color: #ED1C24;
    transform: translateY(-2px);
}

.submit-btn:disabled {
    background-color: #444;
    cursor: not-allowed;
    transform: none;
}

#form-status {
    margin-top: 20px;
    text-align: center;
    width: 100%;
}

.success-msg {
    color: #4caf50;
}

.error-msg {
    color: #ED1C24;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 60px;
}

.contact-item {
    background: #151515;
    padding: 30px;
    min-width: 250px;
    border-bottom: 2px solid #293133;
    transition: border-color 0.3s;
}

.contact-item:hover {
    border-bottom-color: #ED1C24;
}

.contact-item p:first-child {
    font-size: 1.2rem;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.contact-item p:first-child::after {
    content: ''; /* No dot */
}

.contact-item h3 {
    font-size: 1.2rem;
    color: #fff;
    display: none; /* Hide original h3 style if element is removed */
}

/* Scroll to Top Button */
#scrollToTopBtn {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    font-size: 18px;
    border: none;
    outline: none;
    background-color: #293133; /* Anthracite */
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 4px; /* Very light rounded corners */
    transition: background-color 0.3s, transform 0.3s;
}

#scrollToTopBtn:hover {
    background-color: #ED1C24; /* Ferrari Red */
    transform: translateY(-3px);
}

/* Footer */
footer {
    padding: 40px 5%;
    background-color: #000000;
    border-top: 1px solid #111;
    text-align: center;
    color: #888; /* Lighter grey color */
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 768px) {
    /* Adjust Section Padding */
    section {
        padding: 60px 5%;
    }

    /* Header Adjustments */
    header {
        padding: 10px 5%; /* Smaller padding */
        background-color: rgba(0, 0, 0, 0.9); /* Dark bg */
        backdrop-filter: blur(10px);
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    nav {
        flex-direction: row; /* Keep row layout */
        gap: 15px;
        justify-content: space-between; /* Space out logo and nav links */
    }

    .logo-container img {
        height: 30px !important; /* Fixed smaller logo on mobile, no scroll transition */
        transition: none;
    }
    
    /* Disable scroll shrinking on mobile since it starts small */
    header.scrolled .logo-container img {
        height: 30px; 
    }
    
    .nav-links {
        width: auto; /* Auto width */
        position: static;
        transform: none;
        white-space: nowrap;
    }
    
    .nav-links a {
        display: inline-block;
        margin: 0 0 0 15px; /* Margin left only */
        font-size: 0.8rem; /* Smaller font */
    }
    
    /* Stack form fields */
    .form-group {
        flex: 1 1 100%;
    }

    .content-box {
        padding: 0;
        text-align: left; /* Align text left on mobile */
    }

    .content-box p {
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    /* Resize Scroll Down Button for Mobile */
    .scroll-down {
        padding-top: 40px;
        bottom: 30px;
    }

    .scroll-down span {
        width: 16px;
        height: 16px;
        margin-left: -8px;
        border-width: 2px;
    }

    .scroll-down span:nth-of-type(2) {
        top: 10px;
    }
    .scroll-down span:nth-of-type(3) {
        top: 20px;
    }

    .contact-item {
        min-width: 100%;
        padding: 20px;
    }

    h2 {
        font-size: 2rem;
    }
}
