/* =============================================
   PREMIUM CINEMATIC PORTFOLIO WEBSITE
   Kavin Kumar G - Video Editor
   ============================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =============================================
   VARIABLES & ROOT STYLES
   ============================================= */

:root {
    --primary-color: #FFD700;
    --primary-light: #FFE033;
    --primary-dark: #B39600;
    --accent-color: #FFC800;
    --accent-light: #FFE066;
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #d1d1d1;
    --text-muted: #808080;

    --primary-rgb: 255, 215, 0;
    --accent-rgb: 255, 200, 0;

    --glassmorphism-bg: rgba(255, 255, 255, 0.05);
    --glassmorphism-border: rgba(var(--primary-rgb), 0.2);
    --glow-gold: 0 0 30px rgba(var(--primary-rgb), 0.3);
    --glow-amber: 0 0 20px rgba(var(--accent-rgb), 0.25);

    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}



html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6,
.logo-text,
.section-title,
.hero-name {
    font-family: 'Outfit', 'Segoe UI', sans-serif;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--primary-color) !important;
    outline-offset: 4px !important;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 20% 50%, rgba(var(--primary-rgb), 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(var(--accent-rgb), 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* =============================================
   CONTAINER & LAYOUT
   ============================================= */

.container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

/* =============================================
   NAVIGATION
   ============================================= */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glassmorphism-border);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.98);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 40px;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

.logo {
    justify-self: start;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition-smooth);
}

.logo-text:hover {
    filter: drop-shadow(0 0 5px rgba(var(--primary-rgb), 0.6));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    transition: var(--transition-smooth);
    letter-spacing: 0.5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-light));
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    outline: none;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 5px 0;
    transition: var(--transition-smooth);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-self: end;
}



/* =============================================
   HERO SECTION
   ============================================= */

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 60px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
}

.hero-background {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    overflow: hidden;
}

.floating-element {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.1;
    will-change: transform;
}

.float-1 {
    background: var(--primary-color);
    top: 10%;
    left: 5%;
    animation: float 8s ease-in-out infinite;
}

.float-2 {
    background: var(--accent-light);
    top: 50%;
    right: 5%;
    animation: float 10s ease-in-out infinite;
    animation-delay: 2s;
}

.float-3 {
    background: var(--primary-color);
    bottom: 10%;
    left: 50%;
    animation: float 12s ease-in-out infinite;
    animation-delay: 4s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) translateX(0px);
    }

    50% {
        transform: translateY(50px) translateX(30px);
    }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 10;
    padding: 2rem;
    animation: fadeInUp 1s ease 0.2s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleInUp {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title-wrapper {
    position: relative;
    margin-bottom: 2rem;
}

.hero-name {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    letter-spacing: 3px;
    line-height: 1.1;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 50%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(var(--primary-rgb), 0.2);
    animation: glowPulse 2s ease-in-out infinite;
}

.hero-image-circle {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.hero-profile-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 30px rgba(var(--primary-rgb), 0.4), inset 0 0 20px rgba(0, 0, 0, 0.3);
    transition: var(--transition-smooth);
    animation: profilePulse 2s ease-in-out infinite;
}

.hero-profile-img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(var(--primary-rgb), 0.6), inset 0 0 20px rgba(0, 0, 0, 0.3);
}

@keyframes profilePulse {

    0%,
    100% {
        box-shadow: 0 0 30px rgba(var(--primary-rgb), 0.4), inset 0 0 20px rgba(0, 0, 0, 0.3);
    }

    50% {
        box-shadow: 0 0 50px rgba(var(--primary-rgb), 0.6), inset 0 0 20px rgba(0, 0, 0, 0.3);
    }
}

@keyframes glowPulse {

    0%,
    100% {
        filter: drop-shadow(0 0 10px var(--primary-color));
    }

    50% {
        filter: drop-shadow(0 0 20px var(--primary-color));
    }
}

.title-underline {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-light));
    margin: 1.5rem auto;
    border-radius: 2px;
    animation: expandWidth 0.8s ease 0.4s backwards;
    box-shadow: var(--glow-gold);
}

@keyframes expandWidth {
    from {
        width: 0;
    }

    to {
        width: 100px;
    }
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 300;
    letter-spacing: 1px;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.role-tags {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease 0.5s backwards;
}

.role-tag {
    padding: 0.5rem 1.2rem;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 0;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition-smooth);
    background: transparent;
    position: relative;
    overflow: hidden;
}

.role-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transition: left 0.3s ease;
    z-index: -1;
}

.role-tag:hover {
    color: var(--bg-primary);
}

.role-tag:hover::before {
    left: 0;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s backwards;
}

.cta-btn {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.primary-btn {
    background: var(--primary-color);
    color: var(--bg-primary);
    border: 2px solid var(--primary-color);
}

.primary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.primary-btn:hover {
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.2);
    transform: translateY(-3px);
}

.primary-btn:hover::before {
    left: 100%;
}

.secondary-btn {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s ease;
    z-index: -1;
}

.secondary-btn:hover {
    color: var(--bg-primary);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.15);
    transform: translateY(-3px);
}

.secondary-btn:hover::after {
    width: 100%;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    width: 3px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 2px;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    50% {
        transform: translateY(10px) translateX(-50%);
    }
}

/* =============================================
   SECTION STYLES
   ============================================= */

section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-accent {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-light));
    margin: 1.5rem auto;
    border-radius: 2px;
    animation: expandWidth 0.8s ease;
    box-shadow: var(--glow-gold);
}

/* =============================================
   ABOUT SECTION
   ============================================= */

#about {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text {
    animation: fadeInUp 1s ease;
}

.about-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.stat-card {
    background: var(--glassmorphism-bg);
    border: 1px solid var(--glassmorphism-border);
    padding: 2rem;
    border-radius: 0;
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    background: rgba(var(--primary-rgb), 0.08);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.12);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* =============================================
   SKILLS SECTION
   ============================================= */

#skills {
    background: var(--bg-primary);
}

/* New Technical & Creative Skills Layout */
.skills-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-top: 2rem;
}

.skills-column {
    background: var(--glassmorphism-bg);
    border: 1px solid var(--glassmorphism-border);
    padding: 3rem 2.5rem;
    border-radius: 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.skills-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.skills-column:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.15);
}

.skills-heading,
.software-heading {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    letter-spacing: 1px;
}

.skills-heading::after,
.software-heading::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
    box-shadow: 0 0 5px var(--primary-color);
}

.skills-list,
.software-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin: 0;
    padding: 0;
}

.skill-item,
.software-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
    box-sizing: border-box;
}

.skill-item:hover,
.software-item:hover {
    background: rgba(var(--primary-rgb), 0.08);
    border-color: rgba(var(--primary-rgb), 0.4);
    transform: translateX(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.skill-bullet {
    color: var(--primary-color);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.skill-item:hover .skill-bullet {
    transform: rotate(90deg);
    color: var(--accent-light);
    filter: drop-shadow(0 0 5px var(--primary-color));
}

.skill-name,
.software-name {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.skill-item:hover .skill-name,
.software-item:hover .software-name {
    color: var(--text-primary);
}

/* Software Logos Section */
.software-logos-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    margin-top: 2.5rem;
}

.software-logo-item {
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.software-logo-item:hover {
    transform: scale(1.15);
    filter: drop-shadow(0 0 10px rgba(var(--primary-rgb), 0.6));
}

.software-logo-item .software-svg,
.software-logo-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    transition: var(--transition-smooth);
}




.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: var(--glassmorphism-bg);
    border: 1px solid var(--glassmorphism-border);
    padding: 2.5rem 2rem;
    border-radius: 0;
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.skill-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-light));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.15);
}

