/* -------------------------------------------------
   Global reset & basic typography
   ------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    /* Smooth Scrolling */
    scroll-behavior: smooth;
    
    /* Modern Font: Inter */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover { 
    text-decoration: underline; 
    color: #004499;
}

/* -------------------------------------------------
   Layout containers
   ------------------------------------------------- */
.site-header {
    background-color: #004466;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    
    /* Sticky Header */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.site-header h1 { 
    margin-bottom: 0.5rem; 
    font-weight: 700;
}

.nav a {
    margin: 0 0.8rem;
    color: #cceeff;
    font-weight: 500;
    font-size: 1rem;
}
.nav a:hover {
    color: #fff;
    text-decoration: none;
}

.site-main { 
    max-width: 960px; 
    margin: 2rem auto; 
    padding: 0 1rem; 
}

.intro,
.about-section { 
    margin-bottom: 2.5rem; 
}

.intro h2,
.about-section h2,
.gallery-section h2 { 
    margin-bottom: 0.8rem; 
    color: #004466;
    font-weight: 600;
}

/* -------------------------------------------------
   HERO SECTION
   ------------------------------------------------- */
.hero {
    background: linear-gradient(135deg, #004466 0%, #006699 100%);
    color: white;
    text-align: center;
    padding: 4rem 1rem;
    margin-bottom: 2rem;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* -------------------------------------------------
   Gallery styling – responsive grid
   ------------------------------------------------- */
.gallery-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.gallery-grid figure {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    
    /* Animation: Fade In Up */
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

/* Staggered Animation Delays */
.gallery-grid figure:nth-child(1) { animation-delay: 0.1s; }
.gallery-grid figure:nth-child(2) { animation-delay: 0.2s; }
.gallery-grid figure:nth-child(3) { animation-delay: 0.3s; }
.gallery-grid figure:nth-child(4) { animation-delay: 0.4s; }
.gallery-grid figure:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Image Wrapper for Hover Effect */
.gallery-grid figure a {
    display: block;
    overflow: hidden;
    cursor: pointer;
}

.gallery-grid img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

/* Hover Zoom Effect */
.gallery-grid figure:hover img {
    transform: scale(1.08);
}

.gallery-grid figcaption {
    padding: 0.8rem;
    font-size: 0.95rem;
    text-align: center;
    background: #f9f9f9;
    border-top: 1px solid #eee;
    font-weight: 500;
    color: #555;
}

/* -------------------------------------------------
   Footer
   ------------------------------------------------- */
.site-footer {
    margin-top: 3rem;
    padding: 2rem 0;
    background-color: #f4f4f4;
    text-align: center;
    border-top: 1px solid #ddd;
}

.site-footer p {
    font-size: 0.9rem;
    color: #666;
}

/* -------------------------------------------------
   Media queries – tweak for very small screens
   ------------------------------------------------- */
@media (max-width: 600px) {
    .hero h2 { font-size: 1.8rem; }
    .hero p { font-size: 1rem; }
    .nav a { display: inline-block; margin: 0.4rem 0.5rem; }
}