/* ============================================
   INTERLOOMS - HECO SOURCE STYLE (V5 FINAL)
   Perfect VFX Text + Bios Title + Learn More Right
   ============================================ */

body {
    overflow-x: hidden;
    font-family: 'EB Garamond', serif;
    margin: 0;
}

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

.container-padding {
    padding: 60px 40px;
}

/* === ANIMATIONS === */
@keyframes waveAnimation {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: -40px 0;
    }
}

/* === PRELOADER === */
.preloader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader-container.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-wavy {
    width: 200px;
    height: 20px;
    background: radial-gradient(circle at 10px -7px, transparent 12px, #fff 13px, #fff 14px, transparent 15px) repeat-x,
        radial-gradient(circle at 10px 27px, transparent 12px, #fff 13px, #fff 14px, transparent 15px) repeat-x;
    background-size: 40px 20px;
    animation: waveAnimation 1s linear infinite;
}

/* === BACKGROUNDS === */
.backgrounds {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.backgrounds>div {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center;
}

.bg-intro {
    background: #1a1a1a;
}

.bg-aboutus {
    background: #f5f5f5;
}

.bg-work {
    background: #fff;
}

.bg-bios {
    background: #fff;
}

.bg-capabilities {
    background: #fafafa;
}

.bg-clients {
    background: #f5f5f5;
}

.bg-footer {
    background: #1a1a1a;
}

.bg-intro.active,
.bg-aboutus.active,
.bg-work.active,
.bg-bios.active,
.bg-capabilities.active,
.bg-clients.active,
.bg-footer.active {
    opacity: 1;
}

.bg-video {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
    opacity: 0.4;
}

/* === HEADER (BLEND MODE & VFX) === */
.logo-container,
.link-contact,
.language-switcher {
    position: fixed;
    z-index: 9999;
    mix-blend-mode: difference;
    color: #fff !important;
}

.logo-container {
    top: 30px;
    left: 30px;
}

.logo-img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

/* HEADER VFX OVERLAY (TOP) */
.header-vfx-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9000;
    pointer-events: none;
    padding-top: 100px;
    display: flex;
    justify-content: center;
    mix-blend-mode: overlay;
    opacity: 0.5;
    transition: opacity 0.5s ease;
}

/* FOOTER VFX OVERLAY (Same as header) */
.footer-vfx-wrapper {
    position: absolute;
    top: -60px;
    left: 0;
    width: 100%;
    z-index: 1;
    pointer-events: none;
    padding-top: 20px;
    display: flex;
    justify-content: center;
    mix-blend-mode: overlay;
    opacity: 0.2;
    transition: opacity 0.5s ease;
}

/* FOOTER VFX CONTAINER */
.vfx-container {
    width: 100%;
    margin-top: 20px;
    padding: 10px 5%;
    /* Added padding */
    box-sizing: border-box;
    /* Include padding in width */
    overflow: visible;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* SHARED VFX TEXT STYLE */
.vfx-header {
    font-family: 'Cinzel', serif !important;
    font-weight: 700;
    font-size: 9vw;
    width: 100%;
    color: #fff;
    margin: 0;
    padding: 0;
    line-height: 1;
    letter-spacing: -0.02em;
    white-space: nowrap;
    text-align: center;
    mix-blend-mode: normal;
    display: block;
}

.link-contact {
    top: 30px;
    right: 150px;
    text-decoration: none;
    font-family: 'EB Garamond', serif;
    font-size: 16px;
    letter-spacing: 0.05em;
    border-bottom: 1px solid transparent;
}

/* LANGUAGE SWITCHER DROPDOWN */
.language-switcher {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 10001;
    font-family: 'EB Garamond', serif;
    user-select: none;
    mix-blend-mode: difference;
}

.lang-current {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white !important;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    letter-spacing: 0.1rem;
    transition: all 0.3s ease;
}

.lang-current:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    overflow: hidden;
    width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    mix-blend-mode: normal;
    /* Dropdown should be readable on any background */
}

.language-switcher.active .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    padding: 10px 15px;
    color: #333 !important;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.lang-option:hover {
    background: #f5f5f5;
}

.lang-option.active {
    background: #f0f0f0;
    font-weight: bold;
}

.lang-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.language-switcher.active .lang-arrow {
    transform: rotate(180deg);
}

/* === WAVY ANIMATIONS === */
.link-wavy,
.wavy-hover-title {
    display: inline-block;
    padding-bottom: 5px;
    text-decoration: none;
    color: inherit;
    position: relative;
    cursor: pointer;
}

.link-wavy:hover,
.wavy-hover-title:hover {
    background: radial-gradient(circle at 5px -3px, transparent 6px, currentColor 6.5px, currentColor 7px, transparent 7.5px) repeat-x,
        radial-gradient(circle at 5px 13px, transparent 6px, currentColor 6.5px, currentColor 7px, transparent 7.5px) repeat-x;
    background-size: 20px 10px;
    background-position: 0 100%;
    animation: waveAnimation 0.5s linear infinite;
    text-decoration: none;
}

/* === SECTIONS === */
.section-intro,
.section-aboutus,
.section-work,
.section-bios,
.section-capabilities,
.section-clients {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 80px 0;
}

.section-footer {
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
    padding-bottom: 20px;
    /* User requested 20px space */
}

.header-message {
    text-align: center;
    position: relative;
    z-index: 2;
}

.overview {
    font-family: 'Italiana', serif;
    font-size: clamp(3rem, 6vw, 6rem);
    color: #fff;
    margin: 0;
    line-height: 1.1;
}

.down-arrow {
    width: 30px;
    height: 30px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    margin: 60px auto 0;
    cursor: pointer;
}

/* === WORK GRID === */
.container-work {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    width: 100%;
}

.home-work-item {
    text-decoration: none;
    color: inherit;
    display: block;
    margin-bottom: 40px;
    transition: transform 0.3s;
}

.home-work-item:hover {
    transform: translateY(-5px);
}

.project-thumb {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 15px;
}

.work-title {
    font-family: 'Italiana', serif;
    font-size: 2rem;
    margin: 10px 0 5px;
    color: #1a1a1a;
}

.project-description {
    font-family: 'EB Garamond', serif;
    font-size: 1.1rem;
    color: #666;
    margin: 0;
}

/* === BIOS & CAPABILITIES === */
.bio-p-container {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.bio-title {
    font-family: 'Italiana', serif;
    font-size: 3rem;
    margin-bottom: 30px;
    color: #1a1a1a;
    display: block;
}

.bio-p-main {
    font-size: 1.5rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 30px;
}

/* Learn More Right Align */
.learn-more-right {
    display: block;
    text-align: right;
    margin-top: 20px;
}

.link-bold {
    font-weight: 700;
    font-size: 1.1rem;
}

.column-container {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.h4-small {
    font-family: 'Italiana', serif;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 60px;
    color: #1a1a1a;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.capability-item {
    margin-bottom: 30px;
}

.expert-title {
    display: block;
    font-family: 'Italiana', serif;
    font-size: 1.8rem;
    color: #1a1a1a;
    margin-bottom: 5px;
    cursor: pointer;
}

.expert-desc {
    font-family: 'EB Garamond', serif;
    font-size: 1.1rem;
    color: #666;
    line-height: 1.4;
    display: block;
}

/* === CLIENTS === */
.clients-intro {
    font-family: 'EB Garamond', serif;
    font-size: 1.4rem;
    line-height: 1.8;
    color: #333;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding-bottom: 40px;
}

/* === FOOTER & VFX === */
.footer-container {
    text-align: center;
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.p-footer-intro {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 60px;
    /* Increased from 40px */
}

.huge-email {
    display: block;
    font-family: 'Italiana', serif;
    font-size: clamp(2rem, 5vw, 6rem);
    color: #fff;
    text-decoration: none;
    line-height: 1.2;
    margin: 20px 0;
    /* Increased margin */
    transition: opacity 0.3s;
}

.huge-email:hover {
    opacity: 0.7;
}

.footer-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
    width: 100%;
}

.footer-info-item h5 {
    font-family: 'Italiana', serif;
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 10px;
    opacity: 0.9;
}

.footer-info-item p,
.footer-info-item a {
    font-family: 'EB Garamond', serif;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    line-height: 1.5;
    margin: 0 auto;
    display: block;
    max-width: 300px;
}

.footer-info-item a:hover {
    color: #fff;
}

/* === PARTNER SHOWCASE === */
.partner-showcase {
    transition: all 0.3s ease;
}

.partner-showcase:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}



/* REDUCED GAP FOOTER COPYRIGHT */
.footer-details {
    position: relative;
    margin-top: 5px !important;
    /* Force small gap */
    border: none;
    padding-bottom: 20px;
}

/* === LIGHTBOX === */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
}

.lightbox-content {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 60px;
    z-index: 2;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
    color: #333;
}

.lightbox-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.lightbox-gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {

    .container-work,
    .capabilities-grid,
    .footer-info-grid {
        grid-template-columns: 1fr;
    }

    .huge-email {
        font-size: 2rem;
    }

    .link-contact {
        display: none;
    }

    .logo-container {
        left: 20px;
    }

    .language-switcher {
        right: 20px;
    }

    .vfx-header {
        font-size: 18vw;
    }

    /* Adjusted for mobile portrait */
    .bio-title {
        font-size: 2rem;
    }
}