:root {
    --gold: #C5A059;
    --dark-bg: #0A0F1A;
    --white-bg: #FFFFFF;
    --text-dark: #1A1F2B;
    --text-light: #F8FAFC;
    --glass: rgba(255, 255, 255, 0.03);
    --transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Montserrat', sans-serif; overflow-x: hidden; line-height: 1.6; }

h1, h2, h3, .logo { font-family: 'Playfair Display', serif; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 25px; }

/* Navbar System */
.navbar { position: fixed; top: 0; width: 100%; padding: 25px 0; z-index: 2000; transition: var(--transition); background: transparent; }
.navbar.scrolled, .navbar.active-nav { padding: 15px 0; background: rgba(10, 15, 26, 0.98); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,0.05); }

.header-logo { height: 45px; width: auto; display: block; }
.header-logo + .logo-text { display: none; } /* Show text only if logo fails */

.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; text-decoration: none; color: white; font-size: 1.6rem; font-weight: 700; }
.logo span { color: var(--gold); }

.nav-menu { display: flex; align-items: center; gap: 40px; }
.nav-links { display: flex; list-style: none; gap: 25px; }
.nav-links a { color: white; text-decoration: none; font-size: 0.85rem; font-weight: 500; transition: 0.3s; letter-spacing: 1px; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-cta { background: var(--gold); padding: 10px 20px; border-radius: 5px; color: var(--dark-bg) !important; font-weight: 700 !important; }

.nav-socials { display: flex; gap: 15px; border-left: 1px solid rgba(255,255,255,0.1); padding-left: 20px; }
.nav-socials a { color: var(--gold); font-size: 1rem; transition: 0.3s; }
.nav-socials a:hover { transform: translateY(-3px); color: white; }
/* GoFundMe Button Styling */
.nav-btn-donate {
    background: #00b964; /* Official GoFundMe Green */
    color: white !important;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 185, 100, 0.3);
    border: 2px solid transparent;
}

.nav-btn-donate i {
    font-size: 0.9rem;
    color: white;
}

.nav-btn-donate:hover {
    background: #009d54;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 185, 100, 0.4);
    color: white !important;
}

/* Optional: Subtle pulse animation to catch the eye */
@keyframes heartBeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.nav-btn-donate:hover i {
    animation: heartBeat 0.8s infinite;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .nav-btn-donate {
        margin: 15px 0;
        justify-content: center;
        width: 100%;
    }
}

/* Sections */
.section-dark { background: var(--dark-bg); color: var(--text-light); padding: 100px 0; }
.section-white { background: var(--white-bg); color: var(--text-dark); padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.subtitle { color: var(--gold); letter-spacing: 4px; font-weight: 700; font-size: 0.75rem; display: block; margin-bottom: 10px; }
.subpage-hero { padding: 180px 0 80px; text-align: center; }
.subpage-hero h1 span { color: var(--gold); }

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    /* Clean, light-filled interior */
    background: url('https://images.unsplash.com/photo-1519817650390-64a93db51149?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    /* We use a slightly deeper gradient here to ensure white text pops against the light stone */
    background: linear-gradient(
        90deg, 
        rgba(10, 15, 26, 0.8) 0%, 
        rgba(10, 15, 26, 0.3) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2; /* Ensures text stays above the overlay */
}.hero-wrapper { position: relative; z-index: 5; color: white; max-width: 650px; }
.hero-content h1 { font-size: clamp(3rem, 8vw, 4.5rem); margin-bottom: 20px; }
.hero-content h1 span { color: var(--gold); }

/* Buttons */
.btn-primary { background: var(--gold); color: var(--dark-bg); padding: 15px 35px; text-decoration: none; font-weight: 700; border-radius: 4px; display: inline-block; transition: 0.3s; }
.btn-outline { border: 2px solid white; color: white; padding: 13px 35px; text-decoration: none; font-weight: 700; border-radius: 4px; display: inline-block; margin-left: 15px; transition: 0.3s; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(197, 160, 89, 0.2); }

/* Grid Systems */
.about-grid, .video-grid, .team-grid, .contact-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.info-card { background: white; padding: 45px; border-radius: 12px; text-align: center; box-shadow: 0 10px 40px rgba(0,0,0,0.05); transition: var(--transition); }
.info-card:hover { transform: translateY(-10px); box-shadow: 0 20px 50px rgba(0,0,0,0.1); }
.card-icon { font-size: 2.2rem; color: var(--gold); margin-bottom: 20px; }

/* Contact Page Layout */
.contact-info-grid { margin-top: -120px; position: relative; z-index: 10; }
.contact-main-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 60px; margin-top: 80px; }
.contact-page-form { display: flex; flex-direction: column; gap: 15px; }
.form-row { display: flex; gap: 15px; }
.contact-page-form input, .contact-page-form select, .contact-page-form textarea { padding: 16px; border: 1px solid #eee; border-radius: 6px; width: 100%; outline: none; background: #fafafa; }
.map-placeholder { height: 300px; background: #f0f0f0; border-radius: 10px; margin-bottom: 30px; display: flex; align-items: center; justify-content: center; color: #999; }

/* Responsive Header Toggle */
.menu-toggle { display: none; cursor: pointer; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; background-color: white; transition: 0.3s; }

@media (max-width: 992px) {
    .menu-toggle { display: block; z-index: 2100; }
    .nav-menu { position: fixed; left: -100%; top: 0; flex-direction: column; background: var(--dark-bg); width: 100%; height: 100vh; transition: 0.4s; justify-content: center; z-index: 2050; }
    .nav-menu.active { left: 0; }
    .nav-links { flex-direction: column; text-align: center; gap: 30px; }
    .nav-links a { font-size: 1.5rem; }
    .nav-socials { border: none; padding: 0; margin-top: 30px; }
    .contact-main-layout { grid-template-columns: 1fr; }
    .form-row { flex-direction: column; }
    .btn-outline { margin-left: 0; margin-top: 15px; display: block; text-align: center; }
    #mobile-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    #mobile-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    #mobile-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* Scroll Reveal */
.scroll-reveal { opacity: 0; transform: translateY(40px); transition: all 1s ease-out; }
.scroll-reveal.active-reveal { opacity: 1; transform: translateY(0); }


/* --- Video Grid Fix --- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Adjusted for smaller screens */
    gap: 30px;
}

/* --- Mega Footer Styling --- */
.footer {
    background: #050810;
    color: #cbd5e1;
    padding: 80px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    padding-bottom: 60px;
}

.footer-col h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--gold);
}

.footer-bio {
    font-size: 0.9rem;
    margin: 20px 0;
    line-height: 1.8;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--gold);
    transition: 0.3s;
}

