@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,800&family=Outfit:wght@300;400;500;600;700&display=swap');

/* Modern Design System Variables */
:root {
    /* Primary Color Palette - Premium & Bold */
    --p-dark: #001d3d;
    --p-main: #003566;
    --p-accent: #ffc300;
    --s-accent: #d90429;
    
    /* Neutral Palette */
    --bg-main: #f8f9fa;
    --bg-white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    
    /* Text Colors */
    --t-heading: #001d3d;
    --t-body: #334155;
    --t-muted: #64748b;
    --t-white: #ffffff;
    
    /* Design Tokens */
    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Spacing */
    --section-gap: 8rem;
    --container-max: 1200px;
}

/* Base Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--t-body);
    background-color: var(--bg-main);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Typography Overhaul */
h1, h2, h3, h4, .section-title {
    font-family: 'Playfair Display', serif;
    color: var(--t-heading);
    font-weight: 800;
    line-height: 1.1;
}

h1 { font-size: 5rem; letter-spacing: -2px; }
h2 { font-size: 3.5rem; letter-spacing: -1px; }

p {
    font-size: 1.1rem;
    color: var(--t-body);
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section Styling */
.section {
    padding: var(--section-gap) 0;
    position: relative;
}

/* Glassmorphism Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-white);
    transition: var(--transition);
    padding: 0.8rem 0;
    box-shadow: var(--shadow-soft);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.8rem 0;
    box-shadow: var(--shadow-glass);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo img {
    height: 65px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.logo span {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--p-main);
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.header.scrolled .logo span {
    color: var(--p-main);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--t-heading);
    position: relative;
    padding: 0.5rem 0;
}

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--t-heading);
    margin: 5px 0;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--s-accent);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* Dropdown Menu - Glassmorphism */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--bg-white);
    min-width: 240px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    padding: 1rem 0;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    padding: 0.8rem 2rem;
    display: block;
    color: var(--t-body);
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--bg-main);
    color: var(--p-main);
    padding-left: 2.5rem;
}

/* Hero Section - Redesigned */
.hero {
    height: 100svh; /* Use dynamic viewport height for better fit */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--p-dark);
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: top center; /* Prioritize showing the top/faces */
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active { opacity: 0.5; }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.4) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--bg-white);
    max-width: 900px;
}

.hero-title {
    color: var(--bg-white);
    margin-bottom: 2rem;
    transform: scale(0.9);
    filter: blur(10px);
    opacity: 0;
    animation: heroReveal 1.2s forwards 0.5s;
}

.word-bloom { color: var(--p-accent); }

@keyframes heroReveal {
    to {
        transform: scale(1);
        filter: blur(0);
        opacity: 1;
    }
}

.hero-subtitle {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    font-weight: 300;
    opacity: 0;
    animation: fadeInUp 1s forwards 1s;
}

/* Buttons - Premium */
.btn-primary {
    padding: 1.2rem 3rem;
    background: var(--p-main);
    color: var(--t-white);
    border-radius: 100px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 20px 40px -10px rgba(0, 53, 102, 0.4);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px -15px rgba(0, 53, 102, 0.5);
    background: var(--p-dark);
}

.btn-secondary {
    padding: 1.2rem 3rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--t-white);
    border-radius: 100px;
    font-weight: 600;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: var(--bg-white);
    color: var(--p-dark);
    border-color: var(--bg-white);
}

/* Content Blocks & Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

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

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.line-separator {
    width: 80px;
    height: 6px;
    background: var(--s-accent);
    margin: 1.5rem auto;
    border-radius: 3px;
}

/* Vision & Mission - Glass Cards */
.vision-mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.vm-card {
    background: var(--bg-white);
    padding: 4rem 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glass);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}

.vm-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 5px;
    background: linear-gradient(90deg, var(--p-main), var(--s-accent));
}

.vm-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.1);
}

/* Activity Grid - Bento Style */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 1.5rem;
}

.activity-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    grid-column: span 1;
    cursor: pointer;
}

.activity-card:nth-child(1), .activity-card:nth-child(6) { grid-column: span 2; }
.activity-card:nth-child(3) { grid-row: span 2; }

.activity-card img {
    width: 100%; height: 100%; object-fit: cover;
    transition: var(--transition);
}

.activity-card:hover img { transform: scale(1.1); }

.activity-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    transition: var(--transition);
}

.activity-card h4 {
    color: var(--t-white);
    font-size: 1.5rem;
    font-family: 'Outfit', sans-serif;
}

/* Rules Section */
.rules-container {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-glass);
    max-height: 600px;
    overflow-y: auto;
}

.rules-list li {
    padding: 1.5rem 0;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.rules-list li:last-child { border-bottom: none; }

.rules-list li::before {
    content: counter(item);
    counter-increment: item;
    min-width: 32px;
    height: 32px;
    background: var(--p-main);
    color: var(--t-white);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Footer - Premium Dark */
.footer {
    background: var(--p-dark);
    color: var(--bg-white);
    padding: 6rem 0 3rem;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--p-accent);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover { color: var(--t-white); transform: translateX(5px); }

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.gallery-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-glass);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
}

.gallery-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.1);
}

.gallery-image-container {
    height: 240px;
    overflow: hidden;
}

.gallery-image-container img {
    width: 100%; height: 100%; object-fit: cover;
    transition: var(--transition);
}

.gallery-card:hover img { transform: scale(1.08); }

.gallery-info { padding: 1.5rem; }
.gallery-info h3 { font-size: 1.2rem; margin-bottom: 0.8rem; }

.gallery-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--t-muted);
}

.gallery-meta span i { color: var(--s-accent); margin-right: 5px; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: var(--p-main); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--p-dark); }

/* Routes Grid */
.routes-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.route-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    background: var(--bg-white);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--t-heading);
    box-shadow: var(--shadow-glass);
    transition: var(--transition);
}

.route-tag i {
    color: var(--s-accent);
    font-size: 0.75rem;
}

.route-tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
    background: var(--p-main);
    color: var(--t-white);
}

.route-tag:hover i {
    color: var(--p-accent);
}

/* Map Section */
.map-container {
    width: 100%;
    height: 450px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-glass);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.map-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.15);
}

.map-container iframe {
    width: 100%;
    height: 100%;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    h1 { font-size: 3.5rem; }
    .activity-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hamburger { display: block; }
    
    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    }

    .nav-links.active { right: 0; }
    
    .nav-link {
        color: var(--t-heading);
        font-size: 1.5rem;
    }

    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .section-gap { --section-gap: 4rem; }
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2.2rem; }
}