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

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #111;
    background-color: #fafafa;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

/* Header & Navigation */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3rem 5%;
    background-color: #fafafa;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

nav a {
    text-decoration: none;
    color: #666;
    margin-left: 2rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #111;
}

/* Filter Menu */
.filter-container {
    text-align: center;
    padding: 0 5%;
    margin-bottom: 3rem;
}

.filter-btn {
    background: none;
    border: none;
    color: #999;
    font-family: inherit;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.filter-btn:hover {
    color: #111;
}

.filter-btn.active {
    color: #111;
    font-weight: bold;
    border-bottom: 1px solid #111;
}

.dot {
    color: #ccc;
    margin: 0 0.8rem;
    font-size: 1rem;
}

/* For smooth filtering logic */
.gallery-img.hidden {
    display: none;
}

/* Gallery Grid */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 2rem;
    padding: 0 5%;
    margin-bottom: 6rem;
}

.gallery-img {
    width: 100%;
    aspect-ratio: 1 / 1; /* Forces the container to be a perfect square */
    object-fit: contain; /* Prevents cropping */
    object-position: center; /* Explicitly centers the image within the square */
    background-color: transparent;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.gallery-img:hover {
    opacity: 0.8;
}

/* About Section */
.about {
    max-width: 600px;
    margin: 0 auto 6rem auto;
    text-align: center;
    padding: 0 5%;
}

.about h2 {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.about p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
}

.contact-btn {
    display: inline-block;
    padding: 10px 24px;
    background-color: #111;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    transition: background-color 0.3s ease;
}

.contact-btn:hover {
    background-color: #444;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 5%;
    font-size: 0.8rem;
    color: #999;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #111;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Space between fields */
    max-width: 400px;
    margin: 2rem auto 0 auto;
    text-align: left;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.5rem 0;
    border: none;
    border-bottom: 1px solid #ccc; /* Minimal bottom-border styling */
    background: transparent;
    font-family: inherit;
    font-size: 1rem;
    color: #111;
    transition: border-color 0.3s ease;
}

/* Darken the line when typing */
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-bottom-color: #111; 
}

.contact-form textarea {
    resize: vertical; /* Allows resizing up/down but not left/right */
}

.submit-btn {
    background-color: #111;
    color: #fff;
    border: none;
    padding: 12px 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    align-self: flex-start; /* Keeps the button from stretching */
    margin-top: 1rem;
}

.submit-btn:hover {
    background-color: #444;
}
