/* ===============================
   GLOBAL RESET
=============================== */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

/* ===============================
   HEADER
=============================== */
.header{
    width:100%;
    position:fixed;
    top:0;
    left:0;
    background:var(--white);
    box-shadow:var(--shadow-light);
    z-index:1000;
    transition:0.3s;
}

/* ===============================
   NAVBAR
=============================== */
.navbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:14px 50px;
}

/* ===============================
   LOGO (FIXED PROPERLY)
=============================== */
/* ===============================
   LOGO (BIG SIZE WITHOUT HEADER BREAK)
=============================== */

.logo{
    position: relative;
    height: 60px;          /* 🔥 header height control */
    display: flex;
    align-items: center;
    overflow: visible;     /* allow overflow */
}

/* IMAGE */
.logo img{
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%) scale(1.7); /* 🔥 control size here */
    transform-origin: left center;
    height: 30px;   /* base size */
    width: auto;
}

/* ===============================
   NAV LINKS
=============================== */
.nav-links{
    display:flex;
    align-items:center;
    gap:25px;
}

.nav-links li{
    list-style:none;
    position:relative;
}

.nav-links a{
    text-decoration:none;
    color:var(--text-dark);
    font-size:15px;
    font-weight:500;
    position:relative;
    transition:0.3s;
}

/* 🔥 HOVER COLOR */
.nav-links a:hover{
    color:var(--primary);
}

/* 🔥 UNDERLINE ANIMATION */
.nav-links a::after{
    content:"";
    position:absolute;
    width:0;
    height:2px;
    left:0;
    bottom:-5px;
    background:var(--gradient-main);
    transition:0.4s;
}

.nav-links a:hover::after{
    width:100%;
}

/* ===============================
   DROPDOWN (IMPROVED)
=============================== */
.dropdown{
    position:absolute;
    top:25px;
    left:0;
    background:var(--white);
    width:220px;
    display:none;
    flex-direction:column;
    border-radius:10px;
    box-shadow:var(--shadow-light);
    overflow:hidden;
    animation:fadeIn 0.3s ease;
}

.dropdown a{
    padding:12px 15px;
    font-size:14px;
    transition:0.3s;
}

.dropdown a:hover{
    background:var(--primary-light);
    color:var(--primary);
}

/* SHOW DROPDOWN */
.dropdown-parent:hover .dropdown{
    display:flex;
}

/* ===============================
   HEADER BUTTON (UPGRADED)
=============================== */
.header-btn{
    position:relative;
    display:inline-block;
    padding:10px 22px;
    border-radius:30px;
    color:var(--primary) !important;
    font-weight:500;
    text-decoration:none;
    overflow:hidden;
    z-index:1;

    border:2px solid transparent;

    background-image:
        linear-gradient(var(--white), var(--white)),
        var(--gradient-main);

    background-origin:border-box;
    background-clip:padding-box, border-box;

    transition:0.4s ease;
}

/* 🔥 SLIDING EFFECT */
.header-btn::before{
    content:"";
    position:absolute;
    inset:0;
    background:var(--gradient-main);
    transform:scaleX(0);
    transform-origin:left;
    transition:0.4s ease;
    z-index:-1;
}

.header-btn:hover::before{
    transform:scaleX(1);
}

.header-btn:hover{
    color:#fff !important;
}

/* ===============================
   HAMBURGER
=============================== */
.hamburger{
    display:none;
    font-size:22px;
    cursor:pointer;
    color:var(--primary);
}

/* ===============================
   MOBILE
=============================== */
@media(max-width:900px){

    .navbar{
        padding:14px 20px;
    }

    .hamburger{
        display:block;
    }

    .nav-links{
        position:absolute;
        top:70px;
        left:-100%;
        width:100%;
        background:var(--white);
        flex-direction:column;
        padding:20px;
        gap:15px;
        transition:0.3s;
    }

    .nav-links.active{
        left:0;
    }

    .dropdown{
        position:relative;
        top:0;
        width:100%;
        display:none;
        box-shadow:none;
    }

    .dropdown-parent.active .dropdown{
        display:flex;
    }

    .header-btn{
        width:100%;
        text-align:center;
    }

    .logo img{
        height: 22px;
    }
}

/* ===============================
   SCROLL TO TOP BUTTON
=============================== */

#scrollTopBtn{
    position:fixed;
    bottom:30px;
    right:30px;
    width:50px;
    height:50px;

    background:var(--gradient-main);
    color:#fff;
    border:none;
    border-radius:50%;

    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;

    font-size:18px;
    box-shadow:var(--shadow-primary);

    opacity:0;
    visibility:hidden;
    transition:0.3s ease;
    z-index:999;
}

#scrollTopBtn.show{
    opacity:1;
    visibility:visible;
}

#scrollTopBtn:hover{
    transform:translateY(-5px) scale(1.05);
}

/* ===============================
   ANIMATIONS
=============================== */
@keyframes fadeIn{
    from{
        opacity:0;
        transform:translateY(10px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}