@tailwind base;
@tailwind components;
@tailwind utilities;

.font-script { font-family: 'Dancing Script', cursive; }
.font-serif { font-family: 'Playfair Display', serif; }

body {
    background-color: #F0F4F8;
    background-image: url("https://www.transparenttextures.com/patterns/watercolor.png");
}

.animate-spin-slow { animation: spin 8s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.animate-float-slow { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.animate-morph { animation: morph 8s ease-in-out infinite; }
@keyframes morph {
    0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    50% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
}

.blob { position: fixed; border-radius: 50%; filter: blur(60px); z-index: -1; opacity: 0.6; }
.blob-1 { top: -10%; left: -10%; width: 300px; height: 300px; background: #A2D2FF; }
.blob-2 { bottom: 10%; right: -10%; width: 250px; height: 250px; background: #FFC8DD; }
.blob-3 { top: 40%; left: 20%; width: 200px; height: 200px; background: #CDB4DB; opacity: 0.4; }

.gate-overlay {
    position: fixed; inset: 0; z-index: 50;
    display: flex; justify-content: center; items-center: center;
    transition: transform 1s ease-in-out;
}
.gate-overlay.open { transform: translateY(-100%); }

.page-section {
    position: absolute; inset: 0;
    opacity: 0; visibility: hidden; z-index: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: translateY(20px);
}
.page-section.active {
    opacity: 1; visibility: visible; z-index: 10;
    transform: translateY(0);
}
.page-section.scrollable {
    overflow-y: auto;

    -ms-overflow-style: none; scrollbar-width: none;
}
.page-section.scrollable::-webkit-scrollbar { display: none; }

.water-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(93, 138, 168, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.section-title {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: #5D8AA8;
    margin-bottom: 1rem;
    text-align: center;
}

.nav-wrapper {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: auto;
    max-width: 95%;
}

.nav-items {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(93, 138, 168, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.6);

    display: flex;
    align-items: center;
    gap: 4px;

    width: 0;
    padding: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-wrapper.open .nav-items {
    width: auto;
    opacity: 1;
    padding: 6px 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.nav-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #888;
    cursor: pointer;
    transition: 0.2s;

    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;

    flex-shrink: 0;
}

.nav-btn:hover {
    background: #F0F4F8;
    color: #5D8AA8;
}

.nav-btn.active {
    background: #5D8AA8;
    color: white;
    box-shadow: 0 4px 10px rgba(93, 138, 168, 0.3);
    transform: scale(1.05);
}

.nav-trigger {
    width: 50px;
    height: 50px;
    background: #2C3E50;
    color: white;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);

    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
    flex-shrink: 0;
}

.nav-trigger:active {
    transform: scale(0.9);
}

.nav-wrapper.open .nav-trigger {
    transform: rotate(135deg);
    background: #D65A78;
}

@media (min-width: 768px) {
    .nav-btn::after {
        content: attr(data-label);
        position: absolute; top: -35px; left: 50%; transform: translateX(-50%);
        background: #333; color: white; padding: 4px 8px; border-radius: 4px;
        font-size: 10px; opacity: 0; pointer-events: none; transition: 0.2s; white-space: nowrap;
    }
    .nav-btn:hover::after { opacity: 1; top: -40px; }
}