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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Arial', sans-serif;
    overscroll-behavior: none;
    margin: 0;
    padding: 0;
}

html, body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Banner Section */
.banner {  
    width: 100%;
    min-height: 100vh; 
    background-image: linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.75)), url(background.png);
    background-size: cover;
    background-position: center; 
    background-attachment: fixed;
    padding: 20px;
    padding-top: env(safe-area-inset-top);
    text-align: center;
    position: relative;
}

/* Navbar */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%; 
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px; 
    position: relative; 
}

.navbar ul {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.navbar ul li {
    margin: 0;
}

.navbar ul li a {
    text-decoration: none;
    color: #fff;
    text-transform: uppercase;
    transition: color 0.3s ease;
    font-size: 1rem;
}

.navbar ul li a:hover {
    color: #9d9205;
}

.logo {
    width: 120px;
    cursor: pointer;
}

/* Hamburger Menu */
.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    position: absolute;
    top: 25px;
    right: 25px;
    cursor: pointer;
    width: 30px;
    height: 25px;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    display: block;
    background: white;
    height: 3px;
    width: 100%;
    border-radius: 3px;
    position: absolute;
    transition: all 0.3s ease;
}

.nav-toggle-label span {
    top: 50%;
    transform: translateY(-50%);
}

.nav-toggle-label span::before {
    content: '';
    top: -10px;
}

.nav-toggle-label span::after {
    content: '';
    top: 10px;
}

/* Animated Hamburger */
.nav-toggle:checked + .nav-toggle-label span {
    background: transparent;
}

.nav-toggle:checked + .nav-toggle-label span::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle:checked + .nav-toggle-label span::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Homepage Section */
.homepage {
    width: 100%; 
    position: absolute;
    top: 50%; 
    transform: translateY(-50%);
    text-align: center;
    color: white;
    padding: 20px;
}

.homepage h1 {
    font-size:5vw;
    margin-top: 80px;
}

.homepage p {
    display: block;
    margin: 20px auto;
    font-weight: 4500;
    line-height: 25px;
    font-size: 1.2rem;
    padding: 0 10px;
}

/* Buttons */
.homebuttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.homebuttons button {
    font-family: 'Poppins', 'Arial', sans-serif;
    width: 200px; 
    padding: 15px 0; 
    text-align: center; 
    margin: 20px 10px; 
    border-radius: 25px;
    font-weight: bold;
    border: 2px solid #ffffff;
    background: transparent;
    color: white;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.homebuttons span {
    background: #9d9205; 
    height: 100%;
    width: 0;
    border-radius: 25px;
    position: absolute; 
    left: 0;
    bottom: 0;
    z-index: -1;
    transition: all 0.5s;
}

.homebuttons button:hover span{
    width: 100%;
}

.homebuttons button:hover {
    border: none;
}

/* Section Headings */
.home2text,
.home2imgtext {
    text-align: center;
    margin-bottom: 0;
}

.home2imgtext h2 {
    text-align: center;
    margin: 0 auto;
}

.home2text h2,
.home2imgtext h2 {
    font-size:55px;
    margin-top:80px;
}

.home2text p {
    margin: 20px auto;
    font-weight: 100;
    line-height: 25px;
    margin-bottom: 0;
}

/* Projects Section */
.projects { 
    color: black;
    padding: 40px 20px;
}

.project-container {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    align-items: center;
    gap: 2.5rem;
}

.project-box{
    background-color: white;
    border-radius: 3rem;
    border: 5px solid black;
    cursor: pointer;
    transition: 0.4s ease-in-out;
    margin: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-wrap: wrap;
    padding: 1rem;
    max-width: 100%;
}

.project-box:hover{
    background: #9d9205;
    color: black;
    transform:scale(1.05);
}

.project-box:active {
    background: #9d9205;
    color: black;
}

.project-box .project-info{
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center; 
    padding: 1rem; 
}

.project-info h4{
    font-size: 2rem;
    font-weight: 800;
    line-height: 2;
}

.project-info h4 i.material-icons {
    font-size: 2.5rem;
    position: relative;
    top: 0.35rem;
}

.project-info p{
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.7;
    margin: auto;
}

/* Image Slider */
.home2img {
    position: relative;
    min-height: 100vh;
    width: 100%; 
    padding: 20px;
    text-align: center;
}

.container {
    max-width: 2200px;
    width: 95%;
    margin: 0 auto;
}

.slider-wrapper {
    position: relative;
}

.slider-wrapper .slide-button {
    position: absolute;
    top: 50%;
    height: 50px;
    width: 50px;
    color: white;
    border: none;
    outline: none;
    background: black;
    font-size: 2.2rem;
    cursor: pointer;
    border-radius: 50%;
    transform: translateY(-50%);
}

.slider-wrapper .slide-button:hover {
    background: #9d9205;
}

.slider-wrapper .slide-button#prev-slide {
    left: -20px;
}

