* {
    margin: 0;
    padding: 0; 
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: -apple-system, sans-serif;
}

:root{
    --bg-color: #09418f;
    --snd-bg-color: #aea6a672;
    --text-color: #fafafa; 
    --main-color: #19327ec8;
    --box-color: #8d8d8d;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body{
    background: var(--bg-color);
    color: var(--text-color)
}

section {
    min-height: 100vh;
    /* padding: 10rem 8% 2rem;  */
}

/* Navbar for desktop */
.navbar {
    display: flex;
    justify-content: flex-end;
    list-style: none;
}

.navbar a {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--text-color);
    margin-left: 4rem;
    transition: all 0.5s ease;
    border-bottom: 3px solid transparent;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
    border-bottom: 3px solid var(--main-color);
}

/* Hamburger menu icon for mobile */
#menu-icon {
    font-size: 3.6rem;
    color: var(--main-color);
    cursor: pointer;
    display: none; /* Hide on desktop */
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    #menu-icon {
        display: block; 
    }

    .navbar {
        display: none; /* Hide navbar by default on mobile */
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-top: 20px;
    }

    .navbar.show {
        display: flex; /* Show navbar when menu is clicked */
    }

    .navbar a {
        margin-left: 0;
        margin-bottom: 15px;
        font-size: 1.8rem;
    }
}

header {
    position: fixed; 
    width: 100%; 
    top: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 9%;
    background: rgba(112, 111, 111, 0.312);
    backdrop-filter: blur(10px);
    transition: all 0.5s;
    border-bottom: transparent;
}

.logo {
    font-size: 3rem;
    color: var(--text-color);
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

.logo:hover {
    transform: scale(1.1);
}

span {
    color: var(--main-color);
}

.nav-btn {
    display: inline-block;
    padding: 1rem 2.8rem; 
    background: transparent; 
    color: var(--main-color);
    border: 2px solid var(--main-color);
    border-radius: 1rem;
    font-size: 1.6rem;
    font-weight: 600;
    transition: all 0.5s ease;
}

.nav-btn:hover {
    background: var(--main-color);
    color: var(--text-color);
    box-shadow: 0 0 18px var(--main-color);
}

.home {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

span {
    color: var(--main-color);
}

.home-img img {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

.home-content {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    box-shadow: none;
    font-size: 1.6rem;
    color: var(--bg-color);
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: 0.5 ease;
}

.btn:hover {
    color: (--main-color);
    box-shadow: 0 0 1.6rem var(--main-color);
}

/* Portfolio Code */

.portfolio {
    background: var(--main-color);
}

.heading {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 6.5rem;
}

.portfolio-content{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, auto));
    align-items: center;
    gap: 2.3rem;
    margin-top: 4.1rem;
}

.row{
    background: var(--main-color);
    border-radius: 27px;
    border: 1px solid transparent;
    box-shadow: 0 0 5px var(--text-color);
    padding: 20px;
    transition: all 0.5s ease; 
}

.row img {
    height: auto;
    width: 100%;
    border-radius: 27px;
    margin-bottom: 1.4rem;
}

.row h4{
    font-size: 25px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.row:hover{
    border: 1px solid var(--text-color);
    transform: translateY(-5px) scale(1.04);
    cursor: pointer;
}

/* About Us */

/* About Us Section */
.aboutus {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    gap: 2rem;
    align-items: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #09418f, #19327e); /* Gradient background */
    color: var(--text-color);
}

/* Image Styling */
.about-img img {
    width: 80%;
    margin: 0 auto;
    border: 2px solid var(--text-color);
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
}

.about-img img:hover {
    transform: scale(1.05); /* Zoom effect on hover */
}

/* Content Styling */
.aboutus-content {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent background for text */
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); /* Light shadow for depth */
}

.aboutus-content h2 {
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.aboutus-content p {
    font-size: 1.6rem;
    line-height: 1.8;
    color: #d9d9d9;
    margin-bottom: 2rem;
}

/* Key Points List Styling */
.key-points {
    list-style: none;
    margin: 2rem 0;
    padding: 0;
}

.key-points li {
    font-size: 1.6rem;
    color: #fafafa;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.key-points i {
    color: var(--main-color);
    font-size: 2rem;
    margin-right: 10px;
}

/* Call-to-Action Button Styling */
.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    box-shadow: none;
    font-size: 1.6rem;
    color: var(--bg-color);
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: 0.5s ease;
    text-decoration: none;
    border-radius: 5px;
}

.btn:hover {
    color: var(--text-color);
    box-shadow: 0 0 1.6rem var(--main-color);
}

/* Animation for Fade-in Effect */
.aboutus-content {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-in-out forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments for Mobile */
@media (max-width: 768px) {
    .aboutus {
        grid-template-columns: 1fr; /* Single column for mobile */
        padding: 2rem;
    }

    .about-img img {
        width: 100%; /* Full width image on mobile */
        display: none; /* Hide image on mobile */
    }

    .aboutus-content h2 {
        font-size: 2.8rem; /* Smaller heading size for mobile */
    }

    .aboutus-content p {
        font-size: 1.6rem;
    }

    .btn {
        padding: 0.8rem 2rem;
        font-size: 1.4rem;
    }
}



/* Contact Section */
.contact {
    background: var(--snd-bg-color); 
    padding: 60px 20px;
    text-align: center;
}

.contact .heading {
    margin-bottom: 5rem;
    font-size: 3.5rem;
    color: #fff;
    text-align: center;
}

.wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 3rem; 
    max-width: 1200px;
    margin: 0 auto; 
    justify-content: center;
}

.contact-item {
    background-color: #2b2b2b; 
    padding: 30px;
    border-radius: 15px; 
    box-shadow: 0 8px 16px var(--bg-color); 
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    position: relative;
    border: 2px solid transparent;
    height: 100%; 
}

.contact-item:hover {
    transform: translateY(-10px); 
    box-shadow: 0 12px 30px #fff; 
    border-color: var(--main-color);
}

.contact-item img {
    width: 120px;
    height: 120px;
    border-radius: 50%; 
    border: 3px solid var(--bg-color); 
    margin-bottom: 15px;
    object-fit: cover; 
}

.contact-item h2 {
    font-size: 2rem;
    color: #fff; 
    margin-bottom: 10px;
}

.contact-item p {
    font-size: 1.4rem;
    line-height: 1.8;
    color: #ccc; 
}

.job-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--bg-color); 
    margin-bottom: 10px; 
}

