/* Symplyfy — White main, black secondary */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --white: #ffffff;
    --white-soft: #fafafa;
    --grey-light: #f0f0f0;
    --grey: #6b6b6b;
    --grey-dark: #333333;
    --black: #0a0a0a;
    --mist: rgba(0, 0, 0, 0.04);
    --mist-strong: rgba(0, 0, 0, 0.12);
}

/* ===== LIQUID GLASS EFFECT ===== */
.liquid-glass {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        0 6px 6px rgba(0, 0, 0, 0.08),
        0 0 20px rgba(0, 0, 0, 0.04),
        inset 2px 2px 1px 0 rgba(255, 255, 255, 0.9),
        inset -1px -1px 1px 1px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: box-shadow 0.4s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 2.2);
}

.liquid-glass:hover {
    box-shadow:
        0 8px 12px rgba(0, 0, 0, 0.1),
        0 0 30px rgba(0, 0, 0, 0.06),
        inset 2px 2px 1px 0 rgba(255, 255, 255, 0.95),
        inset -1px -1px 1px 1px rgba(0, 0, 0, 0.05);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f2f5 50%, #fafbfc 100%);
    background-attachment: fixed;
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-screen.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-carousel {
    overflow: hidden;
    width: 200px;
}

.loading-carousel-track {
    display: flex;
    gap: 0.5rem;
    animation: loadingCarousel 1.2s linear infinite;
}

.loading-carousel-track span {
    flex-shrink: 0;
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--grey);
}

@keyframes loadingCarousel {
    0% { transform: translateX(0); }
    100% { transform: translateX(-20%); }
}

/* Breadcrumb Bar */
.breadcrumb-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 2rem;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    border-bottom: none;
}

.breadcrumb-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #000;
    text-decoration: none;
    transition: color 0.3s;
}

.logo:hover {
    color: var(--grey);
}

.breadcrumb-dots {
    display: flex;
    gap: 0.75rem;
}

.breadcrumb-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mist-strong);
    border: 1px solid rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    text-indent: -9999px;
    display: block;
}

.breadcrumb-dots .dot:hover,
.breadcrumb-dots .dot.active {
    background: var(--black);
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
    border-color: var(--black);
}

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

.drawer-toggle span {
    width: 20px;
    height: 2px;
    background: var(--mist-strong);
    transition: background 0.3s;
}

.drawer-toggle:hover span {
    background: var(--black);
}

/* Context Drawer */
.context-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: var(--white-soft);
    border-left: 1px solid var(--mist);
    z-index: 999;
    padding: 3rem 2rem;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.context-drawer.open {
    right: 0;
}

.drawer-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #000;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
}

.drawer-close:hover {
    opacity: 1;
}

.drawer-content h3 {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--grey);
    margin-bottom: 1.5rem;
}

.drawer-content ul {
    list-style: none;
}

.drawer-content li {
    margin-bottom: 1rem;
}

.drawer-content a {
    color: rgba(0, 0, 0, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.drawer-content a:hover {
    color: var(--black);
}

/* Main Sections */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 4rem 2rem;
}

/* Hero Section - Ice Void */
.hero-section {
    flex-direction: column;
    text-align: center;
}

.decor-void {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.ice-shard-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vmin;
    height: 80vmin;
}

.ice-shard {
    position: absolute;
    border-radius: 2px;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.04) 0%,
        rgba(80, 80, 80, 0.06) 25%,
        rgba(0, 0, 0, 0.03) 50%,
        rgba(107, 107, 107, 0.05) 75%,
        rgba(0, 0, 0, 0.02) 100%
    );
    backdrop-filter: blur(1px);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.ice-shard-1 {
    width: 40%;
    height: 60%;
    top: 10%;
    left: 15%;
    transform: rotate(-15deg);
    animation: shimmer 8s ease-in-out infinite;
}

.ice-shard-2 {
    width: 35%;
    height: 50%;
    top: 35%;
    right: 10%;
    left: auto;
    transform: rotate(20deg);
    animation: shimmer 10s ease-in-out infinite 1s;
}

.ice-shard-3 {
    width: 30%;
    height: 45%;
    bottom: 15%;
    left: 40%;
    transform: rotate(-5deg);
    animation: shimmer 9s ease-in-out infinite 2s;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(4rem, 15vw, 12rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 0.95;
    color: #000;
    margin-bottom: 0.5rem;
}

.hero-tagline {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--grey-dark);
    margin-bottom: 0.5rem;
}

.hero-desc {
    font-size: 0.95rem;
    color: rgba(0, 0, 0, 0.5);
    margin-bottom: 3rem;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.scroll-indicator span {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.4);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, var(--black), transparent);
    opacity: 0.5;
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
    50% { opacity: 0.8; transform: scaleY(1); }
}

