/* --- 1. VARIABLES (The Palette) --- 
   Change these colors here, and they update everywhere. */
:root {
    --bg-color: #121212;        /* Deep Charcoal */
    --card-bg: #1E1E1E;         /* Slightly lighter for cards */
    --text-main: #E0E0E0;       /* Off-white for readability */
    --text-muted: #A0A0A0;      /* Grey for dates/secondary info */
    
    --accent-emerald: #50C878;  /* Electric Emerald */
    --accent-dark: #004B49;     /* Forest Green */
    
    --font-head: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

/* --- 2. GLOBAL RESET --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    scroll-behavior: smooth; /* Makes anchor links slide, not jump */
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* --- 3. NAVIGATION --- */
#navbar {
    display: flex; /* Modern layout tool */
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(18, 18, 18, 0.95);
    position: sticky; /* Keeps nav at top when scrolling */
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--accent-dark);
}

.nav-logo {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-emerald);
    letter-spacing: 2px;
}

.nav-links { display: flex; gap: 2rem; }
.nav-links a:hover { color: var(--accent-emerald); }

/* --- 4. HERO SECTION --- */
.hero-section {
    text-align: center;
    padding: 4rem 1rem;
    background: linear-gradient(180deg, var(--bg-color) 0%, var(--accent-dark) 150%);
}

.headshot-container img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%; /* Makes it a circle */
    border: 3px solid var(--accent-emerald);
    box-shadow: 0 0 20px rgba(80, 200, 120, 0.4); /* Green glow */
    margin-bottom: 1.5rem;
    transition: opacity 1s ease-in;
}

.hidden { opacity: 0; } /* Used for fade-in */

h1 {
    font-family: var(--font-head);
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

#profile-unions {
    color: var(--accent-emerald);
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

/* --- 5. SECTIONS & CARDS --- */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 1rem;
}

h2 {
    font-family: var(--font-head);
    color: var(--accent-emerald);
    border-left: 5px solid var(--accent-emerald); /* The green bar on the left */
    padding-left: 1rem;
    margin-bottom: 2rem;
}

/* News Grid */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.news-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-left: 2px solid var(--accent-dark);
    transition: transform 0.2s;
}

.news-card:hover {
    transform: translateY(-5px); /* Slight lift on hover */
    border-left-color: var(--accent-emerald);
}

.news-date {
    font-size: 0.85rem;
    color: var(--accent-emerald);
    margin-bottom: 0.5rem;
    font-weight: bold;
}

/* --- Links inside Content Areas (News, Bio, etc.) --- */
.news-content a, .hero-content p a {
    color: var(--accent-emerald);     /* Matches your theme */
    font-weight: 700;                 /* Makes it bold */
    text-decoration: none;            /* Removes the ugly default underline */
    border-bottom: 1px dashed var(--accent-emerald); /* Adds a stylish, subtle underline */
    transition: all 0.2s ease-in-out;
}

/* Hover Effect: "Flashy" Interaction */
.news-content a:hover, .hero-content p a:hover {
    color: #121212;                   /* Text turns black */
    background-color: var(--accent-emerald); /* Background turns green */
    border-bottom: 1px solid var(--accent-emerald);
    box-shadow: 0 0 10px rgba(80, 200, 120, 0.6); /* Adds a small glow */
    padding: 0 2px;                   /* Adds slight padding so the background looks nice */
    border-radius: 2px;
}

/* --- 6. VIDEO REELS --- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio hack */
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-card h3 { margin-bottom: 0.5rem; font-size: 1.1rem; }

/* --- 7. CREDITS --- */
.credit-category { margin-bottom: 3rem; }

.credit-category h3 {
    color: var(--accent-emerald);
    border-left: 5px solid var(--accent-emerald);
    padding-left: 1rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Common styles for both Header and Rows */
.credit-row, .credit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid #333;
    gap: 1rem; /* Adds space between columns */
}

/* Header specific styles */
.credit-header {
    font-weight: 700;
    color: var(--accent-emerald);
    text-transform: uppercase;
    font-size: 0.85rem;
    border-bottom: 2px solid var(--accent-dark);
    margin-bottom: 0.5rem;
}

.credit-row:hover { 
    background-color: rgba(80, 200, 120, 0.05); 
    transform: translateX(5px); /* Subtle shift right on hover */
    transition: transform 0.2s ease;
}

/* COLUMN SIZING (The Math) */
.credit-project { 
    flex: 2; /* Takes up 2 parts of space */
    font-weight: 600; 
    color: var(--text-main); 
}

.credit-role { 
    flex: 1.5; /* Takes up 1.5 parts */
    color: var(--text-muted); 
}

.credit-director { 
    flex: 1.5; /* Takes up 1.5 parts */
    color: var(--text-muted); 
}

.credit-year { 
    flex: 0 0 50px; /* Fixed width */
    text-align: right; 
    color: var(--accent-emerald); 
    font-weight: bold;
}

/* Mobile Tweak: Hide Director on very small screens if it gets too crowded */
@media (max-width: 600px) {
    .credit-director { display: none; }
    .credit-header .credit-director { display: none; }
}

/* --- 8. FOOTER --- */
footer {
    text-align: center;
    padding: 4rem 1rem;
    background: #0f0f0f;
    border-top: 1px solid var(--accent-dark);
    font-size: 0.9rem;
    color: var(--text-muted);
}

#rep-info h4 { color: var(--accent-emerald); margin-bottom: 0.5rem; }
#rep-info a { color: var(--text-main); text-decoration: underline; }

.social-btn {
    display: inline-block;
    margin: 1rem 0.5rem;
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--accent-emerald);
    border-radius: 20px;
    color: var(--accent-emerald);
    font-weight: 600;
}

.social-btn:hover {
    background: var(--accent-emerald);
    color: #000;
}

/* Call to Action Button */
.cta-button {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.8rem 2rem;
    background-color: transparent;
    border: 2px solid var(--accent-emerald);
    color: var(--accent-emerald);
    font-family: var(--font-head);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: var(--accent-emerald);
    color: var(--bg-color);
    box-shadow: 0 0 20px rgba(80, 200, 120, 0.5); /* The "Glow" */
    transform: translateY(-3px);
}