/* public/css/style.css */

/* =========================================
   1. Fonts & Base Styles
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    font-family: Montserrat, sans-serif;
    opacity: 1;
    transition: opacity 0.25s ease-in-out;
}

section[id] {
    scroll-margin-top: 100px;
}

/* =========================================
   2. Global States & Utilities
   ========================================= */

body.language-loading {
    opacity: 0 !important;
    pointer-events: none;
}

html.initial-loading body {
    opacity: 0 !important;
    pointer-events: none;
}

.nav-link-active {
    color: #0a9396 !important;
    font-weight: 600;
}

.reveal {
    opacity: 0;
    transform: translateY(100px);
    transition: all 1s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   3. UI Components: Scroll to Top
   ========================================= */
#scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 50;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 9999px;
    background-color: rgb(10 147 150 / 90%);
    backdrop-filter: blur(4px);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 10%), 0 4px 6px -2px rgb(0 0 0 / 5%);
    border: 1px solid rgb(255 255 255 / 20%);
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

#scroll-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#scroll-to-top:hover {
    background-color: #005f73;
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 10%), 0 10px 10px -5px rgb(0 0 0 / 4%);
}

/* =========================================
   4. Hero Section
   ========================================= */

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

#hero-title-display::after {
    content: '|';
    margin-left: 2px;
    animation: blink 1s infinite;
    color: #0a9396;
    font-weight: 400;
}

.hero-wrapper {
    display: block;
}

.hero-floating-img {
    transition: transform 0.1s ease-out; 
    will-change: transform;
}

.hero-wrapper:hover .hero-floating-img {
    box-shadow: 0 50px 60px -15px rgb(0 0 0 / 20%);
}

/* =========================================
   5. Cards & Visual Effects (Features/Pricing)
   ========================================= */

.tilt-card {
    transform-style: preserve-3d;
    will-change: transform;
}

@keyframes shimmer-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.card-shimmer {
    background: linear-gradient(
        -45deg, 
        rgb(255 255 255 / 5%),
        rgb(10 147 150 / 25%),
        rgb(255 255 255 / 15%),
        rgb(10 147 150 / 10%)
    );
    background-size: 300% 300%;
    animation: shimmer-flow 8s ease infinite;
    backdrop-filter: blur(4px);
    border: 1px solid rgb(255 255 255 / 10%);
    transition: all 0.5s ease;
}

.card-shimmer:hover {
    border-color: rgb(10 147 150 / 50%);
    box-shadow: 0 0 30px rgb(10 147 150 / 15%);
}

/* =========================================
   6. Roadmap Section
   ========================================= */

@keyframes breathing-sequence {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgb(10 147 150 / 0%);
    }
    
    12.5% {
        transform: scale(1.05);
        box-shadow: 0 0 15px 5px rgb(10 147 150 / 80%);
    }

    25% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgb(10 147 150 / 0%);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgb(10 147 150 / 0%);
    }
}

.step-badge {
    animation: breathing-sequence 12s infinite ease-in-out;
    transform-origin: center;
    will-change: transform, box-shadow;
}

.tech-card:nth-child(1) .step-badge { animation-delay: 0s; }
.tech-card:nth-child(2) .step-badge { animation-delay: 3s; }
.tech-card:nth-child(3) .step-badge { animation-delay: 6s; }
.tech-card:nth-child(4) .step-badge { animation-delay: 9s; }

.tech-card {
    background-color: white;
    border: 1px solid rgb(229 231 235 / 50%);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 5%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 0;
    background-color: #0a9396;
    transition: width 0.3s ease;
    z-index: 10;
}

.tech-card:hover {
    border-color: rgb(10 147 150 / 80%);
    box-shadow: 0 0 25px rgb(10 147 150 / 25%);
    transform: translateY(-4px);
}

.tech-card:hover::before {
    width: 12px; 
}

/* =========================================
   7. Footer & Logos
   ========================================= */

@keyframes holographic-shine {
    0% { transform: translateX(-150%) skewX(-25deg); }
    100% { transform: translateX(150%) skewX(-25deg); }
}

.logo-sheen {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
}

.logo-sheen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgb(255 255 255 / 0%),
        rgb(255 255 255 / 30%),
        rgb(255 255 255 / 0%)
    );
    transform: translateX(-150%) skewX(-25deg);
    pointer-events: none;
}

.logo-sheen:hover::after {
    animation: holographic-shine 0.8s ease-in-out;
}

/* =========================================
   8. Interactive Buttons
   ========================================= */

@keyframes btn-ripple-pulse {
    0% { box-shadow: 0 0 0 0 rgb(10 147 150 / 40%); }
    70% { box-shadow: 0 0 0 20px rgb(10 147 150 / 0%); }
    100% { box-shadow: 0 0 0 0 rgb(10 147 150 / 0%); }
}

.btn-ripple {
    position: relative;
    animation: btn-ripple-pulse 3s infinite cubic-bezier(0.4, 0, 0.6, 1);
    z-index: 1;
}

@keyframes sound-wave-jump {
    0%, 100% { height: 4px; }
    50% { height: 16px; }
}

.sound-wave-container {
    display: flex;
    align-items: center;
    height: 16px;
    margin-left: 0.75rem;
}

.sound-bar {
    display: inline-block;
    width: 3px;
    margin: 0 1px;
    background-color: rgb(255 255 255 / 80%);
    border-radius: 4px;
    height: 4px;
    animation: sound-wave-jump 0.8s infinite ease-in-out paused;
}

.sound-bar:nth-child(1) {
    animation-delay: 0.0s;
}

.sound-bar:nth-child(2) {
    animation-delay: 0.2s;
    height: 6px;
}

.sound-bar:nth-child(3) {
    animation-delay: 0.4s;
}

.sound-bar:nth-child(4) {
    animation-delay: 0.1s;
    height: 8px;
}

.sound-bar:nth-child(5) {
    animation-delay: 0.3s;
}

.btn-primary:hover .sound-bar {
    animation-play-state: running;
}

/* =========================================
   9. Maintenance Page Specifics
   ========================================= */
.maintenance-container {
    max-width: 600px;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.icon-gear {
    width: 60px;
    height: 60px;
    stroke: #0a9396;
    stroke-width: 1.5px;
    margin-bottom: 25px;
    margin-left: auto;
    margin-right: auto;
    animation: spin 10s linear infinite;
}

/* =========================================
   10. Flip Cards (Culture Section)
   ========================================= */
.perspective-1000 {
    perspective: 1000px;
}

.transform-style-3d {
    transform-style: preserve-3d;
}

.backface-hidden {
    backface-visibility: hidden;
}

.rotate-y-180 {
    transform: rotateY(180deg);
}

@media (hover: hover) and (pointer: fine) {
    .flip-card:hover .flip-card-inner {
        transform: rotateY(180deg);
    }
}

.flip-card.is-flipped .flip-card-inner {
    transform: rotateY(180deg);
}

/* =========================================
   11. Localized Videos (Founder Pitch)
   ========================================= */

#video-uk { 
    display: none; 
}

#video-placeholder { 
    display: flex; 
}

html[lang="uk"] #video-uk { 
    display: block; 
}

html[lang="uk"] #video-placeholder { 
    display: none; 
}

/* =========================================
   12. Hide Scrollbar (Pitch Deck Slider)
   ========================================= */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
