:root {
    --primary-blue: #4a90e2;
    --liquid-glass-bg: rgba(255, 255, 255, 0.4);
    --liquid-glass-border: rgba(255, 255, 255, 0.6);
}
body {
    font-family: 'Noto Sans SC', sans-serif;
    /* Liquid background style */
    background: linear-gradient(135deg, #F0F8FF 0%, #dbeafe 50%, #eff6ff 100%);
    background-attachment: fixed;
    color: #333;
    scroll-behavior: smooth;
    overflow-x: hidden;
    min-height: 100vh;
}
/* Animated Background Orbs */
.bg-orb {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.4;
    animation: orb-move 20s infinite alternate ease-in-out;
}
.orb-1 { background: #60a5fa; top: -10%; left: -10%; }
.orb-2 { background: #93c5fd; bottom: 10%; right: -10%; animation-delay: -5s; }

@keyframes orb-move {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.2); }
}

.hero-bg {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('/static/images/hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Liquid Glass Card Effect */
.glass-card {
    position: relative;
    overflow: hidden;
    background: var(--liquid-glass-bg);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid var(--liquid-glass-border);
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.glass-card:hover {
    transform: translateY(-12px) scale(1.02) !important;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 30px 70px rgba(31, 38, 135, 0.3);
    border-color: rgba(255, 255, 255, 0.9);
}

.text-gradient {
    background: linear-gradient(to right, #2563eb, #4a90e2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Floating Animation */
.float-animation {
    animation: floating 3s infinite ease-in-out;
}
@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.gallery-img:hover {
    transform: scale(1.05);
    transition: all 0.3s ease-in-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--primary-blue); border-radius: 10px; }

/* Lenis Smooth Scroll Fixes */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* Section Transitions */
section {
    position: relative;
    padding-top: 10rem;
    padding-bottom: 10rem;
    overflow: visible;
}

.section-divider {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 5;
    pointer-events: none;
}

.divider-top {
    top: -100px;
    background: linear-gradient(to top, inherit, transparent);
}

.divider-bottom {
    bottom: -100px;
    background: linear-gradient(to bottom, inherit, transparent);
}

/* Curve Divider SVG */
.curve-divider {
    position: absolute;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 10;
}

.top-divider {
    top: 0;
    transform: rotate(0deg);
}

.bottom-divider {
    bottom: 0;
    transform: rotate(180deg);
}

.curve-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
}

.curve-divider .shape-fill {
    fill: #FFFFFF;
}

/* Specific section smoothing */
#features { background-color: transparent; }
#gallery { background-color: rgba(255, 255, 255, 0.4); }
#modes { background-color: rgba(59, 130, 246, 0.05); }
#join { background-color: transparent; }

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Button & Link Hover States */
a, button {
    position: relative;
    overflow: hidden;
}

.btn-hover-effect {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-hover-effect:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

/* Toast Notification */
.toast-container {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: none;
}

.toast {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.2rem 2.5rem;
    border-radius: 1.2rem;
    box-shadow: 0 15px 45px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    transform: translateX(150%);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 6px solid #10b981;
    pointer-events: auto;
    min-width: 300px;
}

.toast.error {
    border-left-color: #ef4444;
}

.toast.show {
    transform: translateX(0);
}

/* Navbar Scroll Effect */
#main-nav {
    transition: transform 0.4s ease, background-color 0.4s ease;
}

#main-nav.nav-hidden {
    transform: translateY(-100%);
}

#main-nav.nav-scrolled {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

/* Hamburger Animation */
.hamburger-line {
    transition: all 0.3s ease;
}

.menu-open .line-1 {
    transform: translateY(8px) rotate(45deg);
}

.menu-open .line-2 {
    opacity: 0;
}

.menu-open .line-3 {
    transform: translateY(-8px) rotate(-45deg);
}

/* Page Load Fade-in */
.fade-in-load {
    animation: fadeInPage 0.8s ease-out forwards;
}

@keyframes fadeInPage {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-down {
    animation: fadeInDown 0.3s ease-out forwards;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Input Focus & Label Effects */
.input-group {
    position: relative;
}

.floating-input {
    border-bottom: 2px solid #e2e8f0;
    transition: border-color 0.3s ease;
}

.floating-input:focus {
    border-color: var(--primary-blue);
    outline: none;
}

.floating-label {
    position: absolute;
    left: 0;
    top: 10px;
    color: #94a3b8;
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Progressive Image Loading */
.img-progressive {
    filter: blur(20px);
    transition: filter 0.6s ease-out;
}

.img-progressive.loaded {
    filter: blur(0);
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(to right, #2563eb, #60a5fa);
    z-index: 10001;
    transition: width 0.1s ease-out;
}

/* Join Section Specific */
.join-card-bg {
    background: rgba(235, 244, 255, 0.8) !important;
}

.join-card-bg:hover {
    background: rgba(235, 244, 255, 0.95) !important;
}

#join .glass-card {
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
}

/* Status Dot & Pulse Animations */
.pulse-online {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #4ade80;
    border-radius: 50%;
    margin-right: 8px;
    position: relative;
}

.pulse-online::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #4ade80;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(3); opacity: 0; }
}

.status-dot-offline {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #f87171;
    border-radius: 50%;
    margin-right: 8px;
}
