@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
}

/* FONT STYLINGS */
h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #222;
}

p {
    font-size: 1rem;
    margin-bottom: 10px;
}

.subheader {
    text-align: center;
}

figcaption {
    margin-top: 10px;
    margin-bottom: 10px;
}

/* ==================================================
   NAVIGATION BAR STYLES
   ================================================== */
nav {
    background-color: black;
    color: white;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Top and Bottom Nav Link Styling */
.top img {
    margin-top: 25px;
    max-width: 100%; /* Responsive image */
    height: auto; /* Maintain aspect ratio */
}

.top a, .bottom a {
    display: block;
    text-decoration: none; /* Remove underline */
    color: white; /* Set link color to white */
    text-align: center; /* Center text horizontally */
    letter-spacing: 0.125rem;
}

.top a:hover, .bottom a:hover {
    color: red; /* Change the link color on hover */
}

/* Middle Nav Links Styling*/
ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

li a {
    display: block;
    text-decoration: none; /* Remove underline */
    color: white; /* Set link color to white */
}

/* Change the link color on hover */
li a:hover {
    color: orange
}

/* ==================================================
   OVERLAY MENU STYLES
   ================================================== */
.overlay {
    font-size: 1.5rem;
    letter-spacing: 0.125rem;
    line-height: 2.75rem;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;  /* Start hidden */
    transition: opacity 0.5s ease, visibility 0s 0.5s; /* Delay visibility change */
}

/* Show overlay when nav is open */
nav.open .overlay {
    opacity: 1;
    visibility: visible;  /* Make it visible */
    transition: opacity 0.5s ease, visibility 0s 0s; /* Remove delay for showing */
}

.nav-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1100;
    transition: color 0.3s ease;
}

.nav-btn:hover {
    color: red;
}

/* Hide hamburger when overlay is open */
nav.open #hamburger {
    display: none;
}

.resume-divider {
    width: 20vw; /* adjust as needed */
    border: 1px solid white;
    margin: 20px auto;  /* Space around the line */
}

/* ==================================================
   PAGE STYLES
   ================================================== */
.page {
    /* background-color: lightblue; */
    /* min-height: 100vh; */
    padding: 20px;
}

.page-bg {
    /* min-height: 100vh; */
    /* background-image: url('images/bg-main.jpg'); */
    padding: 30px 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-size: cover;
    background-position: center;
    position: relative;
}

.page-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Adjust opacity here */
    z-index: 1;
}

.page-bg > * {
    position: relative;
    z-index: 2; /* Ensure content is above the overlay */
}


.row {
    display: block;
}

.column {
    width: 100%;
    margin-bottom: 15px;
    /* padding: 20px; */
    /* border: black solid 1px; */
}

.column img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto; /* Center the image */
}

img {
    width: 100%;
    height: auto;
    object-fit: contain;
    flex-direction: column;
}

/* ==================================================
   FORM STYLES
   ================================================== */
form {
    display: flex;
    flex-direction: column;
}

form label {
    margin: 10px 0 5px;
    font-weight: 600;
    color: #444;
}

form input[type="text"],
form textarea {
    font-family: inherit;
    padding: 12px;
    border: none; /* Remove all borders */
    border-bottom: 2px solid black; /* Add only bottom border */
    border-radius: 0; /* Remove rounded corners */
    font-size: 1rem;
    resize: vertical;
    transition: border-bottom 0.3s ease;
    background-color: transparent; /* <-- remove white background */
    margin-bottom: 15px; /* Add some space between inputs */
}

form input[type="text"]:focus,
form textarea:focus {
    border-bottom: 2px solid black; /* Highlight bottom border on focus */
    outline: none;
}

