*{
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Poppins", Arial, sans-serif;
    background: #d9dee5;
    color: #E9F1FA;
}

/* ========== NAV BAR ========== */
.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 40px;
    background: #f2f4f7;
    position: sticky;
    top: 0;
    z-index: 1000;
    overflow: visible !important;
}

.logo img {
    height: 50px;
}

.service-btn {
    background: #FF4C29;
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-weight: 600;
    margin-left: 50px;
    text-decoration: none;
}

/* ===== LIVE SEARCH WRAPPER ===== */
.live-search-wrapper {
    position: relative;
    width: 300px;
}

/* ===== INPUT ===== */
#live-search-input {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #0A1A2F;
    border-radius: 8px;
    font-size: 16px;
}

/* ===== RESULTS DROPDOWN ===== */
#live-search-results {
    position: absolute;
    top: 110%;
    left: 0;
    width: 100%;
    background: #100f0f;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    z-index: 99999;
    display: none;
    max-height: 280px;
    overflow-y: auto;
}

/* ===== ITEM ===== */
.search-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #101010;
}

.search-item:hover {
    background: #f1f5fb;
}

/* ===== NAV FIX ===== */
.main-nav,
.sub-nav {
    overflow: visible !important;
}
.cart-wrapper {
    position: relative;
    display: inline-block;
}

/* cart icon */
.cart-icon {
    position: relative;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.cart-image {
    width: 35px;
    height: 35px;
}

/* count badge */
.cart-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background: red;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    border-radius: 50%;
    padding: 2px 6px;
}

/* dropdown */
.cart-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;

    min-width: 260px;
    background: #8bb0eb;   /* 🔥 white background */
    color: #272729;           /* 🔥 dark text */

    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 12px;

    z-index: 9999;

    opacity: 1;
    filter: none;
    backdrop-filter: none;
}

/* hover */
.cart-wrapper:hover .cart-dropdown {
    display: block;
}
/* Sub-nav */
.sub-nav {
    background-color: #082346;
    padding: 10px 20px;
    text-decoration: none;
}

.sub-nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
    text-decoration: none;
}

.sub-nav-links li {
    position: relative;
    text-decoration: none;
    
}

.sub-nav-links a {
    color: #fff;
    text-decoration: none;
    padding: 8px 12px;
    display: block;
}

.sub-nav-links li:hover > a {
    background-color: #112A46;
    border-radius: 5px;
}

/* ================= Dropdown Menu ================= */
.dropdown-content {
    display: none; /* default hide */
    position: absolute;
    top: 100%; /* menu under parent */
    left: 0;
    background-color: #f6f7f9;
    min-width: 180px;
    box-shadow: 0 4px 6px rgba(234, 235, 237, 0.889);
    border-radius: 5px;
    z-index: 100;
}

.dropdown-content a {
    padding: 10px 15px;
    color: #fff;
    text-decoration: none;
}

.dropdown-content a:hover {
    background-color: #112A46;
}

/* ================= Show Dropdown on Hover ================= */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Optional: add small arrow to parent link */
.dropdown > a::after {
    content: " ▼";
    font-size: 0.7em;
    margin-left: 4px;
}


/* ========== HERO ========== */
    .hero-section {
    position: relative;
    height: 90vh;
    overflow: hidden;
    z-index: 1;
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0,0,0,0.75),
        rgba(0,0,0,0.35)
    );
    z-index: 2;
}
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.3s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: none;

    
}

/* HERO TEXT */
.hero-content {
    position: absolute;
    top: 50%;
    left: 8%;
    transform: translateY(-50%);
    z-index: 3;
    max-width: 520px;
    
}

.hero-content h1{font-size: 48px;
    color:#fff;
}
.hero-content p {
    
    color:#fff;
}

.cta-btn {
    display: inline-block;
    padding: 12px 32px;
    background: #1B98E0;
    color: rgb(240, 240, 242);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 20px;
}

/* ========== PRODUCTS ========== */
.products {
    padding: 90px 50px;
}

.products h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #151618;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 30px;
}

.product-card {
    background: #e9ecef;
    color: #151618;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    transition: 0.3s;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(26, 26, 134, 0.45);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
}

