:root {
    --bg: #090b0d;
    --panel: #101418;
    --text: #f4f7f5;
    --muted: #9aa5a0;
    --accent: #70e1a1;
    --line: #20282a
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html {
    scroll-behavior: smooth;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg);
    color: var(--text);
    font: 16px/1.6 Arial, sans-serif
}

main {
    overflow: hidden;
}

/* DARK THEME */
body.dark-theme {
    /* --bg: #0B1412;
    --bg-2: #12211D;
    --soft: #F2F6F3;
    --ink: #F2F6F3;
    --muted: #A7B5AE;
    --line: #30423A;
    --white: #F7FBF8;
    --accent: #A3E635;
    --accent-strong: #65A30D; */

    --bg: #110E0B;
        --bg-2: #1C1611;
        --soft: #F7F1EA;
        --ink: #F7F1EA;
        --muted: #B4A79A;
        --line: #3A3028;
        --white: #FFFFFF;
    
        --accent: #A98B6D;
        --accent-strong: #806348;
}

/* LIGHT THEME */
body {
    --bg: #F8FAF5;
    --bg-2: #EDF5E5;
    --soft: #17210F;
    --ink: #17210F;
    --muted: #65705B;
    --line: #D9E6CC;
    --white: #FFFFFF;

    --accent: #64A20D;
    --accent-strong: #4D7C0F;

    background: var(--bg);
    color: var(--ink);
    transition: background 0.4s ease, color 0.4s ease;
}
body.dark-theme {
    background: var(--bg);
    color: var(--ink);
}

a {
    color: inherit;
    text-decoration: none
}

nav {
    display: flex;
    gap: 30px
}

nav a {
    font-size: 14px;
    color: #c8cfcb;
    transition: .25s
}

nav a:hover {
    color: var(--accent)
}

.menu {
    display: none;
    background: none;
    border: 0;
    color: #fff;
    font-size: 24px
}

.nav {
    position: sticky;
    z-index: 10;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 7%;
    background: #090b0dcc;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid #ffffff0a
}

.logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--accent);
}

.nav nav a {
    position: relative;
    color: #c8cfcb;
    transition: color 0.3s ease;
}

.nav nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    border-radius: 10px;
    background: #a3e635;
    transition: width .3s ease;
}

.nav nav a:hover,
.nav nav a.active{
    color: var(--accent);
}

.nav nav a:hover::after,
.nav nav a.active::after {
    width: 100%;
    background: var(--accent);
}

/* Theme Button */
.theme-toggle {
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s ease;
}

.theme-toggle:hover {
    background: var(--accent);
    color: #142019;
    transform: rotate(20deg) scale(1.08);
}
/* ================= HERO SECTION================= */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    padding: 50px max(20px, calc((100vw - 1160px) / 2));
    display: grid;
    grid-template-columns: 1fr 0.75fr;
    gap: 40px;
    align-items: center;
    color: var(--white);
    background: radial-gradient(circle at 85% 20%, rgba(100, 162, 13, .14), transparent 28%),
        linear-gradient(135deg, #a9c18b 0%, #c9c9c9 55%, #6f8b53 100%);
}

.glow {
    position: absolute;
    border-radius: 50%;
    opacity: .12;
    filter: blur(5px)
}

.glow1 {
    width: 450px;
    height: 450px;
    background: var(--accent);
    right: -180px;
    top: 10%;
    box-shadow: 0 0 150px 70px var(--accent)
}

.glow2 {
    width: 300px;
    height: 300px;
    background: #315bff;
    left: -150px;
    bottom: -80px;
    box-shadow: 0 0 120px 60px #315bff
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: heroContentIn 1s ease-out both;
}

.eyebrow,
.label {
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 3px
}

.hero h1 {
    font-size: clamp(64px, 10vw, 145px);
    line-height: .9;
    letter-spacing: -7px;
    margin: 15px 0 22px 0;
    color: #0a1512;
}

.logo span,
h1 span,
h2 span {
    color: var(--accent);
}

.lead {
    max-width: 650px;
    color: var(--muted);
    font-size: 18px;
    margin: auto
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 32px
}

.btn {
    display: inline-block;
    padding: 13px 22px;
    border-radius: 30px;
    font-weight: bold;
    transition: .3s;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 80%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, .35),
            transparent);
    transform: skewX(-20deg);
    transition: left .6s ease;
}

.btn:hover::before {
    left: 140%;
}

.primary {
    background: var(--accent);
    color: #07110b;
}

.ghost {
    border: 1px solid #34403c
}

.btn:hover {
    transform: translateY(-3px)
}

.ghost:hover {
    color: var(--accent);
    border-color: var(--accent)
}

.hero-image {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-frame {
    width: 300px;
    height: 550px;
    padding: 10px;
    border-radius: 32px;
    border-color: #725906;
    background: linear-gradient(145deg,
            #70e1a1,
            rgba(163, 230, 53, .15),
            rgba(255, 255, 255, .05));
    box-shadow:
        0 30px 80px rgba(0, 0, 0, .4),
        0 0 60px rgba(163, 230, 53, .08);
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 25px;
    display: block;
}
/* ANIMATIONS */
.hero-image {
    animation:
        heroImageIn 1s .2s ease-out both,
        floatingImage 5s 1.2s ease-in-out infinite;
}

@keyframes heroContentIn {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes heroImageIn {
    from {
        opacity: 0;
        transform: translateX(10px) scale(.9);
    }

    to {
        opacity: 1;
        transform: translateX(10px) scale(1);
    }
}

@keyframes floatingImage {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}
/* =============== HERO SECTION COMPLETED =============== */

/*  =============== ABOUT SECTION =============== */
.section {
    max-width: 1300px;
    margin: auto;
    padding: 120px 7%
}

.label {
    margin-bottom: 55px
}

.reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.97);
    transition:
        opacity 0.8s ease,
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px
}

