* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
 }
 
 html,
 body {
    height: 100%;
    width: 100%;
    overflow-x: clip;
    ;
 }
 
nav {
    padding: 10px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white; /* ADDED: Solid background for fixed position */
    height: 70px;
    
    /* CRITICAL FIXES FOR POSITIONING: */
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; 
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* ADDED */
}
 
 .logo {
    color: #000;
 }
 
 .logo h1 {
    font-size: 24px;
    transition: transform 0.3s ease-in-out;
 }
 
 .logo h1:hover {
    transform: scale(1.1);
 }
 
 #menuList {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
 }
 
 #menuList li {
    position: relative;
 }
 
 #menuList li a {
    text-decoration: none;
    color: rgb(0, 0, 0);
    font-size: 18px;
    padding: 8px 12px;
    transition: color 0.3s ease-in-out;
 }
 
 #menuList li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: #0cc0df;
    transition: width 0.3s ease-in-out;
 }
 
 #menuList li a:hover {
    color: #0cc0df;
 }
 
 #menuList li a:hover::after {
    width: 100%;
 }
 
 .menu-icon {
    display: none;
    cursor: pointer;
 }
 
 .menu-icon img {
    width: 30px;
    transition: transform 0.3s ease-in-out;
 }
 
 .nav-right a {
    display: flex;
    padding: 12px 20px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    text-decoration: none;
    background: #0cc0df;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out, background 0.3s ease-in-out;
    box-shadow: 0px 5px 10px rgba(12, 192, 223, 0.3);
    position: relative;
    overflow: hidden;
 }
 
 .nav-right a:hover {
    transform: translateY(-3px);
    background: #004aad;
 }
 .nimz {
    color: #004aad;
 }
 
 .liot {
    color: #0cc0df;
 }
 
/* WhatsApp Floating Button */
.whatsapp-btn {
    position: fixed;
    bottom: 40px;
    right: 20px;
    width: 65px;
    height: 65px;
    background:#25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 0 18px rgba(37, 211, 102, 0.7);
    transition: 0.3s ease;
    z-index: 999;
    animation: waFloat 3s infinite ease-in-out;
}

/* WhatsApp icon inside the button */
.whatsapp-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.3));
}

/* Hover Effect */
.whatsapp-btn:hover {
    box-shadow: 0 0 25px rgba(37, 211, 102, 0.9);
}

 
 
 .chat-popup {
    display: none;
    position: fixed;
    bottom: 110px;
    right: 20px;
    width: 320px;
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
    animation: fadeIn 0.3s ease-in-out;
 }
 
 
 .chat-popup header {
    background: #25D366;
    color: white;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
 }
 
 .chat-popup header .close-btn {
    cursor: pointer;
    font-size: 20px;
 }
 
 
 .chat-body {
    padding: 20px;
    font-size: 14px;
 }
 
 .chat-body p {
    margin-top: 30px;
    margin-bottom: 10px;
 }
 
 .chat-body .contact-card {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
 }
 
 .chat-body .contact-card:hover {
    background: #e0e0e0;
 }
 
 .contact-card img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
 }
 
 .contact-card .contact-info {
    flex: 1;
 }
 
 .contact-card .contact-info .name {
    font-weight: bold;
 }
 
 .contact-card .contact-info .role {
    font-size: 12px;
    color: gray;
 }
 @keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
 }
 
 
 
 
 
 /*Responsive design*/
 
 @media screen and (max-width: 1024px){
    nav {
        padding: 10px 20px;
     }
  
     #menuList {
        gap: 20px;
        padding-right: 0;
     }
 }
 @media screen and (max-width: 768px){
    nav ul {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        height: auto;
        flex-direction: column;
        text-align: center;
        gap: 10px;
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.5s ease-in-out;
  
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(20px) brightness(1.1) contrast(1.3);
        -webkit-backdrop-filter: blur(20px) brightness(1.1) contrast(1.3);
  
  
        padding: 15px 0;
        z-index: 1000;
     }
  
  
     .menu-icon {
        display: block;
        cursor: pointer;
     }
  
  
     .nav-menu .contact {
        display: block;
     }
  
  
     .nav-right a {
        display: none;
     }
  
  
     #menuList {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 0;
        text-align: center;
        flex-direction: column;
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.5s ease-in-out;
     }
  
     #menuList.active {
        max-height: 500px;
        padding: 20px 0;
     }
  
     #menuList li {
        margin: 10px 0;
     }
     
