/* ========================================
   VARIABLES
======================================== */

:root {
    --background: #0a0a0a;
    --background-secondary: #111111;
    --card-background: #161616;

    --text-primary: #f5f5f5;
    --text-secondary: #a3a3a3;

    --border: #292929;

    --accent: #5b8cff;
    --accent-hover: #7aa1ff;

    --max-width: 1150px;
}


/* ========================================
   RESET
======================================== */

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


html {
    scroll-behavior: smooth;
}


body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    background-color: var(--background);
    color: var(--text-primary);

    line-height: 1.6;
}


a {
    color: inherit;
    text-decoration: none;
}


img {
    display: block;
    max-width: 100%;
}


/* ========================================
   CONTAINER
======================================== */

.container {
    width: min(90%, var(--max-width));
    margin: 0 auto;
}


/* ========================================
   NAVIGATION
======================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(10, 10, 10, 0.9);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border-bottom: 1px solid var(--border);
}


.navbar {
    min-height: 72px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}


.logo {
    font-size: 1.1rem;
    font-weight: 700;

    transition: color 0.2s ease;
}


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


.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;

    list-style: none;
}


.nav-links a {
    color: var(--text-secondary);

    font-size: 0.95rem;

    transition: color 0.2s ease;
}


.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}


.nav-links a.active {
    position: relative;
}


.nav-links a.active::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -8px;

    width: 100%;
    height: 2px;

    background: var(--accent);
}


.menu-button {
    display: none;

    background: none;
    border: none;

    color: var(--text-primary);

    font-size: 1.6rem;

    cursor: pointer;
}


/* ========================================
   TYPOGRAPHY
======================================== */

h1,
h2,
h3 {
    line-height: 1.2;
}


h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
}


h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}


h3 {
    font-size: 1.35rem;
}


p {
    color: var(--text-secondary);
}


.eyebrow {
    color: var(--accent);

    font-size: 0.78rem;
    font-weight: 700;

    letter-spacing: 0.15em;

    margin-bottom: 12px;
}


.highlight {
    color: var(--text-primary);
}


/* ========================================
   HERO
======================================== */

.hero {
    min-height: 82vh;

    display: flex;
    align-items: center;
}


.hero-content {
    padding: 100px 0;
}


.hero h1 {
    margin-bottom: 10px;
}


.hero h2 {
    max-width: 900px;

    color: var(--text-secondary);

    font-weight: 500;

    margin-bottom: 28px;
}


.hero-description {
    max-width: 700px;

    font-size: 1.1rem;

    margin-bottom: 35px;
}


.hero-buttons {
    display: flex;
    flex-wrap: wrap;

    gap: 14px;
}


/* ========================================
   BUTTONS
======================================== */

.button {
    display: inline-block;

    padding: 12px 22px;

    border-radius: 7px;

    font-weight: 600;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}


.button:hover {
    transform: translateY(-2px);
}


.primary-button {
    background: var(--accent);
    color: white;
}


.primary-button:hover {
    background: var(--accent-hover);
}


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

    background: var(--background-secondary);
}


.secondary-button:hover {
    background: #1c1c1c;

    border-color: #444444;
}


/* ========================================
   SECTIONS
======================================== */

.section {
    padding: 110px 0;
}


.alternate-section {
    background: var(--background-secondary);
}


.section-heading {
    max-width: 700px;

    margin-bottom: 50px;
}


.section-heading h2 {
    margin-bottom: 15px;
}


/* ========================================
   PAGE HEADERS
======================================== */

.page-header {
    padding: 120px 0 70px;
}


.page-header h1 {
    font-size: clamp(2.8rem, 7vw, 4.5rem);

    margin-bottom: 20px;
}


.page-header p {
    max-width: 750px;

    font-size: 1.1rem;
}


/* ========================================
   GENERAL CONTENT
======================================== */

.content-section {
    padding-bottom: 110px;
}


.content-section h2 {
    margin-top: 60px;
    margin-bottom: 20px;
}


.content-section h2:first-child {
    margin-top: 0;
}


.content-section h3 {
    margin-top: 35px;
    margin-bottom: 10px;
}


.content-section p {
    max-width: 850px;

    margin-bottom: 18px;
}


.content-section ul {
    max-width: 850px;

    margin-left: 22px;
    margin-bottom: 25px;

    color: var(--text-secondary);
}


.content-section li {
    margin-bottom: 8px;
}


/* ========================================
   PROJECT GRID
======================================== */

.project-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(280px, 1fr));

    gap: 22px;
}


.project-card {
    border: 1px solid var(--border);

    background: var(--card-background);

    border-radius: 12px;

    overflow: hidden;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}


.project-card:hover {
    transform: translateY(-5px);

    border-color: #444444;
}


.project-content {
    padding: 28px;
}


.project-type {
    color: var(--accent);

    font-size: 0.7rem;
    font-weight: 700;

    letter-spacing: 0.1em;

    margin-bottom: 10px;
}


.project-content h3 {
    margin-bottom: 14px;
}


.project-content p {
    margin-bottom: 20px;
}


/* ========================================
   TAGS
======================================== */

.tags {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;

    margin-top: 20px;
    margin-bottom: 22px;
}


