/* IMPECCABLE DESIGN SYSTEM applied */

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

:root {
    /* Base OKLCH Brand Hue (Amber/Gold: ~70) */
    --brand-h: 70;

    /* Semantic Colors - Tinted Neutrals */
    --bg-white: oklch(99% 0.005 var(--brand-h));
    --bg-light: oklch(96% 0.01 var(--brand-h));
    --bg-dark: oklch(90% 0.015 var(--brand-h));

    --text-primary: oklch(25% 0.015 var(--brand-h));
    --text-secondary: oklch(45% 0.01 var(--brand-h));
    --text-light: oklch(95% 0.01 var(--brand-h));

    --accent: oklch(65% 0.15 var(--brand-h));
    /* Amber */
    --accent-hover: oklch(55% 0.15 var(--brand-h));

    --border: oklch(90% 0.01 var(--brand-h));

    /* Vertical Rhythm & Spatial (Base 4pt and 24px rhythm) */
    --space-4: 0.25rem;
    --space-8: 0.5rem;
    --space-12: 0.75rem;
    --space-16: 1rem;
    --space-24: 1.5rem;
    /* 1 rhythm unit */
    --space-32: 2rem;
    --space-48: 3rem;
    /* 2 rhythm units */
    --space-72: 4.5rem;
    /* 3 rhythm units */
    --space-96: 6rem;
    /* 4 rhythm units */

    /* Typography Scale (5 sizes) */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.25rem;
    --text-xl: 3rem;
    /* Hero / Section headers */

    /* Font bindings - no standard defaults */
    --font-heading: 'Outfit', system-ui, sans-serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-body);
    color: var(--text-primary);
    line-height: 1.5;
    /* Base line height = 24px */
    font-size: 16px;
    font-kerning: normal;
}

body {
    background-color: var(--bg-white);
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

/* Typography Hierarchy */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.1;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-24);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
}

h2 {
    font-size: var(--text-xl);
}

h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-8);
}

p {
    margin-bottom: var(--space-24);
    color: var(--text-secondary);
    max-width: 65ch;
    /* Optimum reading length */
}

.lead {
    font-size: var(--text-lg);
    color: var(--text-primary);
    font-weight: 400;
}

.subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 65ch;
}

/* Base Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-24);
}

.section {
    padding: var(--space-96) 0;
    position: relative;
}

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

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

.bg-dark h1,
.bg-dark h2,
.bg-dark h3 {
    color: var(--text-primary);
}

.bg-dark p {
    color: var(--text-primary);
}

.bg-dark .border-divider {
    border-color: var(--border);
}

/* Divider lines instead of cards */
.border-divider {
    border-top: 1px solid var(--border);
    padding-top: var(--space-24);
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-12) var(--space-24);
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), background-color 0.2s;
    border-radius: 2px;
    /* Sharp corners instead of pills */
}

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

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-primary);
}

.btn-secondary:hover {
    background-color: var(--text-primary);
    color: var(--bg-white);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    color: var(--accent);
    font-weight: 500;
    font-family: var(--font-heading);
    transition: color 0.2s;
}

.link-arrow span {
    margin-left: var(--space-8);
    transition: transform 0.2s;
}

.link-arrow:hover span {
    transform: translateX(4px);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--bg-white);
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
    padding: var(--space-16) 0;
}

.navbar.scrolled {
    border-bottom: 1px solid var(--border);
    /* No shadows for depth in elegant design */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-32);
}

.nav-links a {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    transition: color 0.2s;
}

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

.nav-links a.btn-primary {
    color: var(--bg-white);
}

.nav-links a.btn-primary:hover {
    color: var(--bg-white);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 20px;
    height: 1px;
    margin: 6px auto;
    background-color: var(--text-primary);
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    padding-top: calc(var(--space-96) + var(--space-48));
    padding-bottom: var(--space-96);
    background-color: var(--bg-light);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-48);
}

@media (min-width: 900px) {
    .hero-container {
        grid-template-columns: 1.2fr 1fr;
        align-items: center;
    }
}

.hero-actions {
    display: flex;
    gap: var(--space-16);
    margin-top: var(--space-32);
}

.hero-image {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    filter: sepia(10%) contrast(1.05);
    /* unify tone slightly */
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-48);
}

