/* --- CORE VARIABLES & RESET --- */
:root {
    --earthy-bg: #3a2a22; 
    --harvard-crimson: #A51C30;
    --accent-gold: #d4a373;
    --text-main: #f4f1ee;
    --nav-footer-dark: #1a1816; 
}

* { box-sizing: border-box; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--earthy-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- HEADER & NAV --- */
nav {
    position: fixed;
    top: 0; width: 100%; z-index: 1000;
    padding: 25px 5%;
    display: flex; justify-content: space-between;
    align-items: center; 
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent; 
}

nav.scrolled {
    padding: 15px 5%;
    background: var(--nav-footer-dark); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 163, 115, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.logo { 
    font-family: 'Playfair Display', serif; 
    font-size: 1.5rem; 
    color: var(--accent-gold); 
    text-decoration: none; 
    font-weight: 700;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.8s ease forwards;
}

.nav-menu { display: flex; gap: 30px; align-items: center; }

.header-link {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    color: var(--accent-gold);
    text-decoration: none;
    cursor: pointer;
    position: relative;
    opacity: 0;
    transform: translateY(-15px);
    transition: all 0.4s ease;
}

.header-link:hover, .header-link.active-page {
    color: #fff;
    transform: translateY(-2px);
    text-shadow: 0 0 10px rgba(212, 163, 115, 0.5);
}

.reveal-active {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* --- MOBILE SIDE DRAWER --- */
.menu-icon { 
    display: none; 
    font-size: 1.5rem; 
    color: var(--accent-gold); 
    cursor: pointer; 
    z-index: 1001; 
}

.side-drawer {
    position: fixed; top: 0; left: -100%;
    width: 280px; height: 100%;
    background: var(--nav-footer-dark);
    backdrop-filter: blur(15px); 
    z-index: 2000;
    padding: 80px 30px; display: flex; flex-direction: column; gap: 25px;
    transition: 0.5s; border-right: 1px solid var(--accent-gold);
}

.header-title { 
    color: var(--accent-gold); 
    cursor: pointer; 
    font-weight: 600; 
    text-decoration: none; 
    display: block;
    transition: color 0.3s ease;
}

.header-title:hover { color: #fff; }

.side-drawer.open { left: 0; }
.menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); z-index: 1999; display: none; }
.menu-overlay.active { display: block; }

@media (max-width: 992px) {
    .menu-icon { display: block; }
    .nav-menu { display: none; }
    nav { padding: 20px 5%; }
}

/* --- HERO --- */
.hero {
    position: relative; 
    height: 75vh; /* Full Height */
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    overflow: hidden; text-align: center; padding: 0 5%;
    background-color: var(--earthy-bg); 
}

.hero-bg-slider {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; 
    background-position: center;
    opacity: 0;
    transform: scale(1);
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    animation: heroZoom 20s infinite alternate ease-in-out;
}

@keyframes heroZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

.hero::after { 
    content: ''; 
    position: absolute; 
    top: 0; left: 0; 
    width: 100%; height: 100%; 
    background: linear-gradient(
        to bottom, 
        rgba(0,0,0,0.5) 0%, 
        rgba(58, 42, 34, 0.4) 60%, 
        #3a2a22 95%,
        #3a2a22 100%
    ); 
    z-index: 1; 
    pointer-events: none;
}

.hero h1 { 
    font-family: 'Playfair Display', serif; 
    font-size: clamp(2rem, 6vw, 4rem); 
    margin-bottom: 20px; 
    color: var(--accent-gold);
    position: relative;
    z-index: 2; 
}

.hero-subtitle { 
    font-size: 1.1rem; 
    max-width: 600px; 
    color: #ddd; 
    position: relative;
    z-index: 2;
}

/* --- SECTIONS --- */
.container { max-width: 1200px; margin: -50px auto 60px auto; padding: 0 20px; position: relative; z-index: 10; }

.section-glass {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none; 
    border-radius: 20px;
    padding: 40px 30px;
    margin-bottom: 60px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.section-glass.active { opacity: 1; transform: translateY(0); }

.section-title {
    color: var(--accent-gold);
    text-transform: uppercase;
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    border-bottom: 2px solid rgba(212, 163, 115, 0.2);
    padding-bottom: 8px;
    margin: 0 0 40px 0;
    text-align: center;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s ease 0.2s; 
}

.section-title.active { opacity: 1; transform: translateX(0); }

/* --- ADVISOR CARD LAYOUT --- */
.advisor-list {
    display: flex; flex-direction: column; gap: 40px; 
}

.advisor-card {
    display: flex; flex-wrap: nowrap; 
    background: rgba(0, 0, 0, 0.2); 
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    opacity: 0;
    will-change: transform, opacity;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.8s ease, border-color 0.4s ease, background 0.4s ease;
    min-height: 400px; 
}

.advisor-card:nth-child(odd) { transform: translateX(-50px); }
.advisor-card:nth-child(even) { transform: translateX(50px); }
.advisor-card.active { opacity: 1; transform: translateX(0); }

.advisor-card:hover {
    border-color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px) translateX(0) !important;
}

/* --- IMAGE STYLES --- */
.advisor-img {
    flex: 0 0 450px; 
    position: relative; overflow: hidden; flex-shrink: 0; 
}

.advisor-img img {
    width: 100%; height: 100%; object-fit: cover; object-position: top center; 
    transition: transform 0.6s ease; filter: grayscale(20%);
}

.advisor-card:hover .advisor-img img { transform: scale(1.05); filter: grayscale(0%); }

/* --- CONTENT STYLE --- */
.advisor-content {
    flex: 1;
    padding: 30px 40px;
    display: flex; flex-direction: column; justify-content: center;
    text-align: left; /* Left Align */
    align-items: flex-start; 
}

.advisor-name {
    font-family: 'Playfair Display', serif; color: var(--accent-gold);
    font-size: 1.8rem; margin: 0;
}

.advisor-role {
    font-size: 0.9rem; color: #aaa; text-transform: uppercase;
    letter-spacing: 1.5px; margin-bottom: 20px; padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1); display: inline-block;
}

/* --- BIO & INLINE READ MORE --- */
.advisor-bio {
    font-size: 1rem;
    color: #ddd;
    line-height: 1.7;
    text-align: left; 
    position: relative;
}

/* Inline Button Style (No Box) */
.read-more-inline {
    background: transparent;
    border: none;
    color: var(--accent-gold);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    padding: 0;
    margin-left: 5px;
    display: inline;
    transition: color 0.3s ease;
}

.read-more-inline:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* --- MODAL (FULL SCREEN TEXT) STYLES --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85); /* Dark transparent background */
    backdrop-filter: blur(8px);
    z-index: 3000; /* Higher than nav */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--nav-footer-dark);
    border: 1px solid var(--accent-gold);
    padding: 40px;
    border-radius: 15px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh; /* Don't overflow screen */
    overflow-y: auto; /* Scroll text inside modal */
    position: relative;
    transform: scale(0.9);
    transition: transform 0.4s ease;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