.tags span {
    background: #212121;

    border: 1px solid var(--border);

    color: #c9c9c9;

    padding: 5px 10px;

    border-radius: 20px;

    font-size: 0.76rem;
}


/* ========================================
   PROJECT LINKS
======================================== */

.project-links {
    display: flex;
    flex-wrap: wrap;

    gap: 20px;
}


.text-link {
    color: var(--accent);

    font-weight: 600;
}


.text-link:hover {
    color: var(--accent-hover);
}


.center-button {
    margin-top: 40px;

    text-align: center;
}


/* ========================================
   SKILLS GRID
======================================== */

.skills-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(220px, 1fr));

    gap: 20px;
}


.skill-card {
    padding: 26px;

    border: 1px solid var(--border);

    border-radius: 10px;

    background: var(--card-background);
}


.skill-card h3 {
    margin-bottom: 10px;
}


/* ========================================
   EXPERIENCE
======================================== */

.timeline {
    display: flex;
    flex-direction: column;

    gap: 25px;
}


.timeline-item {
    padding: 28px;

    border: 1px solid var(--border);

    border-radius: 12px;

    background: var(--card-background);
}


.timeline-item h3 {
    margin-bottom: 5px;
}


.timeline-meta {
    color: var(--accent);

    font-size: 0.9rem;
    font-weight: 600;

    margin-bottom: 15px;
}


.timeline-item ul {
    margin-left: 20px;

    color: var(--text-secondary);
}


.timeline-item li {
    margin-bottom: 8px;
}


/* ========================================
   RESUME
======================================== */

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


.resume-section h2 {
    padding-bottom: 12px;

    margin-bottom: 25px;

    border-bottom: 1px solid var(--border);
}


.resume-entry {
    margin-bottom: 30px;
}


.resume-entry-header {
    display: flex;

    justify-content: space-between;
    align-items: flex-start;

    gap: 20px;

    margin-bottom: 7px;
}


.resume-entry h3 {
    margin-bottom: 4px;
}


.resume-date {
    color: var(--text-secondary);

    white-space: nowrap;
}


.resume-subtitle {
    color: var(--accent);

    margin-bottom: 8px;
}


.resume-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 14px;

    margin-bottom: 60px;
}


/* ========================================
   GOALS
======================================== */

.goal-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(260px, 1fr));

    gap: 20px;
}


.goal-card {
    border: 1px solid var(--border);

    border-radius: 12px;

    background: var(--card-background);

    padding: 28px;
}


.goal-card h3 {
    margin-bottom: 12px;
}


/* ========================================
   CONTACT
======================================== */

.contact-layout {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 50px;

    align-items: start;
}


.contact-card {
    padding: 30px;

    border: 1px solid var(--border);

    background: var(--card-background);

    border-radius: 12px;

    margin-bottom: 20px;
}


.contact-card h3 {
    margin-bottom: 8px;
}


.contact-card a {
    color: var(--accent);
}


.contact-card a:hover {
    color: var(--accent-hover);
}


.contact-cta {
    text-align: center;

    max-width: 700px;
}


.contact-cta h2 {
    margin-bottom: 15px;
}


.contact-cta p {
    margin-bottom: 28px;
}


/* ========================================
   PROJECT DETAIL
======================================== */

.project-detail-header {
    padding: 120px 0 70px;
}


.project-detail-header h1 {
    font-size: clamp(2.8rem, 7vw, 4.5rem);

    margin-bottom: 20px;
}


.project-detail-header > .container > p:not(.eyebrow) {
    max-width: 800px;

    font-size: 1.1rem;
}


.project-section {
    padding-bottom: 60px;
}


.project-section h2 {
    margin-bottom: 18px;
}


.project-section p {
    max-width: 850px;

    margin-bottom: 18px;
}


.project-section ul {
    margin-left: 22px;

    color: var(--text-secondary);
}


.project-section li {
    margin-bottom: 8px;
}


.project-placeholder {
    padding: 70px 25px;

    border: 1px dashed #444444;

    border-radius: 12px;

    text-align: center;

    color: var(--text-secondary);

    margin-top: 25px;
}


/* ========================================
   FOOTER
======================================== */

footer {
    border-top: 1px solid var(--border);

    padding: 35px 0;
}


.footer-content {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 20px;
}


.footer-links {
    display: flex;

    gap: 20px;
}


.footer-links a {
    color: var(--text-secondary);
}


.footer-links a:hover {
    color: white;
}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 800px) {

    .menu-button {
        display: block;
    }


    .nav-links {
        display: none;

        position: absolute;

        top: 72px;
        left: 0;

        width: 100%;

        flex-direction: column;
        align-items: flex-start;

        padding: 25px 5%;

        background: var(--background);

        border-bottom: 1px solid var(--border);
    }


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


    .nav-links a.active::after {
        display: none;
    }


    .hero {
        min-height: auto;
    }


    .hero-content {
        padding: 90px 0;
    }


    .section {
        padding: 80px 0;
    }


    .page-header,
    .project-detail-header {
        padding: 90px 0 60px;
    }


    .contact-layout {
        grid-template-columns: 1fr;
    }


    .resume-entry-header {
        flex-direction: column;

        gap: 4px;
    }


    .footer-content {
        flex-direction: column;

        text-align: center;
    }

}