/* Modern CSS Reset & Custom Properties */
:root {
    --primary-color: #020637;
    --accent-color: #3B82F6;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --error-color: #EF4444;
    --text-light: #FFFFFF;
    --text-dark: #1F2937;
    --text-muted: #9CA3AF;
    --background-dark: #020637;
    --background-light: #F9FAFB;
    --glass-effect: rgba(255, 255, 255, 0.1);
    --glass-effect-dark: rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --nav-height: 64px;
    --border-radius-sm: 0.375rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 1rem;
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    background: var(--background-dark);
    color: var(--text-light);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: 2rem;
    letter-spacing: -0.025em;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.25rem;
}

p {
    margin-bottom: var(--spacing-md);
}

/* Layout & Navigation */
.top-nav, .bottom-nav {
    position: fixed;
    left: 0;
    width: 100%;
    z-index: 50;
    background: var(--primary-color);
    backdrop-filter: blur(12px);
}

.top-nav {
    top: 0;
    border-bottom: 1px solid var(--glass-effect);
}

.bottom-nav {
    bottom: 0;
    border-top: 1px solid var(--glass-effect);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--nav-height);
    padding: 0 var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto;
}

/* Navigation Components */
.nav-button {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius-md);
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    background: var(--glass-effect);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.nav-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.nav-button.primary {
    background: var(--accent-color);
}

.nav-button.primary:hover {
    background: #2563EB;
    transform: translateY(-1px);
}

.logo {
    flex: 1;
    text-align: center;
}

.logo img {
    height: 40px;
    object-fit: contain;
}

/* Page Navigation Menu */
.page-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: var(--primary-color);
    padding: var(--spacing-md);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 40;
    border-bottom: 1px solid var(--glass-effect);
}

.page-menu.active {
    transform: translateY(0);
}

.menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    max-width: 600px;
    margin: 0 auto;
}

.menu-item {
    display: block;
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    font-weight: 500;
}

.menu-item:hover {
    background: var(--glass-effect);
}

.menu-item.active {
    background: var(--accent-color);
}

/* Main Content Area */
#app-container {
    height: calc(100vh - calc(var(--nav-height) * 2));
    margin-top: var(--nav-height);
    position: relative;
    overflow: hidden;
}



.page {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
    padding: 60px 0;
    display: none;
}

.page.active {
    opacity: 1;
    visibility: visible;
    display: block;
}

#app-container {
    position: relative;
    height: calc(100vh - 120px); /* Account for header and footer */
    overflow: hidden;
    margin-top: 60px; /* Height of the header */
}

/* Ensure content is centered in pages */
.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

/* Images and Media */
.hero-image {
    width: 90%;
    max-width: 400px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    margin-bottom: var(--spacing-lg);
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.image-grid img {
    width: 100%;
    border-radius: var(--border-radius-md);
    aspect-ratio: 16/9;
    object-fit: cover;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.image-grid img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* Section Navigation */
.section-nav {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    padding: var(--spacing-sm) 0;
}

.section-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.section-dot.active {
    background: var(--text-light);
    transform: scale(1.2);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--glass-effect-dark);
    backdrop-filter: blur(8px);
    z-index: 100;
    cursor: pointer;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.fade-in {
    animation: fadeIn 0.3s ease;
}

.slide-up {
    animation: slideUp 0.5s ease;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }

/* Responsive Design */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .image-grid {
        grid-template-columns: 1fr;
    }

    .nav-button span {
        display: none;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .image-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .content {
        padding: 0 var(--spacing-xl);
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-light: #FFFFFF;
        --text-dark: #E5E7EB;
        --text-muted: #9CA3AF;
        --background-dark: #020637;
        --glass-effect: rgba(255, 255, 255, 0.1);
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .nav-button:hover {
        background: var(--glass-effect);
    }

    .image-grid img:hover {
        transform: none;
    }
}

/* Print Styles */
@media print {
    .top-nav,
    .bottom-nav,
    .page-menu {
        display: none;
    }

    #app-container {
        height: auto;
        margin: 0;
        overflow: visible;
    }

    .page {
        position: relative;
        page-break-after: always;
    }
}


/* Menu Styles */
.page-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: var(--primary-color);
    padding: 1rem;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 40;
}

.menu-list {
    max-width: 600px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: var(--text-light);
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.menu-item svg {
    flex-shrink: 0;
}

.menu-item span {
    font-size: 1rem;
    font-weight: 500;
}

.menu-item.active {
    background: var(--accent-color);
}

/* Image Grid */
.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1rem 0;
    padding: 0 1rem;
}

.image-item {
    position: relative;
    margin: 0;
}

.image-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.image-item figcaption {
    margin-top: 0.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Bottom Navigation */
.bottom-nav {
    background: var(--primary-color);
    padding: 0.5rem;
}

.nav-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .nav-button span {
        display: inline-block; /* Show text on mobile */
        font-size: 0.8rem;
    }

    .menu-item {
        padding: 1rem 0.75rem;
    }

    .menu-item svg {
        width: 18px;
        height: 18px;
    }

    .image-grid {
        grid-template-columns: 1fr; /* Stack images on mobile */
        gap: 0.75rem;
    }

    .image-item img {
        height: 180px;
    }

    .page .content {
        padding: 1rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    .section-nav {
        right: 0.5rem;
    }

    .bottom-nav .nav-container {
        gap: 0.5rem;
    }
}

/* Page Title Styles */
.page-title {
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.8rem;
    color: var(--text-light);
    font-weight: 600;
}

/* Menu Items with Count */
.menu-item .page-count {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
}

/* Loading Animation */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}


