* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styling */
body {
    font-family: Arial, sans-serif;
    background: #fff;
    text-align: center;
    overflow-x: hidden;
}

/* Header */
.header {
    width: 100%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    font-weight: bold;
}


/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 30px;
}

.logo img {
    width: 160px;
    height: auto;
    transition: transform 0.3s ease-in-out;
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links li {
    list-style: none;
    position: relative;
    font-size: 18px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 8px 12px;
    position: relative;
}

/* Underline Animation */
.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 2px;
    background-color: #3f3f3f;
    transform: scaleX(0);
    transition: transform 0.3s ease-in-out;
}

.nav-links a:hover::after,
.nav-links .active::after {
    transform: scaleX(1);
}

/* Employee Login Button (No Underline) */
.login-btn {
    background-color: #c3c0c0;
    color: rgb(248, 247, 247);
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s ease-in-out;
    position: relative;
}

.login-btn::after {
    display: none; /* Removes underline animation */
}

.login-btn:hover {
    background-color: #d4d5d5;
}


/* Services Section */
.services {
    padding: 50px 20px;
}
.services-heading span {
    color: #336aaa;
    font-weight: bold;
    position: relative;
    display: inline-block;
    transition: color 0.3s ease-in-out;
}

.services h2 {
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    margin-top: 40px;
    color: #333;
}

/* Grid Layout */
.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
    max-width: 1400px;
    height: 500px;
    margin: auto;
}

/* Individual Grid Items */
.grid-item {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    overflow: hidden;
}

/* Image Styling */
.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

/* Assigning Grid Positions */
.item1 { grid-column: span 2; grid-row: span 2; }
.item2 { grid-column: span 2; }
.item3 { grid-column: span 1; grid-row: span 1; }
.item4 { grid-column: span 1; grid-row: span 2; }
.item5 { grid-column: span 1; grid-row: span 1; }
.item6 { grid-column: span 1; grid-row: span 1; }
.item7 { grid-column: span 1; grid-row: span 1; }


/* Centered Heading */
.services-heading {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 40px;
    margin-left: 40px;
}

/* Circle Section */
.circle-section {
    display: flex;
    justify-content: center; /* Center circles */
    align-items: center;
    gap: 160px; /* Increased gap between circles */
    margin: 80px 0;
}

/* Circle Shape */
.circle {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Circle Container */
.circle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 270px;
    margin-bottom: 130px;
}

.circle-container h1 {
    font-size: 1.5rem;
    margin-top: 12px;
    color: #333;
    font-weight: bold;
}   



.implementation-details {
    padding: 50px 5%;
    background: #f8f8f8;
    width: 100%;
}

.service-detail {
    width: 95%;
    max-width: 1400px;
    margin: 30px auto;
    padding: 40px;
    border-radius: 8px;
    background: white;
    transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.service-detail:hover {
    box-shadow: 0px 0px 20px rgba(98, 102, 105, 0.7);
}


.service-detail h1 {
    font-size: 32px;
    color: #333;
    margin-bottom: 15px;
    text-align: left;
}

.service-detail p {
    font-size: 20px;
    color: #555;
    line-height: 1.8;
    text-align: justify;
}

footer {
    background: linear-gradient(135deg, #3c3c3c, #505151);
    color: white;
    padding: 50px 0;
    font-family: 'Arial', sans-serif;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: auto;
    flex-wrap: wrap;
}

.footer-logo {
    width: 150px;
    margin-bottom: 15px;
    position: relative;
    top: -50px;
}

.footer-about p {
    font-size: 17px;
    color: #ddd;
    line-height: 1.6;
    max-width: 300px;
    margin-top: -100px;
}

.footer-about, .footer-links, .footer-contact {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}

.footer-about h2 {
    color: #ffffff;
    font-size: 24px;
    margin-bottom: 15px;
}

.footer-links h3, .footer-contact h3 {
    color: #ffffff;
    font-size: 25px;
    margin-bottom: 15px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: white;
    text-decoration: none;
    transition: 0.3s;
    font-size: 17px;
}

.footer-links ul li a:hover {
    color: #6ad0ff;
    transform: translateX(5px);
}

.footer-contact form {
    display: flex;
    gap: 10px;
}

.footer-contact input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background: #222;
    color: white;
}

.footer-contact button {
    background: #b6d5e4;
    color: rgb(56, 55, 55);
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
}


.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #222;
    font-size: 14px;
}


/* ===================== MEDIA QUERIES ===================== */

