@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400;1,700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-main: #FAF8F3;
    --bg-sec: #F5F1E8;
    --primary: #D4A574;
    --primary-muted: rgba(212, 165, 116, 0.3);
    --text-main: #2C2C2C;
    --text-sec: #666666;
    --border: #E0D5C7;
    --white: #ffffff;
    --transition: cubic-bezier(0.16, 1, 0.3, 1);
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3Base64%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    background-blend-mode: overlay;
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.5;
    overflow-x: hidden;
    padding-bottom: 50px;
}

h1,
.serif-text {
    font-family: var(--font-serif);
}

.uppercase-sans {
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
}

/* Layout System */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.editorial-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: start;
}

.thin-line {
    height: 1px;
    background-color: var(--primary);
    opacity: 0.4;
    margin: 1.5rem 0;
    width: 100%;
}

.vertical-line {
    width: 1px;
    background-color: var(--border);
    height: 100%;
    margin: 0 1.5rem;
}

/* Hero Section */
.hero {
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid var(--border);
    margin-bottom: 40px;
}

.profile-img-container {
    width: 160px;
    height: 160px;
    margin: 0 auto 20px;
    border: 6px solid var(--primary);
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    /* Ensures the face is visible */
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 5px;
}

.hero .role-tag {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    margin-top: 10px;
}

.hero .contact-line {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 25px 0;
}

.hero .contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s ease;
}

.hero .contact-item:hover {
    color: var(--primary);
}

.hero .contact-item i {
    width: 18px;
    color: var(--primary);
}

.btn-cv {
    background-color: var(--primary);
    color: var(--white);
    padding: 10px 25px;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    border-radius: 2px;
    transition: transform 0.3s var(--transition);
    display: inline-block;
}

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

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 25px;
}

.section-header i {
    color: var(--primary);
    width: 24px;
}

.section-header h2 {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 600;
    color: var(--text-main);
}

/* Typography & Content Block */
.content-block {
    margin-bottom: 40px;
}

.about-text {
    font-size: 1rem;
    color: var(--text-main);
    text-align: justify;
    line-height: 1.6;
}

/* Timeline */
.editorial-timeline {
    position: relative;
    padding-left: 100px;
    /* Slightly more space for the left column */
    border-left: 1px solid var(--primary-muted);
    /* Main vertical line */
    margin-left: 45px;
    /* Align with the side of the container */
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-bottom: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -105px;
    /* Align perfectly with the timeline container's left border */
    top: 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary);
    border: 2px solid var(--white);
    z-index: 2;
}

.timeline-year {
    position: absolute;
    left: -100px;
    top: 0;
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    transform: translateX(-100%);
    /* Push text to the left of the line */
    padding-right: 25px;
    text-align: right;
    width: 80px;
}

.timeline-item:not(:last-child)::after {
    display: none;
    /* Removed as we use the container border now */
}

.timeline-title {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.timeline-subtitle {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-sec);
    margin-bottom: 10px;
}

.timeline-desc {
    font-size: 0.9rem;
    color: var(--text-main);
}

/* Skills Box */
.skills-box {
    background-color: var(--bg-sec);
    padding: 30px;
    border-radius: 4px;
    border: 1px solid var(--border);
}

.skill-item {
    margin-bottom: 15px;
}

.skill-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.skill-bar-container {
    height: 4px;
    background-color: var(--border);
    position: relative;
}

.skill-bar-fill {
    height: 100%;
    background-color: var(--primary);
    width: 0;
    transition: width 1.5s var(--transition);
}

/* Awards */
.award-card {
    background-color: #ffffff;
    padding: 1.5rem;
    border: 1px solid var(--border);
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.award-card .year {
    font-family: var(--font-serif);
    color: var(--primary);
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.award-card h3 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

/* Hobbies */
.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.hobby-module {
    background: var(--bg-sec);
    padding: 15px;
    text-align: center;
    border-radius: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.hobby-module i {
    color: var(--primary);
    width: 20px;
}

.hobby-module span {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Decorative Detail */
.geo-detail {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 1px solid var(--primary-muted);
    z-index: -1;
}

.geo-top-right {
    top: 20px;
    right: 20px;
    border-left: none;
    border-bottom: none;
}

.geo-bottom-left {
    bottom: 20px;
    left: 20px;
    border-right: none;
    border-top: none;
}

/* Responsive */
@media (max-width: 900px) {
    .editorial-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .contact-line {
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
    }
}