.skill-card:hover::after {
    opacity: 0.04;
}

.skill-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.skill-card:hover .skill-icon {
    transform: scale(1.08) rotate(5deg);
    filter: none;
}

.skill-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
}

.skill-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Video Preview Feature */
.skill-preview {
    position: relative;
    width: 100%;
    height: 150px;
    margin: -2.5rem -2rem 1.5rem -2rem;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-size: 2.5rem;
    color: var(--primary-color);
    opacity: 0.5;
    transition: var(--transition-smooth);
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(var(--accent-rgb), 0.05));
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-primary);
    font-size: 1.5rem;
    opacity: 0;
    transition: var(--transition-smooth);
    cursor: pointer;
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.5);
}

.skill-card:hover .video-placeholder {
    opacity: 0.8;
    transform: scale(1.05);
}

.skill-card:hover .play-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.play-overlay:hover {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.4);
}

/* Project Count Badge */
.project-count {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.4rem 1rem;
    background: var(--primary-color);
    color: var(--bg-primary);
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
}

.skill-card:hover .project-count {
    transform: scale(1.1);
    background: var(--accent-light);
    box-shadow: 0 0 15px var(--primary-color);
}

/* Skill Card Click Interaction */
.skill-card {
    user-select: none;
}

.skill-card:active {
    transform: scale(0.98);
}

.skill-card .play-overlay {
    background: var(--primary-color);
    cursor: pointer;
}

.skill-card:hover .play-overlay {
    animation: playPulse 0.6s ease infinite;
}

@keyframes playPulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.15);
    }
}

/* AI Skills Highlight */
.highlight-card {
    border: 1.5px solid var(--primary-color);
    background: rgba(var(--primary-rgb), 0.05);
}

.highlight-card::before {
    background: linear-gradient(90deg, transparent, var(--accent-light), transparent);
}

.highlight-card:hover {
    background: rgba(var(--primary-rgb), 0.1);
}

/* Section Subtitle */
.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-weight: 300;
    letter-spacing: 1px;
}

/* =============================================
   SHOWREEL SECTION
   ============================================= */

#showreel {
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.showreel-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.showreel-video-container {
    position: relative;
    animation: fadeInUp 1s ease;
}

.video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 0;
    overflow: hidden;
    border: 2px solid var(--primary-color);
    box-shadow: var(--glow-gold), inset 0 0 100px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
    transition: var(--transition-smooth);
}

.video-frame:hover {
    border-color: var(--accent-light);
    box-shadow: var(--glow-gold), 0 20px 60px rgba(var(--primary-rgb), 0.3), inset 0 0 100px rgba(0, 0, 0, 0.3);
    transform: scale(1.02);
}

.showreel-image,
.showreel-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-placeholder-large {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    color: var(--primary-color);
    font-size: 3rem;
    opacity: 0.5;
    transition: var(--transition-smooth);
}

.video-frame:hover .video-placeholder-large {
    opacity: 0.8;
}

.play-button-large {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-primary);
    font-size: 2.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 0 40px rgba(var(--primary-rgb), 0.6);
    animation: pulse 2s ease-in-out infinite;
    z-index: 10;
}

.play-button-large:hover {
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 0 0 60px rgba(var(--primary-rgb), 0.9), var(--glow-gold);
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 40px rgba(var(--primary-rgb), 0.6);
    }

    50% {
        box-shadow: 0 0 60px rgba(var(--primary-rgb), 0.9);
    }
}

.showreel-info {
    animation: fadeInUp 1s ease 0.2s backwards;
}

.showreel-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 800;
    line-height: 1.2;
}

.showreel-info p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.showreel-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 800;
}

/* Portfolio Categories */
.portfolio-categories {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--glassmorphism-border);
}

.categories-title {
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
    color: var(--text-primary);
    font-weight: 700;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 100%;
    padding: 0.5rem 0;
}

.category-item {
    background: var(--glassmorphism-bg);
    border: 1px solid var(--glassmorphism-border);
    padding: 3rem 2.5rem;
    border-radius: 4px;
    text-align: center;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 320px;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
}

.category-toggle {
    width: 100%;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.category-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.category-item:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    background: rgba(var(--primary-rgb), 0.08);
    box-shadow: var(--glow-gold);
}

.category-item:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
}

.category-item.selected {
    border-color: var(--primary-color);
    background: rgba(var(--primary-rgb), 0.1);
    box-shadow: var(--glow-gold);
}

.category-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: var(--transition-smooth);
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-item:hover .category-icon {
    transform: scale(1.2) rotate(10deg);
    filter: drop-shadow(0 0 10px var(--primary-color));
}

.category-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 700;
}

.category-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    flex-grow: 1;
}

.count-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--primary-color);
    color: var(--bg-primary);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
    margin-top: auto;
}

.category-item:hover .count-badge {
    background: var(--accent-light);
    transform: scale(1.1);
}

/* .category-showcase accordion — replaced by modal in the override block below */
.category-showcase {
    display: block;
    opacity: 0;
    overflow: hidden;
}

.showcase-panel {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.065), rgba(var(--primary-rgb), 0.045));
    border: 1px solid var(--glassmorphism-border);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow: hidden;
    position: relative;
}

.showcase-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), var(--accent-light), transparent);
}

.showcase-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem 2rem 1.25rem;
    border-bottom: 1px solid var(--glassmorphism-border);
}

.showcase-kicker {
    color: var(--primary-color);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.showcase-header h3 {
    color: var(--text-primary);
    font-size: 1.85rem;
    line-height: 1.2;
    font-weight: 800;
}

.showcase-close {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border: 1px solid var(--glassmorphism-border);
    background: rgba(0, 0, 0, 0.35);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.showcase-close:hover,
.showcase-close:focus-visible {
    color: var(--bg-primary);
    background: var(--primary-color);
    box-shadow: var(--glow-gold);
}

.short-film-projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
}

.short-film-project {
    border: 1px solid rgba(var(--primary-rgb), 0.16);
    background: rgba(0, 0, 0, 0.22);
    padding: 1.75rem;
    min-height: 220px;
    transition: var(--transition-smooth);
}

button.short-film-project {
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.short-film-project:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--primary-rgb), 0.55);
    background: rgba(var(--primary-rgb), 0.08);
}

.short-film-project:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
}

.short-film-project.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.2), rgba(0, 0, 0, 0.28));
    box-shadow: var(--glow-gold);
}

.featured-project {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.16), rgba(0, 0, 0, 0.28));
    min-height: auto;
}

