/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #4A90E2 0%, #035563 100%);
    min-height: 100vh;
    color: white;
    overflow-x: hidden;
}

/* Section 1: Top Header */
.top-section {
    position: relative;
    width: 100%;
    height: 40vh;
    min-height: 250px;
    overflow: hidden;
}

.header-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 0 20px 20px;
}

.header-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
}

.header-content h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.header-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Section 2: Mid Section with Slider */
.mid-section {
    padding: 20px;
    background: transparent;
}

.slider-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.slider {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    height: 200px;
}

.slide {
    display: none;
    position: relative;
    width: 100%;
    height: 100%;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
}

.slide-info {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0,0,0,0.6);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.slider-dots {
    text-align: center;
    margin-top: 15px;
}

.dot {
    height: 8px;
    width: 8px;
    margin: 0 5px;
    background-color: rgba(255,255,255,0.4);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active,
.dot:hover {
    background-color: white;
}

/* Section 3: Button Grid */
.button-section {
    padding: 30px 20px;
}

.button-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
}

.nav-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 15px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-height: 80px;
}

.nav-button:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

.nav-button .icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.nav-button .label {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Section 4: Bottom Navigation */
.bottom-section {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    border-top: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(20px);
    z-index: 1000;
}

.bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0 20px 0;
    max-width: 500px;
    margin: 0 auto;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: rgba(255,255,255,0.7);
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 12px;
    min-width: 60px;
}

.nav-item.active {
    color: white;
    background: rgba(255,255,255,0.15);
}

.nav-item:hover {
    color: white;
    background: rgba(255,255,255,0.1);
}

.nav-icon {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.nav-label {
    font-size: 1.25rem;
    font-weight: 500;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .header-content h1 {
        font-size: 2rem;
    }
    
    .header-content p {
        font-size: 1rem;
    }
    
    .button-grid {
        gap: 12px;
        padding: 0 10px;
    }
    
    .nav-button {
        padding: 15px;
        min-height: 70px;
    }
    
    .nav-button .icon {
        font-size: 1.5rem;
    }
    
    .nav-button .label {
        font-size: 1.375em;
    }
}

@media (max-width: 360px) {
    .mid-section {
        padding: 15px;
    }
    
    .button-section {
        padding: 20px 15px;
    }
    
    .slide {
        height: 180px;
    }
    
    .slide img {
        height: 180px;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .top-section {
        height: 60vh;
    }
    
    .bottom-nav {
        padding: 8px 0 15px 0;
    }
}

/* Ensure content doesn't get hidden behind bottom nav */
body {
    padding-bottom: 80px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img:not([src]) {
    opacity: 0;
}

/* Focus styles for accessibility */
.nav-button:focus,
.nav-item:focus,
.dot:focus {
    outline: 2px solid rgba(255,255,255,0.8);
    outline-offset: 2px;
}
