.about {
    position: relative;
    height: 100vh;
    min-height: 640px;
    color: #ffffff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(10, 10, 10, 0.85) 0%, rgba(10, 10, 10, 0.7) 50%, rgba(10, 10, 10, 0.4) 100%);
    z-index: 1;
}

.about-carousel {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.about-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1s ease, transform 1.2s ease;
}

.about-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.about-overlay {
    position: relative;
    z-index: 2;
    max-width: 900px;
    text-align: center;
    padding: 0 40px;
}

.about-heading {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.85);
}

.about-learn-more-button {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.9);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
}

.about-learn-more-button:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #000000;
    transform: translateY(-2px);
}

.about-learn-more-button:active {
    transform: translateY(0);
}

@media (max-width: 968px) {
    .about {
        height: auto;
        min-height: 520px;
        padding: 4rem 0;
    }
}

@media (max-width: 768px) {
    .about {
        padding: 3.5rem 0;
        min-height: 550px;
        height: auto;
    }

    .about-overlay {
        padding: 0 24px;
    }
}

@media (max-width: 480px) {
    .about {
        padding: 3rem 0;
        min-height: 500px;
        height: auto;
    }
    
    .about-overlay {
        padding: 0 20px;
    }
}
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Image and Video Performance Optimizations */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    max-width: 100%;
    height: auto;
    display: block;
}

img[loading="lazy"] {
    content-visibility: auto;
}

video,
iframe {
    max-width: 100%;
    height: auto;
}

:root {
    --primary-color: #ffffff;
    --secondary-color: #000000;
    --accent-color: #c23535;
    --text-dark: #ffffff;
    --text-light: #b0b0b0;
    --bg-light: #1a1a1a;
    --bg-dark: #000000;
    --bg-section: #0f0f0f;
    --border-color: #333333;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.7);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

/* Proxima Nova font - if you have an Adobe Fonts kit, replace the Typekit link in HTML with your kit ID */

/* @font-face declarations for Proxima Nova - These will work once Adobe Fonts Typekit is properly configured */
/* If you have Proxima Nova font files, uncomment and update paths below */
/*
@font-face {
    font-family: 'Proxima Nova';
    src: url('fonts/ProximaNova-Bold.woff2') format('woff2'),
         url('fonts/ProximaNova-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
*/

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-image {
    height: 50px;
    width: auto;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-link:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--secondary-color);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-dark);
    z-index: -2;
    overflow: hidden;
}

/* Mobile hero background video */
.hero-mobile-video {
    display: none;
}

.hero-tablet-video {
    display: none;
}

