/* --- CSS VARIABLES & RESET --- */
:root {
    --primary: #003366;
    --secondary: #002244;
    --accent: #ff6600;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f4f6f8;
    --white: #ffffff;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --header-height: 70px;
    /* Slightly smaller on mobile */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--primary);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- UTILITIES --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--accent);
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    border-radius: 6px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.9rem;
    white-space: nowrap;
}

.btn:hover {
    background-color: #e65c00;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255, 102, 0, 0.2);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary);
}

.btn-outline-dark {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline-dark:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* Section Headings */
.section-title {
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

.section-title h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 10px;
}

.section-title p {
    color: var(--text-light);
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background-color: var(--accent);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* --- NAVIGATION --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    border-radius: 50%;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1002;
}

.logo i {
    color: var(--accent);
    font-size: 1.2em;
}

/* Desktop Menu */
.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: var(--primary);
    position: relative;
    cursor: pointer;
    font-size: 0.95rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    bottom: -4px;
    left: 0;
    transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary);
    z-index: 1002;
    background: none;
    border: none;
    padding: 10px;
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1001;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    color: var(--white);
    font-size: 1.2rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

.overlay-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
    backdrop-filter: blur(3px);
}

.overlay-bg.active {
    display: block;
    opacity: 1;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: var(--header-height);
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.9), rgba(0, 34, 68, 0.8));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 0 20px;
    animation: fadeUp 1s ease-out;
}

.hero-title {
    font-size: clamp(2.2rem, 6vw, 4rem);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    margin-bottom: 40px;
    font-weight: 300;
    opacity: 0.9;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 999;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20b85a;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* --- ABOUT SECTION --- */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-img {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);

}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 20px;
    color: var(--secondary);
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

/* --- PRODUCTS GRID --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.product-img {
    height: 220px;
    width: 100%;
    object-fit: contain;
    background-color: #fff;
}

.product-img:hover {
    transform: scale(1.01);
}

.product-info {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-cat {
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 8px;
}

.product-title {
    font-size: 1.15rem;
    margin-bottom: 15px;
    color: var(--primary);
}

/* --- BRANDS --- */
.brands {
    background-color: var(--bg-light);
    padding: 60px 0;
}

.brands-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    align-items: center;
}

.brand-item {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
    cursor: pointer;
    max-width: 140px;
    width: 100%;
}

.brand-item:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

.brand-item h3 {
    font-weight: 800;
    font-size: 1.5rem;
    text-align: center;
}

/* --- CERTIFICATES --- */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.cert-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.cert-item img {
    width: 100%;
    transition: transform 0.4s;
}

.cert-item:hover img {
    transform: scale(1.05);
}

/* --- WHY CHOOSE US --- */
.why-us {
    background-color: var(--primary);
    color: var(--white);
    text-align: center;
}

.why-us .section-title h2 {
    color: var(--white);
}

.why-us .section-title::after {
    background-color: var(--accent);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.feature-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px 20px;
    border-radius: 12px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.feature-item h4 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.feature-item p {
    color: #ccc;
    font-size: 0.9rem;
}

/* --- CONTACT --- */
.contact-container {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background: var(--bg-light, #f9f9f9);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow, 0 4px 20px rgba(0, 0, 0, 0.1));
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: border 0.3s;
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6600;
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

.map-wrapper {
    flex: 1;
    min-width: 300px;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow, 0 4px 20px rgba(0, 0, 0, 0.1));
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

#form-message {
    display: none;
    opacity: 0;
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
    text-align: center;
    font-weight: 500;
    transition: opacity 0.3s ease-in-out;
}

#form-message.show {
    display: block;
    opacity: 1;
}

button.btn {
    transition: all 0.3s ease;
}

button.btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
    }
}


/* --- FOOTER --- */
footer {
    background-color: var(--secondary);
    color: var(--white);
    padding: 70px 0 25px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4 {
    color: var(--accent);
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-col p {
    color: #ccc;
    font-size: 0.95rem;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #ccc;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    color: #ccc;
    font-size: 0.95rem;
}

.footer-contact-item i {
    color: var(--accent);
    margin-top: 4px;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    text-align: center;
    font-size: 0.9rem;
    color: #888;
}

/* --- VIEW SWITCHING --- */
.view-section {
    display: none;
    animation: fadeIn 0.5s;
}

.view-section.active-view {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* --- SCROLL REVEAL --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
           RESPONSIVE MEDIA QUERIES (OPTIMIZED)
           ========================================= */

/* Tablets & Small Laptops (Max-width 992px) */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }

    .about-img {
        width: 100%;
    }

    .map-wrapper {
        height: 400px;
    }

    .contact-form,
    .map-wrapper {
        width: 100%;
    }
}

/* Mobile Devices (Max-width 768px) */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    /* Navigation */
    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }

    /* Layout Spacing */
    .section-padding {
        padding: 60px 0;
    }

    .container {
        padding: 0 20px;
    }

    /* Hero */
    .hero-title {
        margin-bottom: 15px;
    }

    .hero-subtitle {
        margin-bottom: 30px;
    }

    /* Products Grid: 2 columns on landscape tablet/mobile */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .product-img {
        height: 160px;
    }

    .product-info {
        padding: 15px;
    }

    .product-title {
        font-size: 1rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
        width: 100%;
    }

    /* Brands */
    .brands-grid {
        gap: 30px 40px;
    }

    .brand-item h3 {
        font-size: 1.2rem;
    }

    /* Why Us */
    .features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .feature-item {
        padding: 25px 15px;
    }

    .feature-icon {
        font-size: 2rem;
    }

    /* WhatsApp Button */
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
        font-size: 26px;
    }

    /* Contact */
    .contact-form {
        padding: 25px;
    }

    .map-wrapper {
        height: 300px;
        order: -1;
    }

    /* Map on top on mobile */

    /* Footer */
    .footer-grid {
        gap: 30px;
        text-align: center;
    }

    .footer-contact-item {
        justify-content: center;
    }

    .footer-col ul li a {
        display: inline-block;
    }
}

/* Small Mobile Phones (Max-width 480px) */
@media (max-width: 480px) {

    /* Force single column for grids */
    .products-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .brands-grid {
        flex-direction: column;
        gap: 25px;
    }

    /* Typography */
    .section-title {
        margin-bottom: 30px;
    }

    /* Hero Button Stacking */
    .hero .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    /* About Image */
    .about-img {
        border-radius: 8px;
    }
}