/* --- DESIGN SYSTEM & CSS VARIABLES --- */
:root {
    --background: #000000;
    --surface: #0a0a0a;
    --surface-card: #121212;
    --primary: #ffffff;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --text-dim: #555555;
    
    --glow-color: rgba(255, 255, 255, 0.85);
    --glow-shadow: 0 0 15px var(--glow-color), 0 0 30px rgba(255, 255, 255, 0.4);
    --glow-shadow-intense: 0 0 25px var(--glow-color), 0 0 50px rgba(255, 255, 255, 0.6);
    
    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Curved details */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 28px;
    --radius-pill: 9999px;
    
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- BASE STYLES --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: #333 #000;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    cursor: url('Assets/Cursors/pen-tool-32.png') 0 0, auto;
}

body {
    background-color: var(--background);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
    cursor: url('Assets/Cursors/pen-tool-32.png') 0 0, auto;
}

a {
    color: inherit;
    text-decoration: none;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.glow-text {
    background: linear-gradient(135deg, #ffffff 30%, #a3a3a3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255,255,255,0.1);
}

/* --- LAYOUT UTILITIES --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    position: relative;
    padding: 130px 0;
    z-index: 2;
}

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

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 12px;
    font-weight: 800;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    max-width: 600px;
    margin: 0 auto 130px auto;
}

/* --- BUTTONS & GLOW EFFECT --- */
.btn-glow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary);
    color: var(--background);
    padding: 16px 36px;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--primary);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-glow:hover {
    background-color: var(--primary);
    color: var(--background);
    transform: translateY(-2px);
}

.btn-glow:active {
    transform: translateY(0);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: var(--primary);
    padding: 16px 36px;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: var(--transition);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-glow,
.btn-outline,
.tab-btn,
.mobile-toggle,
a,
button {
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
}

.btn-glow:focus-visible,
.btn-outline:focus-visible,
.tab-btn:focus-visible,
.mobile-toggle:focus-visible,
a:focus-visible,
button:focus-visible {
    outline: none;
}

/* --- NAVIGATION BAR --- */
.navbar {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 16px 32px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 12px 28px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    background: white;
    border-radius: 12px;
    transition: var(--transition);
}

.logo a:hover {
    transform: scale(1.05);
}

.logo a img {
    height: 80px;
    width: auto;
    display: block;
    object-fit: contain;
    transition: var(--transition);
}

body.light-mode .logo a img {
    filter: invert(1);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    transition: var(--transition);
    padding: 6px 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-glow-nav {
    display: inline-flex;
    background-color: var(--primary);
    color: var(--background);
    padding: 10px 22px;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: var(--radius-pill);
    transition: var(--transition);
    border: 1px solid var(--primary);
}

.btn-glow-nav:hover {
    transform: scale(1.03);
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background-color: rgba(255, 255, 255, 0.03);
}

.theme-toggle:hover {
    color: var(--primary);
    border-color: rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.light-mode .theme-toggle {
    border-color: rgba(0, 0, 0, 0.15);
    background-color: rgba(0, 0, 0, 0.03);
    color: var(--text-secondary);
}

.light-mode .theme-toggle:hover {
    border-color: rgba(0, 0, 0, 0.3);
    background-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    color: var(--primary);
}

.theme-toggle .sun-icon {
    display: none;
}
.theme-toggle .moon-icon {
    display: block;
}

body.light-mode .theme-toggle .sun-icon {
    display: block;
}
body.light-mode .theme-toggle .moon-icon {
    display: none;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 110;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

/* --- HERO SECTION --- */
.hero-section {
    position: relative;
    width: 90%;
    max-width: 1200px;
    margin: 130px auto 130px auto;
    height: 68vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    border-radius: 36px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-video.active {
    opacity: 0.85;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 40%, rgba(0,0,0,0) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    mask-image: linear-gradient(to right, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 100%);
    z-index: 2;
}

.hero-overlay-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 25%;
    background: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.hero-text-area {
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
    letter-spacing: 0.03em;
}

.hero-text-area h1 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    line-height: 1.25;
    margin-bottom: 24px;
    font-weight: 800;
}

.hero-text-area p {
    color: var(--text-secondary);
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.hero-actions .btn-glow,
.hero-actions .btn-outline {
    padding: 10px 22px;
    font-size: 0.85rem;
}

/* Alternate PIP preview matching reference */
.hero-thumbnail-preview {
    width: 320px;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px; /* curved edges instead of sharp */
    padding: 12px;
    cursor: pointer;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    transition: var(--transition);
}

.hero-thumbnail-preview:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.8), 0 0 20px rgba(255,255,255,0.1);
}

.thumb-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #ff3b30;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.6; }
}

.thumb-video-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    background-color: #000;
}

.thumb-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-info {
    margin-top: 10px;
}

.thumb-title {
    font-size: 0.85rem;
    font-weight: 600;
}

.thumb-desc {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Reference style bottom slider indicators */
.hero-slider-indicators {
    position: absolute;
    bottom: 30px;
    left: 60px;
    display: flex;
    gap: 12px;
    z-index: 5;
    width: calc(100% - 120px);
}

.indicator-bar {
    flex: 1;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-pill);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.indicator-bar.active {
    transform: scaleY(1.5);
}

.indicator-fill {
    width: 0%;
    height: 100%;
    background-color: var(--primary);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.9), 0 0 20px rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-pill);
}