/* Tablet portrait mode (768px - 1024px, portrait orientation) */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: portrait) {
    .hero-video {
        display: none !important;
    }
    
    .hero-tablet-video {
        display: block !important;
        position: absolute;
        top: 50%;
        left: 50%;
        width: 100vw;
        height: 100vh;
        min-width: 100%;
        min-height: 100%;
        transform: translate(-50%, -50%);
        object-fit: cover;
        z-index: -2;
        pointer-events: none;
        visibility: visible !important;
        opacity: 1 !important;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
    }
    
    /* Hide ALL video controls for tablet video */
    .hero-tablet-video::-webkit-media-controls,
    .hero-tablet-video::-webkit-media-controls-enclosure,
    .hero-tablet-video::-webkit-media-controls-panel,
    .hero-tablet-video::-webkit-media-controls-play-button,
    .hero-tablet-video::-webkit-media-controls-start-playback-button,
    .hero-tablet-video::-webkit-media-controls-overlay-play-button,
    .hero-tablet-video::-webkit-media-controls-timeline,
    .hero-tablet-video::-webkit-media-controls-current-time-display,
    .hero-tablet-video::-webkit-media-controls-time-remaining-display,
    .hero-tablet-video::-webkit-media-controls-mute-button,
    .hero-tablet-video::-webkit-media-controls-volume-slider,
    .hero-tablet-video::-webkit-media-controls-fullscreen-button,
    .hero-tablet-video::-webkit-media-controls-rewind-button {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
    
    .hero-tablet-video::-webkit-media-controls-overlay-container,
    video.hero-tablet-video::-webkit-media-controls-overlay-container,
    .hero-tablet-video::-webkit-media-controls-overlay-enclosure {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        width: 0 !important;
        height: 0 !important;
    }
    
    .hero-tablet-video {
        -webkit-tap-highlight-color: transparent !important;
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        user-select: none !important;
    }
    
    .hero-mobile-video {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
        min-height: 100dvh; /* Dynamic viewport height for mobile */
        margin: 0;
        padding: 0;
        overflow: hidden;
    }

    .hero-background {
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
    }

    .hero-video {
        display: none;
    }
    
    .hero-tablet-video {
        display: none !important;
    }

    .hero-mobile-video {
        display: block;
        position: absolute;
        top: 50%;
        left: 50%;
        width: 100vw;
        height: 100vh;
        min-width: 100%;
        min-height: 100%;
        transform: translate(-50%, -50%);
        object-fit: cover;
        z-index: -2;
        pointer-events: none;
    }
    
    /* Add invisible overlay to block any Safari play buttons */
    .hero-mobile-video::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9999;
        pointer-events: none;
        background: transparent;
    }

    /* Hide ALL video controls including overlay play buttons */
    .hero-mobile-video {
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
    }

    .hero-mobile-video::-webkit-media-controls {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    .hero-mobile-video::-webkit-media-controls-enclosure {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    .hero-mobile-video::-webkit-media-controls-panel {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    .hero-mobile-video::-webkit-media-controls-play-button {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    .hero-mobile-video::-webkit-media-controls-start-playback-button {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    .hero-mobile-video::-webkit-media-controls-overlay-play-button {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    .hero-mobile-video::-webkit-media-controls-timeline {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    .hero-mobile-video::-webkit-media-controls-current-time-display {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    .hero-mobile-video::-webkit-media-controls-time-remaining-display {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    .hero-mobile-video::-webkit-media-controls-mute-button {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    .hero-mobile-video::-webkit-media-controls-volume-slider {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    .hero-mobile-video::-webkit-media-controls-fullscreen-button {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    .hero-mobile-video::-webkit-media-controls-rewind-button {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    /* Hide controls for other browsers */
    .hero-mobile-video::-moz-media-controls {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    .hero-mobile-video::-ms-media-controls {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    /* Additional Safari/iOS specific overlay hiding */
    .hero-mobile-video[controls] {
        display: none !important;
    }

    video.hero-mobile-video::-webkit-media-controls-overlay-enclosure {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    /* Safari-specific overlay button hiding - more aggressive */
    .hero-mobile-video::-webkit-media-controls-overlay-play-button,
    video.hero-mobile-video::-webkit-media-controls-overlay-play-button,
    .hero-mobile-video[autoplay]::-webkit-media-controls-overlay-play-button,
    .hero-mobile-video[muted]::-webkit-media-controls-overlay-play-button,
    .hero-mobile-video[playsinline]::-webkit-media-controls-overlay-play-button {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        width: 0 !important;
        height: 0 !important;
        position: absolute !important;
        left: -9999px !important;
        top: -9999px !important;
        z-index: -9999 !important;
    }

    /* Hide any Safari overlay containers */
    .hero-mobile-video::-webkit-media-controls-overlay-container,
    video.hero-mobile-video::-webkit-media-controls-overlay-container,
    .hero-mobile-video::-webkit-media-controls-overlay-enclosure {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        width: 0 !important;
        height: 0 !important;
    }

    /* Safari tap highlight removal and prevent interaction */
    .hero-mobile-video {
        -webkit-tap-highlight-color: transparent !important;
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        user-select: none !important;
        -webkit-playsinline: true !important;
    }
    
    /* Hide ALL possible Safari overlay elements */
    .hero-mobile-video *::-webkit-media-controls-overlay-play-button,
    .hero-mobile-video *::-webkit-media-controls-overlay-enclosure,
    .hero-mobile-video *::-webkit-media-controls-overlay-container {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        width: 0 !important;
        height: 0 !important;
    }

    .hero-overlay {
        background: linear-gradient(to right, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.55) 50%, rgba(0, 0, 0, 0.65) 100%);
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 100vh;
        min-height: 100dvh;
    }

    .hero-mobile-video {
        width: 100vw;
        height: 100vh;
        object-fit: cover;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
        -webkit-tap-highlight-color: transparent !important;
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        user-select: none !important;
    }

    .hero-mobile-video::before,
    .hero-mobile-video::after {
        display: none !important;
        content: none !important;
    }
    
    /* Safari overlay hiding at 480px breakpoint */
    .hero-mobile-video::-webkit-media-controls-overlay-play-button,
    video.hero-mobile-video::-webkit-media-controls-overlay-play-button {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        width: 0 !important;
        height: 0 !important;
        position: absolute !important;
        left: -9999px !important;
        top: -9999px !important;
    }
    
    .hero-mobile-video::-webkit-media-controls-overlay-container,
    video.hero-mobile-video::-webkit-media-controls-overlay-container {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -2;
}

@media (min-aspect-ratio: 16/9) {
    .hero-video {
        height: 56.25vw; /* 16:9 aspect ratio */
    }
}

@media (max-aspect-ratio: 16/9) {
    .hero-video {
        width: 177.78vh; /* 16:9 aspect ratio */
    }
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(194, 53, 53, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(194, 53, 53, 0.1) 0%, transparent 50%);
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.65) 50%, rgba(0, 0, 0, 0.75) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-family: 'proxima-nova', 'Proxima Nova', 'ProximaNova', proxima-nova, 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 auto 1.5rem;
    letter-spacing: -1px;
    color: #ffffff;
    white-space: nowrap;
    display: block;
    text-align: center;
    width: 100%;
    font-display: swap;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.title-word {
    display: inline;
    white-space: nowrap;
    font-family: inherit;
    font-weight: inherit;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 300;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition);
    display: inline-block;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--secondary-color);
    box-shadow: 0 10px 30px rgba(194, 53, 53, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(194, 53, 53, 0.4);
}

.btn-secondary {
    background: #ffffff;
    color: #000000;
    border: 2px solid #ffffff;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid #ffffff;
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: #ffffff;
    border-radius: 2px;
    animation: scroll 2s infinite;
}

/* Sections */
section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

section .container {
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 520px;
    margin: 0 auto;
}

.section-title--light {
    color: var(--primary-color);
}

.section-subtitle--light {
    color: rgba(255, 255, 255, 0.6);
}

/* Services Section */
.services {
    padding: 0;
}

.services-wrapper {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: 520px;
    width: 100%;
}

.service-panel {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 520px;
    color: #ffffff;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    transition: transform 0.5s ease;
}

.service-panel--video {
    /* Match actual file name (video.JPG) to ensure image loads */
    background-image: url('images/services/video.JPG');
}

.service-panel--photography {
    background-image: url('images/services/photography.jpg');
}

.service-panel--branding {
    /* Match actual file name (animation.JPG) to ensure image loads */
    background-image: url('images/services/animation.JPG');
}

.service-panel:hover {
    transform: scale(1.02);
}

.service-panel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.8) 95%);
    transition: background 0.4s ease;
}

.service-panel:hover .service-panel-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.88) 95%);
}

.service-panel-content {
    position: relative;
    z-index: 1;
    padding: 3.5rem;
    text-align: left;
    max-width: 420px;
}

.service-panel-label {
    display: inline-block;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    color: rgba(255, 255, 255, 0.65);
}

.service-panel h3 {
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.service-panel p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 1.5rem;
}

.service-panel-button {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.9);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    text-decoration: none;
}

.service-panel-button:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #000000;
    transform: translateY(-2px);
}

.service-panel-button:active {
    transform: translateY(0);
}

.service-panel {
    text-decoration: none;
    color: inherit;
}

.service-panel:hover {
    color: inherit;
}

@media (max-width: 968px) {
    .services-wrapper {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .service-panel {
        min-height: 400px;
    }

    .service-panel-content {
        padding: 2.75rem;
    }
}

@media (max-width: 768px) {
    .services-wrapper {
        gap: 0;
    }

    .service-panel {
        min-height: 320px;
    }

    .service-panel-content {
        padding: 2.25rem;
    }
}

/* Portfolio Section */
.portfolio {
    padding: 0;
}

.portfolio .container {
    padding: 6rem 20px 4rem;
}

.portfolio-grid-wrapper {
    width: 100%;
    padding: 0;
    margin: 0;
}

.portfolio-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    width: 100%;
    gap: 0;
    row-gap: 0;
    column-gap: 0;
    margin: 0;
    padding: 0;
    min-height: 600px;
    visibility: visible;
}

.portfolio-item {
    width: 100%;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16/9;
    opacity: 1 !important;
    transform: none !important;
    display: block !important;
    visibility: visible !important;
    transition: none !important;
    animation: none !important;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-image {
    position: relative;
    width: 100%;
    /* Use padding-top for consistent 16:9 aspect ratio, including Safari */
    padding-top: 56.25%;
    background: var(--bg-dark);
    overflow: hidden;
    opacity: 1 !important; /* 100% opacity - full visibility */
    transition: none !important;
    animation: none !important;
}

.portfolio-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important; /* 100% opacity - full visibility */
    transition: none !important;
    animation: none !important;
    z-index: 1;
}

.portfolio-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
    z-index: 2;
}

.portfolio-play-button:hover {
    transform: translate(-50%, -50%) scale(1.05);
    background: rgba(0, 0, 0, 0.8);
}

.portfolio-play-button.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.portfolio-play-button .play-icon {
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 18px solid #ffffff;
    margin-left: 5px;
}

.portfolio-control-surface {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    cursor: pointer;
    background: rgba(0, 0, 0, 0);
}

.portfolio-control-surface.is-disabled {
    pointer-events: none;
}

.portfolio-pause-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    padding: 0.45rem 1.25rem;
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.portfolio-pause-indicator.is-visible {
    opacity: 1;
}

.clients {
    position: relative;
    background: linear-gradient(180deg, rgba(18, 18, 18, 1) 0%, rgba(10, 10, 10, 1) 100%);
    padding: 6rem 0;
}

.clients::before,
.clients::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    pointer-events: none;
}

.clients::before {
    width: 420px;
    height: 420px;
    top: -120px;
    left: 10%;
    background: rgba(194, 53, 53, 0.4);
}

.clients::after {
    width: 520px;
    height: 520px;
    bottom: -160px;
    right: 12%;
    background: rgba(194, 53, 53, 0.25);
}

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

.clients-header {
    margin-bottom: 3rem;
}

.clients-marquee {
    overflow: hidden;
    position: relative;
}

.clients-track {
    display: flex;
    align-items: center;
    gap: 3rem;
    animation: clientsScroll 30s linear infinite;
    width: max-content;
}

.clients-track:hover {
    animation-play-state: paused;
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    backdrop-filter: blur(6px);
    transition: transform 0.3s ease, background 0.3s ease;
    min-width: 180px;
    min-height: 110px;
}

.client-logo img {
    max-width: 120px;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.7;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.client-logo:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.12);
}

.client-logo:hover img {
    opacity: 1;
    filter: none;
}

@keyframes clientsScroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* Video showcase page */
.video-showcase {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #000;
    color: #ffffff;
    margin: 0;
    min-height: 100vh;
}

body.lock-scroll {
    overflow: hidden;
}

.video-categories {
    display: grid;
    grid-template-rows: repeat(5, minmax(400px, 1fr));
    min-height: 100vh;
    margin-top: 100px;
}

.video-category {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 4rem;
    overflow: hidden;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
    cursor: pointer;
    outline: none;
    text-decoration: none;
    color: inherit;
}

/* Ensure background images are visible on Netlify */
#corporate {
    background-image: url('images/video/corporate.jpg') !important;
}

#commercial {
    background-image: url('images/video/commercial.jpg') !important;
}

#event {
    background-image: url('images/video/event.jpg') !important;
}

#music {
    background-image: url('images/video/fashion.jpg') !important;
}

