/* RESET & BASICS */
:root {
    --netflix-red: #e50914;
    --netflix-black: #141414;
    --text-gray: #b3b3b3;
    --netflix-green: #46d369;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--netflix-black);
    color: white;
    overflow-x: hidden;
}

/* UTILS */
.hidden { display: none !important; }

/* === PROFILE GATE === */
.profile-gate {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; 
    background-color: var(--netflix-black);
    text-align: center;
    animation: fadeIn 0.5s ease;
    padding: 20px;
}

.profile-container {
    width: 100%;
    max-width: 800px;
}

.gate-logo {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    display: block;
}

.profile-container h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: white;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.9), 
                 0 0 20px rgba(255, 255, 255, 0.5); 
    animation: fadeIn 1.5s ease; 
}

.profiles {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.profile {
    cursor: pointer;
    text-align: center;
}

.avatar {
    width: 150px;
    height: 150px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    filter: grayscale(100%) contrast(1.2) brightness(0.9); 
    border: 3px solid transparent;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5); 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    margin: 0 auto 1.5rem auto;
}

.profile:hover .avatar {
    border: 3px solid white;
    filter: grayscale(0%) brightness(1);
    transform: scale(1.15);
}

.profile span {
    color: gray;
    font-size: 1.3rem;
    font-weight: 300;
    transition: 0.3s;
    margin-top: 15px;
    display: block;
}

.profile:hover span {
    color: white;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

/* === MAIN APP === */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 10%, rgba(0,0,0,0));
    transition: background-color 0.3s;
}

.navbar.scrolled { background-color: var(--netflix-black); }

.logo {
    font-family: 'Bebas Neue', sans-serif;
    color: var(--netflix-red);
    font-size: 2.5rem;     
    letter-spacing: 1px;   
    font-weight: 400;      
    text-shadow: 0px 4px 3px rgba(0,0,0,0.4), 
                 0px 8px 13px rgba(0,0,0,0.1), 
                 0px 18px 23px rgba(0,0,0,0.1);
    user-select: none;
    line-height: 1;
}

