/* Global Styles */
body {
    background-color: #000000;
    font-family: Arial, sans-serif;
    color: white;
    margin: 0;
    padding: 0;
}

/* Header Section */
#header {
    background: #000000;
}

a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 400;
}

span {
    color: #71e215;
}

.navbar {
    background-color: black;
}

.navbar-brand {
    font-size: 28px;
    margin: 0;
    padding: 0;
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
}

.navbar-toggler {
    padding: var(--bs-navbar-toggler-padding-y) var(--bs-navbar-toggler-padding-x);
    font-size: var(--bs-navbar-toggler-font-size);
    line-height: 1;
    color: black; /* Reset the color to inherit the parent color */
    background-color: transparent;
    border: none; /* Remove the border */
    border-radius: var(--bs-navbar-toggler-border-radius);
    transition: var(--bs-navbar-toggler-transition);
}

.navbar-toggler-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    background-image: url("menu.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
}

.close-button-wrapper {
    /* Style for the span if needed, e.g., positioning */
    display: inline-block; /* or block, flex, etc., depending on layout needs */
}

.btn-close {
    background: none;
    border: none;
    padding: 0;
    width: 32px;
    height: 32px;
    /* Use your close icon as a background image */
    background-image: url(menu-close-2.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    /* Ensure the button has a higher stacking context if needed */
    position: relative;
    z-index: 1000;
}

.btn-close-white {
    /* Override any inherited filters */
    filter: none !important;
}

.btn-close:hover, .btn-close:focus {
    opacity: 0.7; /* Reduce opacity on hover or focus for the effect */
    transition: opacity 0.3s ease; /* Smooth transition for the opacity change */
}

.navbar-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.navbar-nav {
    margin-bottom: 10px;
}

.nav-item {
    margin-right: 30px;
    position: relative;
}

    .nav-item::after {
        content: '';
        display: block;
        width: 0;
        height: 3px;
        background: #5c9f24;
        transition: width 0.3s;
    }

.nav-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    font-weight: 400;
    transition: color 0.3s, font-size 0.3s;
}

    .nav-link:hover {
        color: #fff;
        font-size: 20px;
    }

.nav-item:hover::after {
    width: 100%;
}

.active .nav-link {
    color: #fff;
}

.active::after {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
}

.offcanvas {
    background-color: black;
}

.btn-action {
    background-color: #71e215;
    color: white;
    text-decoration: none;
    border: 2px solid transparent;
    font-weight: bold;
    padding: 10px 20px;
    margin-top: 5px;
    border-radius: 30px;
    transition: 0.4s;
}

    .btn-action:hover {
        background-color: transparent;
        border-color: #FFCC00;
        color: white;
    }

@media (max-width: 1199.98px) {
    .navbar {
        padding: 10px;
    }

    .navbar-brand h2 {
        font-size: 20px;
    }

    .nav-link {
        font-size: 14px;
    }

    .nav-item:hover::after {
        width: 30%;
    }

    .active::after {
        width: 30%;
    }

    .btn-action {
        margin-top: 30px;
    }
}

/* Hero Section */
.hero-section {
    padding: 3rem 3rem 0 3rem;
    height: 100vh; /* Full height of the viewport */
    width: 100%; /* Full width of the viewport */
    display: flex; /* Centers content inside the hero */
}

.content {
    padding-top: 10rem;
    position: relative;
    top: 40%;
    left: 8%;
    transform: translateY(-30%);
}

    .content h1 {
        color: white;
        margin: 20px 0;
        font-size: 55px;
    }

    .content h3 {
        color: white;
        font-size: 25px;
        margin-bottom: 50px;
    }

    .content h4 {
        color: #FAF5E9;
        letter-spacing: 2px;
        font-size: 20px;
    }

.newsletter form {
    width: 380px;
    max-width: 100%;
    position: relative;
}

    .newsletter form input:first-child {
        display: inline-block;
        width: 100%;
        padding: 14px 130px 14px 15px;
        border: 2px solid #FFCC00;
        outline: none;
        border-radius: 30px;
    }

    .newsletter form input:last-child {
        position: absolute;
        display: inline-block;
        outline: none;
        border: none;
        padding: 10px 30px;
        border-radius: 30px;
        background-color: #71e215;
        color: white;
        box-shadow: 0px 0px 5px #000, 0px 0px 15px #858585;
        top: 6px;
        right: 6px;
        cursor: pointer;
    }

@media (max-width: 768px) {
    .content {
        padding-top: 17rem;
        left: 5%;
    }
}

@media (max-width: 576px) {
    .content {
        padding-top: 1rem;
        left: 5%;
        transform: translateY(-20%);
    }
}

/* About Section */
.about-section {
    padding: 3rem 3rem 0 3rem;
}

.about-text {
    width: 100%;
    padding: 40px 0;
}

    .about-text h2 {
        color: white;
        font-size: 55px;
        text-transform: capitalize;
        margin-bottom: 20px;
    }

    .about-text h5 {
        color: white;
        letter-spacing: 2px;
        font-size: 28px;
        margin-bottom: 25px;
        text-transform: capitalize;
    }

    .about-text p {
        color: #FAF5E9;
        letter-spacing: 1px;
        line-height: 28px;
        font-size: 18px;
        margin-bottom: 45px;
    }

@media (max-width: 768px) {
    .about-text {
        padding-top: 15px;
    }
}

@media (max-width: 576px) {
    .about-text h2 {
        font-size: 36px;
    }

    .about-text p {
        font-size: 16px;
        line-height: 24px;
    }
}