.slider-wrapper .slide-button#next-slide {
    right: -20px;
}

.slider-wrapper .image-list {
    display: grid;
    gap: 18px;
    font-size: 0;
    margin-bottom: 30px;
    overflow-x: auto;
    scrollbar-width: none;
    grid-template-columns: repeat(6, 1fr);
}

.slider-wrapper .image-list::-webkit-scrollbar {
    display: none;
}

.slider-wrapper .image-list .image-item {
    width: 725px;
    height: 700px;
    object-fit: cover;
}

.container .slider-scrollbar {
    height: 24px;
    width: 100%;
    display: flex;
    align-items: center;
}

.slider-scrollbar .scrollbar-track {
    height: 2px;
    width: 100%;
    background: #ccc;
    position: relative;
    border-radius: 4px;
}

.slider-scrollbar:hover .scrollbar-track {
    height: 4px;
}

.slider-scrollbar .scrollbar-thumb {
    position: absolute;
    height: 100%;
    width: 50%;
    background: black;
    border-radius: inherit;
    cursor: grab;
}

.slider-scrollbar .scrollbar-thumb:active {
    cursor: grabbing;
    height: 8px;
    top: -1px;
}

.slider-scrollbar .scrollbar-thumb::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -10px;
    bottom: -10px;
}

/* About Us Section */
.about-us {
    padding:80px 0px;
}

