@import "fonts.css";
@import "theme.css";

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 12px;
}

/* Prevent body overflow from propagating to viewport so body becomes
   the actual scroll container for CSS scroll-snap */
html:has(body.page-home) {
    overflow: hidden;
}

/* Native CSS scroll snap for home page fullscreen sections */
body.page-home {
    overflow-y: scroll;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    height: 100vh;
}

body.page-home .fullscreen-section {
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

/* Smooth crossfade from poster to iframe on home page */
body.page-home .vimeo-poster,
body.page-home .youtube-poster {
    transition: opacity 0.5s ease;
}

/* About page top spacer — keeps the first block clear of the fixed 90px header.
   Equivalent in spirit to .work-detail-header on the work detail pages. */
body.page-about main.container {
    padding-top: 120px;
}

body {
    /* Update to use Raleway */
    font-family: var(--font-raleway), sans-serif;
    line-height: 1.6;
    color: var(--white);
    overflow-x: hidden;
    background: #000;
}

.site-wrapper {
    width: 100%;
    margin: 0 auto;
    position: relative;
    background: #000;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.site-wrapper.boxed {
    max-width: var(--container-width);
}

body.page-loaded .site-wrapper {
    opacity: 1;
}

body.page-exit .site-wrapper {
    opacity: 0;
}

.container-width {
    width: 100%;
}

.container-width.boxed,
.site-wrapper.boxed~.container-width,
.slim-footer.container-width.boxed {
    max-width: var(--container-width);
    width: var(--container-width);
}

header.container-width.full-width,
footer.container-width.full-width,
.container-width.full-width {
    width: 100%;
    max-width: 100%;
}

/* Example: Using a specific weight */
.section-title {
    font-family: var(--font-raleway), sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    /* Raleway variable font will provide this weight */
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
}

.bg-pattern {
    background-image: url("../images/bgr.png");
    /* Your GIF image */
    background-color: rgba(0, 0, 0, 0.5);
    /* Semi-transparent black background */
    background-repeat: repeat;
    background-origin: border-box;
    background-position: center center;
}

body.page-home .overlay-pattern .video-background::after,
body.page-work-list .overlay-pattern .video-background::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../images/bgr.png");
    background-repeat: repeat;
    background-position: center center;
    z-index: 2;
    transition: opacity 0.3s ease;
    pointer-events: none;
    /* Allows clicks to pass through to the video */
}

/* Hide overlay on hover */
body.page-home .overlay-pattern .video-background:hover::after,
body.page-work-list .overlay-pattern .video-background:hover::after {
    opacity: 0;
}

/* Hide overlay when video is playing (handled by JS class) */
body.page-home .overlay-pattern .video-wrapper.is-playing::after,
body.page-work-list .overlay-pattern .video-wrapper.is-playing::after {
    opacity: 0;
}

.font-size-15 {
    font-size: 15px;
}

.font-size-12 {
    font-size: 12px;
}

.bold {
    font-weight: bold;
}

.extra-bold {
    font-weight: 800;
}

.text-red {
    color: var(--primary);
}

.text-white:hover {
    color: var(--white);
}

.hover-text-white:hover {
    color: var(--white);
}

.bottom-130px {
    bottom: 130px;
}

.animate-color-05 {
    transition-duration: .5s;
    transition-property: color;
}

/* Title hover effect - same as menu links */
.title-hover {
    transition: color 0.5s ease;
}

.title-hover:hover {
    color: var(--white);
}

.mx-10 {
    margin-left: 10px;
    margin-right: 10px;
}

.mx-15 {
    margin-left: 15px;
    margin-right: 15px;
}

.px-10 {
    padding-left: 10px;
    padding-right: 10px;
}

.px-20 {
    padding-left: 20px;
    padding-right: 20px;
}

.px-60 {
    padding-left: 60px;
    padding-right: 60px;
}

.py-25 {
    padding-top: 25px;
    padding-bottom: 25px;
}

.align-justify {
    text-align: justify;
}

.h-90px {
    height: 90px;
}

.w-100 {
    width: 100%;
}

.w-100px {
    width: 100px;
}

.h-auto {
    height: auto;
}

.v-auto {
    width: auto;
}

.h-48px {
    height: 48px;
}

.h-120px {
    height: 120px;
}

.overflow-hidden {
    overflow: hidden;
}

