body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f7f8fa;
    color: #222;
    min-width: 0;
    overflow-x: hidden; /* Prevent horizontal scroll */
    padding-left: 4vw;
    padding-right: 4vw;
}
* {
    box-sizing: border-box;
}

.main-header {
    width: 100%;
    background: rgba(255, 255, 255, 0.342);
    padding: 1.2vw 2vw;
    border-radius: 0 0 2vw 2vw;
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* For Safari */
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px; /* Max-width for larger screens */
    padding: 0.5vw 0;
    gap: 2vw;
}

.logo-section {
    display: flex;
    align-items: center;
}
.logo-img {
    width: 250px; /* Adjusted base size */
    height: auto;
    max-width: 100%;
}
.main-nav {
    display: flex;
    gap: 2vw;
    align-items: center;
}
.main-nav a {
    font-weight: bold;
    color: #222;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 10px 5px;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
    letter-spacing: 0.08em;
}
.main-nav a:hover {
    color: #003366;
    transform: translateY(-3px);
}

.hero-section {
    width: 100%;
    margin: 0;
    padding: 0;
    background: #e6eef9;
    min-height: 20vw;
    border-radius: 0 0 3vw 3vw;
    overflow: hidden;
    position: relative;
    margin-bottom: 2vw;
}
.hero-bg {
    width: 100%;
    height: auto;
    min-height: 220px;
    max-height: 420px;
    object-fit: cover;
    border-radius: 0 0 3vw 3vw;
    display: block;
    animation: zoomIn 1s ease-in-out;
}

@keyframes zoomIn {
    from {
        transform: scale(1.1);
    }
    to {
        transform: scale(1);
    }
}

.about-section, .products-section, .applications-section {
    background: #fff;
    margin: 3vw auto;
    border-radius: 1vw;
    padding: 3vw;
    max-width: 900px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

/* Add more space between main sections for a balanced look */
.about-section,
.products-section,
.applications-section,
.contact-section,
.countries-served-section,
.map-section {
    margin-top: 5vw;
    margin-bottom: 5vw;
}

.about-section h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem); /* Responsive font size */
    font-weight: bold;
    color: #444;
    letter-spacing: 1.5px;
    margin-bottom: 5vw;
    text-align: left;
    text-shadow: 1px 2px 4px #ccc;
}

 .products-section h2, .applications-section h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem); /* Responsive font size */
    font-weight: bold;
    color: #444;
    letter-spacing: 1.5px;
    margin-bottom: 5vw;
    text-align: left;
    text-shadow: 1px 2px 4px #ccc;
}

.products-section h2, .applications-section h2 {
    text-align: center;
}

.about-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2vw;
    gap: 2vw; /* Add this line to create space between heading and images */
}
.about-images {
    display: flex;
    justify-content: center;
    gap: 3vw;
    margin-bottom: 2vw;
    flex-wrap: wrap;
}
.about-images img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    background: #222;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 3px solid #232c3a;
    transition: transform 0.3s ease;
}
.about-images img:hover {
    transform: scale(1.1);
}
.about-images img.about-img-rounded {
    width: clamp(150px, 30vw, 240px); /* Responsive width */
    height: clamp(75px, 15vw, 120px);  /* Responsive height */
    border-radius: 60px;
    object-fit: cover;
    background: #232c3a;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    border: none;
    margin: 0 1vw;
}
.about-text {
    font-size: clamp(1rem, 2.5vw, 1.07rem); /* Responsive font size */
    color: #444;
    font-style: italic;
    margin-top: 2vw;
    margin-bottom: 2vw;
    line-height: 1.6;
    text-align: center;
    max-width: 650px;
    padding: 0 1rem;
}

.wave-divider {
    width: 100%;
    height: 60px;
    background: none;
    position: relative;
    overflow: hidden;
}
.wave-top {
    background: url('data:image/svg+xml;utf8,<svg width="100%" height="60" viewBox="0 0 1440 60" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 60C407.5 0 1014.5 120 1440 0V60H0Z" fill="%23232c3a"/></svg>') no-repeat center/cover;
}
.wave-bottom {
    background: url('data:image/svg+xml;utf8,<svg width="100%" height="60" viewBox="0 0 1440 60" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1440 0C1032.5 60 425.5 -60 0 60V0H1440Z" fill="%23232c3a"/></svg>') no-repeat center/cover;
}


.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Responsive grid */
    gap: 2vw;
    justify-content: center;
}
.product-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 10px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}
.product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
}
.product-item img {
    width: 110px;
    height: 110px;
    object-fit: contain;
    margin-bottom: 0.7vw;
    border-radius: 16px;
    background: #eef0f3;
}
.product-item span {
    margin-top: 0.6vw;
    font-size: 0.95rem;
    color: #fff;
    text-align: center;
    font-weight: 500;
    letter-spacing: 0.02em;
}
.dark-bg {
    background: #232c3a !important;
    box-shadow: 0 2px 16px rgba(35,44,58,0.08);
}
.product-item.dark-bg span {
    color: #fff;
}
.product-item.dark-bg img {
    background: #fff;
    border: 3px solid #232c3a;
}

