/* ===================================================
   NETFLIX PORTFOLIO — MOBILE-FIRST RESPONSIVE CSS
   =================================================== */

/* --- Google Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Netflix+Sans:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* --- CSS Custom Properties --- */
:root {
    --netflix-red:      #e50914;
    --netflix-red-dark: #b20710;
    --bg-dark:          #141414;
    --bg-card:          #181818;
    --bg-card-hover:    #222;
    --text-primary:     #ffffff;
    --text-secondary:   #a3a3a3;
    --text-muted:       #6b6b6b;
    --border-color:     #2a2a2a;
    --nav-height-mobile: 56px;
    --bottom-nav-height: 60px;
    --nav-height-desktop: 68px;
    --transition-fast:  0.2s ease-in-out;
    --transition-base:  0.32s ease-in-out;
    --radius-sm:        4px;
    --radius-md:        8px;
    --radius-lg:        12px;
    --shadow-card:      0 4px 20px rgba(0,0,0,0.6);
    --shadow-modal:     0 8px 40px rgba(0,0,0,0.9);
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent; /* Remove tap flash on mobile */
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', Arial, sans-serif;
    min-height: 100vh;
    /* Extra bottom padding so content clears the bottom nav on mobile */
    padding-bottom: var(--bottom-nav-height);
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

/* ===================================================
   1. TOP NAVIGATION BAR
   =================================================== */
.netflix-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    height: var(--nav-height-mobile);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(20,20,20,0.98) 0%, rgba(20,20,20,0.7) 70%, transparent 100%);
    backdrop-filter: blur(2px);
    transition: background var(--transition-base);
}

.netflix-nav.scrolled {
    background: rgba(20,20,20,0.97);
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--netflix-red);
    letter-spacing: 1px;
    text-transform: uppercase;
    flex-shrink: 0;
}

/* Desktop nav links — hidden on mobile */
.desktop-nav {
    display: none;
}

.desktop-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.desktop-nav a:hover {
    color: var(--text-primary);
}

/* profile-icon removed — no red box in nav */
.profile-icon {
    display: none;
}

/* ===================================================
   2. BOTTOM NAVIGATION BAR (Mobile Netflix App Style)
   =================================================== */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--bottom-nav-height);
    background: rgba(18,18,18,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1100;
    padding: 0 4px;
    padding-bottom: env(safe-area-inset-bottom, 0px); /* iOS safe area */
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    transition: opacity var(--transition-fast);
    min-width: 52px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item:active {
    opacity: 0.7;
    background: rgba(255,255,255,0.05);
}

.bottom-nav-item.active {
    color: var(--text-primary);
}

.bottom-nav-item.active .nav-icon svg {
    stroke: var(--text-primary);
}

.bottom-nav-item svg {
    width: 22px;
    height: 22px;
    stroke: var(--text-muted);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke var(--transition-fast);
}

.bottom-nav-item.active svg {
    stroke: var(--text-primary);
}

.bottom-nav-label {
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Hide bottom nav on desktop */
@media (min-width: 768px) {
    .mobile-bottom-nav { display: none; }
    body { padding-bottom: 0; }
}

/* ===================================================
   3. WHO'S WATCHING — PROFILE SELECTION SCREEN
   =================================================== */
.featured-banner {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--bg-dark);
    padding-top: var(--nav-height-mobile);
}

.profile-selection {
    text-align: center;
    padding: 20px 16px 40px;
    width: 100%;
}

.profile-selection h1 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 32px;
    letter-spacing: 0.5px;
}

.profile-list {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;          /* Always one horizontal row */
    gap: 16px;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.profile-card {
    cursor: pointer;
    transition: transform var(--transition-base);
    width: 85px;
    flex-shrink: 0;             /* Prevent cards from shrinking below their size */
    -webkit-tap-highlight-color: transparent;
}

.profile-card:active {
    transform: scale(0.95);
}

.profile-card img {
    width: 85px;
    height: 85px;
    border-radius: var(--radius-sm);
    border: 3px solid transparent;
    object-fit: cover;
    transition: border-color var(--transition-base);
}

.profile-card:hover img,
.profile-card:focus img {
    border-color: var(--text-primary);
}

.profile-card p {
    font-size: 0.9rem;
    margin-top: 10px;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.profile-card:hover p {
    color: var(--text-primary);
}

/* ===================================================
   4. VIDEO HERO BANNER
   =================================================== */
#video-hero-banner {
    width: 100%;
    height: 52vw;         /* ~16:9 aspect on mobile */
    min-height: 200px;
    max-height: 75vh;
    position: relative;
    overflow: hidden;
    background-color: #000;
    margin-top: var(--nav-height-mobile);
}

#video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gradient fade at the bottom of the video */
#video-hero-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to bottom, transparent 0%, var(--bg-dark) 100%);
    pointer-events: none;
}