.project-type {
    display: inline-block;
    color: var(--primary-color);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.short-film-project h4 {
    color: var(--text-primary);
    font-size: 1.15rem;
    margin-bottom: 0.55rem;
}

.short-film-project p {
    color: var(--text-secondary);
    font-size: 0.93rem;
    line-height: 1.65;
}

.project-open-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1.25rem;
    color: var(--primary-color);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.project-open-indicator::after {
    content: '\f061';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    transition: var(--transition-smooth);
}

.short-film-project.selected .project-open-indicator::after {
    transform: rotate(90deg);
}

.project-gallery {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    overflow: hidden;
    padding: 0 2rem;
    transition: grid-template-rows 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.3s ease,
        padding-bottom 0.3s ease;
}

.project-gallery.is-open {
    grid-template-rows: 1fr;
    opacity: 1;
    padding-bottom: 2.5rem;
}

.project-gallery>* {
    min-height: 0;
}

.project-gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    padding: 2rem 0 1.5rem;
    border-top: 1px solid var(--glassmorphism-border);
}

.project-gallery-header h4 {
    color: var(--text-primary);
    font-size: 1.45rem;
    line-height: 1.2;
}

.project-gallery-header span {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.project-video-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 42px;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(var(--primary-rgb), 0.35);
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;
    transition: var(--transition-smooth);
}

.project-video-link:hover,
.project-video-link:focus-visible {
    background: var(--primary-color);
    color: var(--bg-primary);
    box-shadow: var(--glow-gold);
    transform: translateY(-2px);
}

.project-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

/* When project-image-grid is directly inside showcase-panel (Motion Graphics, Cuts & Storytelling) */
.showcase-panel>.project-image-grid {
    padding: 0 2rem 2rem;
    margin-top: 0;
}

.project-image-grid .project-image-card:first-child:nth-last-child(10),
.project-image-grid .project-image-card:first-child:nth-last-child(10)~.project-image-card {
    aspect-ratio: 16 / 9;
}

.project-image-card {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid rgba(var(--primary-rgb), 0.25);
    background: #050505;
    transition: var(--transition-smooth);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: auto;
}

.project-image-card-wide {
    grid-column: span 3;
    aspect-ratio: auto;
    height: 250px;
}

.project-image-card::before {
    content: attr(data-placeholder);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-align: center;
    text-transform: uppercase;
    background:
        linear-gradient(135deg, rgba(var(--primary-rgb), 0.14), rgba(0, 0, 0, 0.75)),
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.12), transparent 34%),
        #060606;
    z-index: 0;
    pointer-events: none;
}

.project-image-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-color);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35), var(--glow-gold);
}

.project-image-card img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    opacity: 1;
    transform: none;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.project-image-card video {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    opacity: 1;
    transform: none;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.project-image-card.is-missing img {
    display: none;
}

.project-image-card.is-missing::after {
    content: 'Add image file';
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    transform: translate(-50%, 1.35rem);
    color: var(--primary-color);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.project-image-card:hover img {
    transform: scale(1.05);
    filter: contrast(1.08) saturate(1.05);
}

.project-image-card:hover video {
    transform: scale(1.05);
    filter: contrast(1.08) saturate(1.05);
}

.project-image-card figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2.5rem 1.25rem 1rem;
    color: var(--text-primary);
}

/* Video Project Wrapper Styles */
.project-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #050505;
}

.project-image-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 4px;
}

.project-image-wrapper .video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #050505;
    border-radius: 4px;
}

.project-image-wrapper .video-player:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
}

.project-image-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.9));
    padding: 1.5rem;
    color: var(--text-primary);
    pointer-events: none;
}

.project-image-info h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--primary-color);
}

.project-image-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.showcase-media-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    padding: 0 2rem 2rem;
}

.media-card {
    position: relative;
    min-height: 210px;
    border: 1px solid rgba(var(--primary-rgb), 0.18);
    background: #050505;
    overflow: hidden;
    color: inherit;
    transition: var(--transition-smooth);
}

button.media-card {
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.media-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-color);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35), var(--glow-gold);
}

.media-thumb {
    display: flex;
    width: 100%;
    min-height: 210px;
    padding: 1.25rem;
    flex-direction: column;
    justify-content: flex-end;
    background-size: cover;
    background-position: center;
    position: relative;
}

.media-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.82));
    pointer-events: none;
}

.media-thumb-title {
    background:
        linear-gradient(135deg, rgba(var(--primary-rgb), 0.14), rgba(0, 0, 0, 0.2)),
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.18), transparent 30%),
        #080808;
}

.media-thumb-festival {
    background:
        linear-gradient(135deg, rgba(229, 9, 20, 0.18), rgba(var(--primary-rgb), 0.12)),
        radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.16), transparent 34%),
        #070707;
}

.media-thumb-location {
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.8)),
        linear-gradient(135deg, #2c5f82, #d8b456 48%, #1d1d1d);
}

.media-thumb-cut {
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.82)),
        linear-gradient(135deg, #111, #3d7aad 44%, #f0d27c);
}

.media-thumb-kit {
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.84)),
        linear-gradient(135deg, #f4f0df, #1c1c1c 45%, var(--primary-dark));
}

.media-thumb-deck {
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.86)),
        linear-gradient(135deg, #0b0b0b, #334155 46%, #d4af37);
}

.media-project,
.media-role {
    position: relative;
    z-index: 1;
}

.media-project {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.2;
}

.media-role {
    color: var(--primary-color);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.7px;
    margin-top: 0.4rem;
    text-transform: uppercase;
}

.media-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: var(--bg-primary);
    box-shadow: 0 0 32px rgba(var(--primary-rgb), 0.55);
    transition: var(--transition-smooth);
    z-index: 2;
}

.video-card:hover .media-play {
    transform: translate(-50%, -50%) scale(1.12);
    background: var(--accent-light);
}

.image-card figcaption {
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    bottom: 1.15rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.35;
    z-index: 2;
}

/* =============================================
   THUMBNAILS & POSTERS GRID
   ============================================= */

.thumbnails-posters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    padding: 0 2rem 2rem;
    max-width: 100%;
}

.thumbnail-card {
    position: relative;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(var(--primary-rgb), 0.25);
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
    overflow: hidden;
    transition: var(--transition-smooth);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: auto;
}

.thumbnail-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.12), rgba(0, 0, 0, 0.4)),
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1), transparent 34%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.thumbnail-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.thumbnail-card:hover::before {
    opacity: 1;
}

.thumbnail-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    opacity: 1;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s ease;
    z-index: 2;
}

.thumbnail-card img[loading="lazy"] {
    background: linear-gradient(90deg,
            rgba(var(--primary-rgb), 0.1) 0%,
            rgba(var(--primary-rgb), 0.2) 50%,
            rgba(var(--primary-rgb), 0.1) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.thumbnail-card img:not([src]) {
    display: none;
}

.thumbnail-card:hover img {
    transform: scale(1.04);
    filter: brightness(1.05);
}

/* =============================================
   YOUTUBE VIDEOS GRID
   ============================================= */

#youtubeVideosShowcase .showcase-panel {
    max-width: 1380px;
}

.youtube-videos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
    padding: 0 2rem 2rem;
}

.youtube-video-card {
    position: relative;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(var(--primary-rgb), 0.25);
    background: #000;
    overflow: hidden;
    transition: var(--transition-smooth);
    border-radius: 4px;
}

.youtube-video-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-color);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35), var(--glow-gold);
}