.uppercase {
    text-transform: uppercase;
}

.text-v-center {
    vertical-align: middle;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.fixed-center {
    left: 50%;
    transform: translateX(-50%);
}

.relative {
    position: relative;
}

.left-0 {
    left: 0;
}

.right-0 {
    right: 0;
}

.top-0 {
    top: 0;
}

.mt-15 {
    margin-top: 15rem !important;
}

.bottom-0 {
    bottom: 0;
}

.right-0 {
    right: 0;
}

.z-10 {
    z-index: 10;
}

/* Container */
.container {
    display: grid;
    grid-template-rows: auto;
    width: 100%;
}

.hidden {
    display: none !important;
}

.uppercase {
    text-transform: uppercase;
}

.flex {
    display: flex;
}

.flex-row {
    flex-direction: row;
}

.flex-col {
    flex-direction: column;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-end {
    justify-content: flex-end;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.items-end {
    align-items: flex-end;
}

.items-stretch {
    align-items: stretch;
}

.text-align-center {
    text-align: center;
}

.content-center {
    align-content: center;
}

/* Fullscreen Sections */
.description-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

.description-text iframe {
    max-width: 100%;
    margin: 1rem 0;
}

/* Force iframe in text blocks to be full width/height */
.description-text:has(iframe:only-child) {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    display: flex;
}

.description-text iframe:only-child {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    border: none;
    flex: 1;
}

/* Ensure parents of absolute iframes can be full height too */
.description-text:has(iframe[style*="position: absolute"]) {
    height: 100%;
}

/* On home/fullscreen sections, the .content wrapper needs to allow full height */
.fullscreen-section:not(.boxed) .content:has(.description-text iframe:only-child) {
    width: 100vw;
    height: 100vh;
    max-width: none;
    padding: 0;
    margin: 0;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
}

/* On boxed/work pages, respect the container but still allow full height of the section */
.site-wrapper.boxed .fullscreen-section .content:has(.description-text iframe:only-child) {
    width: 100%;
    height: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
}

/* Aspect ratio for absolute iframes if needed */
.description-text:has(iframe[style*="position: absolute"]) {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* Default 16:9 */
    height: 0;
}

.description-text iframe[style*="position: absolute"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.fullscreen-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    /* Ensure fullscreen even if content is smaller */
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    overflow: hidden;
    background: #000;
}

/* Minimum height - block takes only the space needed for its content */
.fullscreen-section.minimum-height {
    height: auto;
    min-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
    justify-content: flex-start;
    align-items: stretch;
}

.fullscreen-section.minimum-height .content {
    padding-top: 0;
    padding-bottom: 0;
}

/* Pull content overlays back into normal flow so the section can size to its
   contents. Without this, position:absolute overlays collapse the section to
   0 height and the text ends up pinned to the page top, behind the header. */
.fullscreen-section.minimum-height .content.content-before,
.fullscreen-section.minimum-height .content.content-over,
.fullscreen-section.minimum-height .content.content-after {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
    pointer-events: auto;
    max-width: var(--container-width, 1200px);
}

.fullscreen-section.minimum-height .video-background {
    position: relative;
    height: auto;
}

.fullscreen-section.minimum-height .video-background video,
.fullscreen-section.minimum-height .video-background img {
    position: relative;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Section header info — hidden by default, shown only in simple-text */
.section-header-info {
    display: none;
}

.section-header-info.simple-text {
    display: block;
    margin-bottom: 0.5rem;
}

.section-header-info.simple-text .section-header-title {
    font-family: var(--font-raleway), sans-serif;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--primary, #e23740);
    margin: 0 0 0.2rem 0;
    text-shadow: none;
}

.section-header-info.simple-text .section-header-subtitle {
    font-family: var(--font-raleway), sans-serif;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    font-weight: 400;
    color: #fff;
    opacity: 0.8;
    margin: 0;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--primary, #e23740);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.section-header-info.minimum-height {
    padding: 0;
    margin: 0;
}

/* Simple text - flowing text content, no fullscreen, no absolute positioning */
.fullscreen-section.simple-text {
    height: auto;
    min-height: 0;
    overflow: visible;
    padding: 40px 60px;
    justify-content: flex-start;
}

.fullscreen-section.simple-text .video-background {
    position: relative;
    height: auto;
}

.fullscreen-section.simple-text .video-background video,
.fullscreen-section.simple-text .video-background img {
    position: relative;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.fullscreen-section.simple-text .video-overlay {
    display: none;
}

.fullscreen-section.simple-text .section-footer-info {
    display: none;
}

.fullscreen-section.simple-text .content.content-before,
.fullscreen-section.simple-text .content.content-over,
.fullscreen-section.simple-text .content.content-after {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
    pointer-events: auto;
    max-width: var(--container-width, 1200px);
}

.fullscreen-section.simple-text .section-header-info {
    display: block;
    margin-bottom: 0.5rem;
}

.fullscreen-section.simple-text .section-header-title {
    font-family: var(--font-raleway), sans-serif;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--primary, #e23740);
    margin: 0 0 0.2rem 0;
    text-shadow: none;
}

.fullscreen-section.simple-text .section-header-subtitle {
    font-family: var(--font-raleway), sans-serif;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    font-weight: 400;
    color: #fff;
    opacity: 0.8;
    margin: 0;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--primary, #e23740);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.fullscreen-section.simple-text .section-title {
    font-family: var(--font-raleway), sans-serif;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--primary, #e23740);
    text-shadow: none;
    margin-bottom: 0.3rem;
}

.fullscreen-section.simple-text .section-subtitle {
    font-family: var(--font-raleway), sans-serif;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    font-weight: 400;
    opacity: 0.8;
    text-shadow: none;
    margin-bottom: 0;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--primary, #e23740);
}

.fullscreen-section.simple-text .description-text {
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    line-height: 1.7;
    opacity: 0.85;
    margin-top: 0.8rem;
}

@media (max-width: 768px) {
    .fullscreen-section.simple-text {
        padding: 25px 20px;
    }
}

.section-footer-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    display: flex;
    justify-content: center;
}

.section-footer-info .container-width {
    width: 100%;
    max-width: var(--container-width);
}

/* Video Background */
.video-background {
    position: absolute;
    /* This is the problem */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    cursor: pointer;
    background: #000;
}

.video-background.absolute {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.video-background.relative {
    position: relative;
    width: 100%;
    height: 100vh;
    /* Keep the media itself at screen height */
    z-index: 0;
}

.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 1;
    transition: opacity 0.5s ease-in-out, transform 0.1s ease-out;
    will-change: transform;
    cursor: pointer;
}

/* Vimeo/YouTube player wrappers */
.vimeo-player-wrapper,
.youtube-player-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    cursor: pointer;
}

.vimeo-player-wrapper .play-button-overlay,
.youtube-player-wrapper .play-button-overlay {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.vimeo-player-wrapper:hover .play-button-overlay,
.youtube-player-wrapper:hover .play-button-overlay {
    transform: translate(-50%, -50%) scale(1.1);
}

.vimeo-player-wrapper:hover .play-button-overlay svg circle,
.youtube-player-wrapper:hover .play-button-overlay svg circle {
    fill: rgba(0, 0, 0, 0.7);
}

.vimeo-player-wrapper.is-playing .play-button-overlay,
.youtube-player-wrapper.is-playing .play-button-overlay {
    display: none;
}

/* Force images and GIFs to be visible */
img.bg-video.loaded,
video.bg-video.loaded {
    opacity: 1 !important;
}

/* Video Overlay */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: rgba(0, 0, 0, 0.4); */
    z-index: 0;
    pointer-events: none;
}

/* Content */
.content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
    margin: 0 auto;
    /* Keep over content centered */
    animation: fadeInUp 1s ease-out;
    will-change: transform;
    transition: transform 0.1s ease-out;
}

.content.content-left {
    text-align: left;
    margin: 0;
    max-width: 100%;
    /* Or keep 800px if you want it constrained but on the left */
    width: 100%;
    padding-left: 60px;
    /* Matching your header padding */
    padding-right: 60px;
}

/* Content position variants: before/over/after
   All absolutely positioned within the section — never affect media size */
.content.content-before,
.content.content-over,
.content.content-after {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 3;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    pointer-events: none;
}

.content.content-before *,
.content.content-over *,
.content.content-after * {
    pointer-events: auto;
}

.content.content-before {
    top: 0;
}

.content.content-over {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.content.content-after {
    bottom: 0;
    top: auto;
}

.border-top-white {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 40px;
    margin-top: 20px;
}

.section-title {
    font-family: var(--font-raleway), sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-family: var(--font-raleway), sans-serif;
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* Project References */
.project-references {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.reference-item {
    text-align: center;
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.reference-item:hover {
    transform: translateY(-5px);
}

.reference-item h4 {
    font-family: var(--font-raleway), sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #a8edea;
}

.reference-item p {
    font-family: var(--font-raleway), sans-serif;
    font-style: italic;
    opacity: 0.9;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-family: var(--font-raleway), sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
}

/* Services List */
.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.service-item {
    padding: 2rem;
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-item h3 {
    font-family: var(--font-raleway), sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #667eea;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.portfolio-item {
    perspective: 1000px;
}

.portfolio-card {
    padding: 2rem;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.portfolio-card:hover {
    transform: rotateY(5deg) rotateX(5deg);
}

.portfolio-card h3 {
    font-family: var(--font-raleway), sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #f6d365;
}

/* Team Stats */
.team-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    display: block;
    font-family: var(--font-raleway), sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: #fda085;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Contact Info */
.contact-info {
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 1.1rem;
}

.contact-item i {
    font-size: 1.3rem;
}

/* Navigation Dots */
.nav-dots {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

.nav-dots ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nav-dot {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid transparent;
}

.nav-dot:hover,
.nav-dot.active {
    background: #667eea;
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

/* Scroll Indicator */
.scroll-indicator {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    z-index: 1000;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 1.5rem;
}

.scroll-indicator span {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 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);
    }
}

/* Loading State */
.loading-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: -1;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-dots {
        right: 1rem;
    }

    .nav-dot {
        width: 10px;
        height: 10px;
    }

    .content {
        padding: 1rem;
    }

    .feature-grid,
    .services-list,
    .portfolio-grid,
    .team-stats,
    .project-references {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .scroll-indicator {
        bottom: 1rem;
    }

    .bg-video {
        /* Ensure video covers properly on mobile */
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-contact {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-social {
        justify-content: center;
    }

    .contact-social {
        justify-content: center;
        justify-items: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .footer-contact .contact-item {
        font-size: 0.8rem;
    }

}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .scroll-indicator {
        animation: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: more) {
    .video-overlay {
        /* background: rgba(0, 0, 0, 0.8); */
    }

    .nav-dot {
        border: 2px solid white;
    }

    .feature-item,
    .service-item,
    .portfolio-card {
        border: 2px solid rgba(255, 255, 255, 0.5);
    }
}

/* Focus styles for accessibility */
.nav-dot:focus,
.cta-button:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Slim Footer */
.slim-footer {
    position: relative;
    z-index: 1000;
    background: rgba(0, 0, 0, 1);
    padding: 1rem 0;
    margin-top: auto;
}

.footer-content {
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-contact {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-contact .contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-raleway), sans-serif;
}

.footer-contact .contact-item i {
    font-size: 1rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    color: #667eea;
    transform: translateY(-2px);
}

.footer-social a i {
    font-size: 1.1rem;
}

.x-red {
    background-image: url("../images/x-twitter-brands_red.svg");
}

.x-red:hover {
    background-image: url("../images/x-twitter-brands_white.svg");
}

/* Print styles */
@media print {

    .nav-dots,
    .scroll-indicator,
    .bg-video,
    .video-background,
    .slim-footer {
        display: none;
    }

    .fullscreen-section {
        height: auto;
        page-break-inside: avoid;
        margin-bottom: 2rem;
    }

    .content {
        color: black;
    }
}

/* Hamburger styles */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger .bar {
    width: 100%;
    height: 4px;
    background: #e53935;
    margin: 4px 0;
    border-radius: 2px;
    transition: all 0.3s;
}

/* Overlay styles */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(20, 20, 20, 0.98);
    color: #fff;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 0.3s;
}

.mobile-menu-overlay.open {
    display: flex;
}

.close-menu {
    position: absolute;
    top: 30px;
    right: 40px;
    background: none;
    border: none;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    z-index: 2001;
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.mobile-menu-link {
    color: #e53935;
    font-size: 2rem;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s;
}

.mobile-menu-link:hover {
    color: #fff;
}

/* Responsive adjustment for boxed layout on large screens */
@media (min-width: 1401px) {
    body {
        background: var(--black);
        /* Subtle background outside the box */
    }
}

/* Responsive visibility */
@media (max-width: 900px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }

    .header-left {
        display: none !important;
    }

    .hamburger {
        display: flex !important;
    }
}

@media (min-width: 901px) {
    .mobile-only {
        display: none !important;
    }
}

@media (min-width: 768px) and (max-width: 1000px) {
    .contact-social {
        justify-content: center;
        width: 100%;
        text-align: center;
        align-items: center;
    }

    .footer-social {
        justify-content: center;
        width: 100%;
        text-align: center;
        align-items: center;
    }
}


.nav-dropdown ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    align-items: center;
}

.nav-dropdown a:not(.border-none) {
    border-top: 1px dotted transparent !important;
    padding-top: 5px;

}

.nav-dropdown a:not(.border-none):hover {
    border-top: 1px dotted var(--white) !important;
    padding-top: 5px;
}

.nav-dropdown .dropdown-menu {
    visibility: hidden;
    opacity: 0;
    top: 100%;
    left: 10px;
    background: rgba(0, 0, 0, 0.9);
    min-width: 180px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.3s ease;
    /*border-top: 2px solid var(--primary);*/
    z-index: 101;
}

.nav-dropdown li:hover>.dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(5px);
}

.nav-dropdown .dropdown-menu li {
    text-align: right;
    display: block;
    width: 100%;
}

.nav-dropdown .dropdown-menu li a {
    display: block;
    /*padding: 5px 0;*/
    font-size: var(--font-size-menu);
    text-transform: uppercase;
}

/* Custom hover effect for dropdown items */
/*.nav-dropdown .dropdown-menu li a:hover {*/
/*    padding-left: 5px;*/
/*    border-left: 2px solid var(--primary);*/
/*}*/

/* Ensure parent has enough space */
.header-left {
    align-items: center;
}

/* Project Detail Page Styles */
.project-details {
    max-width: 100%;
}

.project-header-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
}

.project-header-row .section-title {
    margin-bottom: 0;
}

.back-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    font-size: 24px;
    text-decoration: none;
    transition: color 0.3s ease;
    flex-shrink: 0;
}

.back-arrow {
    line-height: 1;
}

.project-info {
    text-align: left;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.meta-item {
    font-size: 14px;
}

.meta-label {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    margin-right: 5px;
}

.project-description {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 40px;
}

/* Clickable video backgrounds - both for navigation and play */
.video-background {
    cursor: pointer;
}

/* Editor mode - full width, no transition */
.site-wrapper.editor-mode {
    max-width: 100% !important;
    opacity: 1 !important;
    transition: none !important;
}

/* ===========================================
   BLOCKS LAYOUT (My Work page)
   =========================================== */

.blocks-container {
    display: flex;
    flex-direction: column;
    padding-top: 90px;
    /* Account for fixed header */
}

.work-block {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000;
    cursor: pointer;
}

/* Media Background */
.work-block-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.work-block-media img,
.work-block-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay pattern on media - only on work list page */
body.page-work-list .work-block-media .overlay-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background-image: url("../images/bgr.png");
    /* background-color: rgba(0, 0, 0, 0.5); */
    background-repeat: repeat;
    background-position: center center;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Hide overlay on hover for work list page */
body.page-work-list .work-block:hover .work-block-media .overlay-pattern {
    opacity: 0;
}

/* Right Overlay */
.work-block-overlay {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    background: rgba(0, 0, 0, .70);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 60px;
}

/* Sidebar */
.work-block-sidebar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    text-align: right;
}

/* Title */
.work-block-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 4px;
    margin-bottom: 8px;
    transition: color 0.3s ease;
    display: block;
}

a.work-block-title:hover {
    color: var(--white);
}

/* Type/Description */
.work-block-type {
    font-size: 14px;
    font-weight: 400;
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 3px;
    margin: 0;
}

/* ===========================================
   BLOCKS LAYOUT - No Animation (default hover state)
   =========================================== */

.no-animation .work-block-overlay {
    background: rgba(0, 0, 0, .70);
}

.no-animation .work-block-sidebar {
    transform: translateX(0);
    opacity: 1;
}

/* ===========================================
   BLOCKS LAYOUT - Hover Animation
   =========================================== */

/* Scale animation on media */
.hover-animation-enabled .work-block-media img,
.hover-animation-enabled .work-block-media video {
    transition: transform 0.5s ease, filter 0.5s ease;
}

.hover-animation-enabled .work-block:hover .work-block-media img,
.hover-animation-enabled .work-block:hover .work-block-media video {
    transform: scale(1.05);
}

/* Overlay fade animation */
.hover-animation-enabled .work-block-overlay {
    transition: background 0.5s ease;
}

.hover-animation-enabled .work-block:hover .work-block-overlay {
    background: rgba(0, 0, 0, .70);
}

/* Sidebar slide animation */
.hover-animation-enabled .work-block-sidebar {
    transform: translateX(20px);
    opacity: 0.8;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.hover-animation-enabled .work-block:hover .work-block-sidebar {
    transform: translateX(0);
    opacity: 1;
}

/* Title color animation */
.hover-animation-enabled .work-block:hover .work-block-title {
    color: var(--white);
}

/* ===========================================
   BLOCKS LAYOUT - Responsive
   =========================================== */

@media (max-width: 768px) {
    .work-block-overlay {
        width: 100% !important;
        padding-right: 20px;
        padding-left: 20px;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
        align-items: flex-end;
        justify-content: center;
        padding-bottom: 30px;
    }

    .work-block-sidebar {
        width: 100% !important;
        align-items: center;
        text-align: center;
    }

    .hover-animation-enabled .work-block-sidebar {
        transform: translateY(20px);
    }

    .hover-animation-enabled .work-block:hover .work-block-sidebar {
        transform: translateY(0);
    }

    .no-animation .work-block-sidebar {
        transform: translateY(0);
    }
}

/* Work Detail Header */
.work-detail-header {
    padding: 120px 60px 80px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.work-detail-title {
    color: #fff;
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.work-detail-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Padding for before sections to clear navigation */
.fullscreen-section.detail-page .content {
    padding-top: 100px;
}

.fullscreen-section.detail-page .content.content-left {
    padding-top: 120px;
}

/* ===========================================
   HOME PAGE - Fixed Footer & Always-On Overlay
   =========================================== */

/* Home page: hide play button (videos autoplay) */
.page-home .video-wrapper .play-button-overlay {
    display: none !important;
}

/* Home page: hide section-footer-info (using fixed footer instead) */
.page-home .section-footer-info {
    display: none !important;
}

/* Home page: Fixed footer at bottom for block title/type */
.home-fixed-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.home-fixed-footer .home-footer-inner {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 25px 60px;
    max-width: var(--container-width);
    margin: 0 auto;
}

.home-fixed-footer .home-footer-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
    transition: opacity 0.3s ease-in-out;
}

.home-fixed-footer .home-footer-left.fading {
    opacity: 0;
}

.home-fixed-footer .home-footer-title {
    color: var(--primary);
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
}

.home-fixed-footer .home-footer-type {
    color: var(--primary);
    font-size: 12px;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .home-fixed-footer .home-footer-inner {
        padding: 15px 20px;
    }
}

/* Work Detail Navigation */
.work-detail-nav {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 900;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 10px 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.work-nav-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.work-nav-back {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.work-nav-back:hover {
    color: var(--primary);
}

.work-nav-back i {
    font-size: 12px;
}

.work-nav-sections {
    display: flex;
    align-items: center;
    gap: 5px;
}

.work-nav-item {
    padding: 8px 15px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-radius: 20px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.work-nav-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.work-nav-item.active {
    color: var(--primary);
    background: rgba(102, 126, 234, 0.15);
}

@media (max-width: 768px) {
    .work-detail-header {
        padding: 80px 20px 40px;
    }

    .work-detail-title {
        font-size: 32px;
    }

    .work-detail-subtitle {
        font-size: 16px;
    }

    .fullscreen-section.detail-page .content {
        padding-top: 60px;
    }

    .fullscreen-section.detail-page .content.content-left {
        padding-top: 80px;
    }

    .work-detail-nav {
        top: 60px;
        left: 10px;
        right: 10px;
        transform: none;
        border-radius: 15px;
        max-width: calc(100% - 20px);
        overflow-x: auto;
    }

    .work-nav-container {
        gap: 10px;
        min-width: max-content;
    }

    .work-nav-back span {
        display: none;
    }

    .work-nav-back {
        padding: 8px 12px;
        border-right: none;
    }

    .work-nav-sections {
        gap: 3px;
    }

    .work-nav-item {
        padding: 6px 12px;
        font-size: 12px;
    }
}