/* ============================================
   RESET & BASE STYLES
   ============================================ */
html {
    width: 100%;
    overflow-x: hidden;
    overflow-y: scroll;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    font-family: 'Manrope', sans-serif;
    line-height: 1.6;
    color: #222;
    background-color: #a9a9a9;
    display: flex;
    flex-direction: column;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    background-color: #a9a9a9;
    padding: 0;
    text-align: center;
    z-index: 1000;
}

.animated-title {
    font-size: 4vw;
    font-weight: bold;
    margin: 0;
    padding: 1rem 0 0.5rem;
    line-height: 1;
    color: #455A64;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3), 4px 4px 8px rgba(0, 0, 0, 0.6);
}

nav ul {
    list-style: none;
    margin-top: 1.5rem;
    padding: 0 0 1rem 0;
    display: flex;
    justify-content: center;
}

nav li {
    margin: 0 1.5rem;
}

nav a {
    text-decoration: none;
    color: #222;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #FF0000;
}

nav a.active-link {
    color: #FF00FF;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #222;
    cursor: pointer;
    position: absolute;
    top: 2rem;
    right: 3rem;
    z-index: 1001;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
main {
    margin-top: 300px; /* Adjusted by JavaScript */
    flex: 1;
    width: 100%;
    box-sizing: border-box;
    padding: 0 2rem 2rem;
    position: relative;
    z-index: 1;
}

#main-content {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */
.content-section {
    display: none;
    background-color: #a9a9a9;
    padding: 2rem;
    box-sizing: border-box;
}

.content-section.active {
    display: block;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    margin-top: 0;
    color: #455A64;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3), 4px 4px 8px rgba(0, 0, 0, 0.6);
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #455A64;
    margin-bottom: 0.5rem;
}

/* ============================================
   ABOUT SECTION LAYOUT
   ============================================ */
.about-container {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.about-image {
    flex: 1;
    max-width: 250px;
    min-width: 200px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 1;
    cursor: zoom-in;
}

.about-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-text {
    flex: 2;
}

.about-subsection {
    margin-bottom: 1.5rem;
}

.about-subsection:last-child {
    margin-bottom: 0;
}

.about-subsection h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #37474F;
    font-size: 1.2rem;
    font-weight: 600;
}

.about-subsection ul {
    list-style-type: none;
    padding-left: 0;
    margin-top: 0;
}

.about-subsection li {
    margin-bottom: 0.3rem;
    color: #455A64;
    font-size: 1rem;
}

.animated-heading1,
.animated-heading2,
.animated-heading3,
.animated-heading4 {
    opacity: 1;
}

/* ============================================
   IMAGE GALLERY
   ============================================ */
.image-gallery {
    width: 100%;
    margin: 2em auto;
    padding: 0;
    max-width: 1400px;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.image-container {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 1;
}

.image-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.img-container {
    overflow: hidden;
    cursor: zoom-in;
    width: 100%;
    height: 100%;
}

.img-container img {
    transition: transform 0.3s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-container:hover img {
    transform: scale(1.05);
}

/* ============================================
   LIGHTBOX
   ============================================ */
body.lightbox-active {
    position: fixed;
    width: 100%;
    overflow: hidden;
}

body::-webkit-scrollbar {
    width: 0.5em;
    background-color: transparent;
}

body.lightbox-active::-webkit-scrollbar {
    width: 0;
    background: transparent;
}

body.lightbox-active::-webkit-scrollbar-thumb {
    background: transparent;
}

#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow: hidden;
}

#lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#lightbox-img {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    cursor: default;
    transition: transform 0.2s ease;
}

#lightbox-info {
    color: white;
    text-align: center;
    margin-top: 1rem;
    max-width: 80%;
}

#lightbox-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    color: white;
}

#lightbox-info p {
    margin: 0;
    font-size: 1rem;
    color: #ccc;
    font-style: italic;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background-color: transparent;
    color: #333;
    text-align: center;
    padding: 2rem 0;
    width: 100%;
    position: relative;
    z-index: 10;
    box-sizing: border-box;
    margin: 6rem auto 0;
    flex-shrink: 0;
}

.social-icons {
    margin-bottom: 1rem;
}

.social-icons a {
    color: #333;
    margin: 0 15px;
    font-size: 1.5rem;
    transition: color 0.3s ease;
    text-decoration: none;
    opacity: 0.8;
}

.social-icons a:hover {
    opacity: 1;
    color: #ff0000;
}

.footer-text {
    margin: 0;
    font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .site-header {
        padding: 1rem;
    }

    .animated-title {
        font-size: 8vw;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(255, 255, 255, 0.95);
        justify-content: center;
        align-items: center;
    }

    nav.active ul {
        display: flex;
    }

    nav li {
        margin: 1.5rem 0;
    }

    nav a {
        font-size: 1.5rem;
    }

    .menu-toggle {
        display: block;
    }

    .content-section {
        padding: 1.5rem 1rem;
    }

    .about-container {
        flex-direction: column;
    }

    .about-image {
        max-width: 100%;
        min-width: auto;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.25rem;
    }

    #main-content {
        padding-top: 150px;
    }
}

@media (max-width: 480px) {
    .content-section {
        padding: 1.25rem 0.75rem;
    }

    .image-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 0 0.5rem;
    }
}

/* Footer Styles */
.footer {
    background-color: transparent;
    color: #333;
    text-align: center;
    padding: 2rem 0;
    width: 100%;
    position: relative;
    z-index: 10;
    box-sizing: border-box;
    margin: 6rem auto 0; /* Added more top margin */
    flex-shrink: 0;
}

.social-icons {
    margin-bottom: 1rem;
}

.social-icons a {
    color: #333;
    margin: 0 15px;
    font-size: 1.5rem;
    transition: color 0.3s ease;
    text-decoration: none;
    opacity: 0.8;
}

.social-icons a:hover {
    opacity: 1;
    color: #000;
}

.social-icons a:hover {
    color: #ff0000; /* Bright red on hover, matching nav */
}

.footer-text {
    margin: 0;
    font-size: 0.9rem;
}
