:root {
    --bg-dark: #111111;
    --bg-darker: #050505;
    --bg-light: #f4f4f5;
    --bg-card: #1a1a1a;
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --text-dark: #111111;
    --text-dark-muted: #52525b;
    --accent: #ffffff;
    --border-color: rgba(255, 255, 255, 0.1);
    --border-glow: rgba(255, 255, 255, 0.3);
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Typography */
h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(2rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: inherit;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Utility Classes */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 8rem 0;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.section-label.opacity-low {
    opacity: 0.5;
}

.light-section {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.light-section .section-label {
    color: var(--text-dark);
}

.mt-large {
    margin-top: 5rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    mix-blend-mode: difference;
    color: white;
}

.logo-circle {
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-weight: 700;
    opacity: 0.8;
}

.nav-links a:hover {
    opacity: 1;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 2rem;
    font-size: 0.65rem;
    font-weight: 700;
}

.lang-switcher a {
    opacity: 0.5;
}

.lang-switcher a.active {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.lang-switcher span {
    opacity: 0.3;
}

.mobile-lang-header {
    display: none;
}

.mobile-menu-btn {
    display: none;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .mobile-lang-header {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        padding: 6rem 2rem 2rem 2rem;
        background: var(--bg-dark);
        font-size: 0.75rem;
        font-weight: 700;
    }
    .mobile-lang-header a { opacity: 0.5; }
    .mobile-lang-header a.active { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
    .mobile-menu-btn {
        display: block;
        cursor: pointer;
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
    padding: 0 2rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, #1f1f1f 0%, #0a0a0a 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
}

.hero-card {
    border: 1px solid var(--border-glow);
    padding: 4rem;
    max-width: 44rem;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero-subtitle {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.3;
}

.scroll-indicator {
    margin-top: 4rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Grids */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

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

@media (max-width: 1024px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
    .hero-card {
        padding: 2rem;
    }
}

/* Intro Section */
.intro-text h2 {
    margin-bottom: 2rem;
}

.intro-text p {
    font-size: 1.25rem;
    color: var(--text-dark-muted);
    max-width: 38rem;
    line-height: 1.8;
}

/* Decorative Section Images */
.intro-visual,
.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.intro-visual img,
.about-image img {
    width: 80%;
    height: auto;
    border-radius: 0px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    object-fit: contain;
}

/* Placeholders */
.placeholder-media {
    background-color: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid var(--border-color);
    width: 100%;
    aspect-ratio: 1/1;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.light-section .placeholder-media {
    background-color: #e5e5e5;
    border-color: #d4d4d8;
    color: var(--text-dark-muted);
}

/* About Section */
.about {
    background-color: var(--bg-card);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.info-grid:not(:first-child) {
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.info-text p {
    color: var(--text-muted);
    font-size: 1.125rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.skills-list p {
    font-size: 1.125rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Career Section */
.grid-career {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 5rem;
}

.section-heading-large {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.timeline-item {
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 2rem;
}

.timeline-item .company {
    color: var(--text-dark-muted);
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.timeline-item .date {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.duties {
    color: var(--text-dark-muted);
    line-height: 1.8;
}

.duties li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.duties li::before {
    content: "—";
    position: absolute;
    left: 0;
}

@media (max-width: 1024px) {
    .grid-career {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Portfolio Section */
.portfolio-group {
    margin-top: 3rem;
}

.group-title {
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.portfolio-item {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.item-meta {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    line-height: 1.6;
}

.item-meta span {
    color: var(--text-main);
    font-weight: 700;
    text-transform: none;
}

.project-details {
    background: var(--bg-card);
    padding: 2rem;
    border: 1px solid var(--border-color);
    height: 100%;
    transition: var(--transition);
}

.project-details p {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.project-details ul {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.project-details li {
    margin-bottom: 0.5rem;
    padding-left: 1.25rem;
    position: relative;
}

.project-details li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--text-main);
}

.placeholder-media.square {
    aspect-ratio: 1/1;
}

/* Apple Phone Mockup */
.phone-mockup {
    background-color: var(--bg-card);
    border: 10px solid #1a1a1a;
    border-radius: 36px;
    width: 100%;
    max-width: 300px; /* Constrain size so it doesn't get wildly large */
    aspect-ratio: 9/19; /* Standard phone proportion */
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 0 2px #333, 0 10px 30px rgba(0,0,0,0.7);
    transition: var(--transition);
    display: block;
    margin: 0 auto;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 24px;
    background-color: #1a1a1a;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 10;
}

.light-section .phone-mockup {
    border-color: #e5e5e5;
    box-shadow: 0 0 0 2px #c0c0c0, 0 10px 30px rgba(0,0,0,0.1);
}
.light-section .phone-mockup::before {
    background-color: #e5e5e5;
}

.placeholder-media.wide-banner {
    aspect-ratio: 21/9;
}

.placeholder-media img,
.phone-mockup img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Hover Effects */
.card-hover:hover .placeholder-media {
    transform: scale(0.98);
    border-color: var(--border-glow);
}

.card-hover:hover .phone-mockup {
    transform: translateY(-8px);
    border-color: #222;
    box-shadow: 0 0 0 2px var(--border-glow), 0 20px 40px rgba(0,0,0,0.8);
}

.card-hover:hover .project-details {
    border-color: var(--border-glow);
    background: rgba(255, 255, 255, 0.03);
}

.link-hover:hover {
    opacity: 0.5;
}

/* Footer Section */
.footer {
    background-color: var(--bg-card);
    padding-bottom: 2rem;
}

.border-glow {
    border: 1px solid var(--border-color);
    padding: 4rem;
}

.footer-heading {
    font-size: clamp(3rem, 6vw, 6rem);
    margin-bottom: 4rem;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.contact-item a, .contact-item p:not(.section-label) {
    font-size: 1.25rem;
    font-weight: 300;
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .border-glow {
        padding: 2rem;
    }
    .footer-heading {
        margin-bottom: 2rem;
    }
}
