/* ======================================================
   SHIVAM RO — GLOBAL STYLES
   ====================================================== */

/* Liquid Background Glow */
.liquid-bg {
    position: fixed;
    inset: -10%;
    z-index: -1;
    filter: blur(80px);
    background: radial-gradient(circle at 50% 50%, #3b82f633 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, #60a5fa33 0%, transparent 40%);
    animation: liquid-move 15s infinite ease-in-out;
}

@keyframes liquid-move {
    0%, 100% { transform: scale(1) translate(0, 0); }
    33%       { transform: scale(1.2) translate(5%, -5%); }
    66%       { transform: scale(0.9) translate(-5%, 5%); }
}

/* Feature Cards */
.feature-card {
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.04);
}

/* Buttons */
a:active {
    transform: scale(0.95);
    filter: brightness(0.9);
}

body {
    scroll-behavior: smooth;
    letter-spacing: -0.02em;
}

/* ======================================================
   SCROLL ANIMATION SECTION
   ====================================================== */

#animation-section {
    height: 300vh;
    position: relative;
}

#canvas-sticky-wrapper {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #050608;
}

#animation-canvas {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* On mobile portrait, make canvas fill the full viewport */
@media (max-width: 640px) {
    #canvas-sticky-wrapper {
        height: 100dvh;
        background: #0a1628; /* match the dark blue of the water animation */
    }

    #animation-canvas {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }
}

/* ── Scroll Progress Bar ── */
#scroll-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #3b82f6, #60a5fa, #93c5fd);
    box-shadow: 0 0 12px rgba(96, 165, 250, 0.8);
    transition: width 0.05s linear;
    border-radius: 0 2px 2px 0;
}

/* ── Overlay Text ── */
.overlay-text-container {
    position: absolute;
    left: 4%;
    top: 15%;
    z-index: 10;
    max-width: 300px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    padding: 1rem 1.25rem;
}

/* Mobile: smaller overlay */
@media (max-width: 480px) {
    .overlay-text-container {
        left: 3%;
        top: 10%;
        max-width: 220px;
        padding: 0.75rem 1rem;
        border-radius: 1rem;
    }
}

.overlay-text-inner {
    animation: fadeSlideIn 0.5s ease forwards;
}
.overlay-text-inner.hidden {
    display: none;
}

.overlay-label {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #fbbf24;
    margin-bottom: 0.6rem;
    padding: 3px 10px;
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.1);
}

.overlay-heading {
    font-size: clamp(1.2rem, 4vw, 2.8rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: #ffffff;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Scroll Hint ── */
.scroll-hint {
    font-size: 0.72rem;
    letter-spacing: 0.2em;
}

/* ── Loading Overlay ── */
#loading-overlay {
    position: fixed;
    inset: 0;
    background: #050608;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: opacity 0.5s ease;
    padding: 1rem;
}
#loading-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(96, 165, 250, 0.2);
    border-top-color: #60a5fa;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.loading-text {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #60a5fa;
    text-align: center;
}

#loading-bar-track {
    width: min(200px, 80vw);
    height: 3px;
    background: rgba(96, 165, 250, 0.15);
    border-radius: 99px;
    overflow: hidden;
}

#loading-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #3b82f6, #93c5fd);
    border-radius: 99px;
    transition: width 0.1s linear;
}

/* ======================================================
   MOBILE TOUCH IMPROVEMENTS
   ====================================================== */

/* Prevent tap highlight on mobile */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* Better touch targets on mobile */
@media (max-width: 640px) {
    #nav-order-btn {
        min-height: 40px;
        display: flex;
        align-items: center;
    }

    #whatsapp-order-btn {
        width: 100%;
        justify-content: center;
    }
}
