* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 0;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1d1d1f;
    background-color: #fbfbfd;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* Main Content */
main {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 2rem 2rem 2rem;
    background: linear-gradient(180deg, #fbfbfd 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(211, 47, 47, 0.02) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.logo-container a {
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.logo {
    max-width: 100%;
    height: auto;
    max-height: 150px;
    width: auto;
    display: block;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.08));
}

.logo:hover {
    transform: scale(1.02);
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    color: #1d1d1f;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: #86868b;
    font-weight: 400;
    letter-spacing: -0.011em;
}

/* Section Styles */
section {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    text-align: center;
    margin-bottom: 4rem;
    color: #1d1d1f;
    font-weight: 600;
    letter-spacing: -0.022em;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: #d32f2f;
    border-radius: 1px;
}

/* Gallery Section */
.gallery {
    background-color: #ffffff;
    border-radius: 18px;
    margin: 2rem auto 4rem auto;
    padding: 2rem 2rem 4rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 0.5px solid rgba(0, 0, 0, 0.05);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 0;
    grid-auto-rows: 10px; /* Small base row height for masonry flexibility */
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.gallery-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.gallery-loading,
.gallery-empty,
.gallery-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: #86868b;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background-color: #1d1d1f;
    color: #f5f5f7;
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 4rem;
    border-top: 0.5px solid rgba(255, 255, 255, 0.1);
}

footer p {
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: -0.011em;
    color: #86868b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo {
        max-height: 120px;
    }

    .logo-container {
        margin-bottom: 2rem;
    }

    .hero {
        min-height: 60vh;
        padding: 3rem 1.5rem;
    }

    section {
        padding: 4rem 1.5rem;
    }

    .gallery {
        padding: 3rem 1.5rem;
        margin: 2rem 1rem;
        border-radius: 12px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .logo {
        max-height: 100px;
    }

    .logo-container {
        margin-bottom: 1.5rem;
    }

    .hero {
        min-height: 50vh;
    }

    section {
        padding: 3rem 1rem;
    }
}

/* Smooth animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.section-title {
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Apple-like glassmorphism effect */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #000000;
        color: #f5f5f7;
    }

    .hero {
        background: linear-gradient(180deg, #000000 0%, #1d1d1f 100%);
    }

    .hero h1 {
        color: #f5f5f7;
    }

    .section-title {
        color: #f5f5f7;
    }

    .gallery {
        background-color: #1d1d1f;
        border: 0.5px solid rgba(255, 255, 255, 0.1);
    }
}