.contact-item .contact-details a {
    color: var(--bg-color); 
    text-decoration: none;
    font-weight: bold;
}

.contact-item .contact-details a:hover {
    color: #fff; 
    text-decoration: underline; 
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .wrapper {
        grid-template-columns: repeat(2, 1fr); 
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .wrapper {
        grid-template-columns: 1fr; 
    }

    .contact-item {
        margin-bottom: 20px; 
    }
    .wrapper:last-child {
        justify-self: center; 
    }
}






    /* Our Services */

    .ourservices {
        background: var(--snd-bg-color);
        padding: 60px 20px;
        text-align: center;
    }
    
    .heading {
        font-size: 4.5rem;
        color: var(--text-color);
        margin-bottom: 40px; 
        width: 100%;
        text-align: center;
    }
    
    .container {
        max-width: 1200px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: 1fr; 
        gap: 20px; 
    }
    
    .service-item {
        background: #ffffff;
        border: 2px solid var(--main-color); 
        border-radius: 12px;
        padding: 30px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); 
        text-align: left;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .service-item:hover {
        transform: translateY(-10px); 
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2); 
    }
    
    .service-item h3 {
        font-size: 2.4rem;
        color: var(--main-color);
        margin-bottom: 15px;
    }
    
    .service-item p {
        font-size: 1.6rem;
        line-height: 1.8;
        color: #333; 
        margin-top: auto;
    }

    
    
   
    @media (max-width: 768px) {
        .heading {
            font-size: 3.5rem; /* Smaller heading size for mobile */
        }
    
        .service-item h3 {
            font-size: 2rem; /* Smaller heading size in service items for mobile */
        }
    
        .service-item p {
            font-size: 1.4rem; /* Smaller paragraph size for mobile */
        }
    }

    /* For mobile screens, add extra spacing */
@media (max-width: 768px) {
    .ourservices {
        margin-top: 40px; 
        justify-content: center;
    }
    
    .portfolio-content {
        margin-bottom: 40px; 
    }
}
