/* FONT IMPORT */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@700;900&family=Montserrat:wght@400;500&display=swap');

/* BASIC RESET & THEME */
:root {
    --primary-green: #6a994e;
    --light-green: #a7c957;
    --text-light: #f2f2f2;
    --text-dark: #383838;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --overlay-bg: rgba(42, 63, 58, 0.4);
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: #1a1a1a; /* Fallback background */
    color: var(--text-light);
    overflow-x: hidden;
}

/* VIDEO BACKGROUND & OVERLAY */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.video-background video.visible {
    opacity: 1;
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-bg);
    z-index: -1;
}

/* HEADER & NAVIGATION */
.main-header {
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    background-color: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
}

.logo img {
    height: 80px;
    width: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--light-green);
}

.signup-btn {
    background: linear-gradient(145deg, var(--light-green), var(--primary-green));
    color: #fff;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: bold;
    border: none;
    border-bottom: 3px solid #4a6f2d;
    transition: transform 0.2s, box-shadow 0.2s;
}

.signup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    color: #fff;
}

/* MAIN CONTENT & SECTIONS */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
}

/* HERO SECTION */
.hero {
    text-align: center;
    padding: 100px 0;
}

.hero h1 {
    font-family: 'Merriweather', serif;
    font-size: 4.5rem;
    margin: 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero p {
    font-size: 1.5rem;
    margin: 20px auto 40px auto; /* UPDATED: Added auto margins for centering */
    max-width: 600px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

.hero .cta-button {
    background: var(--light-green);
    color: var(--text-dark);
    font-size: 1.2rem;
    font-weight: bold;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.2s;
}

.hero .cta-button:hover {
    background-color: #b9e083;
    transform: scale(1.05);
}

/* HOW IT WORKS SECTION */
.how-it-works {
    display: flex;
    justify-content: space-around;
    text-align: center;
    max-width: 1100px;
    width: 100%;
    padding: 80px 0;
    gap: 40px;
}

.how-it-works .column {
    flex: 1;
}

.how-it-works h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.5rem;
    color: var(--light-green);
    letter-spacing: 2px;
}

/* TOP FINDS CAROUSEL */
.top-finds {
    width: 100vw;
    padding: 80px 0;
    background-color: rgba(0,0,0,0.3);
    overflow: hidden;
    text-align: center;
}

.top-finds h2 {
    font-family: 'Merriweather', serif;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.carousel-container {
    width: 100%;
    display: flex;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    animation: scroll 60s linear infinite; /* Adjust duration based on number of items */
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Scrolls exactly half the width */
}

.carousel-card {
    flex-shrink: 0;
    width: 300px;
    margin: 0 15px;
    background: #fff;
    color: var(--text-dark);
    border-radius: 8px;
    overflow: hidden;
    text-align: left;
}

.carousel-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.carousel-card-info {
    padding: 15px;
}

.carousel-card-info h4 {
    margin: 0 0 5px 0;
}

.carousel-card-info p {
    margin: 0;
    color: #666;
    font-size: 0.9em;
}

/* FOOTER */
.main-footer {
    text-align: center;
    padding: 40px 20px;
    width: 100%;
}

.main-footer a {
    color: #ccc;
    margin: 0 15px;
}