.applications-logos {
    display: flex;
    flex-wrap: nowrap; /* Keep logos in a single line for scrolling */
    gap: 3vw;
    justify-content: flex-start; /* Start from the left for scroll */
    overflow-x: auto; /* Enable horizontal scroll on mobile */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    padding: 1vw 0;
}
.app-logo {
    flex: 0 0 auto; /* Prevent shrinking */
    width: 180px;
    height: 180px;
    background: transparent !important;
    border: none !important;
    border-radius: 50% !important;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}
.app-logo:hover {
    transform: scale(1.05);
}
.app-logo img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50% !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}
.contact-section {
    background: #232c3a;
    margin: 3vw auto;
    border-radius: 1vw;
    padding: 3vw;
    max-width: 900px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

/* Add horizontal padding to the body for overall spacing */
body {
    padding-left: 4vw;
    padding-right: 4vw;
}

.contact-section h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem); /* Responsive font size */
    font-weight: bold;
    color: #fff; /* Changed from #444 to white */
    letter-spacing: 1.5px;
    margin-bottom: 2vw;
    text-align: center; /* Center the heading */
    text-shadow: 1px 2px 4px #ccc;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3vw;
    justify-content: space-between;
    align-items: flex-start;
}
.contact-info, .contact-form {
    flex: 1 1 100%; /* Full width on small screens */
    min-width: 250px; /* Minimum width */
}
.contact-info {
    font-size: 1rem;
    color: #fffbfb;
    line-height: 1.8;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 22px; /* space between blocks */
}
.contact-info b,
.contact-info strong {
    display: block;
    margin-top: 18px;
}
.contact-block {
    margin-bottom: 0;
}
.contact-info strong {
    font-size: 1.08rem;
    margin-bottom: 6px;
    display: block;
    letter-spacing: 0.5px;
}

/* Center phone icons and numbers in contact us section */
.contact-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}
.contact-info .icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    border-radius: 18px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    padding: 1em;
    font-size: 1rem;
    color: #222;
    resize: none;
    font-family: inherit;
    outline: none;
    margin-bottom: 1vw;
    transition: box-shadow 0.3s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
    box-shadow: 0 0 0 3px rgba(67, 119, 214, 0.4);
    border-color: #4377d6;
}
.contact-form textarea {
    min-height: 120px;
}
.form-buttons {
    display: flex;
    gap: 14px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.email-btn,
.whatsapp-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 22px;
    background: #4377d6;
    color: #fff;
    font-size: 1.08rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 2px 6px #4377d633;
    flex-grow: 1; /* Allow buttons to grow */
}
.email-btn:hover {
    background: #2e5fa2;
    transform: translateY(-2px);
}
.whatsapp-btn {
    background: #25d366;
}
.whatsapp-btn:hover {
    background: #128c7e;
    transform: translateY(-2px);
}

.email-blur-box {
    background: rgba(180, 180, 180, 0.18);
    border-radius: 16px;
    padding: 14px 18px;
    margin-top: 10px;
    box-shadow: 0 4px 24px 0 rgba(80,80,80,0.08);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: inline-block;
}

.contact-email {
    color: #fff;
    text-decoration: underline;
    word-break: break-all;
    transition: color 0.2s;
    font-weight: 500;
    font-size: 1.01rem;
}
.contact-email:hover {
    color: #ffd700;
}

.mission-vision-row {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: center;
    gap: 4vw;
    margin: 3vw 0;
}
.mission-block, .vision-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 300px; /* Allow growing and shrinking */
    min-width: 250px;
}
.mission-block h3, .vision-block h3 {
    font-size: clamp(1.1rem, 3vw, 1.2rem);
    color: #444;
    font-weight: bold;
    margin-bottom: 1vw;
    text-align: center;
    letter-spacing: 1px;
}
.mission-box, .vision-box {
    background: #0d2a4a;
    color: #fff;
    border-radius: 24px;
    padding: 1.2em 1.5em;
    font-size: clamp(1rem, 2.5vw, 1.08rem);
    font-weight: 400;
    text-align: center;
    box-shadow: 0 2px 10px rgba(13,42,74,0.10);
    transition: transform 0.3s ease;
    width: 100%;
}
.mission-box:hover, .vision-box:hover {
    transform: scale(1.05);
}

.about-section {
    margin-top: 6vw;
    margin-bottom: 6vw;
    padding-top: 4vw;
    padding-bottom: 4vw;
}

.countries-served-section {
    margin-top: 6vw;
    margin-bottom: 6vw;
    padding-top: 4vw;
    padding-bottom: 4vw;
}

