/* IMPORT GOOGLE FONTS */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Lato:wght@300;400;700&display=swap');

/* GLOBAL VARIABLES */
:root {
    --primary-color: #7D5A50;   
    --accent-color: #D9C4A8;    
    --bg-color: #FDFBF7;        
    --text-color: #333333;      
    --light-grey: #f4f4f4;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Lato', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* NAVIGATION */
nav {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem; /* Reduced slightly for long name */
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: var(--transition);
}

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

/* HERO SECTION */
.hero {
    background-color: var(--primary-color);
    color: #fff;
    padding: 80px 0;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin-bottom: 15px;
    line-height: 1.1;
}

.hero-text p {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 30px;
    max-width: 600px;
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 14px 35px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: var(--transition);
}

.btn:hover {
    background-color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* PROFILE PHOTO STYLES */
.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
}

.profile-img {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 50%;
    border: 8px solid rgba(255,255,255,0.15);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: var(--transition);
}

.profile-img:hover {
    transform: scale(1.02);
    border-color: var(--accent-color);
}

/* SECTIONS & LAYOUT */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px;
}

h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

/* CV & OTHER SPECIFIC STYLES (KEEPING THESE FOR YOUR CV PAGE) */
.cv-header { display: flex; flex-wrap: wrap; align-items: center; gap: 30px; margin-bottom: 40px; border-bottom: 2px solid var(--accent-color); padding-bottom: 30px; }
.cv-header-info h1 { margin-bottom: 5px; font-size: 2.2rem; color: var(--primary-color); }
.cv-header-info h2 { font-size: 1.1rem; color: #666; font-weight: 400; margin-top: 0; }
.cv-contact-row { margin-top: 15px; }
.cv-contact-row a, .cv-contact-row span { margin-right: 20px; color: #444; text-decoration: none; font-size: 0.9rem; display: inline-block; }
.cv-contact-row i { color: var(--primary-color); margin-right: 5px; }
.cv-section { margin-bottom: 50px; }
.cv-section-title { font-size: 1.4rem; border-left: 5px solid var(--primary-color); padding-left: 15px; margin-bottom: 25px; color: var(--primary-color); font-family: 'Playfair Display', serif; font-weight: bold; }
.cv-item { margin-bottom: 30px; padding-left: 20px; border-left: 2px solid #eee; transition: var(--transition); }
.cv-item:hover { border-left: 2px solid var(--primary-color); }
.cv-item h3 { margin: 0; font-size: 1.2rem; color: #333; }
.cv-item .org { font-weight: bold; color: var(--primary-color); }
.cv-item .date { font-size: 0.85rem; color: #888; margin-bottom: 10px; display: block; text-transform: uppercase; letter-spacing: 1px; margin-top: 5px; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { background: #f4f4f4; padding: 6px 14px; border-radius: 20px; font-size: 0.85rem; color: #555; border: 1px solid #ddd; display: inline-block; }

/* FOOTER */
footer {
    background-color: #2c2c2c;
    color: #fff;
    text-align: center;
    padding: 40px 0;
    margin-top: 50px;
}

/* PROJECT GRID */
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.project-card { background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 25px; transition: var(--transition); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.project-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); border-bottom: 3px solid var(--primary-color); }
.project-card h3 { margin-top: 0; color: var(--primary-color); }

/* MOBILE RESPONSIVE */
@media (max-width: 900px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        padding: 40px 20px;
    }
    .hero-text { text-align: center; }
    .hero-text h1 { font-size: 2.5rem; }
    .profile-img { width: 180px; height: 180px; margin-bottom: 30px; }
    nav { flex-direction: column; gap: 15px; }
    .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
}
/* --- NEW PREMIUM ADDITIONS --- */

/* 1. Smooth Fade-In Animation (Like the example site) */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Apply animation to main sections */
.hero, .container, .features-section {
    animation: fadeIn 1.2s ease-out forwards;
}

/* 2. The "Pillars" Section (Focus Areas) */
.features-section {
    background-color: #fff; /* White background for contrast */
    padding: 80px 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Auto-stacking columns */
    gap: 40px;
    max-width: 1100px;
    margin: 50px auto 0;
}

.feature-box {
    padding: 35px 25px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature-box:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.08); /* Soft shadow on hover */
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: block;
}

.feature-box h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 15px;
    color: #333;
}

.feature-box p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}