/* ============================================
   Likea Pro - Main Stylesheet
   ============================================ */

/* Reset & Base */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: #000;
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling on iOS */
}

/* ============================================
   Navbar
   ============================================ */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: transparent;
    transition: background 0.3s ease;
}

/* Navbar inner container for max-width */
nav>* {
    max-width: 1400px;
    margin: 0 auto;
}

@media (min-width: 1536px) {
    nav {
        padding-left: max(1rem, calc((100vw - 1400px) / 2));
        padding-right: max(1rem, calc((100vw - 1400px) / 2));
    }
}

/* ============================================
   Mobile Navigation Menu
   ============================================ */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(18, 18, 18, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 200;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.mobile-menu a {
    color: #E0E0E0;
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.mobile-menu a:hover {
    color: #4CAF50;
    transform: scale(1.05);
}

.mobile-menu-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #E0E0E0;
    cursor: pointer;
    padding: 0.5rem;
}

/* ============================================
   Hero Title Section
   ============================================ */
.title,
.tittle {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 15;
    text-align: center;
    width: 90%;
    max-width: 800px;
    will-change: opacity, transform;
    transition: opacity 0.1s linear;
}

.text-glow {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5),
        0 4px 20px rgba(76, 175, 80, 0.2);
}

/* Vertical text accent - hidden on mobile */
.vertical-text-left {
    writing-mode: vertical-lr;
    text-orientation: upright;
    z-index: 15;
    position: fixed;
    top: 20%;
    left: 2%;
    line-height: 2;
    letter-spacing: 20px;
    color: rgba(76, 175, 80, 0.6);
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
    font-weight: 700;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .vertical-text-left {
        display: none;
    }

    .title,
    .tittle {
        top: 45%;
        padding: 0 1rem;
    }

    .title h1,
    .tittle h1 {
        font-size: 2.5rem !important;
        line-height: 1.2;
    }

    .title p,
    .tittle p {
        font-size: 1rem !important;
    }
}

.form-input {
    width: 100%;
    background-color: var(--surface-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    height: 3rem;
    padding: 0 1rem;
    color: var(--text-dark-primary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input::placeholder {
    color: var(--text-dark-secondary);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.25);
}

/* ============================================
   Scroll Video System
   ============================================ */
#set-height {
    display: block;
    pointer-events: none;
}

#v0 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    /* Dynamic viewport height for mobile */
    object-fit: cover;
    z-index: 5;
    transition: opacity 0.3s ease-out;
    will-change: opacity;
}

/* Next section after video */
#next-div {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
    position: relative;
    z-index: 10;
    background: rgb(18, 18, 18);
    padding: 80px 20px;
    text-align: center;
    min-height: 100vh;
}

#next-div.visible {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}

/* ============================================
   Typography
   ============================================ */
h1,
h2,
h3,
p {
    font-family: "Manrope", sans-serif;
}

/* ============================================
   Animations
   ============================================ */

/* Glow animation for cards */
@keyframes glow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hover\:animate-glow:hover {
    background-size: 200% 200%;
    animation: glow 3s linear infinite;
}

/* Gradient shimmer */
@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradient 8s ease infinite;
}

/* Floating elements */
@keyframes float-slow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes float-fast {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-40px);
    }
}

.animate-float-slow {
    animation: float-slow 6s ease-in-out infinite;
}

.animate-float-fast {
    animation: float-fast 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* ============================================
   Performance Optimizations
   ============================================ */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .animate-float,
    .animate-float-slow,
    .animate-float-fast,
    .animate-gradient {
        animation: none;
    }
}

/* GPU acceleration hints */
.gpu-accelerate {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* ============================================
   Loading States
   ============================================ */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: btn-spin 0.6s linear infinite;
}

.btn-loading .btn-text {
    visibility: hidden;
}

@keyframes btn-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