.product-card button {
    margin-top: 10px;
    padding: 10px 18px;
    background: #1B98E0;
    border: none;
    border-radius: 8px;
    color: #4d8fdf;
    cursor: pointer;
}

/* FLOAT CALL BUTTON */
.contact-number {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #2b3fa0;
    padding: 12px 20px;
    border-radius: 30px;
    color: white;
    text-decoration: none;
    font-weight: bold;
}
.footer {
    background-color: #0a2645;
    color: #E9F1FA;
    padding: 40px 20px 20px 20px;
    font-family: "Poppins", sans-serif;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
}

.footer-section {
    flex: 1;
    min-width: 220px;
}

.footer-section h3, .footer-section h4 {
    margin-bottom: 15px;
    color: #fff;
}

.footer-section p, .footer-section li, .footer-section a {
    color: #ccc;
    font-size: 14px;
    line-height: 1.6;
}

.footer-section a {
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #f2b632;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    border-top: 1px solid #1A2B40;
    padding-top: 15px;
    font-size: 13px;
    color: #aaa;
}

.social-icons a {
    margin-right: 10px;
    display: inline-block;
}

.social-icons img {
    width: 24px;
    height: 24px;
}


.nav-avatar{
    width:36px;
    height:36px;
    border-radius:50%;
    object-fit:cover;
    border:2px solid #0d6efd;
    cursor:pointer;
}

/* ================= MOBILE FIX ================= */
@media (max-width: 768px){

/* NAV */

.main-nav{
    flex-direction: column;
    gap:10px;
    padding:10px;
}

.logo img{
    height:32px;
}

.service-btn{
    width:100%;
    margin:0;
    text-align:center;
}

.live-search-wrapper{
    width:100%;
}

#live-search-input{
    width:100%;
}

.auth-buttons a{
    display:block;
    text-align:center;
    background:#0d6efd;
    color:white !important;
    padding:10px;
    border-radius:8px;
    font-weight:600;
    text-decoration:none;
    width:100%;
}

/* SUB NAV */

.sub-nav-links{
    flex-wrap:wrap;
    justify-content:center;
}

.sub-nav-links a{
    font-size:13px;
    padding:6px;
}
.dropdown-content{
    position: static;
    display: block;   /* 🔥 CHANGE */
    background:#0a2645;
    box-shadow:none;
}

.dropdown > a{
    font-weight:600;
}

.dropdown-content a{
    padding-left:20px;
}








/* HERO */

.hero-section{
    height:300px;
}

.hero-content{
    left:5%;
    right:5%;
    max-width:100%;
    background:rgba(0,0,0,.5);
    padding:15px;
    border-radius:10px;
}

.hero-content h1{
    font-size:20px;
    color:white;
}

.hero-content p{
    font-size:12px;
    color:white;
}

.cta-btn{
    font-size:13px;
    padding:8px 14px;
}

/* PRODUCTS */

.products{
    padding:40px 15px;
}

.product-card img{
    height:160px;
}

/* FOOTER */

.footer-container{
    flex-direction:column;
    text-align:center;
}

/* FLOAT CALL BTN */

.contact-number{
    bottom:10px;
    right:10px;
    font-size:12px;
    padding:8px 14px;
}

}


/* ================= PREMIUM MOBILE TOUCH ================= */
@media (max-width:768px){

/* NAV glass effect */
.main-nav{
    background:rgba(255,255,255,.92);
    backdrop-filter:blur(8px);
    border-bottom:1px solid #ddd;
}

/* hero animation */
.hero-content{
    background: rgba(0,0,0,.5);
    animation:fadeUp .6s ease;
}

@keyframes fadeUp{
from{opacity:0;transform:translateY(20px);}
to{opacity:1;transform:none;}
}

/* product cards */
.product-card{
    box-shadow:0 8px 25px rgba(0,0,0,.18);
}

/* CTA button glow */
.cta-btn{
    box-shadow:0 6px 20px rgba(27,152,224,.6);
}

/* call button modern */
.contact-number{
    background:#0d6efd;
    box-shadow:0 8px 25px rgba(0,0,0,.35);
}

/* menu spacing */
.sub-nav-links{
    row-gap:10px;
}

/* search smooth */
#live-search-input{
    box-shadow:0 4px 10px rgba(0,0,0,.15);
}


}