.video-overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 20px 16px;
    z-index: 10;
    width: 100%;
}

.video-overlay-text h1 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
    line-height: 1.2;
}

.video-overlay-text p {
    font-size: 0.8rem;
    color: #ccc;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

/* Video hero action buttons (mobile netflix style) */
.video-hero-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.hero-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
}

.hero-btn:active {
    transform: scale(0.96);
    opacity: 0.85;
}

.hero-btn-play {
    background: var(--text-primary);
    color: #000;
}

.hero-btn-info {
    background: rgba(109,109,110,0.7);
    color: var(--text-primary);
    backdrop-filter: blur(4px);
}

.hero-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    flex-shrink: 0;
}

/* ===================================================
   5. CONTENT ROWS — POSTER GRID
   =================================================== */
.content-row {
    margin: 20px 0 8px;
    padding: 0 12px;
}

.content-row h2 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0 4px;
}

/* Horizontal scrolling row */
.row-posters {
    display: flex;
    overflow-x: auto;
    overflow-y: visible;
    gap: 8px;
    padding-bottom: 12px;
    padding-top: 4px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.row-posters::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* ===================================================
   6. POSTER TILES — MOBILE OPTIMIZED (16:9 thumbnails)
   =================================================== */
.poster-tile {
    flex-shrink: 0;
    /* Mobile: Show 2.3 tiles at a time */
    width: calc((100vw - 24px - 16px) / 2.3);
    aspect-ratio: 16 / 9;
    background-color: #303030;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    scroll-snap-align: start;
    -webkit-tap-highlight-color: transparent;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.poster-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

/* Touch tap: subtle press effect */
.poster-tile:active {
    transform: scale(0.97);
}

/* Title overlay — always visible on mobile */
.tile-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
    padding: 20px 8px 8px;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-primary);
    text-align: left;
    opacity: 1;         /* Always visible on mobile */
    transition: opacity var(--transition-fast);
    line-height: 1.3;
}

/* Desktop hover behaviour */
@media (hover: hover) {
    .tile-info {
        opacity: 0;
    }
    .poster-tile:hover .tile-info {
        opacity: 1;
    }
    .poster-tile:hover {
        transform: scale(1.07);
        z-index: 10;
        box-shadow: var(--shadow-card);
    }
    .poster-tile:hover img {
        transform: scale(1.04);
    }
}

/* ===================================================
   7. PROJECT MODAL — TOUCH-FRIENDLY PREVIEW
   =================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0); /* starts transparent, JS animates */
    display: none;
    justify-content: flex-end; /* slides up from bottom on mobile */
    align-items: flex-end;
    z-index: 2000;
    overflow: hidden;
    transition: background-color var(--transition-base);
}

.modal-overlay.active {
    background-color: rgba(0,0,0,0.85);
}

/* The card itself */
.modal-content {
    background-color: var(--bg-card);
    width: 100%;
    max-height: 92vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    box-shadow: var(--shadow-modal);
    position: relative;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateY(100%);     /* starts off-screen */
    transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

/* Drag handle indicator */
.modal-drag-handle {
    width: 40px;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    margin: 12px auto 0;
}

/* Close button */
.close-button {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: rgba(40,40,40,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 400;
    cursor: pointer;
    z-index: 2010;
    transition: background var(--transition-fast);
    line-height: 1;
    text-align: center;
    border: none;
    -webkit-tap-highlight-color: transparent;
}

.close-button:hover {
    background: var(--netflix-red);
}

/* Modal header image */
.modal-header-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.modal-header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Modal body content */
.modal-body {
    padding: 16px 20px 24px;
}

.modal-body h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.25;
}

.modal-metadata {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.metadata-item {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.metadata-item:not(:last-child)::after {
    content: '·';
    margin-left: 10px;
    color: var(--text-muted);
}

.modal-description {
    margin-bottom: 16px;
}

.modal-description p {
    font-size: 0.9rem;
    line-height: 1.55;
    color: #ccc;
}

/* Action buttons inside modal */
.modal-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.modal-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: none;
    flex: 1;
    justify-content: center;
    min-width: 100px;
    -webkit-tap-highlight-color: transparent;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.modal-btn:active {
    transform: scale(0.97);
    opacity: 0.85;
}

.modal-btn-play {
    background: var(--text-primary);
    color: #000;
}

.modal-btn-list {
    background: rgba(50,50,50,0.8);
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.2);
}

.modal-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    flex-shrink: 0;
}

.modal-tech-stack {
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    padding-top: 14px;
    line-height: 1.55;
}

.modal-tech-stack strong {
    color: var(--text-primary);
}

.modal-tech-stack a {
    color: var(--netflix-red);
    text-decoration: none;
}

.modal-tech-stack a:hover {
    opacity: 0.8;
}

/* ===================================================
   8. SKILLS MODAL
   =================================================== */
#skills-modal {
    align-items: flex-end;
}