.youtube-embed {
    width: 100%;
    height: 100%;
    border: none;
}

/* =============================================
   YOUTUBE INTRO TEXT
   ============================================= */

.youtube-intro-text {
    padding: 0 2rem 1.5rem;
    margin-top: 1.5rem;
}

.youtube-intro-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.75;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* =============================================
   REEL SHOTS INTRO TEXT
   ============================================= */

.reel-shots-intro-text {
    padding: 0 2rem 1.5rem;
    margin-top: 1.5rem;
}

.reel-shots-intro-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.75;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.showcase-video-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    animation: fadeIn 0.25s ease;
}

.showcase-video-dialog {
    width: min(980px, 100%);
    border: 1px solid var(--primary-color);
    background: var(--bg-primary);
    box-shadow: 0 0 60px rgba(var(--primary-rgb), 0.4);
    position: relative;
    overflow: hidden;
}

.showcase-video-dialog video {
    display: block;
    width: 100%;
    background: #000;
}

.showcase-video-empty {
    padding: 5rem 2rem;
    text-align: center;
    color: var(--text-secondary);
}

.showcase-video-empty i {
    display: block;
    color: var(--primary-color);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.showcase-video-title {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--glassmorphism-border);
    color: var(--text-primary);
    font-weight: 800;
}

.showcase-video-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 42px;
    height: 42px;
    border: 0;
    background: var(--primary-color);
    color: var(--bg-primary);
    cursor: pointer;
    z-index: 2;
    transition: var(--transition-smooth);
}

.showcase-video-close:hover,
.showcase-video-close:focus-visible {
    background: var(--accent-light);
    transform: scale(1.08);
}

/* =============================================
   PROJECTS SECTION
   ============================================= */

#projects {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: var(--glassmorphism-bg);
    border: 1px solid var(--glassmorphism-border);
    border-radius: 0;
    overflow: hidden;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--glow-gold);
}

.project-img {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.3;
    transition: var(--transition-smooth);
}

.project-card:hover .project-placeholder {
    opacity: 0.6;
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, var(--primary-color));
    opacity: 0;
    transition: var(--transition-smooth);
}

.project-card:hover .project-overlay {
    opacity: 0.15;
}

.project-info {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 700;
}

.project-role {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.project-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.3rem 0.8rem;
    background: var(--primary-color);
    color: var(--bg-primary);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
}

.tag:hover {
    background: var(--accent-light);
    transform: scale(1.05);
}

/* =============================================
   EXPERIENCE SECTION
   ============================================= */

#experience {
    background: var(--bg-primary);
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: transparent;
    animation: none;
}

@keyframes growHeight {
    from {
        height: 0;
    }

    to {
        height: 100%;
    }
}

.timeline-item {
    margin-bottom: 3rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
}

.timeline-item:nth-child(even) {
    direction: rtl;
}

.timeline-item:nth-child(even) .timeline-content {
    direction: ltr;
}

.timeline-marker {
    display: flex;
    justify-content: center;
}

.marker-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 20px var(--primary-color);
    transition: var(--transition-smooth);
    position: relative;
}

.marker-circle::after {
    content: '';
    position: absolute;
    inset: -8px;
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.timeline-content {
    background: var(--glassmorphism-bg);
    border: 1px solid var(--glassmorphism-border);
    border-radius: 0;
    padding: 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.timeline-content:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--glow-gold);
}

.timeline-date {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--text-primary);
}

.timeline-role {
    color: var(--accent-light);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.timeline-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.timeline-period {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: var(--primary-color);
    color: var(--bg-primary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 0;
}

/* =============================================
   CONTACT SECTION
   ============================================= */

#contact {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.contact-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.contact-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 300;
    letter-spacing: 1px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-method {
    display: flex;
    gap: 1.5rem;
    transition: var(--transition-smooth);
}

.contact-method:hover {
    transform: translateX(10px);
}

.method-icon {
    font-size: 2rem;
    color: var(--primary-color);
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.contact-method:hover .method-icon {
    transform: scale(1.2);
    filter: drop-shadow(0 0 10px var(--primary-color));
}

.method-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: var(--text-primary);
    font-weight: 700;
}

.method-info a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
    font-size: 1rem;
}

.method-info a:hover {
    color: var(--primary-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* =============================================
   LOGO MARQUEE SECTION
   ============================================= */

.logo-marquee-section {
    width: 100%;
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.03) 0%, rgba(var(--accent-rgb), 0.02) 100%);
    border-top: 1px solid var(--glassmorphism-border);
    border-bottom: 1px solid var(--glassmorphism-border);
    overflow: hidden;
}

.marquee-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.marquee-row {
    display: flex;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.marquee-content {
    display: flex;
    gap: 2rem;
    padding: 0 1rem;
    white-space: nowrap;
    flex-shrink: 0;
    align-items: center;
    will-change: transform;
}

.marquee-row:hover .marquee-content {
    animation-play-state: paused;
}

.marquee-logo {
    height: 150px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    transition: var(--transition-smooth);
    filter: grayscale(30%);
    opacity: 0.9;
}

.marquee-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* Right-to-Left Animation */
@keyframes scroll-rtl {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.marquee-rtl .marquee-content {
    animation: scroll-rtl 40s linear infinite;
}

.marquee-rtl .marquee-content:nth-child(2) {
    animation-delay: -20s;
}

/* Left-to-Right Animation */
@keyframes scroll-ltr {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(0);
    }
}

.marquee-ltr .marquee-content {
    animation: scroll-ltr 40s linear infinite;
}

.marquee-ltr .marquee-content:nth-child(2) {
    animation-delay: -20s;
}

/* =============================================
   MARQUEE RESPONSIVE STYLES
   ============================================= */



.form-group {
    width: 100%;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--glassmorphism-bg);
    border: 1px solid var(--glassmorphism-border);
    border-radius: 0;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-weight: 500;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(var(--primary-rgb), 0.08);
    box-shadow: var(--glow-gold);
}

/* =============================================
   FOOTER
   ============================================= */

.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--glassmorphism-border);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-content p {
    letter-spacing: 0.5px;
}

/* =============================================
   MEDIA QUERIES
   ============================================= */



/* =============================================
   RESPONSIVE & MOBILE OPTIMIZATIONS
   ============================================= */

/* Ensure all images are responsive */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Image Error State */
.thumbnail-card.image-missing::after,
.project-image-card.image-missing::after {
    content: 'Image Not Found';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(255, 183, 0, 0.15), rgba(229, 9, 20, 0.1));
    color: rgba(255, 183, 0, 0.9);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 1rem;
    text-align: center;
    z-index: 2;
    border: 1px dashed rgba(255, 183, 0, 0.4);
    border-radius: 2px;
}

.thumbnail-card.image-missing::before,
.project-image-card.image-missing::before {
    opacity: 1;
    z-index: 1;
}

.thumbnail-card img:broken,
.project-image-card img:broken {
    display: none;
}

/* Fallback for images that fail to load */
picture>img,
img[onerror] {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(0, 0, 0, 0.3)) !important;
}



/* =============================================
   LARGE SCREEN OPTIMIZATIONS
   ============================================= */