.countries-served-section {
    margin-top: 3vw;
}
.countries-served-section h3 {
    font-size: clamp(1.2rem, 3.5vw, 1.5rem);
    color: #666;
    text-align: center;
    margin-bottom: 10vw; /* gap between heading and flags increased */
}
.countries-flags-row {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* move flags row down */
    position: relative;
    min-height: 300px;
    height: 60vw;
    max-height: 340px;
    margin-top: 3vw; /* add space above flags */
}
.country-flag {
    width: 140px;
    height: 90px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.13);
    object-fit: cover;
    border: none;
    position: absolute;
    /* Center exactly in parent */
    left: 50%;
    top: 50%;
    margin-left: -70px; /* Half of width */
    margin-top: -45px;  /* Half of height */
    opacity: 1;
    transform-origin: 0 0;
    animation: flagCircleMove 8s linear infinite;
}
@keyframes flagCircleMove {
    0% { transform: rotate(0deg) translateY(-160px) rotate(0deg); }
    100% { transform: rotate(360deg) translateY(-160px) rotate(-360deg); }
}
.countries-flags-row .country-flag:nth-child(1) { animation-delay: 0s; }
.countries-flags-row .country-flag:nth-child(2) { animation-delay: 1.14s; }
.countries-flags-row .country-flag:nth-child(3) { animation-delay: 2.28s; }
.countries-flags-row .country-flag:nth-child(4) { animation-delay: 3.42s; }
.countries-flags-row .country-flag:nth-child(5) { animation-delay: 4.56s; }
.countries-flags-row .country-flag:nth-child(6) { animation-delay: 5.7s; }
.countries-flags-row .country-flag:nth-child(7) { animation-delay: 6.84s; }

.map-section h2 {
    text-align:center;
    font-size:clamp(1.5rem, 4vw, 2.5rem);
    font-weight:700;
    margin: 0 0 4vw 0;
    color:#232c3a;
    letter-spacing:1px;
}
.map-section iframe {
    width: 90%;
    height: 350px;
    border:0;
    border-radius:18px;
    box-shadow:0 2px 16px #232c3a22;
}

.site-footer {
    background: #181c24;
    color: #fff;
    padding: 60px 5vw 0; /* Use vw for padding */
    font-size: 16px;
    margin-top: 60px;
    border-top: 4px solid #1e90ff;
}
.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
}
.footer-col {
    flex: 1 1 220px; /* Flexible columns */
    min-width: 200px;
    display: flex;
    flex-direction: column;
}
.footer-logo {
    width: 120px;
    margin-bottom: 16px;
    border-radius: 12px;
    background: #fff;
    padding: 8px;
}
.footer-desc {
    font-size: 15px;
    color: #b0b8c1;
    margin-top: 8px;
}
.footer-col h4 {
    font-size: 18px;
    margin-bottom: 18px;
    color: #1e90ff;
    font-weight: 600;
    letter-spacing: 1px;
}
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-col ul li {
    margin-bottom: 12px;
    color: #e0e6ed;
    font-size: 15px;
}
.footer-col ul li a {
    color: #e0e6ed;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-col ul li a:hover {
    color: #1e90ff;
}
.footer-icon {
    margin-right: 8px;
    font-size: 18px;
    vertical-align: middle;
}
.footer-bottom {
    text-align: center;
    padding: 18px 0 12px 0;
    font-size: 15px;
    color: #b0b8c1;
    border-top: 1px solid #232a36;
    background: #16191f;
    margin-top: 24px;
}


/* Center all section headings and text */
.about-section h2,
.products-section h2,
.applications-section h2,
.contact-section h2,
.countries-served-section h3,
.map-section h2 {
    text-align: center !important;
}

.about-text,
.product-item span,
.contact-info,
.contact-email,
.footer-desc,
.footer-col,
.footer-bottom {
    text-align: center !important;
}

/* Center about images and product grid */
.about-images,
.products-grid {
    justify-content: center !important;
}

/* Center navigation links */
.main-nav {
    justify-content: center !important;
}

/* Center contact form and info */
.contact-container {
    justify-content: center !important;
    align-items: center !important;
    flex-direction: column !important;
}

/* Center mission/vision blocks */
.mission-vision-row {
    justify-content: center !important;
    align-items: center !important;
}

/* Center footer columns and content */
.footer-container {
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
}

.footer-col {
    align-items: center !important;
}

/* Tablet and Smaller Desktop Breakpoints */
@media (max-width: 992px) {
    .header-inner {
        flex-direction: column;
        gap: 20px;
    }
    .main-nav {
        width: 100%;
        justify-content: center;
    }
    .contact-container {
        flex-direction: column;
    }
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .main-header {
        padding: 15px;
        border-radius: 0;
    }
    .header-inner {
        flex-direction: row; /* Revert to row for better space usage */
        justify-content: space-between;
    }
    .logo-img {
        width: 180px;
    }
    .main-nav {
        gap: 15px; /* Adjust gap */
        margin-right: 0;
    }
    .main-nav a {
        font-size: 0.9rem;
        padding: 8px 0;
    }
    .about-section, .products-section, .applications-section, .contact-section {
        margin: 5vw 0;
        border-radius: 0;
        padding: 5vw;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    }
    
    .mission-vision-row {
        gap: 20px;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-col {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .header-inner {
        flex-direction: column; /* Stack logo and nav vertically */
        gap: 15px;
    }
    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .main-nav a {
        font-size: 0.85rem;
    }
    .form-buttons {
        flex-direction: column;
    }
    .email-btn, .whatsapp-btn {
        width: 100%;
    }

    .products-grid {
        grid-template-columns: 1fr 1fr; /* Two columns on small phones */
    }
}