form input[type="submit"] {
    margin-top: 20px;
    padding: 12px;
    background-color: black;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form input[type="submit"]:hover {
    background-color: grey;
}

.social-media i {
    font-size: 1.5rem; 
    color: black;
    margin-right: 10px; /* Space between icons */
}

.social-media {
    margin-top: 20px;
}

/* SLIDESHOW STYLES */
.slideshow-container {
    position: relative;
    width: 100%;
    height: auto;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;           /* Optional: increase width */
    height: 100px;          /* Increase this for more height */
    font-size: 2rem;       /* Bigger arrow icon */
    background-color: transparent;
    color: white;
    display: flex;         /* Center the arrow inside */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    border: none;
    padding: 0;
}
/* Remove padding if needed to get them tighter */
.prev {
    left: 0;
    border-radius: 0 3px 3px 0;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
}

/*BANNER STYLING SIMILAR TO PAGE BG*/
.banner {
    height: 50vh; /* Half of the viewport height */
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Optional: center content vertically */
    background-image: url('images/index/background/bg-main.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Same dark overlay */
    z-index: 1;
}

.banner > * {
    position: relative;
    z-index: 2; /* Place content above the overlay */
    color: white; /* Optional: ensure text is readable on dark background */
    text-align: center; /* Optional: center text */
}

/*VIDEO STYLES*/
.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


/* Media Query for screens smaller than 340px */
@media (max-width: 340px) {
    nav {
        padding: 10px; /* Reduce padding for smaller screens */
    }

    .top img {
        max-width: 70%; /* You can adjust this value as needed */
        margin-top: 10px; /* Adjust top margin to avoid overflowing */
    }

    .overlay {
        font-size: 1.2rem; /* Adjust font size for smaller screens */
        line-height: 2rem; /* Adjust line height for smaller screens */
    }

    .top a, .bottom a {
        font-size: 1rem; /* Adjust font size for smaller screens */
    }
}

/* xs */
@media (min-width: 475px) {}

/* sm */
@media (min-width: 640px) {}

/* md */
@media (min-width: 768px) {}

/* lg */
@media (min-width: 1024px) {
    
    .top img {
        margin-top: 0px;
        margin-bottom: 15px;
    }

    /* Positioned the navigation bar to the side of the page */
    nav {
        width: 300px;
        height: 100vh;
        position: fixed;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    /* On large screens, we remove the hamburger icon and show the overlay menu */
    .nav-btn {
        display: none;  /* Hide the hamburger icon */
    }

    /* Remove overlay-specific styling to make it act like a regular block */
    .overlay {
        position: static;
        height: auto;
        background-color: transparent;
        opacity: 1;
        visibility: visible;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        flex: 1;
        transition: none;
    }

    .resume-divider {
        display: none; /* Hide the divider on larger screens */;
    }

    .middle {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-grow: 1;
        font-size: 1rem;
        letter-spacing: 2px;
        line-height: 35px;
    }

    .bottom {
        margin-bottom: 0;
    }
    
    .wrapper {
        display: flex;
        height: 100vh; /* Full height of the viewport */
    }

    .main {
        width: calc(100% - 300px); /* Adjust width to fit the sidebar */
        margin-left: 300px; /* Offset for the fixed navbar */
        position: relative;
    }

    .page {
        /* min-height: 100vh;  */
        height: auto; 
        padding: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: relative; 
        background-color: lightgrey;
    }

    .page-bg {
        min-height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 30px;
    }

    .row {
        display: flex;
        flex-direction: row;
        gap: 20px;
        width: 100%;
        justify-content: space-between;
        margin-top: 20px;
        padding: 8.5vh 5vw 8.5vh 5vw; /* Adjusted padding for top and bottom */
    }

    .column {
        flex: 1;
    }

    form {
        max-width: 800px; /* Set a max width for the columns */
        margin-left: auto; /* Push the form to the very right */
    }

    /* ==================================================
        GALLERY STYLES
        ================================================== */
    
    /* GALLERY LAYOUT STLYLE 1 */
    .gallery-3up-featured {
        /* border: #222 solid 1px; */
        width: 60%;
        display: flex;
        flex-direction: column;
        align-items: center; 
    }

    .gallery-3up-featured__row {
        height: 13vw;
        width: 100%;
        display: flex;
        justify-content: space-between;
        gap: 10px;
    }

    .gallery-3up-featured__row img {
        max-height: 100%;
        width: auto;
        object-fit: contain;
    }

    .gallery-3up-featured__main {
        width: 100%;
        margin-top: 10px;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden; /* optional */
    }

    .gallery-3up-featured__main img {
        max-height: 100%;
        max-width: 100%;
        object-fit: contain;
    }
    
    /* GALLERY LAYOUT STLYLE 2 */
    .gallery-same-height {
        width: 100%;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .gallery-same-height img {
        height: 13vw;
        width: auto;
    }

    /* GALLERY LAYOUT STLYLE 3 */
    .gallery-masonry {
        column-count: 4;           /* Number of columns */
        column-gap: 10px;          /* Space between columns */
        width: 100%;
        margin: 0 auto;
        padding: 20px;
    }

    .gallery-masonry img {
        width: 100%;               /* Image takes full width of its column */
        margin-bottom: 10px;       /* Space below each image */
        display: block;
    }

    /* GALLERY LAYOUT STLYLE 4 */
    .gallery-featured {
        width: 70%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        /* border: #222 solid 1px; */
        margin-bottom: 1rem;
    }

    .gallery-featured figcaption {
        margin: 15px 0;
    }
    
    #about .column img {
        width: 75%;
    }

}

/* xl */
@media (min-width: 1280px) {}

/* 2xl */
@media (min-width: 1536px) {}
