/* --- GLOBAL RESET & FONTS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    color: #111;
    background-color: #ffffff;
}

/* --- THE NAVIGATION BAR --- */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: #e8eefc; /* Matches the hero background */
}

.top-nav .logo {
    font-family: 'Lora', serif;
    font-size: 1.5rem;
    text-decoration: none;
    color: #111;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    margin-left: 2rem;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #888;
}

/* --- THE SPLIT HERO SECTION --- */
.hero-split {
    display: flex;
    align-items: center;
    background-color: #e8eefc; /* The soft grey/blue from the template */
    padding: 4rem 10%;
    min-height: 80vh;
}

.hero-text-side {
    flex: 1;
    padding-right: 5rem;
}

.hero-image-side {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* --- TYPOGRAPHY & BUTTONS --- */
.hero-text-side h1 {
    font-family: 'Lora', serif;
    font-size: 4.5rem;
    color: #111;
    margin-bottom: 1.5rem;
    font-weight: 400;
    line-height: 1.1;
}

.hero-text-side p {
    font-size: 1.2rem;
    color: #444;
    margin-bottom: 2.5rem;
    max-width: 450px;
    line-height: 1.6;
}

.pill-btn {
    display: inline-block;
    padding: 15px 35px;
    border: 1px solid #111;
    border-radius: 50px; /* The Pill Shape */
    color: #111;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.pill-btn:hover {
    background-color: #111;
    color: #fff;
}

/* --- THE ROUNDED IMAGE --- */
.rounded-image-wrapper {
    width: 100%;
    max-width: 650px; /* Increased from 450px to fill the space */
    height: 70vh;     /* Changed from 550px to 70% of the screen height */
    background-color: #cbd1db; 
    border-radius: 120px; 
    overflow: hidden;
}

.rounded-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%; /* This nudges the photo focus slightly up so your face stays centered if it crops */
}

/* --- THE PROJECTS SECTION --- */
.projects-section {
    background-color: #ffffff; /* Crisp white to contrast the grey Hero */
    padding: 6rem 10%;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: 'Lora', serif;
    font-size: 3.5rem;
    color: #111;
    font-weight: 400;
}

.view-all-link {
    font-family: 'Outfit', sans-serif;
    color: #111;
    text-decoration: none;
    font-size: 1.1rem;
    border-bottom: 1px solid #111;
    padding-bottom: 2px;
    transition: opacity 0.3s;
}

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

/* --- THE 3-COLUMN GRID --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.project-card h3 {
    font-family: 'Lora', serif;
    font-size: 1.8rem;
    color: #111;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-weight: 400;
}

.project-card p {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.5;
}

/* Matching the elegant rounded corners from the template */
.project-image-wrapper {
    width: 100%;
    aspect-ratio: 4 / 5; /* Makes the images slightly tall and elegant */
    background-color: #e2e4e9;
    border-radius: 60px; /* Big elegant curves */
    overflow: hidden;
    position: relative;
}

.project-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease; /* Smooth zoom setup */
}

/* Subtle zoom effect when you hover over the project */
.project-card:hover .project-image-wrapper img {
    transform: scale(1.05);
}

/* --- SIDE QUESTS WRAPPER & SPLIT SECTION --- */
.side-quests-wrapper {
    background-color: #f7f8fa;
    padding-top: 6rem;
}

.side-quests-header {
    padding: 0 10%; /* Matches the left/right padding of Work Experience perfectly */
    margin-bottom: 3rem;
}

.content-split {
    display: flex;
    background-color: #f7f8fa; 
    min-height: 70vh;
}

.content-image-side {
    flex: 1; 
}

.content-image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 120px 120px 0; 
}

.content-text-side {
    flex: 1; 
    /* Reduced the top padding since the header is now sitting above it */
    padding: 0 10% 4rem 5%; 
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.text-block h3 {
    font-family: 'Lora', serif;
    font-size: 2.2rem; /* Made this slightly larger to act as the new sub-header */
    margin-bottom: 1rem;
    font-weight: 400;
    color: #111;
}

.text-block p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 3rem;
}

/* --- THE MINI GRID --- */
.mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.mini-image {
    width: 100%;
    aspect-ratio: 1 / 1; /* Makes them perfect squares */
    border-radius: 25px; /* Softer curves for smaller items */
    overflow: hidden;
    margin-bottom: 0.8rem;
    background-color: #d1d5db;
}

.mini-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.mini-card:hover .mini-image img {
    transform: scale(1.1); /* Slight zoom on hover */
}

.mini-card h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    color: #333;
    font-weight: 600;
    text-align: center;
}

/* --- THE CONTACT SECTION --- */
.contact-section {
    background-color: #111; /* Sleek dark finish to end the page */
    color: #fff;
    padding: 6rem 10%;
    text-align: center;
    min-height: 40vh; /* Shorter height as requested */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.contact-section h2 {
    font-family: 'Lora', serif;
    font-size: 3.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.contact-section p {
    font-size: 1.1rem;
    color: #aaa;
    margin-bottom: 3rem;
    max-width: 500px;
}

.contact-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap; /* Keeps buttons nice on smaller screens */
}

/* A white-outline version of your pill button for the dark background */
.pill-btn.outline {
    border-color: #fff;
    color: #fff;
}

.pill-btn.outline:hover {
    background-color: #fff;
    color: #111;
}

/* --- LINKED CARDS & ALIGNMENT --- */

/* This strips the default link styling so your cards still look like text! */
.linked-card {
    text-decoration: none;
    color: inherit;
    display: block; /* Makes the entire box clickable, not just the text */
}

/* Aligns the header and the 'View Side Quests' link */
.content-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* Aligns the button to the bottom of the H2 text */
    margin-bottom: 2rem;
}

.content-header-row h2 {
    font-family: 'Lora', serif;
    margin-bottom: 0 !important; /* Keeps your alignment fix */
}