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

/* ==================================================
   EDIT: COLORS & FONTS
   Change a hex code here and it updates the whole site.
   ================================================== */
:root {
    --bg-dark: #0c0c0c;        /* page background */
    --accent-blue: #93A8C9;    /* section headings, hero title */
    --portrait-bg: #7C93B5;    /* photo card background */
    --text-gray: #9A9A9A;      /* body paragraphs */
    --nav-gray: #D9D9D9;       /* nav links */
    --white: #FFFFFF;          /* name, skill headings */
    --line: #2A2A2A;           /* faint dividers, input underlines */

    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-gray);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
}

/* ==================================================
   HEADER
   ================================================== */
.header {
    padding: 28px 0;
    position: relative;
    z-index: 100;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 18px;
    letter-spacing: -0.3px;
    text-decoration: none;
}

.logo-strong {
    color: var(--white);
    font-weight: 700;
}

.logo-light {
    color: var(--text-gray);
    font-weight: 400;
}

.nav-links {
    display: flex;
    gap: 40px;
    margin-left: auto;
}

.nav-links a {
    color: var(--nav-gray);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
}

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

.icon-link {
    color: var(--white);
    display: inline-flex;
    align-items: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.icon-link:hover {
    opacity: 0.75;
    transform: scale(1.08);
}

.nav-github {
    margin-left: 8px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--white);
    transition: all 0.3s ease;
}

/* ==================================================
   HERO
   ================================================== */
.hero {
    padding: 60px 0 120px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 80px;
    align-items: center;
}

.hero-left {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.2s;
}

.eyebrow {
    font-size: 16px;
    margin-bottom: 16px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: var(--accent-blue);
    margin-bottom: 32px;
}

.cta-link {
    display: inline-block;
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    padding-bottom: 6px;
    position: relative;
}

.cta-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--white);
    transition: width 0.3s ease, opacity 0.3s ease;
}

.cta-link:hover::after {
    width: 130%;
    opacity: 0.8;
}

.hero-right {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.4s;
}

.portrait-card {
    background-color: var(--portrait-bg);
    border-radius: 24px;
    width: 100%;
    max-width: 340px;
    height: 430px;
    margin-left: auto;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

/* your photo, once you swap in the <img> tag */
.portrait-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
}

.portrait-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    padding: 20px;
}

.placeholder-text {
    color: rgba(255, 255, 255, 0.75);
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
    margin: 12px 0;
}

/* ==================================================
   SHARED SECTION LAYOUT
   ================================================== */
.section {
    padding: 60px 0;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 28px;
}

.section-label {
    font-family: var(--font-heading);
    font-size: 34px;
    font-weight: 700;
    color: var(--accent-blue);
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.contact-label {
    text-transform: none;
}

.divider {
    flex: 1;
    height: 1px;
    background-color: var(--accent-blue);
    opacity: 0.7;
}

/* the indented paragraph under each heading */
.section-copy {
    max-width: 560px;
    margin: 0 auto 56px;
    text-align: center;
}

/* ==================================================
   SKILLS ROW
   ================================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    max-width: 900px;
    margin: 0 auto;
}

.skill-column {
    text-align: center;
}

.skill-heading {
    font-family: var(--font-heading);
    font-size: 21px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 6px;
}

.skill-subtext {
    font-size: 12px;
}

/* ==================================================
   WORK / PROJECTS
   ================================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.project-thumb {
    display: block;
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background-color: #1B1F5C;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.project-thumb:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #1B1F5C 0%, #2A2F7A 100%);
}

.thumb-word {
    font-family: var(--font-heading);
    font-size: 26px;
    color: var(--white);
    font-weight: 400;
}

.thumb-word strong {
    font-weight: 700;
}

.thumb-note {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
}

.project-title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 20px;
}

.project-tags {
    font-size: 11px;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* ==================================================
   CONTACT FORM
   ================================================== */
.contact {
    padding-bottom: 100px;
}

.contact-form {
    max-width: 560px;
    margin: 0 auto;
}

.form-row {
    margin-bottom: 34px;
}

.form-row label {
    display: block;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-gray);
    margin-bottom: 6px;
}

.form-row input,
.form-row textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--line);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 15px;
    padding: 8px 0;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.form-row input:focus,
.form-row textarea:focus {
    outline: none;
    border-bottom-color: var(--accent-blue);
}

.form-submit {
    display: block;
    margin: 48px auto 0;
    background: none;
    border: none;
    border-bottom: 2px solid var(--white);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    padding: 0 8px 8px;
    cursor: pointer;
    transition: opacity 0.3s ease, letter-spacing 0.3s ease;
}

.form-submit:hover {
    opacity: 0.8;
    letter-spacing: 3px;
}

.form-status {
    text-align: center;
    font-size: 13px;
    margin-top: 18px;
    min-height: 20px;
    color: var(--accent-blue);
}

/* ==================================================
   FOOTER
   ================================================== */
.footer {
    padding: 40px 0 48px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-socials {
    display: flex;
    gap: 22px;
}

/* ==================================================
   SCROLL ANIMATION
   ================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero-left, .hero-right { animation: none; opacity: 1; }
    html { scroll-behavior: auto; }
}

/* ==================================================
   MOBILE (under 768px)
   ================================================== */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .nav {
        flex-wrap: wrap;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 18px;
        padding: 20px 0 4px;
        margin-left: 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-github {
        margin-left: auto;
    }

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

    .hero {
        padding: 30px 0 70px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .hero-left {
        text-align: center;
    }

    .hero-title {
        font-size: 32px;
    }

    .portrait-card {
        max-width: 280px;
        height: 360px;
        margin: 0 auto;
    }

    .section {
        padding: 44px 0;
    }

    .section-label {
        font-size: 26px;
    }

    .section-header {
        gap: 16px;
        margin-bottom: 24px;
    }

    .section-copy {
        margin-bottom: 40px;
    }

    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .portrait-card {
        max-width: 240px;
        height: 310px;
    }
}