.skills-modal-content {
    background-color: var(--bg-card);
    width: 100%;
    max-height: 92vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 20px 20px 32px;
    color: var(--text-primary);
    position: relative;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateY(100%);
    transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
}

#skills-modal.active .skills-modal-content {
    transform: translateY(0);
}

.skills-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--netflix-red);
    margin-bottom: 4px;
    margin-top: 8px;
}

.skills-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.skill-group {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
}

.skill-group h3 {
    font-size: 1rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 12px;
    font-weight: 600;
}

.skill-group ul {
    list-style: none;
    padding: 0;
}

.skill-group li {
    padding: 7px 0;
    font-size: 0.88rem;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    display: flex;
    align-items: center;
    gap: 8px;
}

.skill-group li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--netflix-red);
    border-radius: 50%;
    flex-shrink: 0;
}

.skill-group li:last-child {
    border-bottom: none;
}

.skills-poster-footer {
    text-align: center;
    padding: 20px;
    background-color: #000;
    border-radius: var(--radius-md);
}

.skills-poster-footer img {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.skills-poster-footer p {
    font-size: 0.9rem;
    color: var(--netflix-red);
}

/* ===================================================
   9. TIMELINE MODAL
   =================================================== */
#timeline-modal {
    align-items: flex-end;
}

.timeline-modal-content {
    background-color: var(--bg-card);
    width: 100%;
    max-height: 92vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 20px 20px 40px;
    color: var(--text-primary);
    position: relative;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateY(100%);
    transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
}

#timeline-modal.active .timeline-modal-content {
    transform: translateY(0);
}

.timeline-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--netflix-red);
    margin-bottom: 4px;
    margin-top: 8px;
}

.timeline-subtitle {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.timeline-container {
    position: relative;
    padding-left: 36px;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--netflix-red);
    top: 0;
    bottom: 0;
    left: 6px;
}

.timeline-episode {
    padding: 0 0 28px 24px;
    position: relative;
}

.timeline-episode::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    left: -6px;
    top: 8px;
    background-color: var(--bg-card);
    border: 3px solid var(--netflix-red);
    border-radius: 50%;
    z-index: 1;
}

.timeline-date {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.timeline-details h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.timeline-details .company {
    font-style: italic;
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin: 0 0 8px;
}

.timeline-details .summary {
    font-size: 0.85rem;
    line-height: 1.55;
    color: #bbb;
}

.timeline-details .tech-stack {
    font-size: 0.78rem;
    margin-top: 8px;
    color: var(--text-muted);
}

.timeline-footer {
    text-align: center;
    padding-top: 8px;
}

.resume-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--netflix-red);
    color: var(--text-primary);
    padding: 12px 28px;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
}

.resume-button:active {
    transform: scale(0.96);
}

.resume-button:hover {
    background-color: var(--netflix-red-dark);
}

/* ===================================================
   10. ABOUT / HIRE ME MODAL
   =================================================== */
#about-modal {
    align-items: flex-end;
}

.about-modal-content {
    background-color: var(--bg-card);
    width: 100%;
    max-height: 92vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 20px 20px 40px;
    color: var(--text-primary);
    position: relative;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateY(100%);
    transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
}

#about-modal.active .about-modal-content {
    transform: translateY(0);
}

.about-header {
    text-align: center;
    margin-bottom: 28px;
}

.about-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--netflix-red);
    margin-bottom: 4px;
    margin-top: 8px;
}

.about-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.about-sections {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 28px;
}

.about-vision,
.about-contact {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
}

.about-sections h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
    margin-bottom: 14px;
}

.about-vision p,
.about-contact p {
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--text-secondary);
}

.vision-points {
    list-style: none;
    padding: 0;
    margin-top: 14px;
}

.vision-points li {
    font-size: 0.88rem;
    margin-bottom: 10px;
    color: var(--text-secondary);
    position: relative;
    padding-left: 16px;
}

.vision-points .red-dot {
    position: absolute;
    left: 0;
    top: 6px;
    width: 7px;
    height: 7px;
    background-color: var(--netflix-red);
    border-radius: 50%;
}

.contact-details p {
    margin: 10px 0;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.contact-details a.contact-link,
.contact-details a.social-link {
    color: var(--netflix-red);
    text-decoration: none;
    transition: opacity var(--transition-fast);
    font-weight: 500;
}

.contact-details a:hover {
    opacity: 0.75;
}

.contact-details a.social-link {
    margin-right: 12px;
}

.contact-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
}