#wedding {
    background-image: url('images/video/wedding.jpg') !important;
}

.video-category::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    transition: opacity 0.4s ease;
    z-index: 0;
}

.video-category:hover::after,
.video-category:focus-visible::after {
    opacity: 0.5;
}

.video-category:nth-of-type(even) {
    flex-direction: row-reverse;
}

.video-category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.35) 100%);
    z-index: 1;
}

.video-category-content {
    position: relative;
    z-index: 2;
    max-width: 640px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.video-category-action {
    padding: 0.85rem 2.6rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    z-index: 10;
    transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
    opacity: 1 !important;
    pointer-events: auto !important;
    text-decoration: none;
    display: inline-block;
}

.video-category:hover .video-category-action,
.video-category:focus-within .video-category-action {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.video-category-action:hover,
.video-category-action:focus-visible {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.55);
    transform: translateY(-2px);
}

.video-category h2 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1rem;
    letter-spacing: -0.04em;
}

.video-category p {
    font-size: 1.1rem;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.85);
}

.video-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 10000;
}

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

.video-overlay-inner {
    position: relative;
    width: min(1100px, 100%);
}

.video-overlay-frame {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.video-overlay-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    background: #000;
}

.video-overlay-close {
    position: absolute;
    top: -52px;
    right: 0;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    z-index: 10001;
}

.video-overlay-close::before,
.video-overlay-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    background: #ffffff;
    transform-origin: center;
}

