/*
Developer Portfolio Stylesheet
Structure:
Variables → Reset → Global Styles → Header → Hero → Sections → Projects → Skills → Experience → Contact → Footer → Responsive Design
*/

/* Variables */

:root {
    --background: #080b10;
    --background-secondary: #0d1219;
    --surface: #111821;
    --surface-light: #18222d;

    --text-primary: #f4f7fa;
    --text-secondary: #aab4bf;
    --text-muted: #6f7b87;

    --accent: #d6a84f;
    --accent-light: #e8c778;
    --accent-dark: #9d7628;

    --border: rgba(255, 255, 255, 0.1);

    --max-width: 1200px;

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 3rem;
    --space-xl: 5rem;
    --space-xxl: 8rem;

    --transition: 250ms ease;
}


/* Reset */

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;

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

    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

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

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

button {
    font: inherit;
}

ul {
    list-style: none;
}


/* Global Styles */

::selection {
    background: var(--accent);
    color: var(--background);
}

.section {
    width: min(100% - 2rem, var(--max-width));

    margin: 0 auto;

    padding: var(--space-xxl) 0;
}

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

    margin-bottom: var(--space-xl);
}

.section-label {
    margin-bottom: var(--space-sm);

    color: var(--accent);

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

    letter-spacing: 0.18em;

    text-transform: uppercase;
}

.section-heading h2 {
    margin-bottom: var(--space-md);

    font-size: clamp(2rem, 5vw, 4rem);

    line-height: 1.05;
}

.section-heading>p:last-child {
    color: var(--text-secondary);
}


/* Header */

.site-header {
    position: sticky;

    top: 0;

    z-index: 1000;

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

    background: rgba(8, 11, 16, 0.88);

    backdrop-filter: blur(16px);
}

.navbar {
    width: min(100% - 2rem, var(--max-width));

    min-height: 76px;

    margin: 0 auto;

    display: flex;

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

    gap: var(--space-lg);
}

.logo {
    display: grid;

    width: 44px;
    height: 44px;

    place-items: center;

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

    color: var(--accent);

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

    letter-spacing: 0.08em;

    transition:
        background var(--transition),
        color var(--transition);
}

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

.nav-links {
    display: flex;

    align-items: center;

    gap: var(--space-md);
}

.nav-links a {
    position: relative;

    padding: 0.5rem 0;

    color: var(--text-secondary);

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

    text-transform: uppercase;

    letter-spacing: 0.08em;

    transition: color var(--transition);
}

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

    position: absolute;

    right: 0;
    bottom: 0;
    left: 0;

    height: 1px;

    background: var(--accent);

    transform: scaleX(0);

    transform-origin: right;

    transition: transform var(--transition);
}

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

.nav-links a:hover::after {
    transform: scaleX(1);

    transform-origin: left;
}

.menu-toggle {
    display: none;

    width: 44px;
    height: 44px;

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

    background: transparent;

    color: var(--text-primary);

    cursor: pointer;
}

.menu-toggle span {
    display: block;

    width: 20px;
    height: 2px;

    margin: 4px auto;

    background: currentColor;
}


/* Hero */

.hero {
    position: relative;

    min-height: calc(100vh - 76px);

    display: flex;

    align-items: center;

    overflow: hidden;

    background:
        radial-gradient(circle at 78% 45%,
            rgba(214, 168, 79, 0.12),
            transparent 32%),
        #080b10;
}

.hero-content {
    position: relative;

    z-index: 3;

    width: min(100% - 2rem, var(--max-width));

    margin: 0 auto;

    padding: 5rem 0 4rem;
}

.hero-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.35fr) minmax(360px, 0.65fr);

    align-items: center;

    min-height: 500px;
}

.hero-headline {
    position: relative;

    z-index: 5;

    display: flex;

    flex-direction: column;

    justify-content: center;

    min-width: 0;
}

