/* 
   THEME: Green, Parchment & Black
   FONTS: Helvetica (Specific Headers), Times New Roman (Biography Headers)
   UPDATED: December 31, 2025 - Forced Light Mode & Safari Fixes
*/

/* 1. VARIABLES */
:root {
    /* FORCES THE BROWSER TO RENDER IN LIGHT MODE */
    color-scheme: light; 
    
    --bg-main: #fcfaf2;        /* Parchment background */
    --accent: #1b4332;         /* Deep Forest Green */
    --text-dark: #0a0a0a;      /* Rich Black */
    --text-muted: #4b5563;     /* Muted Charcoal */
    --glass: rgba(255, 255, 255, 0.4); 
    --border: rgba(27, 67, 50, 0.15);  
}

/* 2. RESET & BASE */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-main);
    color: var(--text-dark);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

/* 3. DYNAMIC MESH BACKGROUND (Optimized for Mobile) */
.mesh-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    filter: blur(80px);
    -webkit-filter: blur(80px); /* Safari Fix */
    z-index: -1;
    pointer-events: none;
    transform: translateZ(0); /* Hardware acceleration */
}

.blob { 
    position: absolute; 
    width: 600px; 
    height: 600px; 
    border-radius: 50%; 
    opacity: 0.18; /* Slightly boosted for visibility */
    animation: float 20s infinite alternate; 
    transition: opacity 0.5s ease;
    will-change: transform;
}

.b1 { background: #52b788; top: -10%; left: -10%; }
.b2 { background: #2d6a4f; bottom: -10%; right: -10%; animation-delay: -5s; }

@keyframes float { 
    0% { transform: translate(0,0) scale(1); } 
    100% { transform: translate(40px, 40px) scale(1.1); } 
}

.container { 
    max-width: 850px; 
    margin: 0 auto; 
    padding: 120px 20px 40px 20px;
}

/* 4. NAVIGATION PILL */
nav {
    display: flex;
    position: fixed; 
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(252, 250, 242, 0.9); 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px); /* Safari Fix */
    padding: 8px 24px;
    border-radius: 100px;
    border: 1px solid var(--border);
    gap: 10px;
    z-index: 1000;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

nav a {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--text-muted);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 8px 16px;
    transition: all 0.3s ease;
}

nav a:hover, nav a.active { color: var(--accent); }

/* 5. TYPOGRAPHY HIERARCHY */
header { text-align: center; margin-bottom: 60px; display: flex; flex-direction: column; align-items: center; }

h1 { 
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; 
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.subtitle { 
    color: var(--accent); 
    text-transform: uppercase; 
    letter-spacing: 6px; 
    font-size: 0.85rem; 
    font-weight: 600; 
    margin-top: 15px; 
}

/* 6. BIOGRAPHY HEADERS */
#main-bio-header.sleek-header {
    font-family: 'Times New Roman', Times, serif;
    font-size: clamp(1.8rem, 5vw, 2.2rem);
    font-weight: 700;
    display: flex; 
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

#main-bio-header.sleek-header::before {
    content: ""; width: 4px; height: 0.9em;
    background: var(--accent); border-radius: 10px;
}

.sub-section {
    font-family: 'Helvetica Neue', Helvetica, sans-serif;
    font-size: 0.8rem; font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 4px; 
    margin: 60px 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center;
}

.sub-section::before {
    content: ""; width: 20px; height: 1px;
    background: var(--accent); margin-right: 12px;
}

/* 7. CONTENT CARD */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px); /* Safari Fix */
    border: 1px solid var(--border);
    padding: clamp(25px, 5vw, 50px);
    border-radius: 4px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

p { font-size: 1.05rem; margin-bottom: 1.8rem; color: #1a1a1a; }
footer { margin: 80px 0 40px 0; text-align: center; color: var(--text-muted); font-size: 0.75rem; }

/* 8. MOBILE RESPONSIVE */
@media (max-width: 768px) {
    nav { width: 92%; justify-content: center; top: 15px; }
    nav a { font-size: 0.6rem; padding: 8px 8px; }
    .container { padding-top: 80px; }
    .blob { width: 350px; height: 350px; }
}

/* 9. DESKTOP BOOST */
@media (min-width: 1024px) {
    .blob { 
        opacity: 0.35; 
        width: 800px;  
        height: 800px;
    }
    .b1 { background: #40916c; } 
    .b2 { background: #1b4332; } 
    .mesh-bg { filter: blur(140px); -webkit-filter: blur(140px); }
}
