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

/* Base */
body {
    background: linear-gradient(
        180deg,
        #437b47 0%,
        #3c6246 55%,
        #334b3c 100%
    );
    color: #eef3ea;
    font-family: "Nunito", system-ui, sans-serif;
    min-height: 100vh;
}

/* Header */
#header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 56px;
    background: rgba(12, 30, 22, 0.6);
    backdrop-filter: blur(10px);
}

/* Site title */
#site-title h1 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #d7e4c6;
}

.subtitle {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Navigation */
#nav-buttons {
    display: flex;
    gap: 18px;
}

.nav-btn {
    text-decoration: none;
    color: #e8f0dc;
    padding: 10px 22px;
    border-radius: 999px;
    border: 1px solid rgba(215, 228, 198, 0.35);
    background: rgba(215, 228, 198, 0.08);
    transition: all 0.25s ease;
}

.nav-btn:hover {
    background: rgba(215, 228, 198, 0.2);
    transform: translateY(-1px);
}

/* ================== Landing ================== */
#landing {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 56px;
    background: radial-gradient(
        circle at top left,
        rgba(215, 228, 198, 0.15),
        transparent 60%
    );
}

.landing-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 60px;
    max-width: 1100px;
    width: 100%;
}

/* Introduction (Left) */
#introduction {
    text-align: center;
}

#introduction h2 {
    font-size: 2.8rem;
    margin-bottom: 14px;
}

#introduction p {
    max-width: 520px;
    font-size: 1.05rem;
    line-height: 1.6;
    opacity: 0.9;
    
}

/* Image (Right) */
.landing-image img {
    width: 100%;
    max-width: 420px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

/* ================== Projects ================== */
#projects {
    padding: 100px 56px;
    background: rgba(12, 30, 22, 0.35);
    border-top: 1px solid rgba(215, 228, 198, 0.15);
    border-radius: 48px;
}

#projects h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 56px;
    color: #d7e4c6;
}

/* Project grid */
.project-grid {
    display: grid;
    gap: 32px;
}

/* Video section */
#video-display {
    background: rgba(206, 206, 206, 0.08);
    border-radius: 18px;
    border-top: 1px solid rgba(215, 228, 198, 0.15);
    padding: 100px 56px;
    text-align: center;
    justify-content: center;
}

#video-display h2 {
    color: #d7e4c6;
    font-size: 2rem;
    margin-bottom: 56px;
}

/* Project cards */
.project-card {
    background: rgba(215, 228, 198, 0.08);
    border-radius: 18px;
    padding: 18px;
    text-align: center;
}

.project-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 14px;
}

.project-card h3 {
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.project-card p {
    font-size: 0.95rem;
    opacity: 0.85;
}

#footer {
    margin-top: 100px;
    padding: 40px 56px;
    display: flex;
    justify-content: space-between;
    align-items: center;

    background: linear-gradient(
        180deg,
        rgba(12, 30, 22, 0.85),
        rgba(8, 20, 15, 0.9)
    );
    border-top: 1px solid rgba(215, 228, 198, 0.18);
    backdrop-filter: blur(8px);
}

/* Left text */
.footer-left p {
    font-size: 0.9rem;
    opacity: 0.75;
    color: #d7e4c6;
}

/* Right icons */
.footer-right {
    display: flex;
    align-items: center;
    gap: 28px;
}

/* Social icons */
.footer-right img {
    height: 42px;
    width: auto;
    opacity: 0.8;
    transition: all 0.25s ease;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

.footer-right img:hover {
    opacity: 1;
    transform: translateY(-2px) scale(1.05);
}

/* Phone styling*/
@media (max-width: 1000px) {
    #header {
        padding: 20px 28px;
    }

    #landing {
        height: 50%;
        padding: 80px 28px;
    }

    .landing-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    #introduction {
        text-align: center;
    }

    #introduction p {
        margin: 0 auto;
    }

    .landing-image img {
        margin: 40px auto 0;
    }

    #projects {
        padding: 80px 28px;
    }

    #footer {
        flex-direction: column;
        gap: 12px;
    }
}
