:root {
    --background: #f6f4ef;
    --surface: #ffffff;
    --surface-two: #eeece6;
    --text: #1b1c1a;
    --text-light: #696b66;
    --accent: #176b5b;
    --accent-light: #d9eee8;
    --border: #dedbd3;
    --dark: #1b1c1a;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.10);
}


/* GLOBAL */

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--background);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
    transition: 0.4s;
}

a {
    color: inherit;
}

section {
    scroll-margin-top: 80px;
}


/* NAVBAR */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 76px;
    background: rgba(246, 244, 239, 0.88);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.nav-container {
    max-width: 1450px;
    height: 100%;
    margin: auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    text-decoration: none;
    font-size: 23px;
    font-weight: 700;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 14px;
}

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    font-size: 19px;
    cursor: pointer;
}

.resume-nav {
    padding: 11px 18px;
    border: 1px solid var(--text);
    border-radius: 9px;
    text-decoration: none;
    font-size: 14px;
}

.menu-button {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 26px;
    cursor: pointer;
}

.mobile-menu {
    display: none;
}


/* HERO */

.hero {
    min-height: 100vh;
    padding: 150px 0 80px;
}

.hero-container {
    max-width: 1250px;
    margin: auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
}

.availability {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 17px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 28px;
}

.status-dot {
    width: 9px;
    height: 9px;
    background: #28a86b;
    border-radius: 50%;
}

.hero-small,
.section-label {
    color: var(--accent);
    font-size: 12px;
    letter-spacing: 3px;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero-content h1 {
    font-family: Georgia, serif;
    font-size: clamp(58px, 7vw, 96px);
    line-height: 0.93;
    letter-spacing: -4px;
    margin-bottom: 25px;
}

.hero-content h1 span {
    color: var(--accent);
}

.hero-content h2 {
    font-size: 26px;
    font-weight: 400;
    color: var(--text-light);
    margin-bottom: 25px;
}

.hero-content h2 span {
    color: var(--text);
    font-weight: 600;
}

.hero-description {
    max-width: 570px;
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 35px;
}

.primary-button,
.secondary-button {
    padding: 15px 24px;
    border-radius: 10px;
    text-decoration: none;
    transition: 0.3s;
}

.primary-button {
    background: var(--dark);
    color: white;
    font-weight: 600;
}

.secondary-button {
    border: 1px solid var(--border);
}

.primary-button:hover,
.secondary-button:hover {
    transform: translateY(-4px);
}

.hero-links {
    margin-top: 25px;
}

.hero-links a {
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}


/* NORMAL PHOTO */

.hero-photo-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-photo {
    width: 360px;
    height: 470px;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    box-shadow: var(--shadow);
}


/* STATS */

.hero-stats {
    max-width: 1250px;
    margin: 70px auto 0;
    padding: 35px 30px;
    border-top: 1px solid var(--border);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-family: Georgia, serif;
    font-size: 44px;
    margin-bottom: 8px;
}

.stat p {
    color: var(--text-light);
    font-size: 13px;
}


/* SECTIONS */

.section {
    padding: 120px 30px;
    border-top: 1px solid var(--border);
}

.section-container {
    max-width: 1200px;
    margin: auto;
}

.section-heading {
    margin-bottom: 60px;
}

.section-heading h2 {
    font-family: Georgia, serif;
    font-size: clamp(40px, 5vw, 68px);
    letter-spacing: -2px;
    line-height: 1.1;
}

.section-heading h2 span,
.contact-container h2 span {
    color: var(--accent);
}


/* ABOUT */

.about-content {
    max-width: 800px;
}

.about-content p {
    font-size: 19px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 22px;
}


/* SKILLS */

.skills-section {
    background: var(--surface-two);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.skill-card,
.certificate-card,
.leadership-card {
    background: var(--surface);
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: 0.3s;
}

.skill-card:hover,
.certificate-card:hover,
.leadership-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow);
}

.skill-card h3,
.leadership-card h3 {
    font-family: Georgia, serif;
    font-size: 25px;
    margin-bottom: 22px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tags span {
    padding: 8px 13px;
    border-radius: 30px;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 13px;
}


/* PROJECTS */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.project-card {
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    min-height: 420px;
    display: flex;
    flex-direction: column;
    transition: 0.35s;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.project-number {
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 35px;
}

.project-card h3 {
    font-family: Georgia, serif;
    font-size: 28px;
    margin-bottom: 18px;
}

.project-card p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 25px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    margin-bottom: 25px;
}

.project-tech span {
    font-size: 11px;
    padding: 7px 10px;
    border: 1px solid var(--border);
    border-radius: 20px;
}

.project-link,
.project-status {
    color: var(--accent) !important;
    text-decoration: none;
    font-weight: 700;
}


/* EDUCATION */

.education-section {
    background: var(--surface-two);
}

.education-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    padding: 35px 0;
    border-bottom: 1px solid var(--border);
}

