/* Hero Section with Three.js - Fullpage.js Compatible */

/* Hero section as first fullpage section */
.section.hero-section {
    position: relative;
    width: 100% !important;
    height: 100vh !important;
    overflow: hidden;
    background: #f3f6fb;
    --hero-top-offset: 205px;
}

.section.hero-section .fp-overflow {
    height: 100% !important;
}

/* Three.js Canvas */
.hero-canvas,
#hero-canvas {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    display: block;
    z-index: 1;
}

/* SVG Logo Overlay */
.logo-svg-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    bottom: 10vh;
}

.logo-svg {
    width: min(70vw, 520px);
    height: auto;
    display: block;
    opacity: 0.98;
    filter: drop-shadow(0 12px 30px rgba(0, 0, 0, .18));
}

@media (max-width: 768px) {
    .logo-svg {
        width: 90vw;
        max-width: 560px;
    }
}

/* Content overlay above canvas */
.hero-content-overlay {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    pointer-events: none;
    box-sizing: border-box;
}

/* Allow pointer events on interactive elements */
.hero-content-overlay .header,
.hero-content-overlay .footer,
.hero-content-overlay .btn,
.hero-content-overlay a {
    pointer-events: auto;
}

.hero-content-overlay .header a.logo svg {
    width: 250px;
    height: 85px;
}

@media (max-width: 575.98px) {
    .hero-content-overlay .header a.logo svg {
        width: 180px;
        height: auto;
    }
}

/* Hero text container */
.hero-text-container {
    pointer-events: none;
}

/* Hero main title */
.hero-main-title {
    font-size: clamp(2rem, 6vw, 2.5rem);
    font-weight: 700;
    color: #2B2B26;
    margin-top: 1.2rem;
    line-height: 1.1;
    text-align: right;
    opacity: 0;
    transition: opacity 1s ease-out 0.5s;
}

.hero-main-title span {
    transition: opacity 1s ease-out 0.75s;
}

.hero-main-title.is-visible {
    opacity: 1;
}

/* Hero subtitle */
.hero-main-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);
    color: #2B2B26;
    font-weight: 400;
    margin-top: 1rem;

    text-align: right;
    opacity: 0;
    transition: opacity 1.2s ease-out 1.25s;
}

.hero-main-subtitle.is-visible {
    opacity: 1;
}

.hero-main-subtitle p {
    margin: 0;
}

/* Gradient overlay */
.section.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        radial-gradient(900px 700px at 50% 45%, rgba(0, 255, 255, 0.06), rgba(0, 0, 0, 0.00) 62%),
        radial-gradient(900px 700px at 70% 30%, rgba(0, 160, 255, 0.06), rgba(0, 0, 0, 0.00) 62%),
        radial-gradient(900px 700px at 30% 65%, rgba(80, 255, 210, 0.05), rgba(0, 0, 0, 0.00) 62%);
    mix-blend-mode: multiply;
    opacity: .65;
}

.status-box {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 6;
    padding: 8px 12px;
    border-radius: 12px;
    background: none;
    color: rgb(215, 215, 215);
    font-size: 11px;
    backdrop-filter: blur(10px);
    max-width: 90ch;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    user-select: none;
}

.toggleLook {
    display: none;
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 6;
    background: rgba(0, 0, 0, .15);
    color: #fff;
    font-size: 13px;
    padding: 8px 12px;

    border-radius: 12px;
    border: 0;
    backdrop-filter: blur(10px);
    cursor: pointer;
    user-select: none;
}

.toggleLook:active {
    transform: translateY(1px);
}

.drop-hint {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 6;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(0, 0, 0, .45);
    color: #fff;
    font-size: 13px;
    backdrop-filter: blur(8px);
    display: none;
    user-select: none;
    max-width: 80ch;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero.is-dragover .drop-hint {
    display: block;
    outline: 2px dashed rgba(0, 0, 0, .35);
}

.loading {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 7;
    pointer-events: none;
    opacity: 0;
    transition: opacity .25s ease;
}

.loading.is-active {
    opacity: 1;
}

.loading-card {
    width: auto;
    min-width: 180px;
    max-width: 360px;
    color: #111;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.loading-top {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
    font-size: 12px;
    opacity: .75;
    margin-bottom: 6px;
    font-weight: 500;
}

.bar {
    height: 3px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .12);
    overflow: hidden;
}

.bar > i {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00d4ff, #2cffc6, #00a8ff);
    border-radius: 999px;
    transition: width .12s ease;
}

.loading-msg {
    margin-top: 4px;
    font-size: 11px;
    opacity: .65;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .logo-svg {
        width: 90vw;
        max-width: 560px;
    }
}