.copy {
    color: var(--muted);
    font-size: 18px;
    max-width: 570px
}

.copy p+p {
    margin-top: 20px
}

.section h2 {
    font-size: clamp(40px, 5vw, 70px);
    line-height: 1.05;
    letter-spacing: -3px
}

/* =============== ABOUT SECTION COMPLETED =============== */


/* ================= EXPERIENCE & SKILLS SECTION================= */
.dark {
    max-width: none;
    background: radial-gradient(circle at 85% 20%, rgba(100, 162, 13, .14), transparent 28%),
            linear-gradient(135deg, #a9c18b 0%, #c9c9c9 55%, #6f8b53 100%);
    border-block: 1px solid var(--line)
}

.dark>.two-col {
    max-width: 1160px;
    margin: auto
}

/* Stagger cards */
.card {
    display: flex;
    gap: 25px;
    border-top: 1px solid var(--line);
    padding: 25px 0;
    margin-top: 25px;
    transition: transform .4s ease, border-color .4s ease,
        background .4s ease, box-shadow .4s ease;
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(163, 230, 53, .45);
    background: rgba(163, 230, 53, .07);
    box-shadow: 0 20px 45px rgba(0, 0, 0, .2);
}

.card b {
    color: var(--accent)
}

.card h3 {
    font-size: 23px;
    margin-bottom: 6px
}

.card p {
    color: var(--muted);
    max-width: 500px
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px
}

.skills span {
    padding: 11px 17px;
    border: 1px solid #2b3632;
    border-radius: 30px;
    transition: transform .3s ease,
        background .3s ease,
        color .3s ease,
        border-color .3s ease;
}

.skills span:hover {
    transform: translateY(-5px) scale(1.04);
    background: var(--muted);
    color: #12200f;
    border-color: #2f4d00;
    border: 3px solid;
    box-shadow: 0 30px 40px rgba(163, 230, 53, .25);
}
/* =============== EXPERIENCE & SKILLS SECTION COMPLETED =============== */

/* ================= CONTACT SECTION ================= */
.contact {
    min-height: 65vh;
    display: grid;
    align-content: center
}

.contact h2 {
    margin: 18px 0
}

.contact .copy {
    margin-bottom: 28px
}

h1 span,
h2 span {
            display: inline-block;
            animation: accentPulse 3s ease-in-out infinite;
}

        @keyframes accentPulse {

            0%,
            100% {
                text-shadow: 0 0 0 rgba(163, 230, 53, 0);
            }

            50% {
                text-shadow: 0 0 22px rgba(163, 230, 53, .25);
            }
        }

        .contact .btn {
            animation: contactPulse 2.8s ease-in-out infinite;
        }

        @keyframes contactPulse {

            0%,
            100% {
                box-shadow: 0 0 0 rgba(163, 230, 53, 0);
            }

            50% {
                box-shadow: 0 0 28px rgba(163, 230, 53, .18);
            }
        }

        /* Prevent animation overload on mobile */
        @media (max-width: 740px) {
            .hero-image {
                animation:
                    heroImageIn 1s .2s ease-out both,
                    floatingImage 6s 1.2s ease-in-out infinite;
            }
        }

        /* Accessibility */
        @media (prefers-reduced-motion: reduce) {

            *,
            *::before,
            *::after {
                animation-duration: .01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: .01ms !important;
                scroll-behavior: auto !important;
            }

            .reveal {
                opacity: 1;
                transform: none;
            }
        }
@media(max-width:760px) {
    .menu {
        display: block
    }

    nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        padding: 25px 7%;
        background: #090b0df7;
        flex-direction: column;
        gap: 20px
    }

    nav.open {
        display: flex
    }

    .hero h1 {
        letter-spacing: -4px
    }

    .lead {
        font-size: 16px
    }

    .buttons {
        flex-direction: column;
        align-items: center
    }

    .two-col {
        grid-template-columns: 1fr;
        gap: 45px
    }

    .section {
        padding: 90px 7%
    }

    .label {
        margin-bottom: 38px
    }

    footer {
        padding: 24px 7%;
        gap: 10px;
        flex-direction: column
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    .reveal {
        transition: none
    }
}

/* CONTACT FORM */

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: start;
}

.contact-info h2 {
    margin-bottom: 20px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg-2);
    color: var(--ink);
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(101, 80, 59, 0.12);
}

.form-group textarea {
    resize: vertical;
}

#formStatus {
    margin-top: 5px;
    font-size: 14px;
}

#formStatus.success {
    color: #4d7c0f;
}

#formStatus.error {
    color: #dc2626;
}


/* MOBILE */

@media (max-width: 768px) {

    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

}

/* ================= CONTACT SECTION  COMPLETED ================= */
footer {
    display: flex;
    justify-content: space-between;
    padding: 28px 7%;
    border-top: 1px solid var(--line);
    color: #68736e;
    font-size: 12px;
    background: radial-gradient(circle at 85% 20%, rgba(100, 162, 13, .14), transparent 28%),
            linear-gradient(135deg, #a9c18b 0%, #c9c9c9 55%, #6f8b53 100%);
}