.hero-eyebrow {
    margin-bottom: var(--space-md);

    color: var(--accent);

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

    letter-spacing: 0.16em;

    line-height: 1.5;

    text-transform: uppercase;
}

.hero-title {
    margin: 0;

    font-size: clamp(3rem, 4.8vw, 5.5rem);

    font-weight: 800;

    line-height: 0.94;

    letter-spacing: -0.05em;
}

.hero-line {
    display: block;

    width: max-content;

    max-width: 100%;

    white-space: nowrap;
}

.hero-line-light {
    color: var(--text-primary);
}

.hero-line-accent {
    color: var(--accent);
}

.hero-profile {
    position: relative;

    z-index: 2;

    min-width: 0;

    min-height: 500px;

    display: flex;

    align-items: center;

    justify-content: flex-end;

    overflow: visible;
}

.hero-profile img {
    position: relative;

    z-index: 1;

    width: 115%;

    height: 115%;

    object-fit: cover;

    object-position: center top;

    opacity: 0.94;

    filter:
        contrast(1.08) saturate(0.9);

    clip-path: ellipse(43% 50%);

    mask-image:
        radial-gradient(ellipse 48% 52% at center,
            #000 48%,
            rgba(0, 0, 0, 0.9) 58%,
            rgba(0, 0, 0, 0.5) 68%,
            transparent 78%);

    -webkit-mask-image:
        radial-gradient(ellipse 48% 52% at center,
            #000 48%,
            rgba(0, 0, 0, 0.9) 58%,
            rgba(0, 0, 0, 0.5) 68%,
            transparent 78%);
}

.hero-profile::before {
    content: "";

    position: absolute;

    top: 15%;

    right: 5%;

    width: 80%;

    height: 70%;

    border-radius: 50%;

    background:
        radial-gradient(circle,
            rgba(214, 168, 79, 0.14),
            transparent 68%);

    filter: blur(40px);

    z-index: 0;
}

.hero-bottom {
    position: relative;

    z-index: 5;

    display: flex;

    flex-direction: column;

    align-items: center;

    text-align: center;

    margin-top: 1.5rem;
}

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

    margin-bottom: var(--space-lg);

    color: var(--text-secondary);

    font-size: clamp(1rem, 2vw, 1.15rem);

    line-height: 1.7;
}

.hero-actions {
    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: var(--space-sm);
}


/* Buttons */

.button {
    display: inline-flex;

    min-height: 50px;

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

    padding: 0.75rem 1.5rem;

    border: 1px solid transparent;

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

    letter-spacing: 0.08em;

    text-transform: uppercase;

    transition:
        background var(--transition),
        border-color var(--transition),
        color var(--transition),
        transform var(--transition);
}

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

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

    color: var(--background);
}

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

.button-secondary {
    border-color: var(--border);

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

.button-secondary:hover {
    border-color: var(--accent);

    color: var(--accent);
}


/* About */

.about-section {
    border-top: 1px solid var(--border);
}

.about-content {
    display: grid;

    grid-template-columns: minmax(0, 1fr);
}

.about-text {
    max-width: 850px;
}

.about-text p {
    margin-bottom: var(--space-md);

    color: var(--text-secondary);

    font-size: clamp(1.05rem, 2vw, 1.3rem);

    line-height: 1.8;
}


/* Mission */

.mission-section {
    border-top: 1px solid var(--border);
}

.mission-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 1px;

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

    background: var(--border);
}

.mission-card {
    min-height: 280px;

    padding: var(--space-lg);

    background: var(--surface);

    transition:
        background var(--transition),
        transform var(--transition);
}

.mission-card:hover {
    background: var(--surface-light);

    transform: translateY(-4px);
}

.mission-number {
    display: block;

    margin-bottom: var(--space-xl);

    color: var(--accent);

    font-size: 0.75rem;

    font-weight: 700;

    letter-spacing: 0.1em;
}

