/* ===== Custom Styles for Lotus Lounge ===== */

/* Base & Utilities */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Navigation ===== */
#navbar {
    background: rgba(250, 250, 247, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

.nav-logo-text {
    transition: color 0.3s ease;
}

/* Mobile Menu */
#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.active .mobile-link {
    animation: fadeUp 0.4s ease forwards;
    opacity: 0;
}

#mobile-menu.active .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.active .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.active .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.active .mobile-link:nth-child(4) { animation-delay: 0.2s; }
#mobile-menu.active .mobile-link:nth-child(5) { animation-delay: 0.25s; }

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

/* Hamburger animation */
#menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menu-btn.active .menu-line:nth-child(3) {
    width: 1.5rem;
    transform: rotate(-45deg) translate(4px, -4px);
}

/* ===== Hero ===== */
.clip-hero-right {
    clip-path: polygon(25% 0, 100% 0, 100% 100%, 0% 100%);
}

/* Geometric shapes */
.geo-shape {
    position: absolute;
    pointer-events: none;
}

.shape-circle-1 {
    width: 400px;
    height: 400px;
    border: 2px solid rgba(13, 148, 136, 0.08);
    border-radius: 50%;
    top: 10%;
    left: -100px;
    animation: float-slow 20s ease-in-out infinite;
}

.shape-circle-2 {
    width: 200px;
    height: 200px;
    background: rgba(13, 148, 136, 0.04);
    border-radius: 50%;
    bottom: 15%;
    left: 10%;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.shape-rect-1 {
    width: 120px;
    height: 120px;
    background: rgba(13, 148, 136, 0.06);
    border-radius: 24px;
    top: 20%;
    right: 28%;
    transform: rotate(15deg);
    animation: float-slow 18s ease-in-out infinite;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(13, 148, 136, 0.05);
    top: 35%;
    left: 5%;
    animation: float-slow 22s ease-in-out infinite reverse;
}

.shape-dots {
    background-image: radial-gradient(circle, rgba(13, 148, 136, 0.15) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    width: 160px;
    height: 160px;
    bottom: 25%;
    right: 30%;
    opacity: 0.6;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

/* Hero image animations */
.hero-img-main {
    animation: slideInRight 1s ease forwards;
    opacity: 0;
    transform: translateX(40px);
}

.hero-float-img {
    animation: slideInLeft 1s ease 0.2s forwards;
    opacity: 0;
    transform: translateX(-40px);
}

.hero-badge-float {
    animation: floatBadge 4s ease-in-out infinite;
}

@keyframes slideInRight {
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInLeft {
    to { opacity: 1; transform: translateX(0); }
}

@keyframes floatBadge {
    0%, 100% { transform: rotate(6deg) translateY(0); }
    50% { transform: rotate(6deg) translateY(-10px); }
}

.hero-badge {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.hero-badge-float {
    animation-delay: 0.4s;
}

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

/* Scroll line animation */
.scroll-line {
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; height: 48px; }
    50% { opacity: 1; height: 64px; }
}

/* ===== About Section ===== */
/* Card hover handled via Tailwind group */

/* ===== Product Cards ===== */
.product-card {
    opacity: 0;
    transform: translateY(30px);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.product-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Gallery ===== */
.gallery-item {
    cursor: pointer;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.gallery-item.visible {
    opacity: 1;
    transform: scale(1);
}

/* ===== Section Reveal ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .clip-hero-right {
        clip-path: polygon(40% 0, 100% 0, 100% 100%, 0% 100%);
    }

    #hero {
        padding-top: 100px;
    }

    .shape-circle-1,
    .shape-circle-2,
    .shape-rect-1,
    .shape-triangle,
    .shape-dots {
        display: none;
    }
}

@media (max-width: 640px) {
    .clip-hero-right {
        clip-path: polygon(55% 0, 100% 0, 100% 100%, 0% 100%);
    }
}

/* ===== Focus & Accessibility ===== */
*:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
}

/* ===== Selection ===== */
::selection {
    background: rgba(13, 148, 136, 0.2);
    color: #134e4a;
}
