:root {
    --name-color: #4d0413;
    --submenu-color: #162144;
    --bg-color: #ffffff;
    --font-family: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: #333;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 350px;
    padding: 60px 40px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    background-color: #fff;
    z-index: 10;
}

.site-title {
    margin-bottom: 50px;
}

.site-title a {
    color: var(--name-color);
    text-decoration: none;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: opacity 0.3s;
}

.site-title a:hover {
    opacity: 0.8;
}

.main-nav ul {
    list-style: none;
}

.nav-item {
    margin-bottom: 30px;
}

.mt-4 {
    margin-top: 40px;
}

.nav-label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #000;
    cursor: default;
    text-decoration: none;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-menu-link {
    cursor: pointer;
    transition: opacity 0.3s;
    color: var(--submenu-color);
}

.contact-menu-link:hover {
    opacity: 0.7;
}

.sub-menu {
    list-style: none;
    margin-left: 0; /* Left alignment as requested */
}

.sub-menu li {
    margin-bottom: 12px;
}

.sub-menu a {
    color: var(--submenu-color);
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    transition: opacity 0.3s ease, padding-left 0.3s ease;
    display: block;
    text-align: left; /* Left paragraph alignment */
}

.sub-menu a:hover,
.sub-menu a.active {
    opacity: 0.6;
    padding-left: 5px;
}

/* Footer */
.site-footer {
    margin-top: 60px;
    font-size: 11px;
    color: #888;
    line-height: 1.5;
}

.site-footer p {
    margin-bottom: 10px;
}

/* Main Content */
.content-area {
    margin-left: 350px;
    flex-grow: 1;
    padding: 60px 40px;
    min-height: 100vh;
    position: relative;
    background: #fafafa;
}

/* Fade animation */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Masonry Gallery */
.gallery {
    column-count: 3;
    column-gap: 20px;
    width: 100%;
}

@media (max-width: 1400px) {
    .gallery { column-count: 2; }
}

@media (max-width: 992px) {
    .container { flex-direction: column; }
    .sidebar { width: 100%; position: relative; height: auto; border-right: none; padding: 30px; }
    .content-area { margin-left: 0; padding: 30px; }
    .gallery { column-count: 2; }
}

@media (max-width: 600px) {
    .gallery { column-count: 1; }
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 20px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    display: block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-item img:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    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);
    border-radius: 4px;
}

@keyframes zoomIn {
    from {transform: scale(0.95); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 1001;
}

.lightbox-close:hover {
    color: #ccc;
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 1001;
    user-select: none;
    padding: 20px;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover, .lightbox-next:hover {
    color: #ccc;
}

/* Contact Page */
.contact-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

/* Pseudo element for overlay to ensure form is readable */
.contact-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
    z-index: 1;
}

.contact-form-wrapper {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    padding: 50px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    width: 100%;
    max-width: 550px;
    backdrop-filter: blur(15px);
}

.contact-form-wrapper h2 {
    margin-bottom: 30px;
    color: var(--name-color);
    font-size: 28px;
    font-weight: 300;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--submenu-color);
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    background: #fdfdfd;
    font-family: var(--font-family);
    font-size: 15px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--submenu-color);
    box-shadow: 0 0 0 3px rgba(22, 33, 68, 0.1);
}

.submit-btn {
    background-color: var(--name-color);
    color: #fff;
    border: none;
    padding: 16px 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: background-color 0.3s, transform 0.2s;
    width: 100%;
    text-transform: uppercase;
}

.submit-btn:hover {
    background-color: #31030d;
    transform: translateY(-2px);
}