.footer-container {
   flex-direction: column;
   text-align: center;
}

.social-icons {
   justify-content: center;
}

.footer ul li a {
   display: block;
}
.achievement-boxes{
   margin-left: 30px;
}
 }
 @media screen and (max-width: 480px) {

 }
 
 @media screen and (min-width: 769px) {
    .nav-menu .contact {
       display: none;
    }
 }
 .footer {
   background-color: #ffffff; 
   color: #ffffff;
   padding: 50px 20px;
   margin-top: 50px;
}

.footer-container {
   display: flex;
   flex-wrap: wrap;
   justify-content: space-between;
   max-width: 1200px;
   margin: auto;
   gap: 30px;
}

.footer-about {
   flex: 1;
   min-width: 250px;
}

.footer-about h2 {
   font-size: 24px;
   font-weight: bold;
   margin-bottom: 15px;
}

.footer-about p {
   font-size: 14px;
   line-height: 1.6;
   color: gray; 
}


.footer-links, .footer-follow, .footer-legal {
   flex: 1;
   min-width: 200px;
}

.footer h3 {
   font-size: 18px;
   margin-bottom: 15px;
   color: #000000; 
}

.footer ul {
   list-style: none;
   padding: 0;
}

.footer ul li {
   margin-bottom: 10px;
}

.footer ul li a {
   color: gray;
   text-decoration: none;
   font-size: 14px;
   transition: color 0.3s ease-in-out, transform 0.2s ease-in-out;
   display: inline-block;
}

.footer ul li a:hover {
   color: #0CC0DF; 
   transform: translateX(5px);
}


.social-icons {
   display: flex;
   gap: 15px;
   padding: 0;
}

.social-icons li {
   list-style: none;
}

.social-icons a {
   color: #b3d9ff; 
   font-size: 18px;
   transition: color 0.3s ease-in-out, transform 0.2s ease-in-out;
}

.social-icons a:hover {
   color: #0CC0DF; 
   transform: scale(1.1);
}


.footer-bottom {
   text-align: center;
   border-top: 1px solid #0a3b80; 
   padding-top: 10px;
   margin-top: 20px;
}

.footer-bottom p {
   font-size: 12px;
   color: gray; 
   margin: 0;
}
 /*
 * =======================================================
 * CSS Variables & Base Setup (Retained for context)
 * =======================================================
 */

:root {
    --color-primary: #004aad; /* Deep Blue */
    --color-accent: #0cc0df; /* Cyan */
    --color-text-dark: #333;
    --color-model-bg: #e0faff; /* Light Cyan for the Modal/Popup */
    --color-shadow-light: rgba(0, 74, 173, 0.1);
    --color-shadow-medium: rgba(0, 74, 173, 0.2);
    --color-hover-bg: #f5faff; /* Very subtle hover light blue */
    --font-primary: 'Poppins', sans-serif;
    --border-radius: 12px;
    --transition-speed: 0.4s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-bg-light); 
}

/* ===================== GENERAL SECTION STYLE (Background Control Reverted) ===================== */
section {
    width: 100%;
    padding: 80px 20px;
    max-width: 1200px;
    margin: auto;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 74, 173, 0.05);
    /* REMOVED: background-color: var(--color-bg-white) !important; */
    background-color: var(--color-bg-white); /* Default to white, can be overridden below */
    z-index: -999;
}

section:last-of-type {
    border-bottom: none;
}

section h1, section h2 {
    text-align: center;
    color: var(--color-primary);
    margin-bottom: 25px;
    font-weight: 800;
    font-size: 38px;
    position: relative;
}

section h2::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background: var(--color-accent);
    margin: 10px auto 0;
    border-radius: 2px;
}

section p {
    text-align: center;
    max-width: 900px;
    margin: 15px auto;
    color: var(--color-text-dark);
    font-size: 18px;
}

