

@import url('https://fonts.googleapis.com/css?family=Poppins;100,200,300,400,500,600,700,800,900');

/* custom variables */
@import 'variables.css';

/* Reset font size */
*{
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    box-sizing: border-box;
    font-family: "Poppins";
    outline: none;
    border: none;
}

html{
    font-size: 62.5%;
    overflow-x: hidden;
}

body{    
    padding-top: 80px;
    height: 100vh;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 15%;
    background: var(--background-glass);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    height: 8rem;
}

.sticky{
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.logo img {
    width: 3rem;
    height: auto;
    opacity: 1; /* Add this to ensure image is visible */
    object-fit: contain; /* Add this to maintain aspect ratio */
}

.logo{
    font-size: 2.4rem; /* Reduced from 4rem */
    display: flex;
    align-items: center;
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    animation: slideRight 1s ease forwards;
    opacity: 0;
    gap: 1.5rem;
}

.navbar a{
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    margin-left: 4rem;
    font-size: 1.6rem; /* Reduced from 1.7rem */
    animation: slideTop .5s ease forwards;
    opacity: 0;
    animation-delay: calc(.2s*var(--clr));
}

.navbar a:hover,.navbar a.active{
    color: var(--text-color);
}

.dropdown {
    position: relative;
    display: inline-block;       
}

.dropdown-content {
    position: absolute;    
    top: 100%;
    right: 50%;
    transform: translateX(50%) translateY(10px);
    background: var(--background-glass);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 200px;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(50%) translateY(0);
    
}

.dropdown-content a {
    white-space: nowrap;
    color: var(--text-color);
    gap: 15px;
    padding: 12px 16px;
    text-decoration: none;
    display: flex;    
    align-items: center;
    transition: all 0.2s ease;
    border-radius: 6px;
    margin: 4px 0;
    font-size: 1.5rem;
}

.dropdown-content a:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--input-text-color));
    transform: translateX(4px);
}

.dropdown-content a img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.dropdown-content a:hover img {
    transform: scale(1.1);
}

#menu{
    font-size: 2.4rem; /* Reduced from 3.6rem */
    display: none;
    cursor: pointer;
}

/* Make sure the Boxicons CSS is properly loaded */
.bx {
    font-family: 'boxicons' !important;
    display: inline-block;
}

.bx-menu {
    color: var(--text-color);
}

/* Add these keyframe animations at the end of your header.css file */

@keyframes slideRight {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideTop {
    0% {
        transform: translateY(100px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideBottom {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mobile menu styles */
@media (max-width: 992px) {
    .header {
        padding: 2rem 3%;
    }
    
    #menu {
        display: block;
    }
    
    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background: var(--background-glass);
        border-top: .1rem solid rgba(0,0,0,.2);
        box-shadow: 0.5rem 1rem rgba(0,0,0,.2);
        display: none;
    }
    
    .navbar.active {
        display: block;
    }
    
    .navbar a {
        display: block;
        font-size: 1.8rem;
        margin: 3rem 0;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 55%;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 50%;
    }
    
    .header {
        padding: 2rem;
    }
}
