/* ===========================
   talents.css — DIY Solutions
   Full responsive fix for all devices
   =========================== */
/* Prevent over-stretching on large screens (MacBooks) */
body {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Ensure all wrappers behave */
* {
    box-sizing: border-box;
}

/* ── Talent Grid Card ── */
.talent-card {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 16px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.talent-card:hover {
    transform: translateY(-8px);
}

.talent-image-wrapper {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: 16px;
    background: #000;
}

.talent-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    
    transition: filter 0.4s ease, transform 0.4s ease;
}

.talent-card:hover .talent-image {
    
    transform: scale(1.05);
}

.talent-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.talent-card:hover .talent-overlay {
    opacity: 1;
}

/* On touch devices, always show overlay since there's no hover */
@media (hover: none) {
    .talent-overlay {
        opacity: 1;
    }
}

/* ══════════════════════════
   MODAL — full responsive
   ══════════════════════════ */

.talent-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    /* No padding on very small phones */
    padding: 0;
    animation: modalFadeIn 0.3s ease;
    /* Allow scrolling the modal backdrop on iOS */
    -webkit-overflow-scrolling: touch;
}

.talent-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 24px;
    width: 100%;
    max-width: 1200px;
    /* 
      KEY FIX: Use dvh (dynamic viewport height) with px fallback.
      This handles iOS Safari where the address bar eats into 100vh.
    */
    max-height: 100vh;
    max-height: 100dvh;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    animation: modalSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Remove border-radius on very small screens for full coverage */
    border-radius: 0;
}

/* Restore border-radius on larger screens */
@media (min-width: 640px) {
    .talent-modal {
        padding: 16px;
    }
    .modal-content {
        max-height: 92vh;
        max-height: 92dvh;
        border-radius: 24px;
    }
}

@media (min-width: 1024px) {
    .talent-modal {
        padding: 24px;
    }
    .modal-content {
        max-height: 90vh;
        max-height: 90dvh;
    }
}

/* Close button */
.modal-close {
    position: sticky;  /* sticky so it stays visible when scrolling */
    top: 12px;
    float: right;
    margin: 12px 12px 0 0;
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0,0,0,0.8);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    /* Make it easier to tap on mobile */
    -webkit-tap-highlight-color: transparent;
}

.modal-close:hover {
    background: rgba(0,0,0,1);
    transform: rotate(90deg);
}

/* Modal body padding — mobile first */
.modal-body {
    padding: 20px 16px 32px 16px;
    /* Clear the floated close button */
    clear: both;
}

@media (min-width: 480px) {
    .modal-body { padding: 24px 24px 40px 24px; }
}

@media (min-width: 768px) {
    .modal-body { padding: 40px 40px 48px 40px; }
}

@media (min-width: 1024px) {
    .modal-body { padding: 48px 60px 60px 60px; }
}

/* ── Talent Header ── */
.talent-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid #e5e5e5;
}

@media (min-width: 768px) {
    .talent-header {
        margin-bottom: 48px;
        padding-bottom: 32px;
    }
}

.talent-name {
    font-size: clamp(28px, 6vw, 48px);
    font-weight: 800;
    margin-bottom: 8px;
    color: #1d1d1f;
    letter-spacing: -1px;
    line-height: 1.1;
}

.talent-role {
    font-size: clamp(15px, 3vw, 20px);
    color: #6e6e73;
    font-weight: 300;
}

/* ── Content Grid — stacks on mobile, side-by-side on desktop ── */
.talent-content-grid {
    display: grid;
    grid-template-columns: 1fr;   /* mobile: single column */
    gap: 28px;
    margin-bottom: 32px;
}

@media (min-width: 900px) {
    .talent-content-grid {
        grid-template-columns: 1fr 1fr;
        gap: 48px;
        margin-bottom: 48px;
    }
}

/* ── Photo Gallery ── */
.talent-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

@media (min-width: 480px) {
    .talent-gallery { gap: 14px; }
}

@media (min-width: 768px) {
    .talent-gallery { gap: 16px; }
}

.gallery-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
    display: block;
}

@media (min-width: 480px) {
    .gallery-image { height: 180px; border-radius: 14px; }
}

@media (min-width: 768px) {
    .gallery-image { height: 220px; }
}

@media (min-width: 1024px) {
    .gallery-image { height: 280px; border-radius: 16px; }
}

.gallery-image:hover {
    transform: scale(1.03);
}

.gallery-image.large {
    grid-column: span 2;
    height: 200px;
}

@media (min-width: 480px) {
    .gallery-image.large { height: 240px; }
}

@media (min-width: 768px) {
    .gallery-image.large { height: 300px; }
}

@media (min-width: 1024px) {
    .gallery-image.large { height: 380px; }
}