/* ===================== ABOUT NIMZLIOT (Section 1) ===================== */
.nimz-about h1 {
    margin-top: 30px;
    font-size: 44px;
    padding-bottom: 10px;
}

.nimz-about p {
    font-size: 19px;
    line-height: 1.8;
}

/* ===================== SERVICES (Section 2 - Reset to contrasting background) ===================== */
.nimz-services {
    background-color: var(--color-bg-light); /* Added light background for contrast */
}
.nimz-services h2 {
    margin-bottom: 30px;
}

.service-visual-description {
    max-width: 900px;
    margin: 0 auto 40px;
    text-align: center;
}

.service-visual-description p {
    margin-bottom: 20px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    justify-content: center;
    margin-top: 30px;
}

.service-box {
    padding: 30px;
    /* Ensure service box itself is white to contrast with section background */
    background: var(--color-bg-white); 
    border-radius: var(--border-radius);
    border: 3px solid rgba(12, 192, 223, 0.15);
    box-shadow: 0 5px 20px var(--color-shadow-light);
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
    transition: all var(--transition-speed) cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Larger, Rectangular Image Styling for Service Boxes */
.service-img {
    width: 120px; 
    height: 80px; 
    object-fit: contain; 
    margin-bottom: 15px;
    border-radius: 8px; 
    background: var(--color-hover-bg); 
    padding: 8px;
    transition: transform 0.3s, background-color 0.3s;
}

.service-box:hover .service-img {
    transform: scale(1.05); 
    background-color: var(--color-accent); 
}

.service-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-speed);
}

.service-box:hover {
    transform: translateY(-8px);
    border-color: var(--color-primary);
    box-shadow: 0 15px 35px var(--color-shadow-medium);
    background: var(--color-hover-bg);
}

.service-box:hover::after {
    transform: scaleX(1);
}

/* ===================== COLLAB STYLE (Section 3 - Reset to contrasting background) ===================== */

.nimz-collab-style h2 {
    margin-bottom: 30px;
}

.collab-points {
    max-width: 650px;
    margin: 30px auto;
    list-style: none;
    padding: 0;
}