.education-year {
    color: var(--accent);
    font-weight: 700;
}

.education-info h3 {
    font-size: 23px;
    margin-bottom: 10px;
}

.education-info p,
.education-info span {
    color: var(--text-light);
}


/* CERTIFICATIONS */

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.certificate-card {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
}

.certificate-link {
    color: var(--text);
    text-decoration: none;
    cursor: pointer;
}

.certificate-link small {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.certificate-link small b {
    font-size: 15px;
    line-height: 1;
    transition: transform 0.3s ease;
}

.certificate-link:hover small,
.certificate-link:focus-visible small {
    background: var(--accent);
    color: var(--surface);
}

.certificate-link:hover small b,
.certificate-link:focus-visible small b {
    transform: translateX(3px);
}

.certificate-link:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}


/* LEADERSHIP */

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.leadership-card p {
    color: var(--text-light);
    line-height: 1.7;
}


/* CONTACT */

.contact-section {
    text-align: center;
}

.contact-container {
    max-width: 850px;
    margin: auto;
}

.contact-container h2 {
    font-family: Georgia, serif;
    font-size: clamp(42px, 6vw, 75px);
    letter-spacing: -3px;
    margin-bottom: 25px;
}

.contact-description {
    color: var(--text-light);
    font-size: 17px;
    line-height: 1.7;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 35px;
}

.contact-links a {
    background: var(--dark);
    color: white;
    padding: 15px 24px;
    border-radius: 10px;
    text-decoration: none;
}


/* FOOTER */

.footer {
    border-top: 1px solid var(--border);
    padding: 30px;
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
    color: var(--text-light);
    font-size: 13px;
}


/* SCROLL REVEAL */

.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}


/* DARK MODE */

body.dark-mode {
    --background: #151615;
    --surface: #1e201e;
    --surface-two: #191a19;
    --text: #f1f0eb;
    --text-light: #a5a7a0;
    --accent: #70d4bd;
    --accent-light: #203a34;
    --border: #353735;
    --dark: #f1f0eb;
}

body.dark-mode .navbar {
    background: rgba(21, 22, 21, 0.88);
}

body.dark-mode .primary-button,
body.dark-mode .contact-links a {
    color: #161716;
}


/* MOBILE */

@media screen and (max-width: 1050px) {

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-description {
        margin: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .projects-grid {
        grid-template-columns: 1fr 1fr;
    }

    .certifications-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section {
        padding: 100px 30px;
    }
}


@media screen and (max-width: 750px) {

    .navbar {
        height: 70px;
    }

    .nav-container {
        padding: 0 20px;
    }

    .nav-links,
    .nav-right {
        display: none;
    }

    .menu-button {
        display: block;
    }

    .mobile-menu {
        position: absolute;
        top: 70px;
        width: 100%;
        background: var(--surface);
        padding: 20px;
        flex-direction: column;
        gap: 18px;
        border-bottom: 1px solid var(--border);
        z-index: 1001;
    }

    .mobile-menu.active {
        display: flex;
    }

    .mobile-menu a {
        text-decoration: none;
    }

    .hero {
        padding-top: 120px;
    }

    .hero-content h1 {
        letter-spacing: -2px;
    }

    .profile-photo {
        width: min(280px, 100%);
        height: auto;
        aspect-ratio: 7 / 9;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .section {
        padding: 90px 20px;
    }

    .skills-grid,
    .projects-grid,
    .certifications-grid,
    .leadership-grid {
        grid-template-columns: 1fr;
    }

    .education-item {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .footer {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .contact-links {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-links a {
        width: 100%;
    }

    .certificate-card {
        min-height: 135px;
        padding: 24px;
    }

}

@media screen and (max-width: 420px) {

    .hero-container {
        padding: 0 20px;
        gap: 50px;
    }

    .hero-content h1 {
        font-size: clamp(48px, 16vw, 64px);
        letter-spacing: -3px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .primary-button,
    .secondary-button,
    .contact-links a {
        text-align: center;
    }

    .section-heading {
        margin-bottom: 42px;
    }
}