/* Services Section */
.services-section {
    background: linear-gradient(to bottom right, #000000, #0c1408);
    padding: 3rem 1.5rem;
    box-shadow: inset 0 0 10px #000000;
    z-index: 1; /* Keeps this section below others */
}

.service-title {
    font-size: 2.5rem;
    text-align: center;
    color: #fff;
    margin-bottom: 2rem;
}

    .service-title span {
        color: #71e215;
        -webkit-text-stroke: 1px #71e215;
    }

.service-card {
    background-color: transparent;
    border: none;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

    .service-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 0 20px rgba(113, 226, 21, 0.3);
    }

.service-icon {
    font-size: 3rem;
    color: #71e215;
    margin-bottom: 15px;
}

.service-name {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.service-desc {
    color: #FAF5E9;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .services-section {
        padding: 2rem 1rem;
    }

    .service-title {
        font-size: 2rem;
    }

    .service-card {
        margin-bottom: 30px;
    }

    .service-icon {
        font-size: 2.5rem;
    }

    .service-name {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .service-title {
        font-size: 1.8rem;
    }

    .service-icon {
        font-size: 2rem;
    }

    .service-name {
        font-size: 1rem;
    }

    .service-desc {
        font-size: 0.9rem;
    }
}

/* Global Styles already included in your previous CSS */

/* Projects Section */
.project-main-title {
    font-size: 2.5rem;
    text-align: center;
    color: #fff;
    margin-bottom: 2rem;
}

.projects-section {
    padding: 3rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.project-card {
    background: transparent;
    border: none;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 400px; /* Fixed height for all cards */
}

.project-image {
    position: relative;
    overflow: hidden;
    flex-grow: 1; /* This ensures the image takes up the available space */
}

    .project-image img {
        width: 100%;
        height: 100%; /* Makes the image stretch to fit the container */
        object-fit: cover; /* Ensures the image covers the area without distortion */
        transition: transform 0.3s ease;
    }

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-card:hover .overlay {
    opacity: 1;
}

.project-card.in-view .overlay {
    opacity: 1;
}
.project-card.in-view .project-image img {
    transform: scale(1.1);
}



.view-project {
    color: #fff;
    text-decoration: none;
    border: 2px solid #71e215;
    padding: 10px 20px;
    background: transparent;
    font-weight: bold;
    transition: background 0.3s, color 0.3s;
}

    .view-project:hover {
        background: #71e215;
        color: black;
    }

/*.project-card:hover .view-project {
    background: #71e215;
    color: black;
}
*/
.project-card.in-view .view-project {
    background: #71e215;
    color: black;
}

/* Additional touch device styles */
@media (hover: none) {
    .project-card.in-view {
        animation: pulse 0.5s infinite alternate;
        /*transform: scale(1.05);*/
    }

    /*@keyframes pulse {
        from {
            box-shadow: 0 0 10px #71e215;
        }

        to {
            box-shadow: 0 0 20px #71e215;
        }
    }*/
}

/* Ensure the project details are aligned correctly */
.project-details {
    padding: 20px 10px;
    text-align: center;
    flex-shrink: 0; /* Prevents the text from shrinking and maintains the layout */
}

.project-title {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.project-description {
    color: #FAF5E9;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.tech-stack {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
}

.tech-pill {
    background: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* Media Queries */
@media (max-width: 768px) {
    .project-main-title {
        font-size: 2rem;
    }
    /* Further mobile-specific styles */
}

@media (max-width: 576px) {
    .project-main-title {
        font-size: 1.8rem;
    }
    /* Further smaller screen styles */
}

/* Contact Section */
.contact-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #000000, #0c1408, #232323);
    text-align: center;
    position: relative;
    overflow: hidden;
    color: white;
}

    .contact-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 0;
    }

.contact-main-title {
    font-size: 3rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

    .contact-main-title span {
        color: #71e215;
        font-weight: bold;
    }

.contact-icons {
    list-style-type: none;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

    .contact-icons li {
        margin: 0 10px 10px 0;
    }

    .contact-icons a {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background-color: #71e215;
        color: black;
        font-size: 1.5rem;
        text-decoration: none;
        transition: transform 0.3s, background-color 0.3s, box-shadow 0.3s, opacity 0.3s;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        position: relative;
        overflow: hidden;
    }

        .contact-icons a::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            background: rgba(255, 255, 255, 0.5);
            border-radius: 50%;
            opacity: 0;
            transform: translate(-50%, -50%);
            transition: width 0.3s, height 0.3s, opacity 0.3s, background-color 0.3s;
        }

        .contact-icons a:hover {
            transform: scale(1.1);
            background-color: #fff;
            color: #71e215;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        }

            .contact-icons a:hover::before {
                width: 100%;
                height: 100%;
                opacity: 1;
                background: rgba(255, 255, 255, 0.2);
            }

/* Media Queries */
@media (max-width: 768px) {
    .contact-main-title {
        font-size: 2rem;
    }

    .contact-icons a {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .contact-main-title {
        font-size: 1.8rem;
    }

    .contact-icons {
        gap: 15px;
    }

        .contact-icons a {
            width: 45px;
            height: 45px;
            font-size: 1rem;
        }
}















/* Media Queries for Images */
@media (min-width: 992px) {
    .col-sm img {
        max-width: 60%;
        margin: 0 auto;
        display: block;
    }
}

@media (max-width: 576px) {
    .col-sm img {
        max-width: 80%;
        margin: 0 auto;
        display: block;
    }
}
