@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    /* Vibrant Liquid Palette */
    --accent-primary: #4fd1c5; /* Saturated Mint */
    --accent-secondary: #7a5a9e; /* Sunset Mauve */
    --accent-vibrant: #f06292; /* Liquid Pink */
    --bg-deep: #0a191a; /* Midnight Teal */
    --text-main: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.7);
    
    /* Liquid Glass Effects */
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-blur: blur(25px) saturate(180%);
    --glass-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-deep);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Scroll Snapping for One-Page Layout */
html {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Offset for navbar */
}

section, .hero, footer {
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Liquid Animated Background */
.liquid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--bg-deep);
    overflow: hidden;
}

.liquid-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: move 20s infinite alternate;
}

.blob-1 {
    background: var(--accent-primary);
    top: -10%;
    left: -10%;
}

.blob-2 {
    background: var(--accent-secondary);
    bottom: -10%;
    right: -10%;
    animation-delay: -5s;
}

.blob-3 {
    background: var(--accent-vibrant);
    top: 40%;
    left: 30%;
    width: 400px;
    height: 400px;
    animation-delay: -10s;
}

@keyframes move {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(100px, 100px) scale(1.2); }
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Glass Component Overhaul */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 32px;
    padding: 2rem;
    position: relative;
}

.navbar {
    z-index: 1000;
    transition: all 0.3s ease;
}

.glass-nav {
    background: rgba(10, 25, 26, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(10, 25, 26, 0.98);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        margin-top: 10px;
        padding: 25px;
        border-radius: 24px;
        border: 1px solid var(--glass-border);
        box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    }
}

.navbar-brand {
    font-weight: 700;
    color: var(--accent-primary) !important;
    font-size: 1.8rem;
}

.nav-link {
    color: var(--text-dim) !important;
    font-weight: 500;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover, .nav-link.active {
    color: #fff !important;
    transform: translateY(-2px);
}

/* Premium Buttons */
.btn-liquid {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    color: #fff;
    padding: 14px 32px;
    border-radius: 100px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(79, 209, 197, 0.3);
}

.btn-liquid:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(79, 209, 197, 0.5);
    color: #fff;
}

.btn-outline-glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 14px 32px;
    border-radius: 100px;
    transition: all 0.3s ease;
}

.btn-outline-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
}

/* Hero Modernization */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    z-index: 1;
    background: url('../images/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(10, 25, 26, 0.9) 0%, rgba(10, 25, 26, 0.4) 100%);
    z-index: -1;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    line-height: 1;
    margin-bottom: 2rem;
}

/* Card Design (No Overlap) */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-primary);
}

.card-img-wrapper {
    width: 100%;
    height: 220px;
    border-radius: 20px;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Table Design Fix */
.schedule-table-wrapper {
    overflow-x: auto;
    border-radius: 24px;
}

.schedule-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.schedule-table th {
    padding: 15px 20px;
    color: var(--text-dim);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.schedule-table td {
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.schedule-table td:first-child {
    border-left: 1px solid var(--glass-border);
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.schedule-table td:last-child {
    border-right: 1px solid var(--glass-border);
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* Forms */
.form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: #fff;
    border-radius: 16px;
    padding: 15px;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-primary);
    color: #fff;
    box-shadow: none;
}

/* Testimonials */
.testi-img {
    width: 70px;
    height: 70px;
    border: 3px solid var(--accent-primary);
}

/* Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 4/5;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px rgba(79, 209, 197, 0.2);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

@media (max-width: 991px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .gallery-item {
        border-radius: 16px;
        aspect-ratio: 1/1;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .section-title {
        font-size: 2.2rem;
    }
    .btn-outline-glass {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    .btn-liquid {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    section.pt-5.mt-5, .container.pt-5 {
        padding-top: 2rem !important;
        margin-top: 1rem !important;
    }
}

/* Utility Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

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

@media (max-width: 768px) {
    .hero { text-align: center; }
    .hero-title { font-size: 3rem; }
}

#preloader {
    background: var(--bg-deep);
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 26, 0.95);
    backdrop-filter: blur(15px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    cursor: zoom-out;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 20px;
    box-shadow: 0 0 50px rgba(79, 209, 197, 0.3);
    border: 1px solid var(--glass-border);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    object-fit: contain;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 50px;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--accent-primary);
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .lightbox-close {
        top: 20px;
        right: 20px;
    }
}