/* Ventures Section */
.ventures-section .section-content {
    text-align: center;
}

.section-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    color: #000;
    margin-bottom: 0.5rem;
}

.section-title-link {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.section-title-link:hover {
    color: #000;
}

.section-desc {
    font-size: 1rem;
    color: rgba(0, 0, 0, 0.5);
}

/* Venture Cards - Aurora Halo Effect */
.venture-section {
    padding: 6rem 2rem;
}

.venture-card {
    max-width: 600px;
    padding: 3rem;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.4s, box-shadow 0.4s;
}

.venture-card,
.venture-card.aurora-hover,
.venture-card.expandable {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        0 6px 6px rgba(0, 0, 0, 0.08),
        0 0 20px rgba(0, 0, 0, 0.04),
        inset 2px 2px 1px 0 rgba(255, 255, 255, 0.9),
        inset -1px -1px 1px 1px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.venture-card:hover,
.venture-card.aurora-hover:hover,
.venture-card.expandable:hover,
.venture-card.expandable.active {
    box-shadow:
        0 8px 12px rgba(0, 0, 0, 0.1),
        0 0 30px rgba(0, 0, 0, 0.06),
        inset 2px 2px 1px 0 rgba(255, 255, 255, 0.95),
        inset -1px -1px 1px 1px rgba(0, 0, 0, 0.05);
}

.venture-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(
        135deg,
        transparent 0%,
        var(--grey) 25%,
        var(--black) 50%,
        var(--grey-dark) 75%,
        transparent 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s;
}

.venture-card.aurora-hover:hover::before {
    opacity: 0.8;
}

.venture-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--grey);
    margin-bottom: 1rem;
}

.venture-card h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #000;
    margin-bottom: 1rem;
}

.venture-card p {
    font-size: 1rem;
    color: rgba(0, 0, 0, 0.6);
    line-height: 1.7;
}

/* ===== FOOTER MONOCHROME FIX ===== */

.footer-section {
    border-top: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        0 -4px 20px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    padding: 4rem 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.footer-center {
    text-align: center;
}

.footer-center p {
    margin-top: 1rem;
    color: #555;
    font-size: 0.9rem;
    line-height: 1.6;
}

.mela-link {
    color: #444;
    text-decoration: none;
    border-bottom: 1px solid #999;
}

.mela-link:hover {
    color: #000;
    border-color: #000;
}

.footer-social {
    justify-self: end;
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    color: #555;
    font-size: 1.2rem;
}

.footer-social a:hover {
    color: #000;
}

.footer-section {
    min-height: auto;
    padding: 3rem 2rem;
}

/* WebGL Fallback */
.webgl-fallback {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--mist);
    color: rgba(0, 0, 0, 0.7);
    font-size: 0.85rem;
    border-radius: 4px;
    display: none;
}

.webgl-fallback[aria-hidden="false"] {
    display: block;
}

/* Responsive — mobile / phone */
@media (max-width: 768px) {
    .breadcrumb-bar {
        padding: 0.75rem 1rem;
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }

    .breadcrumb-inner {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .logo {
        font-size: 0.9rem;
    }

    .breadcrumb-dots {
        order: 3;
        flex: 1 1 100%;
        min-width: 100%;
        justify-content: center;
        gap: 0.5rem;
    }

    .breadcrumb-dots .dot {
        width: 6px;
        height: 6px;
    }

    .breadcrumb-dots a {
        padding: 10px;
        margin: -10px;
        min-width: 32px;
        min-height: 32px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .header-right {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .header-social {
        display: none !important;
    }
    
    .header-start-box {
        margin-left: 0;
    }

    .header-start-box {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .start-link {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        padding: 0.5rem 1rem;
    }

    .services-grid-home {
        gap: 1.25rem;
        margin-top: 2rem;
    }

    .venture-card h2 {
        font-size: 1.5rem;
    }

    .context-drawer {
        width: 100%;
        right: -100%;
    }

    .ice-shard {
        display: none;
    }

    .ice-shard-1 {
        display: block;
        width: 60%;
        height: 40%;
    }
}

@media (max-width: 480px) {
    .breadcrumb-bar {
        padding: 0.6rem 0.75rem;
    }

    .breadcrumb-dots {
        gap: 0.3rem;
    }

    .breadcrumb-dots .dot {
        width: 5px;
        height: 5px;
    }

    .breadcrumb-dots a {
        padding: 8px;
        margin: -8px;
        min-width: 28px;
        min-height: 28px;
    }
    
    .header-social {
        display: none;
    }
}