/* ── Bio Section ── */
.talent-bio {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.talent-bio h3 {
    font-size: clamp(20px, 4vw, 28px);
    font-weight: 700;
    margin-bottom: 16px;
    color: #1d1d1f;
}

.talent-bio p {
    font-size: clamp(14px, 2.5vw, 16px);
    line-height: 1.8;
    color: #515154;
    margin-bottom: 14px;
}

.talent-bio .highlight {
    background: linear-gradient(135deg, #f5f5f7 0%, #e8e8ed 100%);
    padding: 18px 20px;
    border-radius: 14px;
    margin-top: 20px;
    border-left: 4px solid #1d1d1f;
}

@media (min-width: 768px) {
    .talent-bio .highlight {
        padding: 24px;
        border-radius: 16px;
    }
}

.talent-bio .highlight p {
    font-style: italic;
    color: #3a3a3c;
    margin: 0;
}

/* ── Video Section ── */
.talent-video-section {
    margin-top: 32px;
    padding: 24px 20px;
    background: linear-gradient(135deg, #1d1d1f 0%, #3a3a3c 100%);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

@media (min-width: 480px) {
    .talent-video-section { padding: 28px 24px; }
}

@media (min-width: 768px) {
    .talent-video-section {
        margin-top: 48px;
        padding: 32px;
        border-radius: 24px;
    }
}

@media (min-width: 1024px) {
    .talent-video-section { padding: 48px; }
}

.talent-video-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: videoGlow 8s ease-in-out infinite;
    pointer-events: none;
}

.video-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .video-header { margin-bottom: 32px; gap: 12px; }
}

.video-icon {
    width: 34px;
    height: 34px;
    background: #ff0000;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    animation: pulse 2s ease-in-out infinite;
}

@media (min-width: 768px) {
    .video-icon { width: 40px; height: 40px; border-radius: 12px; }
}

.video-header h3 {
    font-size: clamp(18px, 5vw, 32px);
    font-weight: 800;
    color: white;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* 16:9 responsive video — works on all screen sizes */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    z-index: 1;
}

@media (min-width: 768px) {
    .video-wrapper { border-radius: 16px; }
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

@media (min-width: 768px) {
    .video-wrapper iframe { border-radius: 16px; }
}

/* ── Scrollbar ── */
.modal-content {
    scroll-behavior: smooth;
}

.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f5f5f7;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #d2d2d7;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #b0b0b5;
}

/* ── Animations ── */
@keyframes modalFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes modalSlideUp {
    from { transform: translateY(40px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255,0,0,0.7);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(255,0,0,0);
    }
}

@keyframes videoGlow {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50%       { transform: rotate(180deg) scale(1.2); }
}

/* ── Reduce motion for accessibility ── */
@media (prefers-reduced-motion: reduce) {
    .talent-card,
    .talent-image,
    .talent-overlay,
    .modal-content,
    .gallery-image {
        transition: none !important;
        animation: none !important;
    }
}
/* ══════════════════════════
   NAVBAR — Professional
   ══════════════════════════ */

#main-nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

/* Subtle shadow on scroll — added via JS */
#main-nav.scrolled {
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.95);
}

/* Brand name */
.nav-brand {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #1d1d1f;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1;
}

/* Desktop nav links */
.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: #515154;
    text-decoration: none;
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: #1d1d1f;
    background: rgba(0, 0, 0, 0.05);
}

/* Active page highlight */
.nav-link.active {
    color: #1d1d1f;
    font-weight: 600;
}

/* CTA button */
.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    background: #1d1d1f;
    color: #ffffff !important;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-cta:hover {
    background: #3a3a3c;
    transform: translateY(-1px);
}

/* Mobile nav links */
.mobile-nav-link {
    display: block;
    padding: 10px 4px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #3a3a3c;
    text-decoration: none;
    border-bottom: 1px solid #f5f5f7;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-nav-link:hover {
    color: #1d1d1f;
    padding-left: 8px;
}

.mobile-nav-link:last-of-type {
    border-bottom: none;
}

/* Hamburger open state */
#menu-toggle.open .ham-line:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}
#menu-toggle.open .ham-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
#menu-toggle.open .ham-line:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}
/* ── Modal navigation arrows ── */
.modal-nav-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10000;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    border: none;
    cursor: pointer;
    font-size: 32px;
    color: #1d1d1f;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: background 0.2s, transform 0.2s;
    line-height: 1;
}

.modal-nav-btn:hover {
    background: #1d1d1f;
    color: #fff;
    transform: translateY(-50%) scale(1.08);
}

.modal-nav-prev { left: 16px; }
.modal-nav-next { right: 16px; }

@media (max-width: 640px) {
    .modal-nav-btn { width: 40px; height: 40px; font-size: 24px; }
    .modal-nav-prev { left: 8px; }
    .modal-nav-next { right: 8px; }
}

/* ══════════════════════════════════
   SOCIAL LINKS — add to talents.css
   ══════════════════════════════════ */

.social-links-section {
    margin-top: 24px;
}

.social-links-heading {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #86868b;
    margin-bottom: 12px;
}

.social-links-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Base pill button */
.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: 1.5px solid transparent;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
    cursor: pointer;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.social-btn:active {
    transform: translateY(0);
    opacity: 0.85;
}

/* Instagram — gradient pink/purple */
.social-btn--ig {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff;
    border-color: transparent;
}

/* YouTube — red */
.social-btn--yt {
    background: #ff0000;
    color: #ffffff;
    border-color: transparent;
}

.social-btn--yt:hover {
    background: #cc0000;
}

/* LinkedIn — blue */
.social-btn--li {
    background: #0a66c2;
    color: #ffffff;
    border-color: transparent;
}

.social-btn--li:hover {
    background: #004182;
}

/* SVG inside button — prevent pointer events so click registers on the <a> */
.social-btn svg {
    flex-shrink: 0;
    pointer-events: none;
}

/* On very small screens, make buttons a bit smaller */
@media (max-width: 400px) {
    .social-btn {
        font-size: 12px;
        padding: 7px 13px;
        gap: 6px;
    }
}