/* Neue Haas Grotesk Display Pro Font Loading */
@font-face {
    font-family: "Neue Haas Grotesk Display Pro";
    src: url("./neue-haas-grotesk-display-pro-cufonfonts/NeueHaasDisplayRoman.ttf")
        format("truetype");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Neue Haas Grotesk Display Pro";
    src: url("./neue-haas-grotesk-display-pro-cufonfonts/NeueHaasDisplayMediu.ttf")
        format("truetype");
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: "Neue Haas Grotesk Display Pro";
    src: url("./neue-haas-grotesk-display-pro-cufonfonts/NeueHaasDisplayBold.ttf")
        format("truetype");
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: "Neue Haas Grotesk Display Pro";
    src: url("./neue-haas-grotesk-display-pro-cufonfonts/NeueHaasDisplayLight.ttf")
        format("truetype");
    font-weight: 300;
    font-style: normal;
}

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

body {
    font-family:
        "Neue Haas Grotesk Display Pro",
        "Helvetica",
        -apple-system,
        BlinkMacSystemFont,
        "Inter",
        "Segoe UI",
        "Helvetica Neue",
        Arial,
        sans-serif;
    background: #ede3de;
    color: #1a1a19;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    font-size: 15px;
}

/* Noise texture */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.03;
    z-index: 1;
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 35px,
            rgba(0, 0, 0, 0.05) 35px,
            rgba(0, 0, 0, 0.05) 70px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 35px,
            rgba(0, 0, 0, 0.03) 35px,
            rgba(0, 0, 0, 0.03) 70px
        );
    animation: noise 8s steps(10) infinite;
}

@keyframes noise {
    0%,
    100% {
        transform: translate(0, 0);
    }
    10% {
        transform: translate(-1%, -1%);
    }
    20% {
        transform: translate(1%, 0);
    }
    30% {
        transform: translate(0, 1%);
    }
    40% {
        transform: translate(-1%, 1%);
    }
    50% {
        transform: translate(1%, -1%);
    }
    60% {
        transform: translate(0, -1%);
    }
    70% {
        transform: translate(-1%, 0);
    }
    80% {
        transform: translate(1%, 1%);
    }
    90% {
        transform: translate(0, 0);
    }
}

main {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 100px 20px;
}

section {
    margin-bottom: 50px;
}

.hero {
    margin-bottom: 40px;
}

.name {
    font-family:
        "Neue Haas Grotesk Display Pro",
        "Helvetica",
        -apple-system,
        sans-serif;
    font-size: 2.9rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    margin-bottom: 0.3rem;
    color: #1a1a19;
}

.hero-subtitle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 1.5rem;
}

.subtitle {
    color: #6b6b68;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    margin: 0;
}

.hero-links {
    display: flex;
    gap: 1.5rem;
}

.hero-links a {
    color: #1a1a19;
    text-decoration: none;
    font-size: 0.95rem;
    position: relative;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.icon {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.section-icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    margin-right: 0.5rem;
    vertical-align: middle;
    transform: translateY(-3px);
}

.hero-links a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #1a1a19;
    transition: width 0.3s ease;
}

.hero-links a:hover::after {
    width: 100%;
}

.bio .lead {
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    font-weight: 400;
}

.bio p {
    color: #6b6b68;
    line-height: 1.8;
}

/* Skills Section */
.skills h2 {
    font-family:
        "Neue Haas Grotesk Display Pro",
        "Helvetica",
        -apple-system,
        sans-serif;
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.skill-category {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.skill-category:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(26, 26, 25, 0.08);
}

.skill-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #6b6b68;
    margin-bottom: 0.5rem;
}

.skill-items {
    display: block;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #1a1a19;
}

/* Experience Section */
.experience h2,
.projects h2 {
    font-family:
        "Neue Haas Grotesk Display Pro",
        "Helvetica",
        -apple-system,
        sans-serif;
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    letter-spacing: -0.01em;
}

.job {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(107, 107, 104, 0.1);
}

.job:last-child {
    border-bottom: none;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.job h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    color: #1a1a19;
}

.role {
    font-size: 0.95rem;
    color: #6b6b68;
    font-weight: 400;
}

.dates {
    font-size: 0.85rem;
    color: #6b6b68;
    font-style: italic;
    white-space: nowrap;
}

.job-details {
    list-style: none;
    margin-top: 1rem;
}

.job-details li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #3a3a38;
}

.job-details li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #6b6b68;
}

.job-details strong {
    color: #1a1a19;
    font-weight: 500;
}

/* Projects Section */
.project {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(107, 107, 104, 0.1);
}

.project:last-child {
    border-bottom: none;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.project h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a19;
    margin-bottom: 0.2rem;
}

.project-year {
    font-size: 0.85rem;
    color: #6b6b68;
    font-style: italic;
    white-space: nowrap;
}

.project p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #3a3a38;
    margin-bottom: 0.8rem;
}

.project-link {
    display: inline-block;
    font-size: 0.9rem;
    color: #1a1a19;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.project-link:hover {
    opacity: 0.7;
}

/* Footer */
footer {
    margin-top: 120px;
    padding-top: 40px;
    border-top: 1px solid rgba(107, 107, 104, 0.1);
}

.footer-content {
    text-align: center;
}

.footer-content p {
    font-size: 0.85rem;
    color: #6b6b68;
}

/* Responsive */
@media (max-width: 640px) {
    .name {
        font-size: 2.2rem;
    }

    .hero-subtitle-row {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    main {
        padding: 60px 20px;
    }

    section {
        margin-bottom: 60px;
    }

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

    .job-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .bio .lead {
        font-size: 1.1rem;
    }
}
