/* =========================================
   FULLY RESPONSIVE HEADER + FOOTER
   Mobile / Tablet / Laptop / Large Screens
========================================= */


/* ================= ROOT ================= */

:root {
    --navy: #0f1f4b;
    --blue: #2563eb;
    --purple: #6d5dfc;
    --red: #ef4444;
    --soft-blue: #eef4ff;
    --soft-red: #fff1f2;
    --text: #111827;
    --muted: #4b5563;
    --border: #e5e7eb;
    --bg: #f8fafc;
}

/* ================= RESET ================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
}

body {
    font-family: 'Poppins', system-ui, sans-serif;
    background: #fff;
    color: var(--text);
    width: 100%;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    margin-top:90px ;

}


/* ================= HEADER ================= */

.site-header {
    padding: 16px 5%;
    background: #fff;
    box-shadow: 0 2px 14px rgba(15, 31, 75, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    position: fixed;   
}
 

.logo {
    font-size: clamp(24px, 2vw, 30px);
    font-weight: 900;
    color: var(--navy);
    letter-spacing: -1px;
}

.brand-logo {
    height: clamp(42px, 5vw, 55px);
    width: auto;
    display: block;
    border-radius: 10px;
}

.logo span,
footer span {
    color: var(--blue);
}

.tagline {
    font-size: 12px;
    color: var(--navy);
    font-weight: 800;
    letter-spacing: 0.6px;
}

.nav {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2vw, 28px);
    font-size: clamp(14px, 1.2vw, 16px);
    flex-wrap: wrap;
    justify-content: center;
}

.nav a,
.dropdown button {
    font: inherit;
    border: 0;
    background: transparent;
    text-decoration: none;
    color: var(--navy);
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
}

.nav a:hover {
    color: var(--blue);
}

.nav a.active {
    color: var(--blue);
    border-bottom: 3px solid var(--blue);
    padding-bottom: 8px;
}

.active-menu {
    color: #4f46e5 !important;
    font-weight: 600;
    border-bottom: 2px solid #4f46e5;
}

.connect-btn {
    background: linear-gradient(135deg, var(--blue)) !important;
    color: #fff !important;
    padding: 12px 20px;
    border-radius: 10px;
    white-space: nowrap;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 25px;
    left: 0;
    background: #fff;
    min-width: 220px;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 16px 30px rgba(15, 31, 75, 0.12);
    padding: 10px;
    z-index: 999;
}

.dropdown:hover .dropdown-menu {
    display: block;
}


/* ===============================
   CLICK DROPDOWN + SUBMENU
=============================== */

.dropdown {
    position: relative;
}

.dropdown-toggle {
    border: none;
    background: transparent;
    font: inherit;
    font-weight: 700;
    color: var(--navy);
    cursor: pointer;

    display: flex;
    align-items: center;
    gap: 8px;
}

#platform-arrow,
#genai-arrow {
    font-size: 13px;
    transition: 0.3s ease;
}

/* MAIN DROPDOWN */

.dropdown-menu {
    display: none;
    position: absolute;
    top: 25px;
    left: 0;
    min-width: 220px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 15px 35px rgba(15, 31, 75, 0.12);
    z-index: 999;
}

.dropdown-menu.show {
    display: block;
}

.submenu-toggle:hover {
    background: #dbeafe;
}

/* SUBMENU */

.submenu-menu {
    display: none;
    padding-top: 14px;
    padding-left: 6px;
    font-weight: 500;
}

.submenu-menu.show {
    display: block;
}

.submenu-menu a {
    display: block;
    text-decoration: none;
    font-size: 17px;
    font-weight: 600;
    color: #14295c;
    padding: 10px 0;
    transition: 0.3s ease;
}

.submenu-menu a:hover {
    color: #2563eb;
    padding-left: 6px;
}


.dropdown-menu a {
    display: block;
    padding: 3px;
    border-radius: 8px;
    font-weight: 500;
}

.dropdown-menu a:hover {
    background: var(--soft-blue);
}



/* Hide submenu by default */
.submenu-menu {
    display: none;
    position: absolute;
    left: -5%;
    border-radius: 10px;
    top: 20px;
    background: white;
    min-width: 220px;
    z-index: 1000;
}

/* Show submenu on hover */
.submenu:hover .submenu-menu {
    display: block;
}

/* Optional: make it smoother */
.submenu {
    position: relative;
}


/* ================= FOOTER ================= */

.site-footer {

    width: 100%;
    font-family: 'Poppins', system-ui, sans-serif;
    background-color: #0b111f;
    padding: 2rem 1rem;
    color: #ffffff;
    border-top: 1px solid #2c2c3b;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;

    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;

    flex-wrap: wrap;
    /* ✅ allow wrapping */
}

/* LEFT */

.footer-section {
    flex: 1;
    min-width: 220px;
}