.nav-links { display: flex; gap: 20px; }
.nav-links a { color: #e5e5e5; text-decoration: none; font-size: 0.9rem; }
.nav-links a:hover { color: var(--text-gray); }

.nav-profile { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 0.9rem;}

/* HERO */
.hero {
    height: 85vh;
    background: linear-gradient(rgba(0,0,0,0.2), var(--netflix-black)), url('https://images.unsplash.com/photo-1497215728101-856f4ea42174?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    padding-left: 50px;
}

.hero-content { max-width: 600px; padding-top: 80px; }

.hero-title {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.meta-data { margin-bottom: 1rem; font-weight: bold; }
.match-score { color: var(--netflix-green); margin-right: 10px; }
.year { color: var(--text-gray); margin-right: 10px; }
.rating { border: 1px solid var(--text-gray); padding: 0 5px; color: var(--text-gray); font-size: 0.8rem; }

.hero-desc {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    line-height: 1.4;
}

.btn {
    padding: 0.6rem 1.8rem;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    margin-right: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.btn-play { background-color: white; color: black; }
.btn-play:hover { background-color: rgba(255, 255, 255, 0.75); }

.btn-info { background-color: rgba(109, 109, 110, 0.7); color: white; }
.btn-info:hover { background-color: rgba(109, 109, 110, 0.4); }

/* CONTENT ROWS */
.content-rows {
    padding: 20px 0 50px 50px;
    margin-top: -100px; /* Pulls rows UP over the hero */
    position: relative;
    z-index: 10;
}

.content-rows h3 { margin-bottom: 10px; margin-top: 30px; font-size: 1.2rem; color: #e5e5e5; }

.row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 20px 0;
    scroll-behavior: smooth;
}
.row::-webkit-scrollbar { display: none; }

/* === ENHANCED CARD STYLING === */
.card {
    min-width: 280px; 
    height: 156px;    
    background-color: #222;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    cursor: pointer;
    margin-right: 5px; 
}

.card:hover { 
    transform: scale(1.15); 
    z-index: 99; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.8);
    border: 1px solid rgba(255,255,255,0.3);
}

.card img { width: 100%; height: 100%; object-fit: cover; }

.card-info {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
    padding: 40px 10px 10px 10px;
    opacity: 1;
}

.card-info h4 {
    font-size: 1.1rem;      
    color: white;
    font-weight: 800;       
    text-align: center;
    text-transform: uppercase; 
    text-shadow: 0 2px 4px rgba(0,0,0,0.9);
    line-height: 1.1;
    font-family: 'Helvetica Neue', Arial, sans-serif; 
    letter-spacing: 0.5px;
}

.card:hover .card-info {
    background: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.7) 70%, transparent 100%);
}

.netflix-badge {
    position: absolute;
    top: 8px; right: 8px;
    background-color: #e50914; 
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 6px;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    z-index: 10;
}

.badge-blue { background-color: #2196F3; }
.badge-green { background-color: #46d369; color: black; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* === NETFLIX MODAL === */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; transition: opacity 0.3s ease-in-out; pointer-events: none;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }

.modal-content {
    background-color: #181818;
    width: 90%; max-width: 850px;
    border-radius: 10px; overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.9);
    position: relative;
    transform: scale(0.9); transition: transform 0.3s ease;
}
.modal-overlay.open .modal-content { transform: scale(1); }

.close-btn {
    position: absolute; top: 15px; right: 20px;
    color: white; font-size: 2rem; cursor: pointer; z-index: 2002;
    background: rgba(0,0,0,0.5); width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.close-btn:hover { background: white; color: black; }

.modal-hero {
    height: 450px;
    background-size: cover; background-position: center; position: relative;
}
.modal-gradient {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, #181818, transparent 80%);
}
.modal-text {
    position: absolute; bottom: 30px; left: 40px; right: 40px; z-index: 2001;
}
.modal-text h1 {
    font-size: 3rem; margin-bottom: 10px; text-shadow: 2px 2px 5px black;
}
.modal-meta { margin-bottom: 15px; font-size: 1.1rem; font-weight: bold; }
.modal-text p {
    font-size: 1.1rem; line-height: 1.5; color: #d2d2d2; margin-bottom: 25px; max-width: 80%;
}
.modal-buttons { display: flex; }

/* === CV MODAL === */
.cv-content {
    background-color: #141414; color: white;
    max-width: 800px; width: 95%; max-height: 90vh;
    overflow-y: auto; padding: 0;
}
.cv-header {
    padding: 40px 40px 20px 40px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), #141414), url('https://images.unsplash.com/photo-1486312338219-ce68d2c6f44d?auto=format&fit=crop&w=1000&q=80');
    background-size: cover;
}
.cv-header h1 { font-size: 2.5rem; margin-bottom: 10px; }
.cv-summary { color: #a3a3a3; font-size: 0.95rem; line-height: 1.6; margin-top: 15px; }
.cv-summary strong { color: white; }
.quality { border: 1px solid #a3a3a3; border-radius: 3px; padding: 0 5px; font-size: 0.7rem; color: #a3a3a3; margin-left: 10px; }

/* Tabs */
.cv-tabs {
    display: flex; gap: 30px; padding: 0 40px;
    border-bottom: 1px solid #404040; margin-bottom: 20px;
    position: sticky; top: 0; background-color: #141414; z-index: 10;
    overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; 
}
.cv-tabs::-webkit-scrollbar { display: none; }
.tab-btn {
    background: none; border: none; color: #a3a3a3;
    font-size: 0.9rem; font-weight: bold; padding: 15px 0;
    cursor: pointer; border-top: 3px solid transparent; transition: 0.3s; flex-shrink: 0; 
}
.tab-btn:hover { color: white; }
.tab-btn.active { border-top: 3px solid #e50914; color: white; }

/* CV Body */
.cv-body { padding: 0 40px 40px 40px; }
.tab-content { display: none; animation: fadeIn 0.4s; }
.tab-content.active { display: block; }
.episode {
    display: flex; align-items: center; padding: 20px 0;
    border-bottom: 1px solid #404040; cursor: pointer;
}
.episode:hover { background-color: #1f1f1f; }
.episode-number { font-size: 1.5rem; color: #a3a3a3; margin-right: 20px; width: 30px; text-align: center; }
.episode-thumb {
    width: 140px; height: 80px;
    background-size: contain; background-repeat: no-repeat; background-position: center;
    background-color: #000; border: 1px solid #333; border-radius: 4px;
    margin-right: 20px; flex-shrink: 0;
}
.episode-info h4 { font-size: 1rem; margin-bottom: 5px; color: white; }
.episode-info .duration { font-size: 0.8rem; color: #a3a3a3; }
.episode-info p { font-size: 0.9rem; color: #d2d2d2; margin-top: 5px; line-height: 1.4; }

.grid-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-item { background: #333; padding: 20px; border-radius: 5px; }
.grid-item h3 { font-size: 1.1rem; color: white; margin-bottom: 5px; }
.grid-item p { color: #b3b3b3; font-size: 0.9rem; }
.meta-tag { display: inline-block; background: #e50914; font-size: 0.7rem; padding: 2px 6px; border-radius: 2px; margin-top: 10px; }
.tech-specs h3 { font-size: 1rem; color: #a3a3a3; margin-top: 20px; margin-bottom: 5px; }
.tech-specs p { color: white; font-size: 1.1rem; line-height: 1.5; }

/* === FINAL FOOTER & LAYOUT FIXES === */

/* 1. SCROLL FIXES */
html { scroll-behavior: smooth; }
#firm, #class, #lab, #futurist { scroll-margin-top: 120px; }

/* 2. CONTACT SECTION FIX 
   Overrides the -100px margin from content-rows so text isn't cut off */
#contact {
    margin-top: 0 !important; 
    padding-top: 100px !important;
    background-color: var(--netflix-black);
    position: relative;
}

.finale-header {
    font-family: 'Bebas Neue', cursive !important;
    font-size: 3.5rem !important;
    color: #e50914 !important;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 10px !important;
    line-height: 1;
    text-align: center;
}

/* 3. FOOTER STYLING 
   Forces alignment to center and fixes blue links */
.footer {
    width: 100%;
    padding: 20px 20px 60px 20px;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 20;
}

.footer-divider {
    height: 1px;
    background-color: #333;
    width: 100%; max-width: 600px;
    margin: 0 auto 30px auto;
}

.footer-content {
    width: 100%;
    display: flex; flex-direction: column; align-items: center; gap: 15px;
}

.social-links {
    display: flex; gap: 30px; margin-bottom: 15px; justify-content: center;
}
.social-links a {
    color: white !important; /* Forces White */
    font-size: 1.8rem;
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
}
.social-links a:hover {
    color: #e50914 !important;
    transform: scale(1.2);
}

.copyright { color: #757575; font-size: 0.9rem; margin-bottom: 5px; }
.credits { color: #555; font-size: 0.75rem; }

/* === MOBILE ADJUSTMENTS === */
@media (max-width: 768px) {
    .navbar { padding: 15px 20px; background-color: var(--netflix-black); }
    .nav-links { display: none; }
    .logo { font-size: 1.8rem; }
    .profile-gate { align-items: flex-start; padding-top: 50px; }
    .profiles { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; width: 100%; }
    .avatar { width: 100px; height: 100px; }
    .hero { background-position: top center; height: 80vh; padding-left: 20px; align-items: flex-end; padding-bottom: 100px; }
    .hero-title { font-size: 2.8rem; line-height: 1.1; }
    .content-rows { padding-left: 20px; margin-top: -50px; }
    .modal-content { width: 95%; margin: 10px; max-height: 90vh; overflow-y: auto; }
    .cv-header, .cv-body, .cv-tabs { padding-left: 20px; padding-right: 20px; }
    .episode { flex-direction: column; align-items: flex-start; }
    .episode-thumb { width: 100%; height: 150px; margin-bottom: 15px; }
    .episode-number { display: none; }
    .grid-list { grid-template-columns: 1fr; }
    .finale-header { font-size: 2.5rem !important; }
    .footer { padding: 20px; }
}
/* ===============================================
   CONTACT SECTION ENHANCEMENTS
   =============================================== */

.contact-container {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.contact-subtitle {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 30px;
    font-weight: 300;
}

.jotform-wrapper {
    min-height: 400px;
    margin-bottom: 40px;
}

.jotform-wrapper iframe {
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
}

.contact-fallback {
    border-top: 1px solid #333;
    padding-top: 30px;
    margin-top: 20px;
}

.fallback-text {
    color: #757575;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.contact-btn:hover {
    transform: translateY(-2px);
}

.email-btn {
    background: rgba(229, 9, 20, 0.9);
    color: white;
}

.email-btn:hover {
    background: var(--netflix-red);
    box-shadow: 0 5px 20px rgba(229, 9, 20, 0.4);
}

.linkedin-btn {
    background: rgba(0, 119, 181, 0.9);
    color: white;
}

.linkedin-btn:hover {
    background: #0077b5;
    box-shadow: 0 5px 20px rgba(0, 119, 181, 0.4);
}

.calendar-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.calendar-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
}

/* ===============================================
   RESOURCES BADGE FOR CARDS
   =============================================== */

.badge-gold { 
    background: linear-gradient(135deg, #c9a227, #e8d48a); 
    color: #1a1a1a; 
}

/* ===============================================
   MOBILE MENU TOGGLE
   =============================================== */

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}