@media (min-width: 1440px) {
    .container {
        padding: 0 40px;
    }

    .project-image-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .thumbnails-posters-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .youtube-videos-grid {
        gap: 2rem;
    }

    .categories-grid {
        gap: 2rem;
    }

    .about-content {
        gap: 4rem;
    }

    .skills-layout {
        gap: 4rem;
    }

    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
}

/* =============================================
   CERTIFICATE MODAL
   ============================================= */

.certificate-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: 100vh;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity;
}

.certificate-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.certificate-modal-content {
    position: relative;
    max-width: 950px;
    width: 100%;
    max-height: calc(100vh - 3rem);
    height: auto;
    padding: 2.5rem;
    border: 2px solid var(--primary-color);
    background: #0a0a0a;
    box-shadow: 0 0 60px rgba(var(--primary-rgb), 0.5), inset 0 0 30px rgba(0, 0, 0, 0.8);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.9) translate3d(0, 0, 0);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.certificate-modal.is-open .certificate-modal-content {
    transform: scale(1) translate3d(0, 0, 0);
}

.certificate-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10001;
    width: 48px;
    height: 48px;
    border: 2px solid var(--primary-color);
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.certificate-modal-close:hover {
    background: var(--primary-color);
    color: var(--bg-primary);
    transform: rotate(90deg);
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.6);
}

.certificate-image {
    width: auto;
    height: auto;
    max-width: calc(100% - 2rem);
    max-height: calc(100vh - 8rem);
    object-fit: contain;
    display: block;
    border-radius: 2px;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* =============================================
   ANIMATIONS & EFFECTS
   ============================================= */

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Glassmorphism effect */
.glassmorph {
    background: var(--glassmorphism-bg);
    border: 1px solid var(--glassmorphism-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 0;
}

/* Smooth page transitions */
html {
    scroll-behavior: smooth;
}

/* Loading animation for elements entering viewport */
.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Hardware-Accelerated Scroll Reveal System */
.about-text,
.stats-grid,
.skills-column,
.stat-card,
.skill-card,
.project-card,
.thumbnail-card,
.youtube-embed,
.category-item,
.project-image-card,
.section-header,
.highlight-card,
.showcase-panel,
.timeline-content {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--reveal-delay, 0s);
    will-change: transform, opacity;
}

/* Default reveals (slide up) */
.skill-card,
.project-card,
.youtube-embed,
.project-image-card,
.section-header,
.highlight-card,
.showcase-panel {
    transform: translateY(30px) translateZ(0);
}

/* Left reveal elements (slide in from left) */
.about-text,
.skills-layout .skills-column:nth-child(1),
.timeline-item:nth-child(odd) .timeline-content,
.stats-grid .stat-card:nth-child(odd),
.categories-grid .category-item:nth-child(odd),
.youtube-videos-grid .youtube-video-card:nth-child(odd),
.thumbnails-posters-grid .thumbnail-card:nth-child(odd) {
    transform: translateX(-40px) translateZ(0);
}

/* Right reveal elements (slide in from right) */
.stats-grid,
.skills-layout .skills-column:nth-child(2),
.timeline-item:nth-child(even) .timeline-content,
.stats-grid .stat-card:nth-child(even),
.categories-grid .category-item:nth-child(even),
.youtube-videos-grid .youtube-video-card:nth-child(even),
.thumbnails-posters-grid .thumbnail-card:nth-child(even) {
    transform: translateX(40px) translateZ(0);
}

/* Active reveal states */
.about-text.active,
.stats-grid.active,
.skills-column.active,
.stat-card.active,
.skill-card.active,
.project-card.active,
.thumbnail-card.active,
.youtube-embed.active,
.category-item.active,
.project-image-card.active,
.section-header.active,
.highlight-card.active,
.showcase-panel.active,
.timeline-item.active .timeline-content {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1) translateZ(0);
}

/* Specific direction reveals (can be added dynamically in HTML if needed) */
.reveal-left {
    transform: translateX(-40px) translateZ(0);
}

.reveal-right {
    transform: translateX(40px) translateZ(0);
}

.reveal-scale {
    transform: scale(0.95) translateZ(0);
}

.reveal-left.active,
.reveal-right.active {
    transform: translateX(0) translateZ(0);
    opacity: 1;
}

.reveal-scale.active {
    transform: scale(1) translateZ(0);
    opacity: 1;
}

/* Card Hover State overrides when active (prevents viewport reveal override) */
.stat-card.active:hover,
.skill-card.active:hover {
    transform: translateY(-5px) translateZ(0);
}

.project-card.active:hover {
    transform: translateY(-10px) translateZ(0);
}

.thumbnail-card.active:hover {
    transform: translateY(-4px) translateZ(0);
}

.project-image-card.active:hover {
    transform: translateY(-6px) translateZ(0);
}

.category-item.active:hover,
.category-item.selected:hover {
    transform: translateY(-8px) translateZ(0);
}

/* Elevate hovered cards to contain glow effects */
.stat-card:hover,
.skill-card:hover,
.project-card:hover,
.thumbnail-card:hover,
.project-image-card:hover,
.category-item:hover {
    z-index: 2;
}

/* =============================================
   CATEGORY SHOWCASE — MODAL POPUP
   (overrides the old accordion approach)
   ============================================= */

