html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

* {
    margin: 0;
    padding: 0;
    font-family: Poppins, sans-serif;
    box-sizing: border-box;
}


.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 40px;
    background: rgb(255, 255, 255);
    backdrop-filter: blur(5px);
}

.navlogo img {
    height: 70px;
    width: auto;
}

/* Desktop menu */
.navlinks ul {
    list-style: none;
    display: flex;
    gap: 28px;
}

.navlinks ul li a {
    text-decoration: none;
    color: black;
    font-size: 15px;
    font-weight: 500;
    position: relative;
    padding-bottom: 2px;
    transition: 0.3s ease;
}

.navlinks ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: #007bff;
    transition: width 0.3s ease;
}

.navlinks ul li a:hover::after {
    width: 100%;
}

.navlinks ul li a:hover {
    color: #007bff;
}

.navbar i {
    display: none;
}

.navbar .fa-bars,
.fa-xmark {
    color: black;
    font-size: 24px;
}

/* Dropdown Container */
.dropdown {
    position: fixed;
    top: 93px;
    /* below navbar */
    right: 0px;
    width: 100%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border-radius: 15px;
    padding: 15px 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    z-index: 998;
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;

    transition:
        opacity 0.4s ease,
        transform 0.4s ease,
        pointer-events 0s linear 0.4s;
}

/* Active dropdown (when menu icon clicked) */
.dropdown.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition:
        opacity 0.4s ease,
        transform 0.4s ease;
}

.dropdown ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.dropdown ul li {
    padding: 12px 20px;
}

.dropdown ul li a {
    text-decoration: none;
    color: black;
    font-size: 15px;
    font-weight: 500;
    display: inline-block;
    transition: 0.3s ease;
}

.dropdown ul li a:hover {
    color: #007bff;
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .navbar .fa-bars {
        display: block;
    }

    .navlinks {
        display: none;
    }
    .filter-buttons{
        display: flex;
    }
}


/* When navbar is hidden */
.navbar.hidden {
    transform: translateY(-100%);
    transition: transform 0.4s ease;
}

/* When navbar is visible */
.navbar.visible {
    transform: translateY(0);
    transition: transform 0.4s ease;
}

.products-header {
    padding-top: 120px;
    text-align: center;
    margin-bottom: 30px;
}

.products-header h2 {
    font-size: 38px;
    font-weight: 700;
    background: linear-gradient(135deg, #007bff, #005fcc);
    background-clip: border-box;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 1s;
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin: 30px 0;
}

/* MOBILE — Keep filters in one line + make smaller */
/* MOBILE — Keep in one line without shrinking width manually */


.filter-btn {
    padding: 10px 28px;
    border-radius: 25px;
    border: 2px solid #007bff;
    cursor: pointer;
    background: transparent;
    color: #005fcc;
    font-size: 15px;
    font-weight: 600;
    transition: 0.3s;
}

@media (max-width: 768px) {

    .filter-buttons {
        display: flex;
        flex-wrap: nowrap; /* Force same line */
        justify-content: space-between;
        gap: 0px;
        
    }

    .filter-btn {
        transform: scale(0.85);  /* Slight shrink without changing design */
        transform-origin: center;
        white-space: nowrap;     /* Prevent text break */
        border: 2px solid #005fcc;
        font-size: 13px;
        padding: 5px 13px;
    }
}

.filter-btn:hover,
.filter-btn.active {
    background: #007bff;
    color: black;
    box-shadow: 0 4px 15px rgba(11, 110, 240, 0.4);
}

/* Product Grid */
.products-grid {
    padding: 20px 6%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 35px;
}

.product-card {
    background: white;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    text-align: center;
    transition: 0.3s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

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

.product-title {
    margin-top: 15px;
    font-size: 20px;
    color: #1e3d59;
    font-weight: 700;
}

.product-desc {
    font-size: 14px;
    color: #666;
    margin: 8px 0 15px;
}

.download-btn {
    padding: 10px 25px;
    border: none;
    border-radius: 20px;
    background: linear-gradient(135deg, #007bff, #005fcc);
    cursor: pointer;
    font-weight: 600;
}

.footer {
    padding: 80px 6% 20px;
    backdrop-filter: blur(18px);
    background: transparent !important;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 50px;
}

.footer-logo {
    width: 150px;
    margin-bottom: 15px;
    animation: fadeInUp 1s;
}

.footer-section h3 {
    font-size: 22px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #007bff, #005fcc);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.footer-section ul li a {
    text-decoration: none;
}

.footer-section ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: #007bff;
    transition: width 0.3s ease;
}

.footer-section ul li a:hover {
    color: #007bff;
}

.footer-section p,
.footer-section ul li a {
    color: black;
}

.social-icons a {
    font-size: 20px;
    margin-right: 12px;
    color: black;
    transition: 0.3s;
}

.social-icons a:hover {
    color: #007bff;
    transform: translateY(-4px) scale(1.1);
}

/* Newsletter */
.newsletter {
    margin-top: 18px;
    display: flex;
}

.newsletter input {
    width: 70%;
    padding: 10px;
    border: 1px solid black;
    border-radius: 8px 0 0 8px;
    outline: none;
}

.newsletter input:focus {
    border: 1px solid black;
    border-color: #007bff;
    background: white;
    box-shadow: 0 0 8px rgba(255, 123, 0, 0.3);
    transition: all ease-in-out 1s;
}

.newsletter button {
    width: 30%;
    background: linear-gradient(135deg, #007bff, #005fcc);
    border: none;
    border-radius: 0 8px 8px 0;
    font-weight: 600;
    cursor: pointer;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: #ccc;
}

/* ---- Scroll Reveal Animation ---- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0px);
}

/* ---- Keyframes ---- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}