.mission-card h3 {
    margin-bottom: var(--space-sm);

    font-size: 1.5rem;
}

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


/* Projects */

.projects-section {
    border-top: 1px solid var(--border);
}

.projects-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: var(--space-md);
}

.project-card {
    min-height: 300px;

    overflow-wrap: anywhere;

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

    background: var(--surface);

    transition:
        border-color var(--transition),
        transform var(--transition),
        background var(--transition);
}

.project-card:hover {
    border-color: rgba(214, 168, 79, 0.5);

    background: var(--surface-light);

    transform: translateY(-6px);
}

.project-content {
    height: 100%;

    padding: var(--space-lg);

    display: flex;

    flex-direction: column;
}

.project-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: var(--space-sm);

    margin-bottom: var(--space-lg);
}

.project-number {
    margin: 0;

    color: var(--accent);

    font-size: 0.75rem;

    font-weight: 700;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}

.project-level {
    padding: 0.3rem 0.55rem;

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

    color: var(--text-muted);

    font-size: 0.65rem;

    font-weight: 700;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}

.project-card h3 {
    margin-bottom: var(--space-sm);

    font-size: 1.5rem;

    line-height: 1.2;

    overflow-wrap: anywhere;
}

.project-description {
    margin-bottom: var(--space-md);

    color: var(--text-secondary);

    line-height: 1.7;

    overflow-wrap: anywhere;
}

.project-technologies {
    display: flex;

    flex-wrap: wrap;

    gap: 0.5rem;

    margin-top: auto;

    padding-top: var(--space-lg);
}

.project-technologies span {
    padding: 0.35rem 0.65rem;

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

    color: var(--text-muted);

    font-size: 0.7rem;

    font-weight: 700;

    letter-spacing: 0.05em;

    text-transform: uppercase;

    overflow-wrap: anywhere;
}

.project-actions {
    display: flex;

    align-items: center;

    gap: var(--space-md);

    padding-top: var(--space-lg);
}

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

    font-size: 0.75rem;

    font-weight: 700;

    letter-spacing: 0.08em;

    text-transform: uppercase;

    transition: color var(--transition);
}

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

.project-link-secondary {
    color: var(--text-secondary);
}

.project-link-secondary:hover {
    color: var(--text-primary);
}

.project-status {
    color: var(--text-muted);

    font-size: 0.7rem;

    font-weight: 700;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}

.project-card-placeholder {
    opacity: 0.82;
}


/* Skills */

.skills-section {
    border-top: 1px solid var(--border);
}

.skills-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: var(--space-md);
}

.skill-category {
    padding: var(--space-lg);

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

    background: var(--surface);
}

.skill-category h3 {
    margin-bottom: var(--space-md);

    color: var(--accent);

    font-size: 1.1rem;
}