.contact-btn-primary {
    background: var(--netflix-red);
    color: var(--text-primary);
}

.contact-btn-secondary {
    background: rgba(50,50,50,0.8);
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.2);
}

.about-footer {
    text-align: center;
    padding: 20px;
    background-color: #000;
    border-radius: var(--radius-sm);
}

/* ===================================================
   11. DESKTOP BREAKPOINTS (≥ 768px)
   =================================================== */
@media (min-width: 768px) {
    /* Nav */
    .netflix-nav {
        height: var(--nav-height-desktop);
        padding: 0 40px;
    }
    .desktop-nav { display: flex; }
    .logo { font-size: 1.6rem; }

    /* Profile screen */
    .featured-banner { padding-top: var(--nav-height-desktop); }
    .profile-selection h1 { font-size: 3rem; }
    .profile-list { gap: 40px; }
    .profile-card { width: 150px; }
    .profile-card img { width: 150px; height: 150px; }

    /* Video hero */
    #video-hero-banner {
        height: 75vh;
        margin-top: var(--nav-height-desktop);
    }
    .video-overlay-text {
        padding: 30px 50px;
        width: 60%;
    }
    .video-overlay-text h1 { font-size: 3rem; }
    .video-overlay-text p { font-size: 1.1rem; }

    /* Content rows */
    .content-row {
        margin: 28px 40px 0;
        padding: 0;
    }
    .content-row h2 { font-size: 1.4rem; }

    /* Poster tiles – wider, 5 visible */
    .poster-tile {
        min-width: 220px;
        width: 220px;
        height: 130px;
        aspect-ratio: unset;
        border-radius: 4px;
    }

    /* Tile info hidden until hover */

    /* Modals — centered, desktop card style */
    .modal-overlay {
        align-items: center;
        justify-content: center;
    }
    .modal-content {
        width: 80%;
        max-width: 900px;
        max-height: 90vh;
        border-radius: var(--radius-md);
        transform: scale(0.9) translateY(20px);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }
    .modal-overlay.active .modal-content {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
    .modal-drag-handle { display: none; }
    .modal-header-image { aspect-ratio: unset; height: 380px; }
    .modal-body { padding: 28px 32px 32px; }
    .modal-body h2 { font-size: 2rem; }
    .modal-description p { font-size: 0.95rem; }

    #skills-modal { align-items: center; justify-content: center; }
    .skills-modal-content {
        width: 90%;
        max-width: 1000px;
        border-radius: var(--radius-md);
        transform: scale(0.9) translateY(20px);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
        padding: 48px;
    }
    #skills-modal.active .skills-modal-content {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
    .skills-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
    .skills-title { font-size: 2.8rem; }
    .skills-poster-footer img { max-height: 240px; }

    #timeline-modal { align-items: center; justify-content: center; }
    .timeline-modal-content {
        width: 90%;
        max-width: 860px;
        border-radius: var(--radius-md);
        transform: scale(0.9) translateY(20px);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
        padding: 48px;
    }
    #timeline-modal.active .timeline-modal-content {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
    .timeline-title { font-size: 2.6rem; }
    .timeline-details h3 { font-size: 1.4rem; }

    #about-modal { align-items: center; justify-content: center; }
    .about-modal-content {
        width: 90%;
        max-width: 800px;
        border-radius: var(--radius-md);
        transform: scale(0.9) translateY(20px);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
        padding: 48px;
    }
    #about-modal.active .about-modal-content {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
    .about-sections { flex-direction: row; }
    .about-title { font-size: 2.8rem; }
}

/* ===================================================
   12. LARGE DESKTOP (≥ 1200px)
   =================================================== */
@media (min-width: 1200px) {
    .netflix-nav { padding: 0 60px; }
    .content-row { margin: 32px 60px 0; }
    .poster-tile { min-width: 250px; width: 250px; height: 145px; }
    .video-overlay-text { padding: 40px 60px; width: 50%; }
    .video-overlay-text h1 { font-size: 3.5rem; }
}

/* ===================================================
   13. UTILITY CLASSES
   =================================================== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* Smooth scroll padding so fixed nav doesn't cover anchors */
:target {
    scroll-margin-top: calc(var(--nav-height-mobile) + 12px);
}

@media (min-width: 768px) {
    :target {
        scroll-margin-top: calc(var(--nav-height-desktop) + 12px);
    }
}

/* Safe area padding for iPhones with notch */
@supports (padding: env(safe-area-inset-bottom)) {
    body {
        padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
    }
    .mobile-bottom-nav {
        padding-bottom: env(safe-area-inset-bottom);
        height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
    }
}