/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Navigation Styles */
.topnav {
    background-color: #fb891f;
    overflow: hidden;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.topnav a {
    float: right;
    display: block;
    color: white;
    text-align: center;
    padding: 14px 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    border-radius: 5px;
    margin: 0 5px;
}

.topnav a:hover {
    background-color: #2d3748;
    transform: translateY(-2px);
}

.topnav .split {
    float: left !important;
    font-size: 20px;
    font-weight: bold;
    background: linear-gradient(45deg, #f5f4f3, #ffed4a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Gallery Images - Main Responsive Grid */
img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
}

/* Container for responsive gallery grid */
.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    padding-bottom: 80px;
}

/* Individual image styling */
.gallery-container img {
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.4s ease;
    cursor: pointer;
    height: 250px;
    object-fit: cover;
}

.gallery-container img:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, #2d3748, #1a202c);
    color: white;
    text-align: center;
    padding: 40px 20px 20px;
    margin-top: 40px;
}

.foot {
    max-width: 800px;
    margin: 0 auto;
}

.foot h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #fdfdfc, #ffed4a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.foot p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.copyright {
    font-size: 14px;
    color: #a0aec0;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #4a5568;
}

/* Responsive Design Breakpoints */

/* Large Desktop */
@media screen and (min-width: 1200px) {
    .gallery-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    
    .gallery-container img {
        height: 280px;
    }
}

/* Desktop */
@media screen and (max-width: 1199px) and (min-width: 768px) {
    .gallery-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
    
    .gallery-container img {
        height: 260px;
    }
    
    .topnav a {
        font-size: 15px;
        padding: 12px 16px;
    }
}

/* Tablet */
@media screen and (max-width: 767px) and (min-width: 481px) {
    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 15px;
    }
    
    .gallery-container img {
        height: 240px;
    }
    
    .topnav {
        padding: 0.8rem 0;
    }
    
    .topnav a {
        font-size: 14px;
        padding: 10px 14px;
        margin: 0 3px;
    }
    
    .topnav .split {
        font-size: 18px;
        padding: 10px 20px;
    }
    
    .foot h1 {
        font-size: 1.6rem;
    }
}

/* Mobile Large */
@media screen and (max-width: 480px) {
    .gallery-container {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 10px;
    }
    
    .gallery-container img {
        height: 220px;
        border-radius: 8px;
    }
    
    .topnav {
        padding: 0.5rem 0;
        flex-direction: column;
        text-align: center;
    }
    
    .topnav a {
        float: none;
        display: inline-block;
        font-size: 13px;
        padding: 8px 12px;
        margin: 2px 0;
        width: 100%;
        max-width: 300px;
    }
    
    .topnav .split {
        float: none !important;
        order: -1;
        margin-bottom: 10px;
        font-size: 16px;
    }
    
    .foot {
        padding: 20px 15px;
    }
    
    .foot h1 {
        font-size: 1.4rem;
    }
    
    .foot p {
        font-size: 14px;
    }
}

/* Extra Small Mobile */
@media screen and (max-width: 360px) {
    .gallery-container img {
        height: 200px;
    }
    
    .topnav a {
        font-size: 12px;
        padding: 6px 10px;
    }
}

/* Smooth scrolling and animations */
html {
    scroll-behavior: smooth;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-container img {
    animation: fadeInUp 0.6s ease forwards;
}

.gallery-container img:nth-child(1) { animation-delay: 0.1s; }
.gallery-container img:nth-child(2) { animation-delay: 0.2s; }
.gallery-container img:nth-child(3) { animation-delay: 0.3s; }
.gallery-container img:nth-child(4) { animation-delay: 0.4s; }
.gallery-container img:nth-child(5) { animation-delay: 0.5s; }