.video-overlay-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.video-overlay-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.video-overlay-close:hover {
    background: rgba(255, 255, 255, 0.24);
    transform: translateY(-2px);
}

@media (max-width: 900px) {
    .video-category {
        padding: 4.5rem 2.5rem;
    }

    .video-category-content {
        max-width: 90%;
    }

    .video-overlay-close {
        top: -48px;
    }
}

@media (max-width: 768px) {
    .video-category-action {
        opacity: 1 !important;
        pointer-events: auto !important;
    }
}

@media (max-width: 600px) {
    .video-category {
        padding: 3.5rem 1.5rem;
    }

    .video-category h2 {
        font-size: clamp(2rem, 7vw, 3rem);
    }

    .video-category p {
        font-size: 1rem;
    }

    .video-category-action {
        padding: 0.75rem 2rem;
        font-size: 0.8rem;
    }

    .video-overlay {
        padding: 1.5rem 1rem;
    }

    .video-overlay-inner {
        width: 100%;
    }

    .video-overlay-close {
        top: -44px;
        right: 8px;
        width: 38px;
        height: 38px;
    }
}

/* Gallery Overlay */
.gallery-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 999;
}

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

.gallery-overlay-inner {
    position: relative;
    width: min(1200px, 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding-top: 0;
    z-index: 1;
}

.gallery-overlay-header {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10000;
    pointer-events: none;
    width: calc(100% - 2rem);
    max-width: 1400px;
}

.gallery-overlay-header button {
    pointer-events: auto;
}

.gallery-back-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.gallery-back-button svg {
    width: 18px;
    height: 18px;
}

.gallery-back-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateX(-2px);
}

.gallery-overlay-close {
    position: relative;
    top: 0;
    right: 0;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    z-index: 10;
}

.gallery-overlay-close::before,
.gallery-overlay-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    background: #ffffff;
    transform-origin: center;
}

.gallery-overlay-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.gallery-overlay-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.gallery-overlay-close:hover {
    background: rgba(255, 255, 255, 0.24);
    transform: translateY(-2px);
}

.gallery-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.gallery-grid-container {
    width: 100%;
    max-width: 1400px;
    max-height: calc(90vh - 6rem);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2rem;
    padding-top: 5.5rem;
    padding-bottom: 2rem;
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem !important;
    row-gap: 1.25rem !important;
    column-gap: 1.25rem !important;
    -webkit-overflow-scrolling: touch;
    grid-auto-flow: row;
    align-items: start;
    box-sizing: border-box;
    grid-auto-rows: min-content;
}

.gallery-grid-container::-webkit-scrollbar {
    width: 8px;
}

.gallery-grid-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.gallery-grid-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.gallery-grid-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.gallery-grid-item {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: rgba(0, 0, 0, 0.3);
    display: block;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
    height: auto;
    grid-column: span 1;
    grid-row: span 1;
    justify-self: stretch;
    align-self: start;
}

.gallery-grid-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.gallery-grid-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-grid-item:hover .gallery-grid-image {
    transform: scale(1.05);
}

.gallery-viewport {
    position: relative;
    width: 100%;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
}

.gallery-image {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.gallery-nav {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
}

.gallery-nav svg {
    width: 24px;
    height: 24px;
}

.gallery-nav:hover {
    background: rgba(255, 255, 255, 0.24);
    transform: scale(1.1);
}

.gallery-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.gallery-info {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.gallery-counter {
    font-weight: 500;
}

@media (max-width: 900px) {
    .gallery-overlay-header {
        top: 1rem;
        left: 1rem;
        right: 1rem;
        padding: 0 1.5rem;
        z-index: 10000;
    }

    .gallery-back-button {
        padding: 0.65rem 1.25rem;
        font-size: 0.85rem;
    }

    .gallery-back-button svg {
        width: 16px;
        height: 16px;
    }

    .gallery-overlay-close {
        width: 40px;
        height: 40px;
    }

    .gallery-grid-container {
        max-height: calc(85vh - 5rem);
        padding-top: 5rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        padding-bottom: 1.5rem;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
        row-gap: 1rem !important;
        column-gap: 1rem !important;
        grid-auto-flow: row;
        align-items: start;
        grid-auto-rows: min-content;
    }

    .gallery-nav {
        width: 40px;
        height: 40px;
    }

    .gallery-nav svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 600px) {
    .gallery-overlay {
        padding: 1rem 0.5rem;
    }

    .gallery-overlay-inner {
        width: 100%;
    }

    .gallery-overlay-header {
        top: 0.75rem;
        left: 0.75rem;
        right: 0.75rem;
        padding: 0 0.75rem;
        z-index: 10000;
    }

    .gallery-back-button {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        min-width: 44px;
        min-height: 44px;
    }

    .gallery-back-button svg {
        width: 16px;
        height: 16px;
    }

    .gallery-back-button span {
        display: none;
    }

    .gallery-overlay-close {
        position: relative;
        top: 0;
        right: 0;
        width: 38px;
        height: 38px;
        min-width: 38px;
        min-height: 38px;
    }

    .gallery-grid-container {
        max-height: calc(90vh - 4rem);
        padding-top: 4rem;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        padding-bottom: 1rem;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
        row-gap: 1rem !important;
        column-gap: 1rem !important;
        grid-auto-flow: row;
        align-items: start;
        grid-auto-rows: min-content;
    }

    .gallery-container {
        gap: 0.5rem;
    }

    .gallery-nav {
        width: 36px;
        height: 36px;
    }

    .gallery-nav svg {
        width: 18px;
        height: 18px;
    }

    .gallery-viewport {
        max-height: 75vh;
    }

    .gallery-image {
        max-height: 75vh;
    }

    .gallery-grid-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
        row-gap: 1rem !important;
        column-gap: 1rem !important;
        padding: 1.5rem;
        padding-top: 5rem;
        padding-bottom: 1.5rem;
        max-height: 85vh;
        grid-auto-flow: row;
        align-items: start;
        grid-auto-rows: min-content;
    }
    
    .gallery-grid-item {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        justify-self: stretch;
        align-self: start;
    }
}

@media (max-width: 430px) {
    .gallery-overlay-header {
        top: 0.75rem;
        left: 0.75rem;
        right: 0.75rem;
        padding: 0 0.75rem;
        z-index: 10000;
    }

    .gallery-grid-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
        row-gap: 1rem !important;
        column-gap: 1rem !important;
        padding: 0.75rem;
        padding-top: 4rem;
        padding-bottom: 1rem;
        grid-auto-flow: row;
        align-items: start;
        grid-auto-rows: min-content;
    }
    
    .gallery-grid-item {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        grid-column: span 1;
        grid-row: span 1;
        justify-self: stretch;
        align-self: start;
    }
}