.container{
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.image-item {
    cursor: pointer;
}

.row {
    display: flex;
    flex-wrap: wrap;
}

.flex {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 20px;
}

.about-us h2 {
    font-size: 45px;
    margin-bottom: 20px;
    color: #9d9205;
}

.about-us h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

.about-us p {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.about-us img {
     display: block;
     max-width: 100%;
     height: auto;
     margin:0 auto;
}

.social-icons {
    margin-bottom: 20px;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%; 
    margin-right: 10px;
    color: #fff;
    background-color: #9d9205;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: all 0.4s ease;
}

.social-icons a:hover{
    transform: translateY(-3px);
}

/* Action Button */
.action-btn button{
    font-family: 'Poppins';
    height: 40px; 
    border: none;
    padding: 10px 16px;
    border-radius: 12px;
    letter-spacing: 0.5px;
    cursor: pointer;
}

/* Contact Us Section */
.contactus {
    background-color: black;
    font-family: 'Poppins';
    padding: 40px 0;
}

.contactus h1 {
    color: white;
    margin: 20px;
    font-size: 40px;
    text-align: center;
}

.or-text {
    color:white;
    text-align: center;
    margin: 20px 0;
}

.handle{
    color: white;
}

.social-action {
    color: white;
}

.contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-top: 36px;
}

input {
    font-family: 'Poppins';
    height: 56px;
    border-radius: 12px;
    border: 1px solid #383838;
    outline: none;
    width: 456px; 
    padding: 0 8px 0 16px;
    background-color: #242424;
    color: white;
}

.input-name {
    display: flex;
    gap: 24px;
}

.input-name input {
    width: 204px;
}

.btn-submit {
    background-color: lightgreen;
    width: 456px;
    height: 56px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
}

.social-contact {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.social {
    width: 432px;
    height: 64px;
    border: 1px solid gray;
    border-radius: 12px;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-contact-link {
    text-decoration: none;
    color: inherit;
}

.social-action {
    display: flex;
    align-items: center;
    gap: 8px;
    color: lightgreen;
    cursor: pointer;
}

::placeholder, .handle, .or-text {
    color: white;
}

    /* Lightbox Modal Styles */
    .lightbox-modal {
        display: none; /* Hidden by default */
        position: fixed; /* Stay in place */
        z-index: 1000; /* Sit on top */
        padding-top: 60px; /* Location of the box */
        left: 0;
        top: 0;
        width: 100%; /* Full width */
        height: 100%; /* Full height */
        overflow: auto; /* Enable scroll if needed */
        background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
    }
    
    .lightbox-content {
        margin: auto;
        display: block;
        width: 80%;
        max-width: 800px;
        animation-name: zoom;
        animation-duration: 0.6s;
    }
    
    @keyframes zoom {
        from {transform: scale(0)}
        to {transform: scale(1)}
    }
    
    .lightbox-close {
        position: absolute;
        top: 30px;
        right: 35px;
        color: #f1f1f1;
        font-size: 40px;
        font-weight: bold;
        transition: 0.3s;
        cursor: pointer;
    }
    
    .lightbox-close:hover,
    .lightbox-close:focus {
        color: #bbb;
        text-decoration: none;
        cursor: pointer;
    }
    
    .lightbox-caption {
        margin: auto;
        display: block;
        width: 80%;
        max-width: 800px;
        text-align: center;
        color: #ccc;
        padding: 10px 0;
        height: 150px;
    }
    
    @media only screen and (max-width: 700px){
        .lightbox-content {
            width: 100%;
        }
        .lightbox-close {
            font-size: 30px;
            top: 15px;
            right: 25px;
        }
    }

/* Footer Styles */
.site-footer {
    background-color: #000; /* Background color */
    color: #fff; /* Text color */
    padding: 20px 0;
    text-align: center;
    padding-bottom: env(safe-area-inset-top);
}

.site-footer .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-footer p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}

.site-footer a {
    color: #fff;
    text-decoration: none;
}

.site-footer a:hover {
    color: #9d9205; /* Accent color matching your site */
}

.portfolio-logo {
    width: 30px; /* Adjust the size as needed */
    vertical-align: middle;
    margin-left: 10px;
}

/* Responsive Styles */
@media only screen and (max-width: 1024px) {
    .home2text h2,
    .home2imgtext h2 {
        font-size: 45px;
    }

    .about-us h2 {
        font-size: 36px;
    }
}

@media only screen and (max-width: 768px) {
    /* Navbar */
    .nav-toggle-label {
        display: block;
    }

    /* Menu styles */
    .navbar ul {
        display: block;
        transform: scaleY(0);
        transform-origin: top;
        opacity: 0;
        transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
        flex-direction: column;
        background: #000; 
        position: absolute;
        top: 70px;
        right: 0;
        left: 0;
        z-index: 1;
        padding: 10px 0;
    }

    .home2img {
        min-height:auto;
    }

    .home2imgtext {
        max-width: 90%;
        margin: 0 auto;
        text-align: center;
    }

    .home2imgtext h2 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    /* Show the menu when checkbox is checked */
    .nav-toggle:checked + .nav-toggle-label + ul {
        transform: scaleY(1);
        opacity: 1;
    }

    .navbar ul li {
        width: 100%;
        text-align: center;
    }

    .navbar ul li a {
        display: block;
        padding: 15px 0;
        font-size: 1.2rem;
    }

    /* Resize the logo */
    .logo {
        width: 80px;
    }

    /* Adjust homepage positioning */
    .homepage {
        position: relative;
        top: auto;
        transform: none;
        margin-top: 20px;
    }

    .homepage h1 {
        font-size: 6vw;
        margin-top: 20px;
    }

    .homepage p {
        font-size: 1rem;
        padding: 0 20px;
    }

    .homebuttons button {
        width: 100%;
        margin: 10px 0;
    }

    .home2text p {
        padding: 0 20px;
        word-spacing: normal;
        letter-spacing: normal;
        line-height: 1.5;
        white-space: normal;
        word-break: break-word;
    }

    /* Projects */
    .project-container {
        grid-template-columns: 1fr;
    }

    .project-box {
        margin: 20px;
    }

    /* About Us */
    .row {
        flex-direction: column;
    }

    .flex {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0;
    }

    .about-us h2 {
        text-align: center;
    }

    .about-us img {
        margin: 20px 0;
    }

    /* Contact Us */
    .contact-container {
        padding: 0 20px;
    }

    .input-name {
        flex-direction: column;
        gap: 20px;
    }

    .input-name input,
    .input-email input,
    .input-subject input,
    .input-message input {
        width: 100%;
    }

    .btn-submit {
        width: 100%;
    }

    .social,
    .social-contact {
        width: 100%;
    }

    /* Slider */
    .slider-wrapper .image-list {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }

    .slider-wrapper .image-list .image-item {
        flex: 0 0 auto;
        width: 100%;
        height: auto;
        scroll-snap-align: start;
    }

    .slider-wrapper .slide-button {
        display: block;
    }
}

@media only screen and (max-width: 480px) {
    .homepage h1 {
        font-size: 8vw;
    }

    .home2text h2,
    .home2imgtext h2 {
        font-size: 24px;
    }

    .about-us h2 {
        font-size: 28px;
    }

    .contactus h1 {
        font-size: 32px;
    }

    .social {
        flex-direction: column;
        height: auto;
        padding: 20px;
    }

    .social-action {
        margin-top: 10px;
    }

}