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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* Header Styles */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container img {
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.logo-container img:hover {
    transform: scale(1.05);
}

.nav-container {
    display: flex;
    gap: 25px;
}

.nav-container a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-container a:hover {
    color: #ff6b95;
    background-color: #fff0f5;
}

.nav-container a.active {
    color: #ff6b95;
    font-weight: bold;
}

.nav-container a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 15px;
    width: calc(100% - 30px);
    height: 2px;
    background-color: #ff6b95;
}

/* Page Header */
.page-header {
    text-align: center;
    padding: 60px 5% 40px;
    background: linear-gradient(135deg, #fff5f7 0%, #fff 100%);
}

.page-header h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 400;
}

.underline {
    border-bottom: 3px solid #ff6b95;
    padding-bottom: 5px;
}

.tagline {
    font-size: 1.3rem;
    color: #ff6b95;
    font-style: italic;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 5%;
}

/* Gallery Section */
.gallery-section, .results-section {
    margin-bottom: 60px;
}

.gallery-section h2, .results-section h2 {
    text-align: center;
    font-size: 2rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: 400;
}

.section-description {
    text-align: center;
    color: #666;
    font-style: italic;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 300px;
}

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

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .image-overlay {
    transform: translateY(0);
}

.image-overlay p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Results Section */
.results-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.result-item {
    display: flex;
    flex-wrap: wrap;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
}

.result-item img {
    flex: 1;
    min-width: 300px;
    height: 400px;
    object-fit: cover;
}

.result-info {
    flex: 1;
    min-width: 300px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.result-info h3 {
    color: #ff6b95;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.result-info p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

.result-info ul {
    list-style-type: none;
    padding-left: 0;
}

.result-info li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #555;
}

.result-info li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #ff6b95;
    font-weight: bold;
}

/* Footer Styles */
footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #ff6b95;
    font-weight: 600;
}

.footer-section p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ff6b95;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    font-size: 0.9rem;
    color: #ccc;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        padding: 15px 5%;
    }
    
    .nav-container {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1.1rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .gallery-item {
        height: 250px;
    }
    
    .result-item {
        flex-direction: column;
    }
    
    .result-item img {
        width: 100%;
        height: 300px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .page-header {
        padding: 40px 5% 30px;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .container {
        padding: 30px 5%;
    }
    
    .gallery-section h2, .results-section h2 {
        font-size: 1.6rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item {
        height: 300px;
    }
    
    .result-info {
        padding: 20px;
    }
    
    .footer-section {
        min-width: 100%;
    }
}

/* Animation for gallery items */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-item {
    animation: fadeIn 0.5s ease forwards;
}

/* Stagger animation for grid items */
.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }
.gallery-item:nth-child(7) { animation-delay: 0.7s; }
.gallery-item:nth-child(8) { animation-delay: 0.8s; }