/* Base Styles and Reset */
:root {
    --primary-color: #000000;
    --secondary-color: #333333;
    --background-color: #ffffff;
    --text-color: #1a1a1a;
    --light-gray: #f5f5f5;
    --border-color: #e0e0e0;
    --font-heading: 'Pinyon Script', cursive;
    --font-body: 'Montserrat', sans-serif;
    --transition-speed: 0.3s;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

ul {
    list-style: none;
}

/* Header & Navigation */
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    background-color: rgba(255, 255, 255, 0.98);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 1rem;
    border-bottom: 1px solid var(--light-gray);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.logo-image {
    height: 72px;
    width: auto;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

header.scrolled .logo-image {
    height: 54px;
}

.logo-script {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 400;
    margin-bottom: 0.2rem;
    color: var(--primary-color);
}

.logo-subtitle {
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--secondary-color);
    font-weight: 600;
}

nav ul {
    display: flex;
    gap: 3.5rem;
}

nav a {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
    position: relative;
    padding-bottom: 5px;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed);
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1rem;
    background: radial-gradient(circle at center, #ffffff 0%, #fcfcfc 100%);
}

.hero-content {
    max-width: 650px;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

.hero h2 {
    font-size: 1rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: #555;
    font-weight: 600;
}

.hero h3 {
    font-size: 1.76rem;
    font-weight: 300;
    margin-top: -1rem;
    margin-bottom: 2rem;
    line-height: 1.3;
}

.hero p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: #fff;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-top: 2rem;
    border: 1px solid var(--primary-color);
    transition: all var(--transition-speed);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

/* Portfolio Section */
.portfolio {
    padding: 5rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 1rem;
}

.section-header .line {
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
    margin: 0 auto;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    background-color: #f0f0f0;
    cursor: pointer;
    aspect-ratio: 1 / 1;
}

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

.portfolio-item:hover img,
.portfolio-item:hover .placeholder-img {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1rem;
    text-align: center;
}

.portfolio-item:hover .overlay {
    opacity: 1;
}

.overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.overlay p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #666;
}

/* Contact Section */
.contact {
    padding: 5rem 2rem;
    background-color: #fcfcfc;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.email-link {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    display: inline-block;
    border-bottom: 2px solid transparent;
}

.email-link:hover {
    border-bottom-color: var(--primary-color);
}

.copyright {
    margin-top: auto;
    font-size: 0.8rem;
    color: #999;
}

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background-color: #fff;
    border: 1px solid var(--border-color);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: border-color var(--transition-speed);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-submit {
    padding: 12px 40px;
    background-color: var(--secondary-color);
    color: #fff;
    border: none;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: background-color var(--transition-speed);
}

.btn-submit:hover {
    background-color: var(--primary-color);
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow: auto;
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: #fff;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
    line-height: 1;
}

.lightbox-close:hover {
    color: #ccc;
    transform: rotate(90deg);
}

.lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    text-align: center;
    font-size: 1.1rem;
    padding: 10px 20px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 5px;
}


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

@media (max-width: 768px) {
    header {
        flex-direction: row;
        justify-content: space-between;
        padding: 1rem 1.5rem;
    }

    .logo-container {
        margin-bottom: 0;
        text-align: left;
    }

    .logo-image {
        height: 40px;
    }

    .logo-script {
        font-size: 2.2rem;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        padding: 2rem;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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