:root {
    --primary-color: #333;
    --secondary-color: #666;
    --background-color: #f5f5f5;
    --accent-color: #888;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --border-color: #ddd;
    --color-dark: #2a2a2a;
    --color-medium: #4a4a4a;
    --color-light: #8a8a8a;
    --color-white: #ffffff;
    --transition: all 0.3s ease;
}

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

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    font-weight: 300;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

/* Header & Navigation */
header {
    background-color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    font-weight: 300;
    color: var(--secondary-color);
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

/* Gallery Section */
.gallery {
    padding: 6rem 2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--color-medium);
    border: none;
    padding: 0.5rem 1rem;
    color: var(--color-white);
    cursor: pointer;
    transition: var(--transition);
    border-radius: 4px;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--color-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    height: 400px; /* Adjust as needed */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Changed from cover to contain */
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item .portrait img {
    object-fit: cover; /* Keep cover for portrait images */
}

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

/* About Section */
.about {
    padding: 6rem 2rem;
    background-color: white;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.about-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.about-content p {
    font-size: 1.1rem;
    color: var(--secondary-color);
    font-weight: 300;
}

/* Contact Section */
.contact {
    padding: 6rem 2rem;
    background-color: var(--light-gray);
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-intro p {
    font-size: 1.2rem;
    color: var(--secondary-color);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

.contact-form {
    background: white;
    padding: 3rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    font-weight: 300;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    background-color: white;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

button {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: var(--accent-color);
}

/* Footer */
footer {
    background-color: white;
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.social-links {
    margin-bottom: 1rem;
}

.social-links a {
    margin: 0 1rem;
    color: var(--secondary-color);
    font-weight: 300;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

footer p {
    color: var(--secondary-color);
    font-size: 0.875rem;
    font-weight: 300;
}

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

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-menu {
        width: 100%;
        justify-content: center;
        gap: 1.5rem;
    }

    .nav-menu a {
        font-size: 0.9rem;
    }

    .gallery,
    .about {
        padding-top: 8rem;
    }

    .contact {
        padding-top: 10rem;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form {
        padding: 2rem;
    }

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

@media (max-width: 480px) {
    .contact {
        padding: 0;
        padding-top: 6rem;
    }
    .contact-intro a {
        white-space: nowrap;
    }
}

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

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

/* Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Contact Section */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.contact-text {
    padding: 2rem;
}

.random-image {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .random-image {
        height: 400px;
    }
} 