/* ============================================
   SWISS INTERNATIONAL TYPOGRAPHIC STYLE
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --white: #FFFFFF;
    --black: #000000;
    --muted: #F2F2F2;
    --accent: #FF3000;
    --border: 4px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
    background: var(--white);
    color: var(--black);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

/* --- Noise Texture (Global) --- */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: var(--border) solid var(--black);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    height: 72px;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo-img {
    height: 40px;
    width: auto;
}

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

.nav-link {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    position: relative;
    padding: 8px 0;
    overflow: hidden;
}

.nav-link::after {
    content: attr(data-text);
    position: absolute;
    top: 100%;
    left: 0;
    color: var(--accent);
    transition: top 0.2s ease-out;
}

.nav-link:hover::after {
    top: 8px;
}

.nav-link:hover {
    color: transparent;
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: var(--border) solid var(--black);
    position: relative;
}

.hero-grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 120px 60px 80px;
    position: relative;
    z-index: 1;
}

.hero-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(80px, 12vw, 180px);
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: -0.04em;
    margin-bottom: 40px;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

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

.hero-composition {
    position: relative;
    background: var(--muted);
    border-left: var(--border) solid var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.geo-circle {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    border: var(--border) solid var(--black);
    position: absolute;
    top: 20%;
    right: 15%;
}

.geo-rect {
    width: 160px;
    height: 320px;
    background: var(--accent);
    position: absolute;
    bottom: 15%;
    left: 20%;
}

.geo-line {
    position: absolute;
    background: var(--black);
}

.geo-line-1 {
    width: 300px;
    height: var(--border);
    top: 35%;
    left: 10%;
}

.geo-line-2 {
    width: var(--border);
    height: 200px;
    bottom: 20%;
    right: 30%;
}

/* --- Section Base --- */
.section {
    border-bottom: var(--border) solid var(--black);
    position: relative;
}

.section-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--accent);
    padding: 40px 60px 0;
}

.section-heading {
    font-size: clamp(40px, 6vw, 80px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.section-body {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.7;
    color: #444;
    max-width: 480px;
}

/* --- About --- */
.about-grid {
    display: grid;
    grid-template-columns: 7fr 5fr;
    min-height: 600px;
}

.about-text {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
}

.about-stats {
    display: flex;
    flex-direction: column;
    border-left: var(--border) solid var(--black);
}

.stat-item {
    flex: 1;
    padding: 40px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-bottom: var(--border) solid var(--black);
    position: relative;
    transition: background 0.2s ease-out;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-item:hover {
    background: var(--black);
    color: var(--white);
}

.stat-number {
    font-size: clamp(48px, 6vw, 72px);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
    margin-top: 12px;
    opacity: 0.6;
}

/* --- Experience --- */
.experience-list {
    display: flex;
    flex-direction: column;
}

.experience-item {
    padding: 48px 60px;
    border-bottom: var(--border) solid var(--black);
    transition: background 0.2s ease-out;
}

.experience-item:last-child {
    border-bottom: none;
}

.experience-item:hover {
    background: var(--muted);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.experience-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.experience-company {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 900;
    letter-spacing: -0.02em;
}

.experience-role {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--accent);
}

.experience-date {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.15em;
    opacity: 0.5;
    white-space: nowrap;
}

.experience-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.experience-details li {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    color: #444;
    padding-left: 24px;
    position: relative;
}

.experience-details li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* --- Projects --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.project-card {
    padding: 48px 40px;
    border-right: var(--border) solid var(--black);
    position: relative;
    transition: background 0.2s ease-out, color 0.2s ease-out;
    overflow: hidden;
}

.project-card:last-child {
    border-right: none;
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(0,0,0,0.04) 1px, transparent 1px);
    background-size: 16px 16px;
    pointer-events: none;
}

.project-card:hover {
    background: var(--black);
    color: var(--white);
}

.project-card-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.project-number {
    font-size: 48px;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
}

.project-title {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.project-desc {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    opacity: 0.7;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    padding: 6px 12px;
    border: 2px solid currentColor;
    opacity: 0.6;
}

/* --- Skills --- */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.skill-group {
    padding: 48px 60px;
    border-right: var(--border) solid var(--black);
}

.skill-group:last-child {
    border-right: none;
}

.skill-group-title {
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.15em;
    margin-bottom: 32px;
    color: var(--accent);
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-item {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 10px 20px;
    border: var(--border) solid var(--black);
    transition: background 0.2s ease-out, color 0.2s ease-out;
}

.skill-item:hover {
    background: var(--black);
    color: var(--white);
}

.skill-education {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.edu-school {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.edu-degree {
    font-size: 15px;
    font-weight: 500;
    color: var(--accent);
}

.edu-coursework {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.7;
    color: #666;
    margin-top: 8px;
}

/* --- Contact --- */
.contact-grid {
    display: grid;
    grid-template-columns: 7fr 5fr;
    min-height: 500px;
}

.contact-heading {
    font-size: clamp(48px, 8vw, 120px);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.04em;
    padding: 60px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    border-left: var(--border) solid var(--black);
}

.contact-link {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 60px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.1em;
    border-bottom: var(--border) solid var(--black);
    transition: background 0.2s ease-out, color 0.2s ease-out;
    position: relative;
}

.contact-link:last-child {
    border-bottom: none;
}

.contact-link:hover {
    background: var(--accent);
    color: var(--white);
}

/* --- Footer --- */
.footer {
    border-top: var(--border) solid var(--black);
}

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

.footer-copy {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.15em;
}

.footer-tagline {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.1em;
    opacity: 0.5;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero-composition {
        display: none;
    }

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

    .about-stats {
        flex-direction: row;
        border-left: none;
        border-top: var(--border) solid var(--black);
    }

    .stat-item {
        border-right: var(--border) solid var(--black);
        border-bottom: none;
    }

    .stat-item:last-child {
        border-right: none;
    }

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

    .project-card {
        border-right: none;
        border-bottom: var(--border) solid var(--black);
    }

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

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

    .skill-group {
        border-right: none;
        border-bottom: var(--border) solid var(--black);
    }

    .skill-group:last-child {
        border-bottom: none;
    }

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

    .contact-links {
        border-left: none;
        border-top: var(--border) solid var(--black);
    }
}

@media (max-width: 768px) {
    .nav-inner {
        padding: 0 20px;
    }

    .nav-links {
        gap: 20px;
    }

    .nav-link {
        font-size: 11px;
    }

    .hero-content {
        padding: 120px 20px 60px;
    }

    .section-label {
        padding: 30px 20px 0;
    }

    .about-text {
        padding: 40px 20px;
    }

    .about-stats {
        flex-direction: column;
    }

    .stat-item {
        border-right: none;
        border-bottom: var(--border) solid var(--black);
    }

    .stat-item:last-child {
        border-bottom: none;
    }

    .experience-item {
        padding: 30px 20px;
    }

    .experience-header {
        flex-direction: column;
        gap: 8px;
    }

    .contact-heading {
        padding: 40px 20px;
    }

    .contact-link {
        padding: 0 20px;
        height: 60px;
        font-size: 13px;
    }

    .skill-group {
        padding: 40px 20px;
    }

    .footer-inner {
        padding: 20px;
        flex-direction: column;
        gap: 8px;
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
    html {
        scroll-behavior: auto;
    }
}