.footer-socials a:hover {
    background: var(--gold);
    color: var(--dark-bg);
}

/* Footer Quick Form */
.footer-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-form input, .footer-form textarea {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 12px;
    border-radius: 4px;
    color: white;
    font-size: 0.85rem;
}

.footer-btn {
    background: var(--gold);
    color: var(--dark-bg);
    border: none;
    padding: 10px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.3s;
}

.footer-btn:hover {
    filter: brightness(1.2);
}

.footer-bottom {
    background: #020408;
    padding: 25px 0;
    text-align: center;
    font-size: 0.8rem;
    color: #64748b;
    border-top: 1px solid rgba(255,255,255,0.03);
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--gold);
    color: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: 0.4s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    transform: translateY(-5px);
    background: white;
}

/* Responsive Footer */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .video-grid {
        grid-template-columns: 1fr;
    }
}
/* Media Hub Enhancements */
.media-hub {
    overflow: hidden;
    background: radial-gradient(circle at top right, #0f172a, #0a0f1a);
}

.section-desc {
    max-width: 600px;
    margin: 0 auto 40px;
    color: #94a3b8;
    text-align: center;
}

/* The Video Card Interaction */
.video-card {
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
}

.video-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(197, 160, 89, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.video-thumbnail {
    position: relative;
    overflow: hidden;
}

.video-info {
    padding: 25px;
    flex-grow: 1;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.category-tag {
    background: rgba(197, 160, 89, 0.1);
    color: var(--gold);
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.video-duration {
    color: #64748b;
    font-size: 0.8rem;
}

.video-info h4 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.video-card:hover h4 {
    color: var(--gold);
}

.video-info p {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Grid Responsiveness */
@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr; /* Force single column on mobile */
        gap: 40px;
    }
}

/* Portfolio Filter Buttons */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid #eee;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    border-radius: 50px;
    transition: 0.3s;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: white;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.portfolio-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 400px;
}

.portfolio-img {
    height: 100%;
    width: 100%;
    position: relative;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 26, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    opacity: 0;
    transition: 0.4s ease;
    backdrop-filter: blur(5px);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover .portfolio-img img {
    transform: scale(1.1);
}

.overlay-content h3 {
    color: var(--gold);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.overlay-content p {
    color: #eee;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.view-link {
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 5px;
}

/* JS Filtering Animation Classes */
.portfolio-item.hide {
    display: none;
}

.portfolio-item.show {
    animation: fadeInScale 0.4s ease forwards;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}


/* Team Card Styles */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.team-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    transition: var(--transition);
    border: 1px solid #f0f0f0;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
}

.member-image {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

.team-card:hover .member-image img {
    transform: scale(1.1);
}

/* Social Overlay */
.member-social-overlay {
    position: absolute;
    inset: 0;
    background: rgba(197, 160, 89, 0.9); /* Gold overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    transition: 0.4s ease;
}

.team-card:hover .member-social-overlay {
    opacity: 1;
}

.member-social-overlay a {
    width: 45px;
    height: 45px;
    background: white;
    color: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.1rem;
    transition: 0.3s;
}

.member-social-overlay a:hover {
    background: var(--dark-bg);
    color: var(--gold);
    transform: translateY(-5px);
}

.member-info {
    padding: 30px;
    text-align: center;
}

.member-info h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.member-info .role {
    display: block;
    color: var(--gold);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.member-info p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
}

.text-center { text-align: center; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .member-image { height: 300px; }
    .member-social-overlay { opacity: 1; background: transparent; top: auto; bottom: 20px; }
    .member-social-overlay a { box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
}
/* Team Card Styles */
/* Fallback if Scroll Reveal isn't working */
.scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

/* If you WANT the reveal effect, ensure your JS adds the 'active' class */
.scroll-reveal.active-reveal {
    opacity: 1;
    transform: translateY(0);
}

.team-video-hero {
    padding: 140px 0 80px; /* Extra top padding for the navbar */
    background: linear-gradient(135deg, #0a0f1a 0%, #16213e 100%);
}

.split-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text-content p {
    font-size: 1.1rem;
    color: #94a3b8;
    max-width: 500px;
}

/* The Video "Frame" */
.video-container-styled {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #000;
    line-height: 0; /* Removes weird spacing at bottom of video */
}

.main-team-clip {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* Responsive Tablet/Mobile */
@media (max-width: 992px) {
    .split-hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-text-content p {
        margin: 0 auto;
    }
    
    .hero-text-content h1 {
        font-size: 2.5rem;
    }
}

.video-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gold);
    color: white;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    pointer-events: none; /* Allows clicking video through badge */
}