/* --- Setup & Variables from Mockup --- */
:root {
    /* Colors meticulously picked from the mockup */
    --color-dark-bg: #0c1019;
    --color-light-accent: #b8d9e8;  /* Lighter, more readable blue */
    --color-white: #ffffff;
    --color-light-bg: #fbfcfd;
    --color-dark-text: #525866;
    --color-link: #46a1d8;
    --color-logo-text: #f0f8ff;
    --color-feature-text: #e1f0f7; /* Very light blue for feature descriptions */

    /* Fonts (As previously configured) */
    --font-heading: 'Amatic SC', cursive;
    --font-body: 'Rubik', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-dark-bg);
    font-family: var(--font-body);
    color: var(--color-light-accent); /* Default text color in dark sections */
    overflow-x: hidden;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Header --- */
header {
    padding: 2rem 0; /* Increased padding */
    position: absolute;
    width: 100%;
    z-index: 100;
    /* Header gradient background as per mockup */
    background: linear-gradient(
        to bottom,
        rgba(12, 16, 25, 0.9) 0%,
        rgba(12, 16, 25, 0.7) 40%,
        rgba(12, 16, 25, 0.4) 70%,
        transparent 100%
    );
    /* Smooth transition for any hover effects */
    transition: background 0.3s ease;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    width: 220px; /* Adjusted size to better match mockup */
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.1));
}

nav ul {
    list-style: none;
    display: flex;
    gap: 3rem; /* Increased gap */
}

nav a {
    text-decoration: none;
    color: var(--color-white); /* Pure white for better contrast */
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: 4px; /* Wider spacing to match design */
    font-size: 2.1rem;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--color-light-accent);
}

/* --- Hero Section --- */
#hero {
    background-image: url('images/banner2k.webp');
    background-size: cover;
    background-position: center bottom; /* Positioned to keep ground visible */
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-content {
    position: relative;
    height: 300px; /* Adjust as needed */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
}

.game-title {
    width: 80%; /* Larger to be more impactful */
    max-width: 600px;
    padding-left: 50px;

    filter: drop-shadow(0 0 20px rgba(173, 216, 230, 0.5));

    animation: float 3s ease-in-out infinite;
    margin-top: -20px; /* Move the image higher */
    transition: opacity 0.3s ease-in-out;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

.steam-link img {
    width: 200px;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: brightness(1);
}

.steam-link:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.tagline-container {
    padding: 4rem 0 3rem 0;
    width: 100%;
    position: relative;
}

.tagline {
    font-size: 1.4rem; /* Slightly larger for better readability */
    font-style: italic;
    font-weight: 400;
    color: var(--color-white); /* Pure white for better contrast */
    padding: 0 1rem;
}

.tagline::before, .tagline::after {
    content: '';
    position: absolute;
    left: 25%;
    right: 25%;
    height: 1px;
    /* This gradient simulates the dotted line appearance from a distance */
    background-image: linear-gradient(to right, transparent, var(--color-light-accent) 30%, var(--color-light-accent) 70%, transparent);
    opacity: 0.4; /* Slightly more visible */
}

.tagline::before { top: 1rem; }
.tagline::after { bottom: 0; }

/* --- Features Section --- */
#features {
    padding: 120px 0;
    background-color: var(--color-dark-bg);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 5rem; /* Increased gap for more breathing room */
    margin-bottom: 120px; /* Increased vertical spacing */
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.feature-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-item.reverse {
    flex-direction: row-reverse;
}

.feature-image {
    flex: 1.2; /* Give image slightly more space */
}

.feature-image img {
    border-radius: 4px; /* Subtle rounding */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.feature-text {
    flex: 1;
}

.feature-text h2 {
    font-family: var(--font-heading);
    font-size: 5rem; /* Larger to match the mockup */
    color: var(--color-white); /* Pure white for maximum impact */
    font-weight: 700;
    letter-spacing: 3px; /* More letter spacing */
    margin-bottom: 1.5rem; /* More spacing below heading */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Subtle text shadow for depth */
}

.feature-text p {
    font-size: 1.2rem; /* Larger text for better readability */
    line-height: 1.8; /* Better readability */
    max-width: 450px;
    color: var(--color-feature-text); /* Very light blue for better contrast */
    font-weight: 400;
}

/* --- Brush Transition --- */
.brush-transition {
    height: 200px;
    background-image: url('images/white-fade.png');
    background-size: auto 100%; /* Maintain aspect ratio, stretch vertically */
    background-position: center bottom; /* Align with bottom of previous section */
    background-repeat: repeat-x; /* Repeat only horizontally */
    background-color: transparent; /* Allow transparency to show underlying bg */
    margin-top: -150px; /* Overlap slightly with section above */
    position: relative;
    z-index: 10;
}

/* --- About Section --- */
#about {
    background-color: var(--color-white);
    color: var(--color-dark-text);
    padding: 80px 0 100px 0;
    text-align: center;
}

#about .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.watercolor-logo {
    width: 280px; /* Larger to match mockup */
    margin-bottom: 1.5rem;
}