.indicator-bar.active .indicator-fill {
    animation: indicatorProgress 8s linear forwards;
}

@keyframes indicatorProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* --- FEATURED PREVIEWS (BELOW HERO) --- */
.top-previews {
    background-color: var(--background);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* --- PROJECTS FILTER GALLERY --- */
.projects-section {
    background-color: var(--background);
    padding-top: 130px;
    padding-bottom: 130px;
}

.projects-section .container {
    max-width: 1340px; /* Expanded to fit 2x wider landscape cards side-by-side */
}

.project-tabs {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    padding: 10px 24px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-pill); /* Pill curve */
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn:hover {
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--primary);
}

.tab-btn.active {
    background: var(--primary);
    color: #000000;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.project-grid {
    display: flex;
    justify-content: flex-start; /* Left align items */
    align-items: center;
    gap: 20px; /* Exact 20px gap padding */
    transition: var(--transition);
    flex-wrap: wrap; /* responsive wrap */
    max-width: 1340px; /* Expanded to match container */
    margin: 0; /* Aligned left */
}

/* Tab filter overrides */
.project-grid.show-editing .project-item[data-category="ai-commercial"] {
    display: none !important;
}
.project-grid.show-ai-commercial .project-item[data-category="editing"] {
    display: none !important;
}

.gallery-grid {
    display: grid;
    gap: 20px; /* Exact 20px gap padding */
    transition: var(--transition);
    justify-content: center; /* Center the columns within grid */
}

.gallery-grid.show-editing {
    grid-template-columns: repeat(4, 240px); /* Fit exact portrait card width */
}

.gallery-grid.show-ai-commercial {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 20px;
    max-width: 1340px;
    margin: 0 auto;
}

/* Gallery filtering */
.gallery-grid.show-editing .project-item[data-category="ai-commercial"] {
    display: none !important;
}
.gallery-grid.show-ai-commercial .project-item[data-category="editing"] {
    display: none !important;
}

@media (max-width: 1200px) {
    .gallery-grid.show-editing {
        grid-template-columns: repeat(3, 240px);
    }
}

@media (max-width: 992px) {
    .gallery-grid.show-editing {
        grid-template-columns: repeat(2, 240px);
    }
}

@media (max-width: 768px) {
    .gallery-grid.show-editing {
        grid-template-columns: repeat(1, 240px);
    }
    .gallery-grid.show-ai-commercial {
        justify-content: center;
    }
}

.project-item {
    width: 100%;
    background-color: var(--surface);
    border-radius: var(--radius-lg); /* Curved edges */
    overflow: hidden;
    border: none;
    transition: var(--transition);
    position: relative; /* Setup absolute overlays positioning */
}

.project-item:hover {
    transform: translateY(-6px);
}

.project-item.portrait-card {
    max-width: 240px;
}

.project-item.landscape-card {
    max-width: 640px; /* 2X Bigger */
}

