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

:root {
    --terracotta: #b07d6d;
    --cream: #e5e2d6;
    --text-dark: #7a5c53;
    --white: #ffffff;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

.display-serif {
    font-family: 'Playfair Display', serif;
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: 2px;
}

/* Intro Section */
/*.intro-section {
    background-color: var(--terracotta);
    color: var(--white);
    padding: 80px 0;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.intro-text h1 {
    font-size: 4rem;
    margin-bottom: 2rem;
}

.intro-text p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    max-width: 450px;
    opacity: 0.9;
}*/

/* About Section */
.about-section {
    background-color: var(--terracotta);
    color: var(--white);
    padding: 80px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h1 {
    font-size: 4rem;
    margin-bottom: 2rem;
}

.about-text p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    max-width: 450px;
    opacity: 0.9;
}

.profile-img {
    width: 100%;
    border-radius: 40px; /* Matching the soft corners in the screenshot */
    display: block;
}

/* CV Section */
.cv-section {
    background-color: var(--cream);
    color: var(--text-dark);
    padding: 100px 0;
    position: relative;
}

.cv-title {
    font-size: 8rem;
    line-height: 1;
    margin-bottom: 60px;
    opacity: 0.6;
}

.cv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
}

.column-header {
    font-size: 2.5rem;
    border-bottom: 1px solid var(--text-dark);
    padding-bottom: 10px;
    margin-bottom: 25px;
}

.cv-item {
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(122, 92, 83, 0.3);
    padding-bottom: 15px;
}

.cv-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.cv-item .location {
    font-size: 1rem;
}

.cv-item .location span {
    color: var(--terracotta);
    font-weight: bold;
    margin-right: 5px;
}

/* Responsive for Mobile */
@media (max-width: 768px) {
    .about-grid, .cv-grid {
        grid-template-columns: 1fr;
    }
    
    .about-text h1 {
        font-size: 3rem;
    }
    
    .cv-title {
        font-size: 5rem;
    }
}

/* Animation Base State */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

/* Active State when scrolled into view */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Contact Section Styling */
.contact-section {
    background-color: var(--terracotta);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.contact-section h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-section p {
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Hover Animation Logic */
.contact-btn {
    display: inline-block;
    padding: 15px 40px;
    border: 2px solid var(--white);
    border-radius: 50px;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    position: relative;
    transition: all 0.4s ease;
    background: transparent;
    overflow: hidden;
    z-index: 1;
}

/* The Fill Effect */
.contact-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--white);
    transition: all 0.4s ease;
    z-index: -1;
}

.contact-btn:hover {
    color: var(--terracotta);
}

.contact-btn:hover::before {
    width: 100%;
}

/* Secondary Button Style (Cream theme) */
.contact-btn.secondary {
    border-color: var(--cream);
    color: var(--cream);
}

.contact-btn.secondary::before {
    background-color: var(--cream);
}

.contact-btn.secondary:hover {
    color: var(--terracotta);
}

/* Unvisited link */
a:link {
  color: var(--white);
}

/* Visited link */
a:visited {
  color: var(--white);
}

/* Mouse over link */
a:hover {
  color: var(--cream);
}

/* Selected/Clicked link */
a:active {
  color: var(--white);
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Floating Navigation */
.scroll-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    gap: 15px;
}

.scroll-link {
    text-decoration: none;
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 15px;
    border-radius: 20px;
    transition: 0.3s ease;
}

/* Change link color based on the section background for visibility */
.scroll-link:hover {
    background: var(--white);
    color: var(--terracotta);
}

/* Adjusting padding for sections so the nav doesn't cover titles */
section {
    scroll-margin-top: 80px;
}

.active-nav {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}