@media (min-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr 1.5fr;
        align-items: start;
    }
}

.about-image {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
}

.quote {
    margin: var(--space-48) 0;
    padding-left: var(--space-24);
    border-left: 1px solid var(--accent);
    font-style: auto;
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    color: var(--text-primary);
}

/* Approach & Portfolio (No Cards!) */
.auto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-48);
    margin-top: var(--space-48);
}

.grid-item {
    display: flex;
    flex-direction: column;
}

.grid-item .icon {
    font-size: 2rem;
    margin-bottom: var(--space-16);
    color: var(--accent);
}

.grid-item h3 {
    margin-bottom: var(--space-16);
}

/* Lists */
.feature-list {
    margin-top: var(--space-16);
}

.feature-list li {
    font-size: var(--text-sm);
    color: var(--text-primary);
    margin-bottom: var(--space-8);
    padding-left: var(--space-24);
    position: relative;
}

.bg-dark .feature-list li {
    color: var(--text-secondary);
}

.feature-list li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* CV Layout */
.cv-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-48);
}

@media (min-width: 900px) {
    .cv-grid {
        grid-template-columns: 300px 1fr;
    }
}

.cv-photo {
    width: 168px;
    height: 168px;
    border-radius: 50%;
    /* standard portrait crop */
    object-fit: cover;
    margin-bottom: var(--space-24);
    filter: grayscale(100%) contrast(1.1);
    /* style choice */
}

/* Timeline without the standard "dots and lines" - just typography */
.timeline-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    padding-bottom: var(--space-32);
    border-bottom: 1px solid var(--border);
    margin-bottom: var(--space-32);
}

@media (min-width: 600px) {
    .timeline-item {
        grid-template-columns: 140px 1fr;
        gap: var(--space-24);
    }
}

.timeline-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.timeline-date {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

.timeline-title {
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--text-primary);
}

/* Contact */
.contact-section h2 {
    margin-bottom: var(--space-16);
}

/* Footer */
.footer {
    padding: var(--space-48) 0;
    border-top: 1px solid var(--border);
    background-color: var(--bg-white);
}

.footer-flex {
    display: flex;
    flex-direction: column;
    gap: var(--space-24);
}

@media (min-width: 600px) {
    .footer-flex {
        flex-direction: row;
        justify-content: space-between;
        align-items: baseline;
    }
}

.footer-brand p {
    font-size: var(--text-xs);
    color: var(--text-secondary);
    margin-bottom: 0;
}

.footer-links {
    display: flex;
    gap: var(--space-24);
}

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

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

/* Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(20px);
    visibility: hidden;
    transition: opacity 0.6s cubic-bezier(0.2, 0, 0, 1),
        transform 0.6s cubic-bezier(0.2, 0, 0, 1);
}

.is-revealed {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        left: 0;
        top: 60px;
        width: 100%;
        background-color: var(--bg-white);
        flex-direction: column;
        padding: var(--space-24);
        border-bottom: 1px solid var(--border);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.2s;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

/* Social & Badge Styles */
.nav-social {
    color: var(--text-muted);
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.nav-social:hover {
    color: #0077b5;
    /* LinkedIn Color */
    transform: translateY(-2px);
}

.footer-social {
    color: var(--text-light) !important;
    font-weight: 500;
}

.footer-social:hover {
    color: #0077b5 !important;
}

.cv-badge-wrapper {
    margin-top: 2rem;
    display: flex;
    justify-content: left;
}

.certification-badge {
    width: 100px;
    height: auto;
    filter: drop-shadow(var(--shadow-md));
    transition: transform 0.3s ease;
}


@media (max-width: 992px) {
    .cv-badge-wrapper {
        justify-content: center;
    }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-white);
    border-top: 1px solid var(--border);
    padding: var(--space-16) var(--space-24);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: var(--space-16);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.2, 0, 0, 1);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner p {
    margin-bottom: 0;
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.cookie-banner a {
    color: var(--text-primary);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: var(--space-12);
}

@media (min-width: 768px) {
    .cookie-banner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: var(--space-16) var(--space-48);
    }

    .cookie-banner p {
        flex: 1;
        max-width: 800px;
    }
}