/* iPhone 14 Pro and similar sizes - ensure grid works */
@media (max-width: 393px) {
    .gallery-overlay-header {
        top: 0.75rem;
        left: 0.75rem;
        right: 0.75rem;
        padding: 0 0.75rem;
        z-index: 10000;
    }

    .gallery-grid-container {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
        row-gap: 1rem !important;
        column-gap: 1rem !important;
        padding: 0.75rem;
        padding-top: 4rem;
        padding-bottom: 1rem;
        grid-auto-flow: row;
        align-items: start;
        grid-auto-rows: min-content;
    }
    
    .gallery-grid-item {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        grid-column: span 1;
        grid-row: span 1;
        justify-self: stretch;
        align-self: start;
    }
}

/* Smaller iPhones */
@media (max-width: 375px) {
    .gallery-overlay-header {
        top: 0.5rem;
        left: 0.5rem;
        right: 0.5rem;
        padding: 0 0.5rem;
        z-index: 10000;
    }

    .gallery-grid-container {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
        row-gap: 1rem !important;
        column-gap: 1rem !important;
        padding: 0.5rem;
        padding-top: 3.75rem;
        padding-bottom: 0.75rem;
        grid-auto-flow: row;
        align-items: start;
        grid-auto-rows: min-content;
    }
    
    .gallery-grid-item {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        grid-column: span 1;
        grid-row: span 1;
        justify-self: stretch;
        align-self: start;
    }
}

/* Fullscreen overlay */
.fullscreen-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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

.fullscreen-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease;
    z-index: 10001;
}

.fullscreen-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.fullscreen-image {
    max-width: 95vw;
    max-height: 95vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.fullscreen-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease;
    z-index: 10001;
}

.fullscreen-nav svg {
    width: 28px;
    height: 28px;
}

.fullscreen-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.fullscreen-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.fullscreen-nav-prev {
    left: 2rem;
}

.fullscreen-nav-next {
    right: 2rem;
}

@media (max-width: 768px) {
    .fullscreen-close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .fullscreen-nav {
        width: 44px;
        height: 44px;
    }

    .fullscreen-nav svg {
        width: 24px;
        height: 24px;
    }

    .fullscreen-nav-prev {
        left: 1rem;
    }

    .fullscreen-nav-next {
        right: 1rem;
    }

    .fullscreen-image {
        max-width: 100vw;
        max-height: 100vh;
    }
}

.portfolio-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    opacity: 0.3;
}

.portfolio-placeholder svg {
    width: 80px;
    height: 80px;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 3rem;
    color: var(--secondary-color);
    opacity: 0.7;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
    display: none;
}

.portfolio-overlay h3,
.portfolio-overlay p {
    pointer-events: none;
}

.portfolio-video {
    z-index: 0;
}

.portfolio-overlay h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.portfolio-overlay p {
    opacity: 0.8;
    font-size: 0.95rem;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-background {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.85) 60%, rgba(10, 10, 10, 0.95) 100%), url('images/contact/contact-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.9;
    filter: saturate(115%);
    z-index: 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-color), #d64a4a);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.contact-item p {
    color: var(--text-light);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-family: inherit;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-light);
    color: var(--primary-color);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(194, 53, 53, 0.2);
    background: var(--bg-section);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Footer */
.footer {
    background: var(--bg-section);
    color: #ffffff;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 1.25rem 0 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.footer-brand p {
    color: #ffffff;
    opacity: 0.9;
    line-height: 1.8;
}

.footer-links h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.footer-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    display: block;
    background: transparent !important;
    background-color: transparent !important;
    mix-blend-mode: normal;
}

/* Remove black background from SVG logo and any container */
.footer-logo img,
.footer-brand img.footer-logo,
.footer-brand .footer-logo {
    background: transparent !important;
    background-color: transparent !important;
}

.footer-brand {
    background: transparent !important;
    background-color: transparent !important;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    opacity: 0.85;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: #ffffff;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: var(--transition);
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.social-links svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    opacity: 0.85;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(15px);
    }
}