.footer-section:first-child {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.footer-section h4 {
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 600;
    margin-bottom: 16px;
    color: #fff;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul p {
    margin: 8px 0;
    color: #cbd5e1;
    font-size: clamp(14px, 1.5vw, 16px);
    line-height: 1.6;
}

/* CENTER */

.footer-brand {
    flex: 1;
    min-width: 250px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.footer-brand .brand-logo {
    width: clamp(130px, 12vw, 170px);
    height: auto;
    margin-bottom: 14px;
}

.footer-brand p {
    color: #dbeafe;
    font-size: clamp(14px, 1.5vw, 16px);
    line-height: 1.6;
    margin: 0;
}

/* RIGHT */

.footer-section:last-child {
    flex: 1;
    min-width: 250px;
    display: flex;
    justify-content: flex-end;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* SPACE BETWEEN ITEMS */

.footer-section ul li {
    margin-bottom: 6px;
}

/* PRODUCT LINKS */

.footer-section ul li a {
    text-decoration: none;
    color: #dbeafe;
    font-size: 17px;
    font-weight: 500;
    transition: 0.3s ease;
    display: inline-block;
}

.footer-section ul li a:hover {
    color: #3b82f6;
    transform: translateX(4px);
}

.footer-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: right;
}

.footer-social h2 {
    font-size: clamp(18px, 2vw, 24px);
    margin-bottom: 14px;
    color: #dbeafe;
    font-size: 17px;
    font-weight: 400;
}

.social-icons {
    display: flex;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;

}

.social-icons a {
    font-size: clamp(18px, 2vw, 22px);
    color: #dbeafe;
    transition: 0.3s;
}

.social-icons a:hover {
    color: #3b82f6;
    transform: scale(1.1);
}

/* BUTTONS */

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #689aea;
    color: #ffffff !important;
    border-radius: 20px;
    align-items: center;
}



.social-btn,
.contact-btn {
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: clamp(13px, 1.2vw, 14px);
    min-width: 170px;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;  
    display: inline-block;  
}

.social-btn:hover,
.contact-btn:hover {
    background: #1d4ed8;
    text-decoration: none; 
}



.footer-section p {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #ffffff;
}
.footer-section ul li a {
    color: rgb(219, 234, 254);
    font-size: 15px;
    font-weight: 500;
    display: inline-block;
    text-decoration: none;
    transition: 0.3s;
}
/* ================= TABLET ================= */



@media (max-width: 992px) {
    .site-header {
        padding: 18px 30px;
        flex-direction: column;
        gap: 20px;
    }

    .nav {
        gap: 14px;
        flex-wrap: wrap;
    }


    .dropdown-menu {
        min-width: 150px;
        padding: 5px;
    }

    .submenu-toggle {
        font-size: 12px;
        padding: 10px 5px;
    }

    .submenu-menu {
        min-width: 150px;
    }

    .submenu-menu a {

        font-size: 15px;
    }


    .footer-container {
        gap: 30px;
    }
}

/* ================= MOBILE ================= */

/* MOBILE */



@media (max-width: 768px) {
    .site-header {
        padding: 18px 20px;
    }

    .nav {
        gap: 14px;
        flex-wrap: wrap;
    }


    .dropdown-menu {
        min-width: 150px;
        padding: 5px;
    }

    .submenu-toggle {
        font-size: 12px;
        padding: 10px 5px;
    }

    .submenu-menu {
        min-width: 150px;
    }

    .submenu-menu a {

        font-size: 15px;
    }


    .connect-btn {
        padding: 10px 16px;
    }

    .footer-container {
        flex-direction: row;
        /* ✅ keep row */
        flex-wrap: wrap;
        /* ✅ allow wrapping */
        justify-content: center;
        align-items: center;
        text-align: center;
        gap: 15px;
    }

    /* Products full width */
    .footer-section:first-child {
        width: 100%;
        text-align: center;
    }
    /* keep top section full width */
    .footer-section:first-child {
        width: 100%;
        text-align: center;
        align-items: center;
    }

    /* bottom row */
    .footer-brand,
    .footer-section:last-child {
        width: 50%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    
    .footer-social {
        align-items: center;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }
}




/* ================= SMALL MOBILE ================= */

@media (max-width: 480px) {
    .site-header {
        padding: 15px;
    }

    .nav {
        gap: 14px;
        flex-wrap: wrap;
    }


    .dropdown-menu {
        min-width: 150px;
        padding: 5px;
    }

    .submenu-toggle {
        font-size: 12px;
        padding: 10px 5px;
    }

    .submenu-menu {
        min-width: 150px;
    }

    .submenu-menu a {

        font-size: 15px;
    }



    .footer-container {
        gap: 28px;
    }

    .social-icons {
        gap: 12px;
    }

    .social-btn,
    .contact-btn {
        min-width: 150px;
        padding: 9px 14px;
    }
}