.project-item.portrait-card .project-meta {
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.project-item.portrait-card .project-meta h3 {
    font-size: 0.88rem;
    margin-bottom: 0;
}

.project-item.portrait-card .project-meta p {
    font-size: 0.75rem;
    line-height: 1.35;
}

.project-media {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background-color: #000;
    position: relative;
}

.project-media.portrait {
    aspect-ratio: 9/16;
}

.custom-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.project-item.playing .custom-thumbnail {
    opacity: 0;
}

.project-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-media iframe {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border: none;
}

.project-item:hover .project-media video {
    transform: scale(1.02);
}

.project-meta {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 10;
    transition: var(--transition);
}

.project-item.playing .project-meta,
.project-item.scrubbing .project-meta {
    opacity: 0;
    pointer-events: none;
}

.category-badge {
    display: inline-block;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.project-meta h3 {
    font-size: 1.05rem;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-meta p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* --- COURSES SECTION --- */
.courses-section {
    background-color: var(--background);
    padding-top: 130px;
}

.courses-placeholder-card {
    background-color: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
    transition: var(--transition);
}

.courses-placeholder-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transform: translateY(-4px);
}

.cap-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    margin-bottom: 24px;
    color: var(--primary);
    transition: var(--transition);
}

.courses-placeholder-card:hover .cap-icon-wrapper {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.grad-cap-svg {
    stroke: var(--primary);
}

.courses-placeholder-card .section-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.teaching-soon-badge-container {
    display: inline-flex;
    margin-top: 10px;
}

.teaching-soon-badge {
    background-color: var(--primary);
    color: var(--background);
    padding: 12px 32px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: var(--radius-md); /* Curved rectangle */
    border: 1px solid var(--primary);
    transition: var(--transition);
}

.teaching-soon-badge:hover {
    transform: translateY(-2px);
    background-color: transparent;
    color: var(--primary);
}

/* --- CONTACT SECTION --- */
.contact-section {
    background-color: var(--background);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 130px;
    padding-bottom: 130px;
}

.contact-box {
    background-color: var(--surface);
    border-radius: var(--radius-lg);
    border: 2px solid rgba(255, 255, 255, 0.05);
    display: grid;
    grid-template-columns: 4.5fr 5.5fr;
    overflow: hidden;
}

.contact-info {
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-info h2 {
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    line-height: 1.1;
    margin-bottom: 10px;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-item .label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.detail-item a {
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
}

.detail-item a:hover {
    color: var(--text-secondary);
    text-shadow: 0 0 10px rgba(255,255,255,0.2);
}

.contact-form-wrapper {
    padding: 30px 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--primary);
    padding: 10px 14px;
    border-radius: var(--radius-md); /* Curved edges */
    font-family: var(--font-main);
    font-size: 0.85rem;
    transition: var(--transition);
    outline: none;
}

.form-group textarea {
    height: 70px;
    resize: none;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 20px;
    padding-right: 48px;
}

.form-group select option {
    background-color: var(--surface);
    color: var(--primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

.submit-btn {
    margin-top: 10px;
    width: 100%;
}

/* --- FOOTER ENDING PAGE --- */
.footer {
    background-color: var(--background);
    padding: 60px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 2;
    position: relative;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-left p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-center p {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.footer-right {
    display: flex;
    gap: 16px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary);
    color: #000000;
    transform: translateY(-3px);
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 992px) {
    .navbar {
        top: 16px;
    }
    
    .nav-links {
        display: none; /* Mobile menu toggled by JS */
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero-section {
        height: auto;
        aspect-ratio: 16/9;
        min-height: 350px;
        margin: 140px auto 40px auto;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
        justify-content: center;
        height: 100%;
        padding: 30px;
    }
    
    .hero-text-area {
        max-width: 100%;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-thumbnail-preview {
        display: none; /* Hide alternate preview inside hero on tablets/mobiles to keep it clean */
    }
    
    .contact-box {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding: 40px;
    }
    
    .contact-form-wrapper {
        padding: 40px;
    }
    
    .project-grid,
    .courses-grid {
        grid-template-columns: 1fr;
    }

    .preview-grid {
        flex-direction: column;
        height: auto;
        max-height: none;
    }
    
    .preview-card {
        height: auto;
    }

    .preview-card.horizontal {
        height: auto;
    }
    
    .preview-right-stack {
        gap: 24px;
    }
}

@media (max-width: 576px) {
    section {
        padding: 60px 0;
    }
    
    .hero-section {
        height: auto;
        aspect-ratio: 16/9;
        min-height: 220px;
        margin: 130px auto 30px auto;
        border-radius: 20px;
    }
    
    .hero-content {
        padding: 15px;
    }
    
    .hero-slider-indicators {
        bottom: 12px;
        left: 20px;
        width: calc(100% - 40px);
    }
    
    .hero-text-area h1 {
        font-size: 1.4rem;
    }
    
    .hero-actions {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
        width: auto;
        margin-top: 10px;
    }
    
    .hero-actions .btn-glow,
    .hero-actions .btn-outline {
        width: auto;
        padding: 8px 14px;
        font-size: 0.8rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* --- COURSES MODAL OVERLAY & POPUP ANIMATION --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45); /* Behind visuals visible */
    backdrop-filter: blur(12px); /* Blur behind visuals */
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: rgba(255, 255, 255, 0.04); /* Glassy styling */
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: none;
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    max-width: 650px;
    width: 90%;
    position: relative;
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.12),
                0 0 30px rgba(255, 255, 255, 0.06),
                0 30px 60px rgba(0, 0, 0, 0.6);
    text-align: center;
}

.light-mode .modal-content {
    background: rgba(0, 0, 0, 0.03);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: none;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.03),
                0 0 30px rgba(0, 0, 0, 0.03),
                0 30px 60px rgba(0, 0, 0, 0.15);
}


.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2.2rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.modal-close-btn:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.modal-message-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 12px;
    font-size: clamp(1.4rem, 3.2vw, 2.2rem);
    font-weight: 700;
    line-height: 1.35;
    padding: 10px 0;
}

/* Word sequence popup style and animation */
.popup-word {
    display: inline-block;
    opacity: 0;
    transform: scale(0.6) translateY(20px);
    animation: wordPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    background: linear-gradient(135deg, #ffffff 40%, #888888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.light-mode .popup-word {
    background: linear-gradient(135deg, #000000 40%, #555555 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes wordPop {
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* --- SCROLL REVEAL STYLES --- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

.projects-actions.reveal-on-scroll {
    transition-delay: 0.15s;
}

/* Sticky view-more button for landing page projects section */
#projects .projects-actions {
    position: sticky;
    bottom: 30px;
    z-index: 99;
    margin-top: 40px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

#projects .projects-actions.show-sticky {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* --- ABOUT PAGE STYLES --- */
.about-hero-section {
    padding-top: 130px;
    padding-bottom: 130px;
    position: relative;
    z-index: 3;
}

.about-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.about-hero-left {
    text-align: left;
}

.about-hero-left .section-title {
    text-align: left;
    margin-bottom: 24px;
    font-size: clamp(2.5rem, 5vw, 4rem);
}

.about-lead {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    color: var(--text-primary);
    margin: 0 0 24px 0;
    font-weight: 500;
    line-height: 1.5;
}

.about-sublead {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

.about-hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.founder-card {
    position: relative;
    width: 100%;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition);
}

.founder-card:hover {
    transform: translateY(-5px);
}

.founder-image-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.founder-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.founder-card:hover .founder-image-wrapper img {
    transform: scale(1.03);
}

.founder-name-tag {
    position: absolute;
    bottom: 0;
    left: 0;
    display: block;
    background: #ffffff;
    border-radius: 20px 20px 20px 20px;
    padding: 14px 24px;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.15);
    z-index: 2;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.founder-name-tag:hover {
    transform: scale(1.05);
    box-shadow: 0 0 45px rgba(255, 255, 255, 0.6), 0 15px 35px rgba(0, 0, 0, 0.7);
}

.founder-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #000000;
    margin: 0;
    line-height: 1.2;
}

.founder-title {
    font-size: 0.95rem;
    color: #000000;
    font-weight: 800;
    display: block;
    margin-top: 2px;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .about-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .about-hero-left,
    .about-hero-left .section-title {
        text-align: center;
    }
}

.about-services-section,
.about-trust-section,
.about-cta-section {
    padding: 130px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

.about-card {
    border-radius: var(--radius-lg);
    padding: 40px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

/* Glassy and 3D Beveled styling for services cards */
.glassy-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: none;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.04),
                0 20px 40px rgba(0, 0, 0, 0.4);
}

.glassy-card:hover {
    transform: translateY(-6px);
    border: none;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1),
                0 30px 60px rgba(0, 0, 0, 0.6);
}

.light-mode .glassy-card {
    background: rgba(0, 0, 0, 0.03);
    border: none;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

/* Minimalist border styling for trust cards */
.border-card {
    background-color: var(--surface);
    border: none;
}

.border-card:hover {
    transform: translateY(-6px);
    border: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-icon {
    color: var(--primary);
    margin-bottom: 24px;
    display: inline-flex;
    opacity: 0.85;
}

.card-num {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-dim);
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}

.about-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.about-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Call to action section layout */
.about-cta-box {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 40px;
    border-radius: var(--radius-lg);
}

.about-cta-box h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 30px;
}

.about-cta-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

@media (max-width: 576px) {
    .about-cta-actions {
        flex-direction: column;
        align-items: center;
    }
    .about-cta-actions .btn-glow,
    .about-cta-actions .btn-outline {
        width: 100%;
        max-width: 300px;
    }
}

/* --- FLOATING CONTACT WIDGET --- */
.floating-contact-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 56px;
    width: 56px;
    background: var(--primary);
    color: var(--background);
    border-radius: var(--radius-pill);
    box-shadow: var(--glow-shadow);
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
                background-color 0.4s ease, 
                box-shadow 0.4s ease, 
                border-radius 0.5s ease,
                border-color 0.4s ease;
    overflow: hidden;
    border: 1.5px solid var(--primary);
}

/* Hover expansion */
.floating-contact-widget:hover {
    width: 196px;
    background: rgba(10, 10, 10, 0.85); /* glassy background */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--primary);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: inset 1px 1px 0px rgba(255, 255, 255, 0.15), 
                0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: var(--radius-md); /* curved rectangle */
}

/* Icon / trigger button inside */
.widget-trigger {
    position: absolute;
    right: 0;
    top: 0;
    width: 53px;
    height: 53px;
    border: none;
    background: none;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.floating-contact-widget:hover .widget-trigger {
    transform: rotate(90deg);
    opacity: 0;
    pointer-events: none;
}

/* Menu holding the social buttons */
.widget-menu {
    position: absolute;
    right: 0;
    top: 0;
    width: 196px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.floating-contact-widget:hover .widget-menu {
    opacity: 1;
    pointer-events: auto;
}

.widget-item {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transform: translateX(12px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, color 0.2s ease;
}

.floating-contact-widget:hover .widget-item {
    transform: translateX(0);
    opacity: 1;
}

/* Stagger the icons fade-in/slide-in when expanded */
.floating-contact-widget:hover .widget-item:nth-child(1) { transition-delay: 0.05s; }
.floating-contact-widget:hover .widget-item:nth-child(2) { transition-delay: 0.10s; }
.floating-contact-widget:hover .widget-item:nth-child(3) { transition-delay: 0.15s; }
.floating-contact-widget:hover .widget-item:nth-child(4) { transition-delay: 0.20s; }

.widget-item:hover {
    color: var(--primary);
    transform: scale(1.2) !important;
}

.widget-item img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Light mode adjustments */
.light-mode .floating-contact-widget {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

.light-mode .floating-contact-widget:hover {
    background: rgba(246, 246, 246, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
    color: #000000;
    box-shadow: inset 1px 1px 0px rgba(0, 0, 0, 0.05), 
                0 10px 30px rgba(0, 0, 0, 0.15);
}

.light-mode .widget-item:hover {
    color: #000000;
}

@media (max-width: 992px) {
    .preview-grid-two-col {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    /* Place the project titles below the preview box on mobile */
    .project-item .project-meta,
    .project-item.portrait-card .project-meta {
        position: relative !important;
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border-top: none !important;
        padding: 12px 4px 6px 4px !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: none !important;
        visibility: visible !important;
    }
    
    /* Ensure the titles stay visible when playing/scrubbing on mobile */
    .project-item.playing .project-meta,
    .project-item.scrubbing .project-meta {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
    
    .project-item {
        overflow: visible !important;
    }
}

/* --- CUSTOM DROPDOWN --- */
.custom-dropdown {
    position: relative;
    width: 100%;
}

.dropdown-trigger {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.dropdown-trigger:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.dropdown-trigger svg {
    transition: transform 0.3s ease;
    color: var(--text-secondary);
}

.custom-dropdown.active .dropdown-trigger svg {
    transform: rotate(180deg);
}

.dropdown-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background-color: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    overflow: hidden;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
}

.custom-dropdown.active .dropdown-options {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.dropdown-option {
    padding: 12px 20px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    cursor: pointer;
    text-align: left;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-option:hover {
    background-color: #ffffff !important;
    color: #000000 !important;
}

.dropdown-option.selected {
    background-color: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

/* Light mode overrides for Custom Dropdown */
.light-mode .dropdown-trigger {
    background-color: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.1);
    color: #000000;
}

.light-mode .dropdown-trigger:hover {
    border-color: rgba(0, 0, 0, 0.25);
}

.light-mode .dropdown-options {
    background-color: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.light-mode .dropdown-option {
    color: #444444;
}

.light-mode .dropdown-option:hover {
    background-color: #000000 !important;
    color: #ffffff !important;
}

.light-mode .dropdown-option.selected {
    background-color: rgba(0, 0, 0, 0.05);
    color: #000000;
}
/* --- MORE PROJECTS PAGE TITLE NAVIGATION --- */
.title-nav-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin: 0 auto 50px auto;
    width: 100%;
}

.title-nav-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    transition: var(--transition);
    cursor: pointer;
    flex-shrink: 0;
}

.title-nav-arrow:hover {
    background: var(--primary);
    color: var(--background);
    border-color: var(--primary);
    transform: scale(1.08);
}

.title-nav-arrow:active {
    transform: scale(0.95);
}

.title-nav-arrow svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    transition: stroke 0.3s ease;
}

/* Light mode overrides for navigation arrows */
.light-mode .title-nav-arrow {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
}

@media (max-width: 576px) {
    .title-nav-wrapper {
        gap: 15px;
    }
    
    .title-nav-arrow {
        width: 40px;
        height: 40px;
    }
    
    .title-nav-arrow svg {
        width: 18px;
        height: 18px;
    }
}
/* Light mode overrides for preview cards */
.light-mode .preview-card {
    border-color: rgba(0, 0, 0, 0.15);
}
.light-mode .preview-card:hover {
    border-color: rgba(0, 0, 0, 0.45);
}

/* --- BRANDS SECTION --- */
.brands-section {
    background-color: var(--surface);
    padding: 100px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.brands-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px; /* Logos between gap padding is 20px */
    max-width: 1100px;
    margin: 50px auto 0 auto;
    flex-wrap: nowrap; /* Single row to prevent overlap */
}

.brand-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    transition: var(--transition);
    overflow: hidden;
    opacity: 1; /* Default state: not faded */
    transform: scale(1); /* Default state: normal size */
    flex-shrink: 0; /* Prevent flex shrink clipping */
}

.brand-item img {
    transition: var(--transition);
}

.brand-item.rectangle {
    height: 87px; /* Scaled +2px */
    width: auto;
    min-width: 140px;
    max-width: 320px; /* Increased to prevent clipping wide logos */
    padding: 0 12px; /* Small horizontal padding for safe margins */
    border-radius: 16px; /* Curved edges */
}

.brand-item.rectangle img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.brand-item.round {
    width: 120px;
    height: 120px;
    border-radius: 50%;
}

.brand-item.round img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* Fade non-hovered items when grid is active */
.brands-grid:hover .brand-item {
    opacity: 0.18;
    transform: scale(0.9);
}

/* Highlight currently hovered item - full opacity and color */
.brands-grid .brand-item:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    opacity: 1 !important;
    transform: scale(1.15) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.brand-item.placeholder {
    color: var(--text-dim);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.light-mode .brands-section {
    border-color: rgba(0, 0, 0, 0.05);
}

.light-mode .brand-item {
    background: rgba(0, 0, 0, 0.02);
    opacity: 1; /* Default normal opacity */
}

.light-mode .brands-grid:hover .brand-item {
    opacity: 0.2;
}

.light-mode .brand-item:hover {
    background: rgba(0, 0, 0, 0.04) !important;
    opacity: 1 !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08) !important;
}

@media (max-width: 768px) {
    .brands-grid {
        flex-wrap: wrap;
    }
}

/* --- CUSTOM VIDEO PLAYER CONTROLS OVERLAY --- */
.custom-video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(10px);
    pointer-events: auto;
}

.project-item:hover .custom-video-controls,
.project-item.playing .custom-video-controls {
    opacity: 1;
    transform: translateY(0);
}

.custom-video-controls.hidden {
    opacity: 0 !important;
    transform: translateY(10px) !important;
    pointer-events: none !important;
}

.control-btn {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s ease, color 0.2s ease;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--primary);
}

.video-progress-container {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    transition: height 0.1s ease, opacity 0.3s ease;
}

.video-progress-container.hidden {
    opacity: 0;
    height: 0;
    visibility: hidden;
    pointer-events: none;
}

.video-progress-container:hover,
.video-progress-container.scrubbing {
    height: 6px;
}

.video-progress-hover-line {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 2px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.1s ease;
}

.video-progress-container:hover .video-progress-hover-line {
    opacity: 1;
}

.video-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: #ff0000; /* YouTube Red */
    border-radius: 2px;
    transition: none;
}

.video-progress-knob {
    position: absolute;
    top: 50%;
    left: 0%;
    width: 13px;
    height: 13px;
    background: #ff0000; /* YouTube Red */
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.1s ease;
    pointer-events: none;
    z-index: 12;
}

.video-progress-container:hover .video-progress-knob,
.video-progress-container.scrubbing .video-progress-knob {
    transform: translate(-50%, -50%) scale(1);
}

.video-time-tooltip {
    position: absolute;
    bottom: 14px;
    left: 0%;
    transform: translateX(-50%) scale(0);
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-family: monospace;
    pointer-events: none;
    white-space: nowrap;
    transition: transform 0.1s ease;
    z-index: 15;
}

.video-progress-container:hover .video-time-tooltip {
    transform: translateX(-50%) scale(1);
}

/* --- BIG CENTERED PLAY BUTTON --- */
.big-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(10, 10, 10, 0.65);
    border: none; /* Removed border stroke */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    opacity: 0.95;
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s;
    pointer-events: auto;
}

.big-play-btn:hover {
    background: var(--primary);
    transform: translate(-50%, -50%) scale(1.1);
}

.big-play-btn:active {
    transform: translate(-50%, -50%) scale(0.95);
}

.project-item.playing .big-play-btn {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.85);
}

.big-play-btn img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    pointer-events: none;
}

/* --- CONTACT POPUP MODAL STYLES --- */
.contact-modal-content {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    border: none !important;
}

.contact-modal-options {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

.contact-modal-option-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
    background: transparent;
    border: none;
    box-shadow: none;
}

.contact-modal-option-btn img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 12px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.contact-modal-option-btn span {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.contact-modal-option-btn:hover {
    transform: translateY(-8px);
    color: var(--primary);
}

.contact-modal-option-btn:hover img {
    transform: scale(1.15);
}

.contact-modal-option-btn.whatsapp-btn:hover img {
    filter: drop-shadow(0 0 15px rgba(37, 211, 102, 0.8));
}

.contact-modal-option-btn.email-btn:hover img {
    filter: drop-shadow(0 0 15px rgba(234, 67, 53, 0.8));
}

@media (max-width: 480px) {
    .contact-modal-options {
        gap: 25px;
    }
    .contact-modal-option-btn img {
        width: 50px;
        height: 50px;
        margin-bottom: 8px;
    }
    .contact-modal-option-btn span {
        font-size: 0.9rem;
    }
}

