/*
Major Chnage in CSS
1. Body - overflow-x [Active - Prevents horizontal bar due to shaking animations used.]
2. highlight-text - box-sizing [Is Commented only]
*/

/* Reset margins and padding for consistency */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styling */
body {
    /* width: 100%; */
    overflow-x: hidden; /* Prevents horizontal scrollbar */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f4f7fb;
    color: #333;
}

/* Navbar Styling */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1f2a44;
    padding: 20px 40px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Logo */
.navbar .logo {
    color: #00bcd4;
    font-size: 24px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Menu Styling */
.navbar .menu {
    display: flex;
    flex-direction: row;
}

.navbar .menu ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.navbar .menu ul li a {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.navbar .menu ul li a:hover {
    color: #00bcd4;
}

/* Hamburger Icon Styling (hidden by default) */
.navbar .hamburger-label {
    display: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
}

.navbar input[type="checkbox"] {
    display: none;
}

/* Responsive Styling */
@media (max-width: 768px) {
    .navbar .menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 20px;
        background-color: #1f2a44;
        width: calc(100% - 40px);
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .navbar input[type="checkbox"]:checked ~ .menu {
        display: flex;
    }

    .navbar .menu ul {
        flex-direction: column;
        gap: 10px;
    }

    .navbar .hamburger-label {
        display: block;
    }
}

/* Highlight Text Styling */
.highlight-text {
    /*box-sizing: border-box;  Ensures padding is included in the element's width */
    text-align: center;
    margin: 30px 0;
    font-size: 20px;
    font-weight: 700; /* Bold text */
    color: #fff; /* White text for contrast */
    background-color: #00bcd4; /* Vibrant blue background */
    padding: 10px;
    border-radius: 6px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Enhanced shadow for better emphasis */
    text-transform: uppercase; /* Optional: Makes the text uppercase */
    letter-spacing: 1px; /* Optional: Adds spacing between letters for a polished look */
    animation: vibrate 2s infinite ease-in-out, pulse 3s infinite ease-in-out;
}

/* Animation: Vibrate Effect */
@keyframes vibrate {
    0%, 100% {
        transform: translateX(0);
    }
    20% {
        transform: translateX(-2px);
    }
    40% {
        transform: translateX(2px);
    }
    60% {
        transform: translateX(-1px);
    }
    80% {
        transform: translateX(1px);
    }
}

/* Animation: Pulse Effect */
@keyframes pulse {
    0% {
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        background-color: #0c1a46;
    }
    50% {
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
        background-color: #0c1a46; /* Lighter shade of blue */
    }
    100% {
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        background-color: #0c1a46;
    }
}

/* New Animations */
@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes pulseEffect {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(0, 188, 212, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px rgba(0, 188, 212, 0.7);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(0, 188, 212, 0.4);
    }
}

/* Hero Section Styling */
.main {
    padding: 0;
    margin: 0;
    display: block; /* Ensures the image takes full width */
    position: relative;
    height: auto;
}

.main img {
    width: 100%;
    object-fit: cover; /* Maintains aspect ratio */
    height: 70vh; /* Adjust the height as needed */
}

/* About Us Section */
.about {
    background-color: #ffffff;
    padding: 60px 20px;
    text-align: center;
    margin: 60px 0;
}

.about h2 {
    font-size: 36px;
    color: #1e3a5f;
    margin-bottom: 30px;
    font-weight: 600;
}

.about p {
    font-size: 18px;
    color: #666;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* Services Section with Box Styling */
.services {
    background-color: #f0f5fa;
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.services h2 {
    font-size: 36px;
    color: #1e3a5f;
    margin-bottom: 40px;
    font-weight: 600;
    text-align: center;
}

.services .service-box {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.services .service-box .service-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.services .service-box .service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.services .service-box .service-item img {
    width: 100%;
    height: auto;
    max-width: 300px;
    margin: 0 auto 20px;
    border-radius: 6px;
}

.services .service-box .service-item h3 {
    font-size: 22px;
    color: #00bcd4;
    margin-bottom: 15px;
}

.services .service-box .service-item p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* Products Section Styling */
.products {
    background-color: #ffffff;
    padding: 60px 20px;
    text-align: center;
    animation: fadeIn 1s ease-in-out; /* Adds fade-in effect when the section appears */
}

.products h2 {
    font-size: 36px;
    color: #1e3a5f;
    margin-bottom: 40px;
    font-weight: 600;
}

.products .product-box {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Product Item Styling */
.products .product-item {
    background-color: #f4f7fb;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.8s forwards; /* Animation when product items appear */
}

/* Animation for product items - Fade In and Move Up */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover Effect for Product Items */
.products .product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Product Item Heading Styling */
.products .product-item h3 {
    font-size: 22px;
    color: #00bcd4;
    margin-bottom: 15px;
}

/* Product Item Description Styling */
.products .product-item p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* Contact Section Styling with Background Image */
.contact {
    background: url('team13.jpg') no-repeat center center/cover; /* Replace with your image path */
    padding: 60px 20px;
    text-align: center;
    position: relative; /* Allows for additional elements like overlays */
    color: #fff; /* Ensures text is readable on the image background */
}

/* Optional: Add an overlay for better text readability */
.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Black overlay with 50% transparency */
    z-index: 1;
}

.contact h2, .contact .contact-info {
    position: relative; /* Ensures text is above the overlay */
    z-index: 2;
}

.contact h2 {
    font-size: 36px;
    color: #fff;
    margin-bottom: 40px;
    font-weight: 600;
}

.contact .contact-info {
    font-size: 18px;
    line-height: 1.8;
    color: #fff;
}

/* Left Icon (Phone) */
.share-icon-left {
    position: fixed;
    bottom: 20px; /* 20px from the bottom */
    left: 20px; /* 20px from the left */
    z-index: 9999; /* Ensure it stays above other elements */
}

.share-icon-left a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 65px; /* Increased container size */
    height: 65px;
    border-radius: 50%;
    background: #2d4dec;
    box-shadow: 0 4px 5px -1px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.share-icon-left a:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 10px -1px rgba(0, 0, 0, 0.6);
}

.share-icon-left img {
    width: 68px; /* Increased icon size */
    height: 68px;
}

/* Right Icon (WhatsApp) */
.share-icon-right {
    position: fixed;
    bottom: 20px; /* 20px from the bottom */
    right: 20px; /* 20px from the right */
    z-index: 9999; /* Ensure it stays above other elements */
}

.share-icon-right a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 65px; /* Increased container size */
    height: 65px;
    border-radius: 50%;
    background: #2d4dec; /* WhatsApp green */
    box-shadow: 0 4px 5px -1px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.share-icon-right a:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 10px -1px rgba(0, 0, 0, 0.6);
}

.share-icon-right img {
    width: 78px; /* Increased icon size */
    height: 78px;
}

/* Footer Section Styling */
.footer {
    background-color: #1f2a44;
    color: #fff;
    text-align: center;
    padding: 30px 20px;
}

.footer p {
    font-size: 16px;
}

/* Final tweaks for mobile responsiveness */
@media (max-width: 768px) {
    .about p,
    .services .service-item p,
    .products .product-item p {
        font-size: 14px;
    }

    .main img {
        height: 60vh;
    }
}