/* Modal Close Button */
.close-modal-btn {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 2rem;
    color: #aaa;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s;
}
.close-modal-btn:hover { color: var(--accent-gold); }

/* Modal Text Styling */
.modal-title {
    font-family: 'Playfair Display', serif;
    color: var(--accent-gold);
    font-size: 2rem;
    margin-bottom: 5px;
}
.modal-subtitle {
    font-size: 1rem; color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
}
.modal-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #f4f1ee;
    text-align: left;
}

/* Scrollbar for modal */
.modal-content::-webkit-scrollbar { width: 6px; }
.modal-content::-webkit-scrollbar-track { background: #1a1816; }
.modal-content::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
.modal-content::-webkit-scrollbar-thumb:hover { background: var(--accent-gold); }


/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .advisor-card { flex-direction: column; min-height: auto; }
    .advisor-card:nth-child(odd) { transform: translateX(-30px); }
    .advisor-card:nth-child(even) { transform: translateX(30px); }
    .advisor-card.active { transform: translateX(0); }

    .advisor-img { flex: none; width: 100%; height: auto; }
    .advisor-img img { width: 100%; height: auto; object-fit: contain; max-height: 500px; }

    .advisor-content { padding: 25px; }
    .advisor-role { display: block; margin-left: 0; margin-right: auto; width: fit-content; }
}

/* --- FOOTER --- */
footer {
    background-color: #1a1816; padding: 60px 5% 48px; 
    border-top: 1px solid rgba(212, 163, 115, 0.15);
    width: 100%; position: relative; z-index: 100;
}

.footer-grid { display: flex; justify-content: space-between; max-width: 1200px; margin: 0 auto; width: 100%; }
.footer-reveal { opacity: 0; transform: translateY(20px); transition: all 0.6s cubic-bezier(0.2, 1, 0.3, 1); }
.footer-reveal.active { opacity: 1; transform: translateY(0); }

.footer-col { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.footer-col h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent-gold); margin-bottom: 8px; }
.footer-col p { font-size: 0.85rem; color: #999; margin: 0; }

.footer-links { display: flex; flex-direction: column; gap: 5px; }
.footer-links a { text-decoration: none; color: #ffffff; font-size: 1rem; font-family: 'Playfair Display', serif; }

.social-icons { display: flex; gap: 10px; margin-top: 5px; justify-content: center; }
.social-icons a { text-decoration: none !important; color: #fff; width: 32px; height: 32px; border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: 0.3s ease; }
.social-icons a:hover { border-color: var(--accent-gold); }

.footer-bottom { text-align: center; margin-top: 15px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.05); font-size: 0.65rem; color: #444; }

@media (max-width: 768px) {
    footer { padding: 15px 10px 10px; }
    .footer-grid { flex-direction: column; align-items: center; gap: 15px; }
    .section-glass { padding: 30px 15px; }
}