.skill-category li {
    padding: 0.65rem 0;

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

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

.skill-category li:last-child {
    border-bottom: 0;
}


/* Experience */

.experience-section {
    border-top: 1px solid var(--border);
}

.experience-timeline {
    position: relative;

    max-width: 900px;
}

.experience-timeline::before {
    content: "";

    position: absolute;

    top: 0;
    bottom: 0;
    left: 6px;

    width: 1px;

    background: var(--border);
}

.experience-item {
    position: relative;

    display: grid;

    grid-template-columns: 30px 1fr;

    gap: var(--space-md);

    padding-bottom: var(--space-xl);
}

.experience-marker {
    position: relative;

    z-index: 1;

    width: 13px;
    height: 13px;

    margin-top: 5px;

    border: 2px solid var(--accent);

    background: var(--background);

    border-radius: 50%;
}

.experience-period {
    margin-bottom: 0.4rem;

    color: var(--accent);

    font-size: 0.75rem;

    font-weight: 700;

    letter-spacing: 0.1em;

    text-transform: uppercase;
}

.experience-content h3 {
    margin-bottom: 0.5rem;

    font-size: 1.4rem;
}

.experience-content p:last-child {
    color: var(--text-secondary);
}


/* Contact */

.contact-section {
    border-top: 1px solid var(--border);
}

.contact-content {
    max-width: 850px;
}

.contact-content h2 {
    margin-bottom: var(--space-md);

    font-size: clamp(2.5rem, 7vw, 5.5rem);

    line-height: 1;
}

.contact-content>p:not(.section-label) {
    max-width: 650px;

    margin-bottom: var(--space-lg);

    color: var(--text-secondary);

    font-size: 1.1rem;
}


/* Footer */

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

.footer-content {
    width: min(100% - 2rem, var(--max-width));

    min-height: 100px;

    margin: 0 auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: var(--space-md);
}

.footer-content p {
    color: var(--text-muted);

    font-size: 0.75rem;
}


/* Responsive Design */

@media (max-width: 1000px) {

    .nav-links {
        gap: var(--space-sm);
    }

    .nav-links a {
        font-size: 0.75rem;
    }

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

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

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


@media (max-width: 760px) {

    /* Mobile Layout */

    .navbar {
        min-height: 68px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;

        top: 68px;

        right: 1rem;
        left: 1rem;

        display: none;

        flex-direction: column;

        align-items: stretch;

        gap: 0;

        padding: 0.5rem;

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

        background: var(--surface);
    }

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

    .nav-links a {
        display: block;

        padding: 0.9rem 1rem;
    }

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


    /* Mobile Hero */

    .hero {
        min-height: auto;
    }

    .hero-content {
        width: min(100% - 2rem, var(--max-width));

        padding: var(--space-xl) 0 var(--space-xxl);
    }

    .hero-grid {
        grid-template-columns: 1fr;

        min-height: auto;
    }

    .hero-headline {
        min-height: auto;

        align-items: flex-start;
    }

    .hero-eyebrow {
        margin-bottom: var(--space-md);

        font-size: 0.75rem;

        letter-spacing: 0.12em;
    }

    .hero-title {
        font-size: clamp(2.8rem, 13vw, 5rem);

        line-height: 0.94;
    }

    .hero-line {
        width: 100%;

        white-space: normal;
    }


    /* Mobile Profile */

    .hero-profile {
        min-height: 420px;

        margin-top: -1rem;

        display: flex;

        align-items: center;

        justify-content: center;

        overflow: hidden;
    }

    .hero-profile img {
        width: 100%;

        height: 100%;

        clip-path: ellipse(43% 50%);

        opacity: 0.88;

        mask-image:
            linear-gradient(to bottom,
                transparent 0%,
                #000 15%,
                #000 75%,
                transparent 100%);

        -webkit-mask-image:
            linear-gradient(to bottom,
                transparent 0%,
                #000 15%,
                #000 75%,
                transparent 100%);
    }


    /* Mobile Hero Bottom */

    .hero-bottom {
        margin-top: -1rem;

        align-items: center;

        text-align: center;
    }

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

        margin-bottom: var(--space-lg);
    }

    .hero-actions {
        position: relative;

        z-index: 5;

        width: 100%;

        justify-content: center;

        flex-wrap: wrap;
    }


    /* Mobile Sections */

    .section {
        padding: var(--space-xl) 0;
    }

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

    .mission-card {
        min-height: auto;
    }


    /* Mobile Footer */

    .footer-content {
        flex-direction: column;

        align-items: flex-start;

        justify-content: center;

        padding: var(--space-md) 0;
    }
}


@media (max-width: 480px) {

    .section,
    .navbar,
    .hero-content,
    .footer-content {
        width: min(100% - 1.5rem, var(--max-width));
    }

    .hero h1 {
        font-size: clamp(2.8rem, 16vw, 4.5rem);
    }

    .hero-actions {
        flex-direction: column;

        align-items: stretch;
    }

    .button {
        width: 100%;
    }
}