/* Overlay backdrop */
.category-showcase {
    /* Reset grid accordion */
    display: block !important;
    grid-template-rows: unset !important;
    overflow: visible !important;
    margin-top: 0 !important;

    /* Modal */
    position: fixed;
    inset: 0;
    z-index: 6000;
    padding: 5.5rem 1.25rem 1.25rem;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow-y: auto !important;
    overflow-x: hidden;

    /* Hidden state */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Visible state */
.category-showcase.is-open {
    opacity: 1;
    pointer-events: auto;
}

/* Modal panel */
.category-showcase>.showcase-panel {
    min-height: unset !important;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 2rem;
    overflow: visible !important;
    border-radius: 6px;
    transform: translateY(40px) scale(0.97);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.06s,
        opacity 0.35s ease 0.06s;
}

.category-showcase.is-open>.showcase-panel {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Close button — make it more prominent in modal */
.showcase-close {
    position: sticky;
    top: 0;
    flex: 0 0 44px;
    align-self: flex-start;
}

/* Scrollable YouTube grid inside modal */
.category-showcase .youtube-videos-grid {
    padding: 1.5rem 2rem 2rem;
}

/* showcase-panel reveal is handled by the rule above */

/* All category showcases are position:fixed modals — no inline layout impact */



/* =============================================
   COMPREHENSIVE LAYOUT & SPACING REFINEMENTS
   ============================================= */

/* Ensure consistent inner spacing across all showcase panels */
.showcase-panel .youtube-intro-text,
.showcase-panel .reel-shots-intro-text {
    padding: 1.5rem 2rem 0.5rem;
    margin-top: 0;
}

/* Ensure category items align content uniformly */
.category-item {
    gap: 0.5rem;
}

/* Consistent gap between nav and hero */
.hero {
    margin-top: 64px;
}

/* Smooth section transitions with consistent vertical rhythm */
section+section {
    position: relative;
}

/* Ensure marquee section gap from adjacent sections */
.logo-marquee-section {
    margin: 0;
}

/* Timeline spacing improvements */
.timeline-item {
    margin-bottom: 2.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Experience section: full-width content on large screens */
@media (min-width: 1200px) {
    .timeline-content {
        padding: 2.5rem;
    }
}

/* =============================================
   CONSOLIDATED MOBILE & TABLET STYLES
   ============================================= */

@media (max-width: 1024px) {

    .scroll-indicator {
        display: none !important;
    }

    /* Container & Spacing */
    .container {
        padding: 0 30px;
    }

    .nav-container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0 24px !important;
        width: 100% !important;
    }

    section {
        padding: 5rem 0;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    /* Navigation Menu glassmorphism on tablet & mobile */
    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
    }

    .nav-menu.is-open {
        display: flex;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        gap: 0;
        z-index: 999;
        border-bottom: 1px solid var(--glassmorphism-border);
    }

    .nav-menu.is-open li {
        padding: 1rem 2rem;
        border-bottom: 1px solid var(--glassmorphism-border);
    }

    /* Software Logos */
    .software-logos-container {
        gap: 2rem;
        margin-top: 2rem;
    }

    .software-logo-item {
        width: 80px;
        height: 80px;
    }

    /* Grids & Layouts */
    .hero-profile-img {
        width: 150px;
        height: 150px;
    }

    .about-content,
    .skills-layout,
    .showreel-main {
        gap: 2.5rem;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .category-item {
        min-height: 280px;
        padding: 2.5rem 2rem;
    }

    .short-film-projects {
        gap: 1.25rem;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    .short-film-project {
        padding: 1.5rem;
        min-height: 180px;
    }

    .project-image-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .project-image-card-wide {
        grid-column: span 2;
    }

    .youtube-videos-grid,
    .thumbnails-posters-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
        padding: 0 2rem 2rem;
    }

    .showcase-panel>.project-image-grid {
        padding: 0 1.5rem 2rem;
    }

    /* Photo Banner */
    .photo-banner-wrapper {
        height: auto;
    }

    .showreel-stats {
        justify-content: center;
        gap: 2rem;
    }

    .showreel-stats .stat {
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 768px) {

    /* Touch Targets */
    button,
    a {
        min-height: 44px;
        min-width: 44px;
    }

    section {
        padding: 4rem 0;
    }

    .container {
        padding: 0 24px;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    /* Navigation */
    .hero {
        margin-top: 60px;
    }

    /* Hero CTA */
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .cta-btn {
        width: 100%;
        justify-content: center;
    }

    .role-tags {
        gap: 0.5rem;
    }

    .role-tag {
        padding: 0.4rem 1rem;
        font-size: 0.75rem;
    }

    /* Section titles */
    .section-title {
        font-size: 2rem;
    }

    /* Hero image size */
    .hero-profile-img {
        width: 130px;
        height: 130px;
    }

    /* About, Skills & Showreels */
    .about-content,
    .skills-layout,
    .showreel-main,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .skills-column {
        padding: 2.5rem 1.8rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .showreel-info h3 {
        font-size: 1.5rem;
    }

    .showreel-stats {
        justify-content: space-around;
        gap: 1.5rem 1rem;
    }

    .showreel-stats .stat {
        align-items: center;
        text-align: center;
    }

    /* Software Logos */
    .software-logos-container {
        gap: 1.5rem;
        margin-top: 1.8rem;
    }

    .software-logo-item {
        width: 64px;
        height: 64px;
    }

    /* Logo Marquee */
    .logo-marquee-section {
        padding: 2.5rem 0;
    }

    .marquee-container {
        gap: 1.5rem;
    }

    .marquee-logo {
        height: 95px;
    }

    .marquee-content {
        gap: 1.2rem;
        padding: 0 0.8rem;
    }

    /* Categories & Projects Grid */
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .short-film-projects {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
        padding: 1.5rem 1.25rem;
    }

    .short-film-project {
        padding: 1.5rem;
        min-height: auto;
    }

    /* Gallery & Showcase inner spacing */
    .showcase-header,
    .project-gallery,
    .showcase-media-grid,
    .showcase-panel>.project-image-grid,
    .thumbnails-posters-grid,
    .youtube-videos-grid {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .project-gallery-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.5rem;
    }

    .project-image-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0;
    }

    .project-image-card {
        aspect-ratio: 16 / 9;
        min-height: auto;
    }

    .project-image-card-wide {
        grid-column: span 1;
    }

    .featured-project {
        grid-row: auto;
    }

    .showcase-media-grid {
        grid-template-columns: 1fr;
    }

    .youtube-videos-grid,
    .thumbnails-posters-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding-bottom: 1.5rem;
    }

    .thumbnail-card {
        aspect-ratio: 16 / 9;
        min-height: auto;
    }

    .youtube-intro-text,
    .reel-shots-intro-text {
        padding: 0 1.25rem 1.25rem;
    }

    .youtube-intro-text p,
    .reel-shots-intro-text p {
        font-size: 0.9rem;
        line-height: 1.65;
    }

    .showcase-panel .youtube-intro-text,
    .showcase-panel .reel-shots-intro-text {
        padding: 1.25rem 1.25rem 0.5rem;
    }

    .play-button-large {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }

    /* Timeline Stacked on Left */
    .timeline {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        grid-template-columns: auto 1fr;
        gap: 1rem;
        margin-bottom: 2rem;
        animation: none;
    }

    .timeline-item:nth-child(even) {
        direction: ltr;
    }

    .timeline-marker {
        grid-column: 1;
        order: 1;
    }

    .timeline-content {
        grid-column: 2;
        order: 2;
    }

    /* Modals */
    .category-showcase {
        padding: 4.5rem 0.75rem 0.75rem;
    }

    .category-showcase>.showcase-panel {
        max-width: 100%;
    }

    .certificate-modal {
        padding: 1rem;
    }

    .certificate-modal-content {
        max-height: calc(100vh - 2rem);
        padding: 2rem;
    }

    .certificate-image {
        max-height: calc(100vh - 7rem);
    }

    /* Photo Banner */
    .photo-banner-wrapper {
        height: auto;
    }

    /* Instagram Reels Grid */
    .reels-shorts-grid {
        padding: 0 1.25rem 1.5rem;
    }

    .instagram-reel-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 16px;
    }

    .instagram-media {
        min-width: 280px !important;
        max-width: 300px !important;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 14px;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .hero-name {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .projects-grid,
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 20px;
    }

    /* Modals & Showcase panels */
    .showcase-header {
        gap: 1rem;
    }

    .showcase-header h3 {
        font-size: 1.35rem;
    }

    .showcase-close {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .short-film-project {
        min-height: auto;
        padding: 1.5rem 1.25rem;
    }

    .media-card,
    .media-thumb {
        min-height: 190px;
    }

    .youtube-intro-text,
    .reel-shots-intro-text {
        padding: 0 1rem 1rem;
    }

    .youtube-intro-text p,
    .reel-shots-intro-text p {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    .cta-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .project-image-grid {
        grid-template-columns: 1fr;
        gap: 0.875rem;
        padding: 0;
    }

    .project-image-card {
        aspect-ratio: 16 / 9;
        min-height: auto;
    }

    .thumbnails-posters-grid,
    .youtube-videos-grid {
        grid-template-columns: 1fr;
        gap: 0.875rem;
        padding: 0 1rem 1.5rem;
    }

    .thumbnail-card {
        aspect-ratio: 16 / 9;
        min-height: auto;
        max-height: none;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .showcase-panel>.project-image-grid {
        padding: 0 1rem 1.5rem;
    }

    .short-film-projects {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.25rem 1rem;
    }

    .showcase-header,
    .project-gallery {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 480px) {
    section {
        padding: 3rem 0;
    }

    .container {
        padding: 0 16px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .hero-content {
        padding: 1.25rem 0.75rem;
    }

    .hero-profile-img {
        width: 110px;
        height: 110px;
    }

    .skills-column {
        padding: 2rem 1.25rem;
    }

    .timeline-item {
        margin-bottom: 1.5rem;
    }

    .cta-btn {
        padding: 0.9rem 1.75rem;
        font-size: 0.9rem;
    }

    .footer {
        padding: 1.5rem 0;
    }

    /* Logo Marquee */
    .logo-marquee-section {
        padding: 1.5rem 0;
    }

    .marquee-container {
        gap: 1rem;
    }

    .marquee-logo {
        height: 80px;
    }

    .marquee-content {
        gap: 1rem;
        padding: 0 0.5rem;
    }

    /* Categories Cards */
    .category-item {
        padding: 1.5rem 1rem;
    }

    /* Modal spacing */
    .category-showcase {
        padding: 4rem 0.5rem 0.5rem;
    }

    .showcase-panel {
        border-radius: 0;
    }

    .showcase-panel .youtube-intro-text,
    .showcase-panel .reel-shots-intro-text {
        padding: 1rem 0.75rem 0.5rem;
    }

    .showcase-header,
    .project-gallery,
    .short-film-projects,
    .showcase-media-grid,
    .showcase-panel>.project-image-grid,
    .thumbnails-posters-grid,
    .youtube-videos-grid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .project-image-grid {
        grid-template-columns: 1fr;
        gap: 0.875rem;
        padding: 0;
    }

    .project-image-card {
        aspect-ratio: 16 / 9;
        min-height: auto;
    }

    .thumbnails-posters-grid,
    .youtube-videos-grid {
        grid-template-columns: 1fr;
        gap: 0.875rem;
        padding-bottom: 1.25rem;
    }

    .thumbnail-card {
        aspect-ratio: 16 / 9;
        min-height: auto;
        max-height: none;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .short-film-projects {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 1rem 0.75rem;
    }

    .short-film-project {
        padding: 1.25rem 1rem;
        min-height: auto;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .stat-card {
        padding: 1.5rem 1rem;
    }

    .thumbnail-card img,
    .project-image-card img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    /* Modals & popup */
    .certificate-modal {
        padding: 0.75rem;
    }

    .certificate-modal-content {
        max-width: 95%;
        padding: 1.25rem;
        max-height: calc(100vh - 1.5rem);
    }

    .certificate-modal-close {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        top: 0.5rem;
        right: 0.5rem;
    }

    .certificate-image {
        max-height: calc(100vh - 6rem);
    }

    /* Instagram Reels Grid */
    .reels-shorts-grid {
        padding: 0 0.75rem 1.25rem;
    }

    .instagram-reel-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .instagram-media {
        min-width: 100% !important;
        max-width: 100% !important;
    }
}

/* ==========================================================================
   STATIC WEBSITE IMPLEMENTATION (ANIMATIONS & EFFECTS REMOVED)
   ========================================================================== */

/* 1. Global Reset of All Animations, Transitions, and Scroll Behavior */
*,
*::before,
*::after {
    animation: none !important;
    animation-duration: 0s !important;
    animation-delay: 0s !important;
    transition: none !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
}

/* 2. Force Viewport Reveal Elements to be Instantly Visible */
.about-text,
.stats-grid,
.skills-column,
.stat-card,
.skill-card,
.project-card,
.thumbnail-card,
.youtube-video-card,
.youtube-embed,
.category-item,
.project-image-card,
.section-header,
.highlight-card,
.showcase-panel,
.timeline-content,
.reveal-left,
.reveal-right,
.reveal-scale {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
}

/* 3. Disable Pulsing and Floating Effects */
.floating-element {
    display: none !important;
}

.hero-profile-img {
    animation: none !important;
    box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.3) !important;
}

.hero-name {
    animation: none !important;
    filter: none !important;
}

.scroll-indicator {
    animation: none !important;
}

.title-underline,
.title-accent {
    animation: none !important;
}

/* 4. Disable Hover Movements / Zoom / 3D Tilt / Glow Effects */
.logo-text:hover,
.hero-profile-img:hover,
.primary-btn:hover,
.secondary-btn:hover,
.stat-card:hover,
.skill-card:hover,
.project-card:hover,
.thumbnail-card:hover,
.youtube-video-card:hover,
.project-image-card:hover,
.category-item:hover,
.timeline-content:hover,
.contact-method:hover,
.software-logo-item:hover,
.video-frame:hover {
    transform: none !important;
    box-shadow: none !important;
    filter: none !important;
}

/* 5. Transform Moving Logo Marquee into a Static Centered Flex Grid */
.logo-marquee-section {
    overflow: visible !important;
}

.marquee-container {
    display: block !important;
}

.marquee-row {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 1.5rem !important;
    overflow: visible !important;
}

.marquee-content {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 1.5rem !important;
    width: 100% !important;
    white-space: normal !important;
    animation: none !important;
}

.marquee-content[aria-hidden="true"] {
    display: none !important;
}

/* 6. Hide Scroll Progress Bar */
#scrollProgressBar {
    display: none !important;
}

/* 7. Ensure Category Showcases function strictly as Modal Popups */
.category-showcase {
    display: none !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 6000 !important;
    padding: 5.5rem 1.25rem 1.25rem !important;
    background: rgba(0, 0, 0, 0.88) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.category-showcase.is-open {
    display: block !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.category-showcase>.showcase-panel {
    display: block !important;
    opacity: 1 !important;
    transform: none !important;
    margin: 0 auto 2rem !important;
    position: relative !important;
}

.showcase-list {
    margin-top: 10px;
    padding-left: 20px;
}

.showcase-list li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.toilet-banner-card {
    height: auto !important;
    aspect-ratio: auto !important;
}

.toilet-banner-image {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    display: block;
}

.full-view-card {
    height: auto !important;
    aspect-ratio: auto !important;
}

.full-view-image {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    display: block;
}

.full-video-player {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    display: block;
}

.full-view-video {
    width: 100%;
    height: 175px;
    object-fit: cover;
    display: block;
}

#reelShotsShowcase .showcase-panel {
    max-width: 1380px;
}

.reels-shorts-grid {
    padding: 0 2rem 2rem;
}

.category-showcase .reels-shorts-grid {
    padding: 1.5rem 2rem 2rem;
}

.instagram-reel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    justify-content: center;
    justify-items: center;
}

.instagram-media {
    min-width: 320px !important;
    max-width: 340px !important;
    width: 100% !important;
    margin: 0 auto !important;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}



/* =============================================
   MOTION GRAPHICS SHOWCASE OVERRIDES
   ============================================= */
#motionGraphicsShowcase .youtube-video-card,
#motionGraphicsShowcase .project-image-card {
    aspect-ratio: auto !important;
    height: auto !important;
}

#motionGraphicsShowcase .youtube-video-card video,
#motionGraphicsShowcase .video-player {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    aspect-ratio: auto !important;
}

/* =============================================
   THUMBNAILS & POSTERS ORIGINAL ASPECT RATIO
   ============================================= */
.thumbnails-posters-grid {
    align-items: start !important;
}

.thumbnails-posters-grid .thumbnail-card {
    aspect-ratio: auto !important;
    height: auto !important;
    display: block !important;
}

.thumbnails-posters-grid .thumbnail-card img {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
}

/* =============================================
   PHOTO MARQUEE SECTION
   ============================================= */
.photo-marquee-section {
    width: 100%;
    padding: 3rem 0;
    background: #020202;
    border-top: 1px solid rgba(var(--primary-rgb), 0.15);
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.15);
    overflow: hidden;
    position: relative;
}

.photo-marquee-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.photo-marquee-row {
    display: flex;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.photo-marquee-content {
    display: flex;
    gap: 1.25rem;
    /* small size gap */
    padding: 0 0.625rem;
    white-space: nowrap;
    flex-shrink: 0;
    align-items: center;
    will-change: transform;
}

.photo-marquee-row:hover .photo-marquee-content {
    animation-play-state: paused !important;
    /* Pause on hover for interaction */
}

/* Image styles */
.photo-marquee-content img {
    height: 180px;
    /* height to make it visible and beautiful */
    aspect-ratio: 4 / 3;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(var(--primary-rgb), 0.25);
    border-radius: 4px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.photo-marquee-content img:hover {
    border-color: var(--primary-color);
    transform: scale(1.03);
}

/* Left-to-Right Animation */
@keyframes photo-scroll-ltr {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

.photo-marquee-ltr .photo-marquee-content {
    /* very slow motion of moving: e.g. 120 seconds */
    animation: photo-scroll-ltr 120s linear infinite !important;
}

/* Right-to-Left Animation */
@keyframes photo-scroll-rtl {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.photo-marquee-rtl .photo-marquee-content {
    /* very slow motion of moving: e.g. 120 seconds */
    animation: photo-scroll-rtl 120s linear infinite !important;
}

/* =============================================
   CATEGORIES GRID CENTER ALIGNMENT
   ============================================= */
@media (min-width: 1025px) {
    .categories-grid {
        grid-template-columns: repeat(6, 1fr) !important;
    }

    .categories-grid .category-item {
        grid-column: span 2 !important;
    }

    /* Centering the last 2 items (items 4 and 5) in a 6-column grid layout */
    .categories-grid .category-item:nth-child(4) {
        grid-column: 2 / span 2 !important;
    }
}

/* =============================================
   PHOTO BANNER SECTION
   ============================================= */
.photo-banner {
    width: 100%;
    padding: 0 !important;
    margin: 0 !important;
    background: #020202;
    overflow: hidden;
}

.photo-banner-wrapper {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    background: #000;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
}


.photo-banner-wrapper .banner-image {
    width: 100%;
    height: auto;
    aspect-ratio: 10239 / 3801;
    border-radius: 0 !important;
    display: block;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.photo-banner:hover .banner-image {
    transform: scale(1.02) !important;
}

.photo-banner-overlay {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(2, 2, 2, 0.9) 0%, 
        rgba(2, 2, 2, 0) 15%, 
        rgba(2, 2, 2, 0) 85%, 
        rgba(2, 2, 2, 0.9) 100%
    );
    pointer-events: none;
    z-index: 2;
}

/* Eliminate adjacent section gaps around the banner */
#experience {
    padding-bottom: 0 !important;
}

#contact {
    padding-top: 4rem !important;
}







.instagram-media {
    max-width: 400px !important;
}

.instagram-media iframe {
    overflow: hidden;
}

.short-container {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 9 / 16;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #ffd700;
    background: #000;
}

.short-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* =============================================
   SHOWREEL PLAY BUTTON OVERRIDES
   ============================================= */
.play-button-large {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translate(-50%, -50%) scale(1) !important;
    transition: opacity 0.3s ease, transform 0.3s ease !important;
}

.play-button-large:hover {
    transform: translate(-50%, -50%) scale(1.15) !important;
    box-shadow: 0 0 60px rgba(var(--primary-rgb), 0.9), var(--glow-gold) !important;
}

/* =============================================
   CUSTOM VIDEO PLAY BUTTON OVERLAY
   ============================================= */
.custom-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-primary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.5);
    z-index: 10;
    pointer-events: auto;
}

.custom-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 0 30px rgba(var(--primary-rgb), 0.8), var(--glow-gold);
}

.custom-play-btn i {
    margin-left: 3px;
}

/* =============================================
   SAFARI & MOBILE COMPATIBILITY OVERRIDES
   ============================================= */

/* 1. Prevent background scrolling on iOS Safari when modal is open */
html.modal-open {
    overflow: hidden !important;
    height: 100% !important;
}
body.modal-open {
    overflow: hidden !important;
    height: 100% !important;
    position: fixed !important;
    width: 100% !important;
}

/* 2. Modals layout: center positioning, inner scrolling & momentum scroll */
.category-showcase {
    display: none !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 6000 !important;
    background: rgba(0, 0, 0, 0.88) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease !important;
    
    /* Flex center the modal panel */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 2rem 1.25rem !important;
    
    /* Force non-scrollable outer container to override previous longhands */
    overflow: hidden !important; 
    overflow-y: hidden !important;
    overflow-x: hidden !important;
}

.category-showcase.is-open {
    display: flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.category-showcase>.showcase-panel {
    display: block !important;
    opacity: 0 !important;
    transform: translateY(40px) scale(0.97) !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.06s, opacity 0.35s ease 0.06s !important;
    margin: 0 auto !important;
    position: relative !important;
    box-sizing: border-box !important;
    
    /* Scrollable panel box */
    max-height: 90vh !important;
    width: 100% !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important; /* smooth scrolling inside modal */
}

.category-showcase.is-open>.showcase-panel {
    transform: translateY(0) scale(1) !important;
    opacity: 1 !important;
}

/* 3. Sticky header with close button */
.showcase-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
    background: #151515 !important; /* solid dark background to overlay scrolling text */
    border-bottom: 1px solid var(--glassmorphism-border) !important;
    padding: 1.5rem 2rem 1.25rem !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
}

.showcase-close {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    z-index: auto !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    margin: 0 !important;
    flex: 0 0 44px !important;
}

/* Media query adjustment for smaller mobile screens */
@media (max-width: 768px) {
    .category-showcase {
        padding: 1rem 0.5rem !important;
    }
    
    .category-showcase>.showcase-panel {
        max-height: 95vh !important;
    }
    
    .showcase-header {
        padding: 1.25rem 1.25rem 1rem !important;
    }
}

/* 4. Sizing, Alignment and Scrollbar Overrides */
#motionGraphicsShowcase .project-image-grid {
    align-items: start !important;
}

/* Hide scrollbars for all modal showcase panels */
.showcase-panel::-webkit-scrollbar {
    display: none !important;
}

.showcase-panel {
    -ms-overflow-style: none !important;  /* IE and Edge */
    scrollbar-width: none !important;  /* Firefox */
}