/*
 * Homepage Styles - Katehis Video Art
 * Matching the design reference layout
 */

/* =============================================
   Transparent Header for Homepage
============================================= */
.home .site-header.header-transparent {
    background: transparent;
    box-shadow: none;
}

.home .site-header.header-transparent .nav-menu a {
    color: var(--color-white);
}

.home .site-header.header-transparent .hamburger span {
    background: var(--color-white);
}

.home .site-header.header-transparent .logo img {
    filter: brightness(0) invert(1);
}

/* Submenu styling for transparent header */
.home .site-header.header-transparent .submenu {
    background: var(--color-white);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.home .site-header.header-transparent .submenu a {
    color: var(--color-text-dark);
}

.home .site-header.header-transparent .submenu a:hover {
    color: var(--color-primary);
    background: var(--color-gray-light);
}

/* When scrolled, restore normal header */
.home .site-header.header-transparent.scrolled {
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
}

.home .site-header.header-transparent.scrolled .nav-menu a {
    color: var(--color-text-dark);
}

.home .site-header.header-transparent.scrolled .hamburger span {
    background: var(--color-text-dark);
}

.home .site-header.header-transparent.scrolled .logo img {
    filter: none;
}

/* =============================================
   Hero Slideshow Section
============================================= */
.hero-slideshow {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    z-index: 1;
}

.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 2s;
    overflow: hidden;
    visibility: hidden;
}

.slide picture {
    width: 100%;
    height: 100%;
    display: block;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform: scale(1.15);
}

.slide.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 2s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0s;
}

.slide.active img {
    animation: kenBurnsZoomIn 5s linear;
}

@keyframes kenBurnsZoomIn {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.15);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: rgba(0, 0, 0, 0.4); */
    z-index: 1;
}

.hero-slideshow .hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    color: var(--color-white);
    max-width: 800px;
    padding: 0 20px;
}

.hero-slideshow .hero-content h1 {
    font-family: var(--font-secondary);
    font-size: 5.5rem;
    font-weight: 400;
    color: var(--color-white);
    line-height: 1.1;
    margin-bottom: 30px;
    text-shadow: 2px 4px 20px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.02em;
}

.hero-slideshow .hero-content p {
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.9;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Default: show desktop text, hide mobile text */
.hero-slideshow .hero-content .mobile-text {
    display: none;
}

.hero-slideshow .hero-content .desktop-text {
    display: inline;
}

.hero-slideshow .btn-outline {
    border: 2px solid var(--color-white);
    color: var(--color-white);
    background: transparent;
    padding: 15px 40px;
}

.hero-slideshow .btn-outline:hover {
    background: var(--color-white);
    color: var(--color-secondary);
}

/* Slideshow Navigation Arrows */
.slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--color-white);
    font-size: 1.5rem;
    padding: 20px 15px;
    cursor: pointer;
    z-index: 999;
    transition: all var(--transition-normal);
}

.slide-nav:hover {
    background: rgba(255, 255, 255, 0.25);
}

.slide-prev {
    left: 20px;
}

.slide-next {
    right: 20px;
}

/* Slide Indicators/Dots */
.slide-indicators {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.slide-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--color-white);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition-normal);
    padding: 0;
}

.slide-dot:hover,
.slide-dot.active {
    background: var(--color-white);
}

/* Scroll Down Indicator */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-white);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
    z-index: 3;
    transition: opacity var(--transition-normal);
}

.scroll-down:hover {
    opacity: 1;
    color: var(--color-white);
}

.scroll-down i {
    animation: bounceDown 2s infinite;
}

@keyframes bounceDown {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(8px);
    }
    60% {
        transform: translateY(4px);
    }
}

/* =============================================
   Portfolio Categories Section
============================================= */
.portfolio-categories {
    padding: 100px 20px;
    background: #e8e8e8;
    position: relative;
}

.portfolio-categories .section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.portfolio-categories .section-subtitle {
    color: var(--color-primary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    display: block;
}

.portfolio-categories .section-title {
    font-family: var(--font-secondary);
    font-size: 3rem;
    font-weight: 400;
    color: var(--color-text-dark);
    margin: 0 0 20px 0;
}

.portfolio-categories .section-description {
    color: var(--color-text);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.category-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2/3;
    display: block;
    border-radius: 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.5s ease;
}

.category-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.category-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.category-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    transition: background 0.5s ease;
}

.category-card:hover .category-image::after {
    background: rgba(0, 0, 0, 0.2);
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.5s ease;
    filter: saturate(1);
}

.category-card:hover .category-image img {
    transform: scale(1.15);
    filter: saturate(1.1);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    padding: 30px 20px;
    background: linear-gradient(transparent 50%, rgba(0, 0, 0, 0.85));
    text-align: center;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    transition: background 0.5s ease;
}

.category-card:hover .category-overlay {
    background: linear-gradient(rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.9) 100%);
}

