/* ================= GLOBAL ================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* Base body */
body {
    overflow-x: hidden;
    background: #1e1f22; /* fallback background */
}

/* If you use wrapper+footer layout, this helps but won't break hero pages */
.page-wrapper{
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ✅ IMPORTANT: On the HOME page only, let hero go behind fixed nav */
body.home-page{
    padding-top: 0 !important; /* overrides nav.php body padding-top */
}

/* ================= FONT ================= */

@font-face {
    font-family: 'SuperWater';
    src: url('fonts/SuperWater.ttf') format('truetype');
}

/* ================= HERO ================= */

/* Full screen hero */
.hero {
    height: 100vh;
    min-height: 100svh;
    background: url("images/farm-bg.png") no-repeat center 25%/cover;
    position: relative;
    color: white;
    width: 100%;
}

/* DARK OVERLAY (BLACK BEHIND NAV FIX) */
.hero::before{
    content:"";
    position:absolute;
    inset:0;

    /* Strong black at top (behind nav) */
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.95) 0%,
        rgba(0,0,0,0.85) 12%,
        rgba(0,0,0,0.55) 30%,
        rgba(0,0,0,0.25) 60%,
        rgba(0,0,0,0.4) 100%
    );

    pointer-events:none;
}

/* Hero content */
.content {
    position: relative;
    z-index: 2;

    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 16px;
}

/* ================= TITLE ================= */

h1 {
    font-family: 'SuperWater', sans-serif;
    font-size: 120px;
    letter-spacing: 10px;
    opacity: 0;
    transform: translateY(18px);
    animation: riseIn 700ms ease forwards;
}

.tagline {
    margin-top: 10px;
    font-size: 30px;
    font-style: italic;
    opacity: 0;
    transform: translateY(18px);
    animation: riseIn 700ms ease forwards;
    animation-delay: 150ms;
}

/* ================= BUTTONS ================= */

.center-buttons {
    margin-top: 50px;
    display: flex;
    gap: 30px;
    opacity: 0;
    transform: translateY(18px);
    animation: riseIn 700ms ease forwards;
    animation-delay: 300ms;
}

.center-buttons button {
    padding: 18px 55px;
    font-size: 20px;
    border-radius: 40px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.center-buttons button:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 12px 30px rgba(0,0,0,.25);
    filter: brightness(1.05);
}

.login-btn {
    background: white;
    color: #333;
}

.signup-btn {
    background: #2f4f1f;
    color: white;
}

/* ================= ABOUT SECTION ================= */

.about-section {
    background-color: #263028;
    padding: 120px 20px;
    color: white;
    text-align: center;
}

#about {
    scroll-margin-top: 100px;
}

.about-overlay {
    background: #2F3A32;
    padding: 60px 20px;
}

.about-section h2 {
    font-family: 'SuperWater', sans-serif;
    font-size: 60px;
    margin-bottom: 20px;
}

.about-section p {
    max-width: 900px;
    margin: auto;
    font-size: 18px;
    line-height: 1.7;
}

/* ================= TEAM ================= */

.team-title {
    margin-top: 60px;
}

.team {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.member img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    transition: transform .25s ease, box-shadow .25s ease;
}

.member:hover img {
    transform: scale(1.06);
    box-shadow: 0 14px 40px rgba(0,0,0,.35);
}

.member h3 {
    margin-top: 15px;
    font-size: 16px;
}

.member span {
    font-size: 14px;
    opacity: 0.9;
}

/* ================= ANIMATION ================= */

@keyframes riseIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {
    h1 {
        font-size: 40px;
    }

    .tagline {
        font-size: 18px;
    }

    .center-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .center-buttons button {
        width: 220px;
    }
}
