/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    position: relative;
}

/* Navbar */
.navbar {
    background-color: transparent !important;
}

.navbar-brand img {
    width: 100px;
}
.navbar-nav .nav-link {
    color: #333;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #ad8c2e;
}

/* Decorative Squares */
.squares {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}
.square {
    position: absolute;
    background: #7a6321;
    opacity: 0.15;
    width: 50rem;
    height: 20rem;
    transform: rotate(-29deg);
}
.square-1 { top: -10%; left: -10%; }
.square-2 { top: 20%; left: 60%; }
.square-3 { top: 50%; left: -5%; }
.square-4 { top: 80%; left: 60%; }
.square-5 { top: 110%; left: -15%; }

/* Gallery Section */
.gallery-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #3a4d62;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 equal columns */
    gap: 1rem; /* Space between items */
    grid-auto-rows: auto; /* Rows adjust to content height */
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-item.portrait {
    grid-row: span 2; /* Portrait spans 2 rows */
}

.gallery-img {
    width: 100%;
    height: auto; /* Maintains aspect ratio */
    object-fit: cover;
    border-radius: 8px;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on medium screens */
    }
    .gallery-item.portrait {
        grid-row: span 1; /* Single row on smaller screens */
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr; /* 1 column on small screens */
    }
}

/* Image Credit */
.image-credit {
    font-size: 0.9rem;
    color: #333;
    font-style: italic;
}
.image-credit a {
    color: #ad8c2e;
    text-decoration: none;
    transition: color 0.3s ease;
}
.image-credit a:hover {
    color: #7a6321;
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: #3a4d62;
    color: #ECF0F1;
    padding: 3rem 0 1rem;
}
footer .logo img {
    width: 75px;
}
footer ul {
    list-style: none;
    padding: 0;
}
footer ul li {
    margin-bottom: 0.5rem;
    display: table;
    margin-right: 20px;
}
footer a {
    color: #ECF0F1;
    text-decoration: none;
}
footer a:hover {
    color: #ad8c2e;
}
footer .social-icons img {
    width: 24px;
    margin-right: 0.5rem;
}
footer .hit-counter {
    font-weight: 700;
    color: #ad8c2e;
}
/* Footer Contact Item */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}
.contact-icon {
    width: 24px;
    flex-shrink: 0;
    margin-top: 2px; /* Adjusts vertical alignment */
}
.contact-text {
    flex: 1;
    line-height: 1.5;
    color: #ECF0F1;
}
.contact-text a {
    color: #ECF0F1;
    text-decoration: none;
}
.contact-text a:hover {
    color: #ad8c2e;
}

/* Theme Switcher */
.btn-bd-primary {
    --bd-violet-bg: #712cf9;
    --bd-violet-rgb: 112.520718, 44.062154, 249.437846;
    --bs-btn-font-weight: 600;
    --bs-btn-color: #ffffff;
    --bs-btn-bg: var(--bd-violet-bg);
    --bs-btn-border-color: var(--bd-violet-bg);
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #6528e0;
    --bs-btn-hover-border-color: #6528e0;
    --bs-btn-focus-shadow-rgb: var(--bd-violet-rgb);
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: #5a23c8;
    --bs-btn-active-border-color: #5a23c8;
}
.btn-bd-primary .bi {
    fill: #ffffff;
}
.bd-mode-toggle {
    z-index: 1500;
}
.bd-mode-toggle .dropdown-menu .active .bi {
    display: block !important;
}

/* Dark Theme */
[data-bs-theme="dark"] {
    body {
        background-color: #1a1a1a;
        color: #f8f9fa;
    }
    .navbar-nav .nav-link {
        color: #f8f9fa;
    }
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        color: #ba9a00;
    }
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(248, 249, 250, 0.75)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
    .square {
        background: #7a6321;
        opacity: 0.15;
    }
    .gallery-section h2 {
        color: #f8f9fa;
    }
    footer {
        background-color: #1a1a1a;
    }
    footer a {
        color: #f8f9fa;
    }
    footer a:hover {
        color: #ba9a00;
    }
    footer .hit-counter {
        color: #ad8c2e;
    }
    .bd-mode-toggle .dropdown-menu .bi {
        fill: #ad8c2e;
    }
    .image-credit {
        color: #f8f9fa;
    }
    .image-credit a {
        color: #ba9a00;
    }
    .image-credit a:hover {
        color: #ad8c2e;
    }
    .contact-text {
        color: #f8f9fa;
    }
    .contact-text a {
        color: #f8f9fa;
    }
    .contact-text a:hover {
        color: #ba9a00;
    }
}