/* -----------------------------------------------------------
   1. RESET & VARIABLES
----------------------------------------------------------- */
:root {
    --bg-color: #ffffff;
    --text-main: #111111;
    --text-body: #212121;
    --text-muted: #212121;
    --accent-bg: #f5f5f2;       
    --accent-dark: #e0e0dc;     
    --border-color: #eeeeee;
    --spacing-unit: 1.5rem;
    --font-stack: 'Inter', system-ui, -apple-system, sans-serif;
    --max-width: 1000px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-stack);
    background-color: var(--bg-color);
    color: var(--text-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* -----------------------------------------------------------
   2. UTILITIES
----------------------------------------------------------- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

.text-center-narrow {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.narrow { max-width: 600px; }

a { color: var(--text-main); text-decoration: none; transition: all 0.2s ease; }

h1, h2, h3 {
    color: var(--text-main);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

p { margin-bottom: 1.5rem; font-weight: 400; color: var(--text-body); }

/* -----------------------------------------------------------
   3. NAVIGATION
----------------------------------------------------------- */
.site-nav { padding: 1.5rem 0; font-size: 0.9rem; font-weight: 600; background-color: var(--accent-bg); }

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo { font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; }
.nav-links a { margin-left: 1.5rem; color: var(--text-muted); }
.nav-links a:hover { color: var(--text-main); }

/* -----------------------------------------------------------
   4. HERO PROFILE 
----------------------------------------------------------- */
.hero-profile {
    background: linear-gradient(180deg, var(--accent-bg) 70%, #ffffff 100%);
    padding: 4rem 0 6rem 0; 
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.bio-text {
    font-size: 1.15rem; 
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 2rem;
}

.profile-visual {
    display: flex;
    justify-content: flex-end; 
    align-items: center;
    pointer-events: none;
}

.hero-image-transparent {
    width: 100%;
    max-width: 360px;  
    height: 520px;     
    margin-left: auto;
    filter: drop-shadow(15px 15px 25px rgba(0,0,0,0.12)); 
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top; 
    -webkit-mask-image: linear-gradient(to bottom, black 83%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 83%, transparent 100%);
    display: block;
    pointer-events: none;
}

/* -----------------------------------------------------------
   5. CORE PILLARS
----------------------------------------------------------- */
.core-ideas {
    padding: 7rem 0; 
    background-color: #fff;
    counter-reset: pillar-counter;
}

.section-header { text-align: center; margin-bottom: 4rem; }
.section-title { font-size: 2rem; font-weight: 700; }

.grid-3-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-top: 1rem;
}

.card { position: relative; counter-increment: pillar-counter; z-index: 1; }

.card::before {
    content: counter(pillar-counter, decimal-leading-zero);
    position: absolute;
    top: -3rem;
    left: -0.5rem;
    font-size: 6rem; 
    font-weight: 800;
    color: var(--accent-bg); 
    z-index: -1;
    line-height: 1;
}

.card h3 { font-size: 1.35rem; margin-bottom: 0.75rem; margin-left: 1rem; }
.card .caption { font-size: 1rem; color: var(--text-muted); margin-left: 1rem; }

/* -----------------------------------------------------------
   6. CONTACT SECTION
----------------------------------------------------------- */
.contact-section {
    padding: 2rem 0; 
    background-color: var(--bg-color); 
}

.contact-form { 
    display: flex; 
    flex-direction: column; 
    gap: 2rem; 
    margin-top: 3rem; 
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem; 
    position: relative; 
}

.form-group label { 
    font-size: 0.8rem; 
    text-transform: uppercase; 
    letter-spacing: 0.1em; 
    color: var(--text-muted); 
    font-weight: 600;
    margin-left: 2px; 
}

.form-group input, 
.form-group textarea {
    padding: 1.25rem; 
    background-color: #ffffff; 
    border: 1px solid transparent; 
    border-radius: 6px; 
    font-family: var(--font-stack);
    font-size: 1rem;
    color: var(--text-main);
    box-shadow: 0 2px 5px rgba(0,0,0,0.03); 
    transition: all 0.2s ease;
    width: 100%;
}

.form-group input:focus, 
.form-group textarea:focus { 
    outline: none; 
    border-color: var(--text-main); 
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); 
    transform: translateY(-1px);
}

.form-group textarea { resize: vertical; min-height: 150px; }

.btn-submit {
    background-color: var(--text-main);
    color: #fff;
    padding: 1.25rem;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.95rem;
    width: 100%; 
    transition: all 0.2s ease;
    margin-top: 1rem;
}

.btn-submit:hover {
    background-color: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.success-msg, .error-msg {
    padding: 1.5rem;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 500;
}

.success-msg { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.error-msg { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* Form Validation States */
.form-group.is-valid input, 
.form-group.is-valid textarea {
    border-color: #a5d6a7 !important; 
    background-color: #f9fbf9; 
}

.form-group.is-invalid input, 
.form-group.is-invalid textarea {
    border-color: #ef9a9a !important; 
}

.form-group.is-valid::after {
    content: '✓';
    position: absolute;
    right: 1.25rem;
    top: 3.2rem; 
    color: #2e7d32;
    font-weight: 800;
    font-size: 0.9rem;
    opacity: 0.6;
}

/* -----------------------------------------------------------
   7. FOOTER
----------------------------------------------------------- */
footer { padding: 2rem 0; text-align: center; font-size: 0.8rem; color: var(--text-muted); background: var(--bg-color); }

/* -----------------------------------------------------------
   8. MEDIA QUERIES (Responsive Layouts)
----------------------------------------------------------- */

/* TABLET & DESKTOP */
@media (min-width: 768px) {
    .profile-grid {
        grid-template-columns: 1.2fr 1fr; 
        gap: 4rem;
    }
    .grid-3-col {
        grid-template-columns: repeat(3, 1fr);
        gap: 4rem;
    }
}

/* MOBILE */
@media (max-width: 768px) {
    /* 1. Ultra-Tight Hero Padding */
    .hero-profile {
        padding: 2rem 0 1rem 0; /* Cut bottom padding from 3rem to 1rem */
    }
    
    .profile-grid {
        display: block; 
        padding-bottom: 0; /* Removed the 2rem padding completely */
    }

    /* 2. Hide Image */
    .profile-visual {
        display: none;
    }

    /* 3. Ultra-Tight Pillar Padding */
    .core-ideas {
        padding: 2.5rem 0; /* Cut from 4rem down to 2.5rem */
    }

    /* Pull the pillars closer together */
    .grid-3-col {
        gap: 2rem; /* Reduced from the default 3rem */
    }

    /* 4. Tighter Contact Form Spacing */
    .contact-form {
        margin-top: 1.5rem; /* Cut the gap above the form in half */
    }
}
/* SMALL MOBILE NAV TWEAKS */
@media (max-width: 600px) {
    .nav-flex { flex-direction: column; align-items: flex-start; }
    .nav-links a { margin-left: 0; margin-right: 1.5rem; display: inline-block; margin-top: 0.5rem; }
    /* Removed the rogue text-align: center so it stays left-aligned! */
}