/* Mobile (Android/iOS) */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        height: auto;
        padding: 10px 20px;
        align-items: flex-start;
    }

    .logo {
        align-self: flex-start;
        margin-right: 10px;
    }

    .logo img {
        width: 120px;
    }

    .nav-links {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        gap: 20px;
        justify-content: center;
    }

    .nav-links li {
        flex: none; /* prevents extra spacing */
        text-align: left;
        font-size: 16px;
        white-space: nowrap; /* Keeps "Our Products" in one line */
    }

    .nav-links a {
        display: inline-block;  /* Prevents full-width hover effect */
        padding: 6px;
        position: relative;
    }

    /* Underline effect only for text */
    .nav-links a::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -3px;
        width: 100%;
        height: 2px;
        background-color: #3f3f3f;
        transform: scaleX(0);
        transition: transform 0.3s ease-in-out;
    }

    .nav-links a:hover::after,
    .nav-links .active::after {
        transform: scaleX(1);
    }

    /* Login button below navigation */
    .login {
        width: 100%;
        text-align: left;
        margin-top: 10px;
    }


    .login-btn {
        display: inline-block;
        width: auto;
        padding: 6px 10px;  /* Reduced width */
        font-size: 14px;
        background-color: #ccc;
        border-radius: 5px;
        font-weight: bold;
        text-decoration: none;
    }

    .services h2 {
        font-size: 2rem;
    }

    .circle-section {
        flex-direction: column;
        gap: 50px;
    }

    .circle {
        width: 250px;
        height: 250px;
    }

    .circle-container {
        width: 250px;
    }

    .grid-container {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        gap: 5px;
        height: auto;
    }

    .grid-item {
        border-radius: 5px;
    }

    .implementation-details {
        padding: 30px 3%;
    }

    .service-detail {
        width: 100%;
        padding: 20px;
    }

    .service-detail h1 {
        font-size: 24px;
        text-align: center;
    }

    .service-detail p {
        font-size: 16px;
        text-align: left;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        padding: 0 15px;
    }

    .footer-about, .footer-links, .footer-contact {
        display: flex;
        flex-direction: column;
        min-width: 100%;
        text-align: left;
        align-items: flex-start;  /* Align content to the left */

    }

    .footer-logo {
        width: 120px;
        margin-bottom: 0px;  /* 🔹 Remove extra gap */
        text-align: left;
    }

    .footer-about p {
        font-size: 16px;
        margin-top: -30px;   /* 🔹 Reduce top margin to bring text closer */
        text-align: left;
    }

    .footer-links ul {
        padding-left: 0;
        text-align: left;
    }

    .footer-contact form {
        flex-direction: column;
        gap: 8px;
    }

    .footer-contact input {
        width: 100%;
    }

    .footer-contact button {
        width: 100%;
    }

    .social-icons {
        display: flex;
        justify-content: center;
    }

    .footer-bottom {
        font-size: 12px;
    }
}


/* Tablets */
@media (min-width: 768px) and (max-width: 1024px) {
    .header {
        display: flex;
        justify-content: space-between;  /* Ensures items are spread out */
        align-items: center;
        padding: 10px 30px;
        height: auto;
    }

    .logo {
        flex: 1; /* Allows the logo to take available space on the left */
    }

    .logo img {
        width: 140px;
    }

    .nav-links {
        display: flex;
        flex: 2; /* Gives nav links more space */
        justify-content: center;
        gap: 20px;
        flex-wrap: nowrap; /* Prevents links from breaking into new rows */
    }

    .nav-links li {
        font-size: 17px;
        white-space: nowrap; /* Ensures text does not wrap */
    }

    .login-btn {
        flex: 1; /* Pushes the login button to the right */
        text-align: right;
        font-size: 17px;
        padding: 8px 15px;
        background-color: #ccc;
        border-radius: 5px;
        font-weight: bold;
        text-decoration: none;
    }

    .circle-section {
        flex-direction: row;
        gap: 60px;
        flex-wrap: wrap;
    }

    .circle {
        width: 280px;
        height: 280px;
    }

    .circle-container {
        width: 280px;
    }

    .grid-container {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto;
        gap: 10px;
    }

    .implementation-details {
        padding: 40px 4%;
    }

    .service-detail {
        width: 90%;
        padding: 30px;
    }

    .service-detail h1 {
        font-size: 28px;
    }

    .service-detail p {
        font-size: 18px;
    }

    .footer-container {
        margin-top: auto;
        flex-wrap: wrap;
        text-align: center;
    }

    .footer-logo {
        width: 120px;
        margin-bottom: 0px; /* Remove extra bottom space */
        display: block;
    }

    .footer-about p {
        font-size: 16px;
        margin-top: -65px; /* Reduce space between logo and paragraph */
    }

    .footer-about, .footer-links, .footer-contact {
        flex: 1;
        min-width: 45%;
        text-align: left;
    }

    .footer-contact form {
        justify-content: center;
    }

    .social-icons {
        justify-content: center;
    } 
}


/* Laptops */
@media (min-width: 1025px) and (max-width: 1366px) {
    .header {
        padding: 15px 50px;
    }

    .nav-links {
        gap: 25px;
    }

    .nav-links li {
        font-size: 18px;
    }

    .circle-section {
        flex-direction: row;
        gap: 100px;
    }

    .circle {
        width: 350px;
        height: 350px;
    }

    .circle-container {
        width: 350px;
    }

    .grid-container {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 10px;
    }

    .footer-container {
        display: flex;
        justify-content: space-between;
        max-width: 1200px;
        margin: auto;
        text-align: left;
    }


    .footer-about, .footer-links, .footer-contact {
        flex: 1;
        min-width: 300px;
    }
}


/* Large desktops */
@media (min-width: 1367px) {
    .header {
        padding: 15px 80px;
    }

    .nav-links {
        gap: 30px;
    }

    .nav-links li {
        font-size: 20px;
    }

    .footer-container {
        max-width: 1400px;
    }

    .footer-about p {
        font-size: 18px;
        text-align: center;
        margin-left: 30px;
    }

    .footer-links h3, .footer-contact h3 {
        font-size: 22px;
    }

    .footer-links ul li a {
        font-size: 18px;
    }
}