/* Tablet Landscape (768px - 1024px, landscape orientation) - Higher specificity */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
    .portfolio-grid {
        gap: 0 !important;
        row-gap: 0 !important;
        column-gap: 0 !important;
        min-height: auto !important;
    }
    
    .portfolio-item {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .portfolio .container {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
    
    .portfolio {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
    
    .portfolio-grid-wrapper {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
    
    .about {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    
    .about-overlay {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    
    section {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    
    /* Specifically target portfolio section - remove all spacing */
    section.portfolio {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Remove section header spacing in portfolio */
    .portfolio .section-header {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    
    .portfolio .section-title {
        margin-top: 0 !important;
        margin-bottom: 0.25rem !important;
    }
    
    .portfolio .section-subtitle {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
    
    /* Ensure container has minimal spacing */
    .portfolio > .container {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
    
    /* Remove spacing from the first container (section header) */
    .portfolio .container:first-child {
        padding-top: 0.25rem !important;
        padding-bottom: 0.25rem !important;
        margin-bottom: 0 !important;
    }
    
    /* Remove any spacing from portfolio grid wrapper */
    .portfolio-grid-wrapper {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    
    /* Override any section padding that might be applied */
    #portfolio.portfolio,
    section#portfolio,
    section.portfolio {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Make sure the grid itself has no min-height causing extra space */
    .portfolio-grid {
        min-height: auto !important;
        height: auto !important;
        max-height: none !important;
    }
    
    /* Override the 968px media query for tablet landscape */
    .portfolio .container .section-header {
        margin-bottom: 0.25rem !important;
    }
    
    /* Ensure no spacing between containers */
    .portfolio .container + .portfolio-grid-wrapper {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

/* Responsive Design */
@media (max-width: 968px) and (orientation: portrait) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 0 !important;
        row-gap: 0 !important;
        column-gap: 0 !important;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: var(--bg-dark);
        width: 100%;
        padding: 2rem;
        box-shadow: var(--shadow);
        transition: var(--transition);
        gap: 1.5rem;
        border-top: 1px solid var(--border-color);
    }

    .nav-menu.active {
        left: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .about-container {
        padding: 0 24px;
    }

    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-text {
        max-width: none;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

}

@media (max-width: 768px) {
    section {
        padding: 2rem 0;
    }

    /* Remove extra spacing between sections on mobile */
    .hero {
        margin-bottom: 0;
        padding-bottom: 0;
        margin-top: 0;
        padding-top: 0;
    }

    .services {
        margin-top: 0;
        margin-bottom: 0;
        padding-top: 0;
        padding-bottom: 0;
    }

    .portfolio {
        margin-top: 0;
        margin-bottom: 0;
        padding-top: 0;
        padding-bottom: 0;
    }

    .portfolio .container {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .about {
        margin-top: 0;
        margin-bottom: 0;
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
        min-height: 550px;
        height: auto;
    }

    .clients {
        margin-top: 0;
        margin-bottom: 0;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .contact {
        margin-top: 0;
        padding-top: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        text-align: center;
    }

    .section-header {
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    section {
        padding: 1.5rem 0;
    }

    .portfolio .container {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .about {
        padding-top: 3rem;
        padding-bottom: 3rem;
        min-height: 500px;
        height: auto;
    }

    .clients {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .contact {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .service-card,
    .portfolio-item {
        border-radius: 15px;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* About Page Styles */

.about-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.about-hero-subtitle {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    letter-spacing: 0.05em;
}

.about-bio-section {
    position: relative;
    padding: 8rem 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    overflow: hidden;
    scroll-margin-top: 80px;
}

.about-bio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(18, 18, 18, 0.85) 0%, rgba(10, 10, 10, 0.9) 100%);
    z-index: 1;
}

.about-bio-section .container {
    position: relative;
    z-index: 2;
}


.about-bio-header {
    text-align: center;
    margin-bottom: 4rem;
}

.about-bio-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about-bio-text {
    margin-top: 2rem;
}

.about-bio-text p {
    font-size: 1.125rem;
    line-height: 1.9;
    margin-bottom: 1.75rem;
    color: rgba(255, 255, 255, 0.85);
}

.about-bio-text p:last-child {
    margin-bottom: 0;
}

.about-bio-tagline {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.1em !important;
    text-align: center !important;
    margin-top: 2.5rem !important;
    margin-bottom: 0 !important;
    color: rgba(255, 255, 255, 0.95) !important;
    opacity: 0.9;
}

.team-section {
    position: relative;
    padding: 6rem 0;
    background: #0f0f0f;
    color: #ffffff;
}

.team-section.clients-style {
    background: linear-gradient(180deg, rgba(18, 18, 18, 1) 0%, rgba(10, 10, 10, 1) 100%);
}

.team-section.clients-style::before,
.team-section.clients-style::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    pointer-events: none;
    z-index: 1;
}

.team-section.clients-style::before {
    width: 420px;
    height: 420px;
    top: -120px;
    left: 10%;
    background: rgba(194, 53, 53, 0.4);
}

.team-section.clients-style::after {
    width: 520px;
    height: 520px;
    bottom: -160px;
    right: 12%;
    background: rgba(194, 53, 53, 0.25);
}

.team-section .container {
    position: relative;
    z-index: 2;
}

.team-header {
    text-align: center;
    margin-bottom: 4rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.team-member-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.team-member:hover .team-member-image {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.team-member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-member-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.team-member-role {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

.team-member-bio {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    text-align: left;
}

.freelancer-section {
    position: relative;
    padding: 6rem 0;
    background: #0a0a0a;
    color: #ffffff;
    overflow: hidden;
    min-height: 100vh;
}

.freelancer-carousel {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.freelancer-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1s ease, transform 1.2s ease;
}

.freelancer-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.freelancer-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.85) 0%, rgba(10, 10, 10, 0.9) 100%);
    z-index: 1;
}

.freelancer-header {
    text-align: center;
    margin-bottom: 3rem;
}

.freelancer-section .container {
    position: relative;
    z-index: 2;
}

.freelancer-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.freelancer-content > p {
    font-size: 1.125rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.85);
}

.freelancer-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.freelancer-category {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    max-width: 280px;
    margin: 0 auto;
}

.freelancer-category:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

.freelancer-category-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.freelancer-category-content p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
}

/* Modern Freelancer Category Style */
.freelancer-category-modern {
    padding: 2.5rem 2rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 300px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.freelancer-category-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.freelancer-category-modern:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.freelancer-category-modern:hover::before {
    transform: scaleX(1);
}

.freelancer-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.4s ease;
}

.freelancer-icon svg {
    width: 32px;
    height: 32px;
}

.freelancer-category-modern:hover .freelancer-icon {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
    color: #ffffff;
}

.freelancer-category-modern h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.freelancer-category-modern p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

.freelancer-cta {
    text-align: center;
    margin-top: 2.5rem;
}

@media (max-width: 968px) {
    .about-bio-section {
        padding: 6rem 0 4rem 0;
    }

    .team-section,
    .freelancer-section {
        padding: 4rem 0;
    }


    .team-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 0 1.5rem;
    }

    .freelancer-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .freelancer-category-modern {
        padding: 2rem 1.5rem;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .about-bio-section {
        padding-top: 8rem;
        scroll-margin-top: 80px;
    }

    .about-bio-header {
        margin-bottom: 3rem;
        padding-top: 2rem;
    }

    .about-bio-content,
    .freelancer-content {
        padding: 0 1rem;
    }

    .about-bio-text p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .team-member-image {
        width: 160px;
        height: 160px;
    }

    .team-member-name {
        font-size: 1.25rem;
    }

    .freelancer-category {
        padding: 1.5rem;
    }
}

/* Category Page Styles */
.category-page-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 8rem 0 6rem;
    color: #ffffff;
}

.category-page-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.category-page-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.category-page-hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.category-page-hero-content p {
    font-size: 1.25rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto;
}

.category-page-content {
    padding: 0;
    background: #0f0f0f;
    color: #ffffff;
}

.category-page-text {
    max-width: 900px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
}

.category-page-text h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.category-page-text h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    margin: 3rem 0 1.5rem;
    color: var(--primary-color);
}

.category-page-text p {
    font-size: 1.125rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.85);
}

.category-page-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.category-page-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    font-size: 1.125rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
}

.category-page-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 600;
}

.category-page-video {
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
}

.category-page-video h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--primary-color);
}

.category-video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.category-video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}


.category-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.category-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 16 / 9;
    background: #1a1a1a;
}

.category-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-gallery-item:hover img {
    transform: scale(1.05);
}

.category-page-cta {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.category-page-cta h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .category-page-hero {
        min-height: 50vh;
        padding: 6rem 0 4rem;
    }

    .category-page-hero-content h1 {
        font-size: clamp(2rem, 7vw, 3rem);
    }

    .category-page-hero-content p {
        font-size: 1.1rem;
    }

    .category-page-content {
        padding: 0;
    }

    .category-page-text,
    .category-page-video,
    .category-page-gallery {
        padding: 0 1.5rem;
        margin-bottom: 3rem;
    }

    .category-page-text p,
    .category-page-list li {
        font-size: 1rem;
    }

    .category-gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    .category-page-cta {
        padding: 3rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .category-page-hero {
        padding: 5rem 0 3rem;
    }

    .category-gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Category Hero Video Background */
.category-hero-video {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #ffffff;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.category-video-background {
    position: absolute;
    top: 0;
    left: 50%;
    width: 100vw;
    height: 100%;
    z-index: 0;
    transform: translateX(-50%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Videos will always attempt to play on all devices */

.category-hero-iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    min-width: 100vw;
    min-height: 100%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    object-fit: cover;
    z-index: 0;
    border: none;
}

/* Hide any Vimeo iframe overlays */
.category-hero-iframe::before,
.category-hero-iframe::after {
    display: none !important;
    content: none !important;
}

/* Local video element for category pages */
.category-hero-video-element {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    min-width: 100vw;
    min-height: 100%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    object-fit: cover;
    z-index: 0;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    border: none !important;
    outline: none !important;
}

/* Desktop videos - show on screens > 768px */
.category-hero-video-desktop {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Mobile videos - hide on desktop, show on mobile/tablet */
.category-hero-video-mobile {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

@media (max-width: 768px) {
    /* Hide desktop videos/Vimeo iframes on mobile/tablet */
    .category-hero-video-desktop,
    .category-hero-iframe {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    /* Show mobile videos on mobile/tablet */
    .category-hero-video-mobile {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Make container 1:1 aspect ratio on mobile */
    .category-hero-video {
        min-height: 0;
        aspect-ratio: 1 / 1;
        height: 100vw; /* Square: width equals height */
    }
    
    .category-video-background {
        height: 100%;
        aspect-ratio: 1 / 1;
    }
    
    /* Video fills the 1:1 container */
    .category-hero-video-element {
        width: 100%;
        height: 100%;
        object-fit: cover !important;
    }
}

.category-hero-video-element::before,
.category-hero-video-element::after {
    display: none !important;
    content: none !important;
}

/* Hide ALL video controls including overlay play buttons */
.category-hero-video-element {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.category-hero-video-element::-webkit-media-controls {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.category-hero-video-element::-webkit-media-controls-enclosure {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.category-hero-video-element::-webkit-media-controls-panel {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.category-hero-video-element::-webkit-media-controls-play-button {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.category-hero-video-element::-webkit-media-controls-start-playback-button {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.category-hero-video-element::-webkit-media-controls-overlay-play-button {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.category-hero-video-element::-webkit-media-controls-timeline {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.category-hero-video-element::-webkit-media-controls-current-time-display {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.category-hero-video-element::-webkit-media-controls-time-remaining-display {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.category-hero-video-element::-webkit-media-controls-mute-button {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.category-hero-video-element::-webkit-media-controls-volume-slider {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.category-hero-video-element::-webkit-media-controls-fullscreen-button {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.category-hero-video-element::-webkit-media-controls-rewind-button {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.category-hero-video-element::-moz-media-controls {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.category-hero-video-element::-ms-media-controls {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Additional Safari/iOS specific overlay hiding */
.category-hero-video-element[controls] {
    display: none !important;
}

video.category-hero-video-element::-webkit-media-controls-overlay-enclosure {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Safari-specific overlay button hiding for category videos - more aggressive */
.category-hero-video-element::-webkit-media-controls-overlay-play-button,
video.category-hero-video-element::-webkit-media-controls-overlay-play-button,
.category-hero-video-element[autoplay]::-webkit-media-controls-overlay-play-button,
.category-hero-video-element[muted]::-webkit-media-controls-overlay-play-button {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
}

/* Hide any Safari overlay containers for category videos */
.category-hero-video-element::-webkit-media-controls-overlay-container,
video.category-hero-video-element::-webkit-media-controls-overlay-container {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Safari tap highlight removal for category videos */
.category-hero-video-element {
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
}

video.hero-mobile-video::-webkit-media-controls-overlay-enclosure {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Global rule to hide any video overlay play buttons */
video[autoplay][muted]::-webkit-media-controls-overlay-play-button {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
}

video[autoplay][muted]::-webkit-media-controls-overlay-enclosure {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

video[autoplay][muted]::-webkit-media-controls-overlay-container {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Safari-specific: Hide any remaining overlay elements */
video::-webkit-media-controls-overlay-play-button,
video[autoplay]::-webkit-media-controls-overlay-play-button,
video[muted]::-webkit-media-controls-overlay-play-button {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
}

.category-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
}

.category-hero-video .container {
    position: relative;
    z-index: 2;
    padding: 8rem 0 4rem;
}

.scroll-down-arrow {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: rgba(255, 255, 255, 0.8);
    animation: bounce 2s infinite;
    cursor: pointer;
    transition: color 0.3s ease;
}

.scroll-down-arrow:hover {
    color: #ffffff;
}

.scroll-down-arrow svg {
    width: 32px;
    height: 32px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Category Offer Grid */
.category-offer-grid {
    width: 100vw;
    margin: 0;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: 3rem 2rem;
    position: relative;
    border-radius: 0;
    margin-top: 0;
    margin-bottom: 0;
}

.category-offer-grid.clients-style {
    background: linear-gradient(180deg, rgba(18, 18, 18, 1) 0%, rgba(10, 10, 10, 1) 100%);
}

.category-offer-grid.clients-style::before,
.category-offer-grid.clients-style::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    pointer-events: none;
    z-index: 1;
}

.category-offer-grid.clients-style::before {
    width: 420px;
    height: 420px;
    top: -120px;
    left: 10%;
    background: rgba(194, 53, 53, 0.4);
}

.category-offer-grid.clients-style::after {
    width: 520px;
    height: 520px;
    bottom: -160px;
    right: 12%;
    background: rgba(194, 53, 53, 0.25);
}

.category-offer-grid.clients-style .category-offer-title,
.category-offer-grid.clients-style .category-offer-items {
    position: relative;
    z-index: 2;
}

.category-offer-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--primary-color);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.category-offer-text {
    max-width: 900px;
    margin: 0 auto 2.5rem;
    padding: 0 2rem;
    text-align: center;
}

.category-offer-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.category-offer-text p:last-child {
    margin-bottom: 0;
}

.category-offer-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.category-offer-item {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.category-offer-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

.category-offer-item h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.category-offer-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

/* Modern category offer items with icons */
.category-offer-item-modern {
    padding: 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.category-offer-item-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.category-offer-item-modern:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.category-offer-item-modern:hover::before {
    transform: scaleX(1);
}

.category-offer-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.4s ease;
}

.category-offer-icon svg {
    width: 28px;
    height: 28px;
}

.category-offer-item-modern:hover .category-offer-icon {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
    color: #ffffff;
}

.category-offer-item-modern h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.category-offer-item-modern p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

/* Category Gallery Section - Like About Section */
.category-gallery-section {
    position: relative;
    width: 100vw;
    height: 60vh;
    min-height: 500px;
    max-height: 700px;
    color: #ffffff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    margin-top: 0;
    margin-bottom: 0;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.category-gallery-carousel {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.category-gallery-carousel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1;
    pointer-events: none;
}

.category-gallery-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1s ease, transform 1.2s ease;
}

.category-gallery-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.category-gallery-overlay {
    position: relative;
    z-index: 3;
    max-width: 900px;
    width: 100%;
    text-align: center;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-gallery-cta {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.category-gallery-cta h2 {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

.category-gallery-cta .service-panel-button {
    display: inline-block;
}

/* Update CTA in clients-style section */
.team-section.clients-style .category-page-cta {
    background: transparent;
    border: none;
    padding: 2rem 0;
}

@media (max-width: 768px) {
    .category-hero-video {
        min-height: 70vh;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
    }

    .category-video-background {
        width: 100vw;
        left: 50%;
        transform: translateX(-50%);
    }

    .category-hero-iframe {
        width: 100vw;
        min-width: 100vw;
    }

    .category-hero-video .container {
        padding: 6rem 0 4rem;
    }

    .scroll-down-arrow {
        bottom: 1.5rem;
    }

    .scroll-down-arrow svg {
        width: 28px;
        height: 28px;
    }

    .category-offer-text {
        padding: 0 1rem;
        margin-bottom: 2rem;
    }

    .category-offer-text p {
        font-size: 0.95rem;
    }

    .category-offer-grid {
        padding: 2.5rem 1rem;
    }

    .category-offer-title {
        font-size: clamp(1.25rem, 4vw, 1.75rem);
        margin-bottom: 2rem;
        padding: 0 1rem;
    }

    .category-offer-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
        padding: 0 1rem;
    }

    .category-offer-item,
    .category-offer-item-modern {
        padding: 1.5rem 1.25rem;
    }

    .category-gallery-section {
        height: 50vh;
        min-height: 400px;
        max-height: 600px;
    }

    .category-gallery-overlay {
        padding: 0 24px;
    }

    .category-gallery-cta h2 {
        font-size: clamp(2rem, 5vw, 3rem);
        margin-bottom: 1.5rem;
    }

    .category-gallery-cta {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .category-offer-items {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .category-hero-video {
        min-height: 60vh;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
    }

    .category-video-background {
        width: 100vw;
        left: 50%;
        transform: translateX(-50%);
    }

    .category-hero-iframe {
        width: 100vw;
        min-width: 100vw;
    }

    .category-gallery-section {
        height: 45vh;
        min-height: 350px;
        max-height: 500px;
    }

    .category-gallery-cta h2 {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
        margin-bottom: 1.5rem;
    }

    .category-gallery-cta {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
}
