/* General Styles */
body {
    margin: 0;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', Times, serif;
    background: linear-gradient(135deg, #d2d2d4 0%, #c8c8ca 100%);
    letter-spacing: -0.01em;
    color: #2c2c2c;
    line-height: 1.6;
}

/* Navbar Styles */
.navbar {
    width: 96%;
    margin: 20px auto 0 auto;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(1.5rem);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 2.5rem;
    box-sizing: border-box;
    font-size: 1.05rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.navbar:hover {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}
.navbar-left {
    font-weight: 600;
    font-size: 1.1rem;
    color: rgba(0, 0, 0, 0.8);
    letter-spacing: -0.02em;
}
.navbar-center {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
}
.mobile-nav {
    display: none;
}
.desktop-nav {
    display: flex;
}
.navbar-center button {
    background: none;
    border: none;
    color: rgba(0, 0, 0, 0.6);
    font-size: 1.1rem;
    font-weight: 400;
    opacity: 0.8;
    transition: opacity 0.2s;
    cursor: pointer;
    font-family: inherit;
}
.navbar-center button:hover {
    opacity: 1;
}
.navbar-center li a {
    color: rgba(0, 0, 0, 0.7);
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.navbar-center li a:hover {
    color: rgba(0, 0, 0, 0.9);
    transform: translateY(-1px);
}

.navbar-center li a.active {
    color: rgba(0, 0, 0, 0.9);
    font-weight: 500;
}
.navbar-right a {
    color: rgba(0, 0, 0, 0.7);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.navbar-right a:hover {
    color: rgba(0, 0, 0, 0.9);
    transform: translateY(-1px);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

nav .logo {
    font-size: 1.5rem;
    font-weight: bold;
}

nav .menu {
    list-style: none;
    display: flex;
    gap: 1rem;
}

nav .menu li a {
    text-decoration: none;
    color: #333;
}

.photo-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
}

.photo-gallery img {
    width: 200px;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s;
}

.photo-gallery img:hover {
    transform: scale(1.1);
}

/* Overlay Styles */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    z-index: 1000;
    padding: 2rem;
    box-sizing: border-box;
    overflow-y: auto;
    cursor: pointer;
    animation: overlayFadeIn 0.4s ease-out;
}

@keyframes overlayFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(15px);
    }
}

.overlay.hidden {
    display: none;
}

.overlay-content {
    max-width: 420px;
    text-align: left;
    color: #2c2c2c;
    font-size: 0.95rem;
    line-height: 1.6;
    cursor: default;
    overflow-y: auto;
    animation: contentSlideIn 0.5s ease-out;
}

@keyframes contentSlideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Contact Section in Overlay */
.contact-info {
    margin-bottom: 1.5rem;
}

.contact-info h3 {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    text-decoration: none;
    color: #2c2c2c;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.social-icon {
    width: 16px;
    height: 16px;
}

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

.contact-form h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.35rem;
    font-weight: 500;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.tagline {
    margin: 0 0 1.5rem 0;
    font-size: 0.95rem;
    font-style: italic;
    font-weight: 300;
    color: rgba(44, 44, 44, 0.8);
    line-height: 1.5;
}

.instagram-preference {
    margin: 1rem 0 0 0;
    font-size: 0.9rem;
    text-align: left;
    padding: 0.9rem;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: rgba(44, 44, 44, 0.8);
    line-height: 1.5;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
}

.form-group label .required {
    color: #e74c3c;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    font-size: 0.9rem;
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    font-weight: 400;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: rgba(0, 0, 0, 0.3);
    background-color: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1rem;
    padding-right: 2rem;
}

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

.submit-btn {
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: inherit;
    letter-spacing: -0.01em;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    transform: translateY(-2px);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.form-status {
    margin-top: 1rem;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.form-status.success {
    background: rgba(0, 128, 0, 0.1);
    color: #006400;
    border: 1px solid rgba(0, 128, 0, 0.3);
}

.form-status.error {
    background: rgba(255, 0, 0, 0.1);
    color: #cc0000;
    border: 1px solid rgba(255, 0, 0, 0.3);
}

.close-overlay {
    margin-top: 1.5rem;
    padding: 0.75rem 1.5rem;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    width: 100%;
    transition: all 0.2s;
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.close-overlay:hover {
    background-color: #555;
    transform: translateY(-2px);
}

/* Menu Overlay Styles */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 2rem;
    box-sizing: border-box;
}

.menu-overlay.hidden {
    display: none;
}

.menu-overlay-content {
    max-width: 400px;
    width: 100%;
    text-align: center;
    color: #333;
    font-size: 1rem;
    line-height: 1.5;
    background: rgba(255, 255, 255, 0.8);
    padding: 3rem 2rem;
    border-radius: 20px;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.menu-overlay-content h2 {
    margin-top: 0;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 600;
    color: #333;
}

.project-menu {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.project-menu li {
    margin: 1rem 0;
}

.project-menu li a {
    color: #333;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 400;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s;
    display: block;
}

.project-menu li a:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

.project-menu li a.active {
    background: rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

.close-menu {
    padding: 0.8rem 2rem;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s;
}

.close-menu:hover {
    background-color: #555;
    transform: translateY(-2px);
}

/* Image Stack Styles */
.image-stack {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
}
.stack-img {
    position: absolute;
    border-radius: 16px;
    /* max-width: 600px; */
    width: 40%;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.13);
    transition: box-shadow 0.3s, transform 0.3s;
    background: #fff;
    border: none;
}
.landscape-img {
    position: relative;
    flex-shrink: 0;
    height: 75vh;
    width: auto;
    object-fit: contain;
    background: #fff;
    border: none;
    margin: 0 -0px 0 0;
}
.landscape-img:hover {
    cursor: grab;
}
.landscape-img:active {
    cursor: grabbing;
}
.img-top {
    z-index: 3;
    top: 0;
    transform: rotate(-2deg);
}
.img-middle {
    z-index: 2;
    top: 30px;
    left: 20px;
    transform: rotate(2deg);
}
.img-bottom {
    z-index: 1;
    top: 60px;
    left: 40px;
    transform: rotate(-1deg);
}

/* Footer Styles */
.footer-bottom-left {
    position: fixed;
    left: 30px;
    bottom: 30px;
    color: rgba(0, 0, 0, 0.65);
    font-size: 1.8rem;
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    background: none;
    box-shadow: none;
    z-index: 10;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Mobile View */
@media (max-width: 768px) {
    /* Adjust body for fixed header */
    body {
        padding-top: 0;
    }
    
    /* Hide desktop nav, show mobile nav */
    .desktop-nav {
        display: none !important;
    }
    .mobile-nav {
        display: flex !important;
    }
    
    /* Sticky header at top */
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        margin: 0;
        border-radius: 0;
        z-index: 1000;
        backdrop-filter: blur(1rem);
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    /* Footer above images */
    .footer-bottom-left {
        position: fixed;
        left: 20px;
        top: 80px;
        font-size: 1.2rem;
        z-index: 0;
        color: rgba(0, 0, 0, 0.8);
    }
    
    /* Adjust main content for fixed header */
    main {
        padding-top: 70px;
    }
    
    /* Draggable mode - vertical stack */
    .image-stack {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        overflow-y: auto;
        top: 50px;
        left: 0;
        width: 100%;
        height: auto;
        min-height: calc(100vh - 70px);
    }
    
    .stack-img {
        position: relative;
        margin: 10px auto;
        width: 90%;
        max-width: 350px;
        transform: none !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        left: auto !important;
        top: auto !important;
    }
    
    /* Landscape mode adjustments */
    .image-stack[style*="flex-direction: row"] {
        position: fixed;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        align-items: center;
        justify-content: flex-start;
        padding: 0;
        height: calc(100vh - 70px);
        width: 100vw;
        touch-action: pan-x;
        -webkit-overflow-scrolling: touch;
        z-index: 1;
        top: 70px;
        left: 0;
        pointer-events: none;
    }
    
    .landscape-img {
        margin: 0;
        pointer-events: auto;
    }
    
    /* Contact section mobile styles */
    .overlay {
        padding: 1rem;
        justify-content: center;
        align-items: flex-start;
        overflow-y: auto;
        padding-top: 2rem;
    }
    
    .overlay-content {
        max-width: 100%;
        width: 100%;
    }
    
    .contact-section {
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
    }
    
    .social-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .social-link {
        justify-content: center;
        text-align: center;
    }
    
    .contact-form {
        margin-bottom: 1rem;
    }
    
    .form-group {
        margin-bottom: 0.8rem;
    }
    
    .submit-btn {
        width: 100%;
        padding: 0.8rem;
    }
}