.studio-description {
    max-width: 650px;
    font-size: 1.15rem; /* Slightly larger */
    line-height: 1.8;
    color: var(--color-dark-text);
}

.email-link {
    color: var(--color-link); /* Using the specific blue from mockup */
    text-decoration: none;
    font-weight: 600; /* Use a heavier weight for the link */
    font-size: 1.1rem;
    transition: color 0.3s ease;
}
.email-link:hover {
    color: var(--color-dark-text);
}


.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-links a {
    font-size: 2.2rem; /* Larger icons */
    color: var(--color-link); /* Use link color for consistency */
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    color: var(--color-dark-text);
    transform: scale(1.15);
}

#about {
    position: relative;
    padding-bottom: 3rem;
}

#about::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, transparent, rgba(74, 144, 226, 0.05));
    pointer-events: none;
    z-index: -1;
}

.sponsors-container {
    margin-top: 3rem;
    text-align: center;
}

.sponsors-title {
    font-family: 'Amatic SC', cursive;
    font-size: 2rem;
    color: #333;
    margin-bottom: 2rem;
    font-weight: 700;
}

.sponsors {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.sponsor-item {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    min-width: 150px;
    max-width: 250px;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.sponsor-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.9);
}

.sponsor-logo {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(20%);
    transition: all 0.3s ease;
}

.sponsor-item:hover .sponsor-logo {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* --- Footer --- */
footer {
    background-color: var(--color-light-bg);
    padding: 2.5rem 0;
    border-top: 1px solid #e9ecef;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--color-dark-text);
    font-size: 0.9rem;
}

.copyright {
    color: var(--color-link); /* Copyright text matches the link color */
    font-weight: 600;
}

.footer-logo {
    width: 40px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.7;
}

.footer-links a {
    color: var(--color-dark-text);
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-link);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .feature-item,
    .feature-item.reverse {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .feature-text p {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1.5rem 0;
    }
    header .container {
        flex-direction: column;
        gap: 1.5rem;
    }
    nav a {
        font-size: 1.8rem; /* Slightly larger for mobile */
    }

    #hero { padding-top: 180px; }
    .game-title { width: 320px; }
    .steam-link img { width: 180px; }
    .tagline { font-size: 1.2rem; }
    .feature-text h2 { font-size: 4rem; }

    footer .container {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    .footer-logo { display: none; }
    .footer-links {
        order: -1; /* Move links to the top on mobile */
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .footer-links a { margin-left: 0; }
}

/* Add these styles to your style.css file */

/* Header styles */
header {
    position: fixed;
    top: 0;
    width: 100%;
    /* background-color: rgba(255, 255, 255, 0.95); */
    /* backdrop-filter: blur(10px); */
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}
/*
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
} */

main {
    top: -100px;
}

.logo-link {
    max-width: 200px;
}

.logo {
    width: 100%;
    height: auto;
}

/* Navigation styles */
nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 2rem;
}

/* nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-family: 'Rubik', sans-serif;
    transition: color 0.3s ease;
} */

nav ul li a:hover {
    color: var(--color-link);
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn i {
    font-size: 1.5rem;
    color: #333;
}

/* Mobile styles - keeping links visible but smaller */
@media (max-width: 768px) {
    header .container {
        padding: 0.75rem 1rem; /* Reduced padding */
    }
    
    .logo-link {
        max-width: 120px; /* Smaller logo on mobile */
    }
    
    /* Remove hamburger menu button */
    .mobile-menu-btn {
        display: none;
    }
    
    /* Keep navigation visible but adjust styling */
    nav {
        display: block;
    }
    
    nav ul {
        justify-content: flex-end; /* Align links to the right */
        gap: 1rem; /* Use gap instead of margin for better control */
    }
    
    nav ul li {
        margin: 0; /* Remove margin since we're using gap */
    }
    
    nav ul li a {
        font-size: 0.875rem; /* Smaller font size */
        padding: 0.25rem 0.5rem; /* Add some padding for touch targets */
    }

    .sponsors {
        gap: 1.5rem;
    }
    
    .sponsor-item {
        min-width: 120px;
        max-width: 180px;
        padding: 0.75rem;
    }
    
    .sponsor-logo {
        max-height: 60px;
    }
    
    .sponsors-title {
        font-size: 1.75rem;
    }
}

/* For very small screens */
@media (max-width: 480px) {
    header .container {
        padding: 0.5rem 0.75rem; /* Even smaller padding */
    }
    
    .logo-link {
        max-width: 100px; /* Even smaller logo */
    }
    
    nav ul {
        gap: 0.5rem; /* Reduce gap between links */
    }
    
    nav ul li a {
        font-size: 0.75rem; /* Even smaller font */
        padding: 0.25rem 0.25rem; /* Adjust padding */
    }

    .sponsors {
        gap: 1rem;
        flex-direction: column;
    }
    
    .sponsor-item {
        width: 100%;
        max-width: 200px;
    }
    
    .sponsor-logo {
        max-height: 50px;
    }
    
    .sponsors-title {
        font-size: 1.5rem;
    }
}