.category-overlay h3 {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-white);
    margin: 0 0 20px 0;
    line-height: 1.4;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), letter-spacing 0.5s ease, text-shadow 0.3s ease;
    letter-spacing: 0.02em;
    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.8),
        0 4px 16px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(0, 0, 0, 0.4);
    text-transform: capitalize;
}

.category-card:hover .category-overlay h3 {
    transform: translateY(-10px);
    letter-spacing: 0.05em;
    text-shadow:
        0 3px 12px rgba(0, 0, 0, 0.9),
        0 6px 20px rgba(0, 0, 0, 0.7),
        0 0 30px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(255, 255, 255, 0.1);
}

/* =============================================
   Featured Video Section
============================================= */
.featured-video-section {
    padding: 0;
    background: #000;
}

.featured-video-section .video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
}

.featured-video-section .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* =============================================
   Team Section
============================================= */
.team-section {
    padding: 100px 20px;
    background: #e8e8e8;
    text-align: center;
}

.team-section .section-header {
    margin-bottom: 60px;
}

.team-section .section-subtitle {
    color: var(--color-primary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    display: block;
}

.team-section .section-title {
    font-family: var(--font-secondary);
    font-size: 3rem;
    font-weight: 400;
    color: var(--color-text-dark);
    margin: 0;
}

.team-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.team-card {
    background: var(--color-white);
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.team-photo {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    background: var(--color-gray-light);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.team-card:hover .team-photo img {
    transform: scale(1.1);
}

.team-info {
    padding: 25px 20px;
    background: var(--color-white);
}

.team-info h3 {
    font-family: var(--font-secondary);
    font-size: 1.4rem;
    font-weight: 400;
    margin: 0 0 5px 0;
    color: var(--color-text-dark);
}

.team-role {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.team-social a {
    width: 36px;
    height: 36px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    font-size: 14px;
    transition: all var(--transition-normal);
}

.team-social a:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

/* =============================================
   Team Page Content Styling
============================================= */
.team-page-content {
    background: var(--color-gray-light);
    padding: 60px 20px;
}

.team-page-content .page-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.team-page-content .page-content p {
    font-family: var(--font-secondary);
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 1.5em;
}

.team-page-content .page-content p:first-of-type {
    font-size: 1.4rem;
    color: var(--color-text-dark);
    font-style: italic;
}

.team-page-content .page-content h2,
.team-page-content .page-content h3 {
    font-family: var(--font-secondary);
    font-weight: 400;
    margin: 30px 0 20px;
    color: var(--color-text-dark);
}

.team-page-content .page-content a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.team-page-content .page-content a:hover {
    color: var(--color-secondary);
}


/* =============================================
   Contact Section (Homepage)
============================================= */
.home .contact-section {
    padding: 80px 20px;
    background: var(--color-white);
    text-align: center;
}

.contact-header {
    margin-bottom: 50px;
}

.contact-subtitle {
    font-family: var(--font-secondary);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--color-text-light);
    display: block;
    margin-bottom: 15px;
}

.contact-title {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    font-weight: 400;
    margin: 0;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-card {
    background: var(--color-gray-light);
    padding: 40px 30px;
    text-align: center;
}

.contact-card h3 {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 20px;
}

.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info li {
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--color-text);
}

.contact-info li i {
    color: var(--color-primary);
    margin-right: 10px;
    width: 20px;
}

.contact-info a {
    color: var(--color-text);
    transition: color var(--transition-normal);
}

.contact-info a:hover {
    color: var(--color-primary);
}

/* =============================================
   Photo Gallery Mosaic Section
============================================= */
.photo-gallery-section {
    background: var(--color-white);
}

.gallery-mosaic {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 5px;
}

.gallery-mosaic-item {
    overflow: hidden;
    aspect-ratio: 1;
    position: relative;
}

.gallery-mosaic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow), filter var(--transition-normal);
}

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

/* Gallery overlay for lightbox */
.gallery-mosaic-item .masonry-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-mosaic-item:hover .masonry-overlay {
    opacity: 1;
}

.gallery-mosaic-item .masonry-icon {
    width: 60px;
    height: 60px;
    border: 2px solid var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 1.2rem;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.gallery-mosaic-item:hover .masonry-icon {
    transform: scale(1);
}

/* =============================================
   Instagram Section
============================================= */
.instagram-section {
    padding: 60px 20px;
    background: var(--color-white);
    text-align: center;
}

.instagram-title {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 15px;
}

.instagram-handle a {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    color: var(--color-text);
    transition: color var(--transition-normal);
}

.instagram-handle a:hover {
    color: var(--color-primary);
}

/* =============================================
   Responsive Styles for Homepage
============================================= */
@media (max-width: 1200px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-slideshow .hero-content h1 {
        font-size: 4.5rem;
    }

    .hero-slideshow .hero-content p {
        font-size: 1.2rem;
    }

    .portfolio-categories .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-mosaic {
        grid-template-columns: repeat(4, 1fr);
    }

    .hero-slideshow .hero-content h1 {
        font-size: 3.5rem;
    }

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

    .slide-nav {
        padding: 15px 12px;
        font-size: 1.2rem;
    }

    .team-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .hero-slideshow {
        min-height: 500px;
    }

    /* Adjust image position to show people better on mobile (if no mobile image provided) */
    .slide img {
        object-position: center 30%;
    }

    /* Move hero text to bottom on tablet to avoid covering faces */
    .hero-slideshow .hero-content {
        top: auto;
        bottom: 80px;
        left: 50%;
        transform: translateX(-50%);
        max-width: 600px;
        padding: 0 30px;
    }

    .hero-slideshow .hero-content h1 {
        font-size: 2.8rem;
        line-height: 1.15;
        margin-bottom: 25px;
        text-shadow: 3px 5px 25px rgba(0, 0, 0, 0.6);
    }

    /* Remove desktop line breaks on tablet */
    .hero-slideshow .hero-content h1 .break-desktop {
        display: none;
    }

    .hero-slideshow .hero-content p {
        font-size: 0.9rem;
        letter-spacing: 1px;
        line-height: 1.6;
        margin-bottom: 30px;
        text-shadow: 2px 3px 15px rgba(0, 0, 0, 0.7);
    }

    .slide-nav {
        padding: 12px 10px;
        font-size: 1rem;
    }

    .slide-prev {
        left: 10px;
    }

    .slide-next {
        right: 10px;
    }

    .slide-indicators {
        bottom: 70px;
    }

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

    .gallery-mosaic {
        grid-template-columns: repeat(3, 1fr);
    }

    .category-overlay h3 {
        font-size: 1.1rem;
        text-shadow:
            0 2px 6px rgba(0, 0, 0, 0.9),
            0 3px 12px rgba(0, 0, 0, 0.7),
            0 0 15px rgba(0, 0, 0, 0.5);
    }

    .team-cards {
        grid-template-columns: 1fr;
        max-width: 350px;
    }
}

@media (max-width: 576px) {
    .hero-slideshow {
        min-height: 450px;
    }

    /* Focus more on upper area where people usually are (if no mobile image provided) */
    .slide img {
        object-position: center 25%;
    }

    /* Darker overlay for better text readability on mobile - commented out
    .hero-overlay {
        background: rgba(0, 0, 0, 0.5);
    }
    */

    /* Position hero text at bottom on mobile to avoid covering faces */
    .hero-slideshow .hero-content {
        top: auto;
        bottom: 70px;
        left: 50%;
        transform: translateX(-50%);
        max-width: 100%;
        padding: 0 20px;
    }

    .hero-slideshow .hero-content h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 20px;
        text-shadow: 3px 6px 30px rgba(0, 0, 0, 0.8);
    }

    /* Keep line breaks hidden on mobile */
    .hero-slideshow .hero-content h1 .break-desktop {
        display: none;
    }

    .hero-slideshow .hero-content p {
        font-size: 0.75rem;
        margin-bottom: 25px;
        letter-spacing: 0.5px;
        line-height: 1.5;
        text-shadow: 2px 4px 20px rgba(0, 0, 0, 0.8);
    }

    /* Hide/show text based on screen size */
    .hero-slideshow .hero-content .hide-mobile {
        display: none;
    }

    .hero-slideshow .hero-content .desktop-text {
        display: none;
    }

    .hero-slideshow .hero-content .mobile-text {
        display: inline;
    }

    /* Hide View Portfolio button on mobile */
    .hero-slideshow .btn-outline {
        display: none;
    }

    .slide-indicators {
        bottom: 60px;
        gap: 8px;
    }

    .slide-dot {
        width: 10px;
        height: 10px;
    }

    .portfolio-categories {
        padding: 60px 15px;
    }

    .portfolio-categories .section-title {
        font-size: 1.8rem;
    }

    .portfolio-categories .section-description {
        font-size: 1rem;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .category-card {
        aspect-ratio: 16/9;
    }

    .gallery-mosaic {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .instagram-title {
        font-size: 1.4rem;
    }
}

/* Extra small devices (very small phones) */
@media (max-width: 400px) {
    .hero-slideshow {
        min-height: 400px;
    }

    /* Even more compact text for very small screens, positioned at bottom */
    .hero-slideshow .hero-content {
        bottom: 65px;
        padding: 0 15px;
    }

    .hero-slideshow .hero-content h1 {
        font-size: 1.75rem;
        line-height: 1.25;
        margin-bottom: 15px;
    }

    .hero-slideshow .hero-content p {
        font-size: 0.7rem;
        margin-bottom: 20px;
        letter-spacing: 0.3px;
    }

    .hero-slideshow .btn-outline {
        padding: 10px 25px;
        font-size: 10px;
    }
}