.collab-points li {
    font-size: 18px;
    padding: 12px 20px;
    color: var(--color-text-dark);
    background: var(--color-bg-white);
    margin-bottom: 10px;
    border-radius: 8px;
    border-left: 5px solid var(--color-primary);
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.collab-points li:hover {
    border-left-color: var(--color-accent);
    transform: translateX(5px);
    background: var(--color-hover-bg);
}

.collab-points li::before {
    content: '✔ ';
    color: var(--color-accent);
    font-weight: 800;
    margin-right: 5px;
}

/* ===================== EVENT COLLABORATION (Section 5 - Reset to contrasting background) ===================== */
.our-events {
    background-color: var(--color-bg-light); /* Added light background for contrast */
}
.our-events .event-grid {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.event-card {
    width: 320px;
    height: 320px; 
    background: var(--color-bg-white);
    border-radius: var(--border-radius); 
    padding: 40px;
    border: 5px double var(--color-accent);
    box-shadow: 0 10px 30px var(--color-shadow-medium);
    text-align: center;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.event-card:hover {
    transform: scale(1.05);
    background: var(--color-hover-bg);
    border-color: var(--color-primary);
    box-shadow: 0 20px 40px rgba(0, 74, 173, 0.3);
}

.event-card h3 {
    margin-bottom: 10px;
    color: var(--color-primary);
    font-weight: 800;
    font-size: 24px;
}

.event-card p {
    color: var(--color-accent);
    font-weight: 600;
    margin: 0;
}

/* ===================== POPUP (MODAL) ===================== */
.event-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.popup-content {
    /* Smaller Popup Size for all devices */
    width: 80%; 
    max-width: 500px; 
    background: var(--color-model-bg) !important; 
    padding: 25px; 
    border-radius: var(--border-radius);
    border-top: 6px solid var(--color-primary);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    opacity: 0;
    transform: translateY(-50px);
    transition: opacity 0.4s, transform 0.4s;
}

.event-popup[style*="display: flex"] .popup-content {
    opacity: 1;
    transform: translateY(0);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 40px;
    cursor: pointer;
    color: var(--color-primary);
    line-height: 1;
    transition: color 0.3s, transform 0.3s;
}

.close-btn:hover {
    color: var(--color-accent);
    transform: rotate(90deg);
}

.popup-content h2 {
    font-size: 26px; 
    margin-bottom: 5px;
}

.popup-sub {
    color: var(--color-accent);
    font-weight: 700;
    margin-bottom: 15px; 
    font-size: 15px; 
}

.popup-images {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
    margin: 25px 0;
}

.popup-images img {
    width: 30%;
    min-width: 100px;          /* Forces image to stay large */
    max-width: 110px;          /* Allows scaling */
    border-radius: 12px;
    border: 3px solid rgba(12, 192, 223, 0.45);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    transition: transform 0.3s ease, border-color 0.3s ease;
    object-fit: cover;
}


/* Hover effect */
.popup-images img:hover {
    transform: scale(1.05);
    border-color: #0cc0df;
}

.popup-desc {
    text-align: left;
    font-size: 15px; 
    margin-bottom: 15px; 
}

.popup-services {
    list-style: none;
    padding-left: 0;
    text-align: left;
}

.popup-services li {
    padding: 4px 0; 
    font-size: 15px; 
    color: var(--color-primary);
    font-weight: 600;
}

.popup-services li::before {
    content: '★ ';
    color: var(--color-accent);
    margin-right: 5px;
}

/*
 * =======================================================
 * MOBILE OPTIMIZATION (Responsive Design)
 * =======================================================
 */

/* Tablet (Max 992px) */
@media (max-width: 992px) {
    section {
        padding: 60px 15px;
    }
    section h1, section h2 {
        font-size: 32px;
    }
    .nimz-services .service-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .event-card {
        width: 280px;
        height: 280px;
    }
}

/* Mobile (Max 600px) */
@media (max-width: 600px) {
    section h1 {
        font-size: 36px;
    }
    section h2 {
        font-size: 28px;
        margin-bottom: 20px;
    }
    section p {
        font-size: 16px;
    }
    .nimz-services .service-grid {
        grid-template-columns: 1fr;
    }
    .service-img {
        width: 100px; 
        height: 70px;
    }

    /* Event Card */
    .event-card {
        width: 90%;
        height: 300px; 
    }

    /* Popup Responsiveness for mobile */
    .popup-content {
        width: 95%; 
        padding: 15px 10px; 
    }
    .popup-content h2 {
        font-size: 22px;
    }
    .popup-sub {
        font-size: 14px;
    }
    .popup-images {
        flex-direction: column; 
        gap: 8px;
    }
    .popup-images img {
        width: 90%; 
        margin: auto;
        aspect-ratio: 16/9;
    }
    .popup-desc, .popup-services li {
        font-size: 14px;
    }
    .close-btn {
        font-size: 28px;
        top: 8px;
        right: 8px;
    }
}
/* ===================== NEW LIGHTBOX STYLES (For Image Pop-up) ===================== */
.image-lightbox {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95); /* Very dark overlay */
    justify-content: center;
    align-items: center;
    z-index: 10000; /* Higher than the eventPopup */
    cursor: pointer;
    padding: 20px;
}

.image-lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border: 5px solid var(--color-bg-white);
    border-radius: var(--border-radius);
    object-fit: contain;
    box-shadow: 0 0 40px rgba(0, 74, 173, 0.5);
    transition: transform 0.3s;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: var(--color-bg-white);
    font-size: 50px;
    font-weight: 100;
    cursor: pointer;
    transition: color 0.2s;
}

.lightbox-close:hover {
    color: var(--color-accent);
}

/* Ensure the image within the initial popup has a pointer cursor */
.popup-images img {
    cursor: pointer; 
}

/* Mobile adjustments for lightbox */
@media (max-width: 600px) {
    .image-lightbox {
        padding: 10px;
    }
    .image-lightbox img {
        max-width: 95%;
        max-height: 85vh;
        border-width: 3px;
    }
    .lightbox-close {
        font-size: 30px;
        top: 10px;
        right: 15px;
    }
}
