/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;500;600;700;800&family=Bebas+Neue&family=Bruno+Ace+SC&family=Foldit:wght@100;200;300;400;500;600;700;800;900&family=Jost:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900&display=swap');

:root {
    --color1: #1c1c1c;
    --primary-color: #0090d3;
    --primary-color-rgb: 0, 144, 211;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.85);
    --text-hover: #0090d3;
    --dropdown-text: #2a2d34;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --nav-height: 80px;
    --nav-bg: rgba(28, 28, 28, 0.92);
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

/* Navbar styles */
.navbar {
    width: 100%;
    height: var(--nav-height);
    position: fixed;
    top: 0;
    z-index: 99999999;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo styles */
.nav-logo {
    width: 110px;  /* Reduced from 140px */
    height: auto;
    display: flex;
    align-items: center;
    transition: var(--transition-smooth);
}

.nav-logo:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}

.nav-logo img {
    width: 100%;
    height: auto;
}

/* Navigation menu */
.nav-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    padding-right: 2rem;
    flex-wrap: wrap;
}

.main-nav-ul {
    display: flex;
    align-items: center;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.main-nav-li {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    transition: var(--transition-smooth);
    position: relative;
    border-radius: 6px;
}

.nav-link:hover,
.main-nav-li:hover .nav-link,
.main-nav-li.active .nav-link {
    color: var(--primary-color);
}

.nav-link i {
    font-size: 0.8em;
    transition: var(--transition-smooth);
}

.main-nav-li:hover .nav-link i,
.main-nav-li.active .nav-link i {
    transform: rotate(-180deg);
}

/* Dropdown menus */
.products-nav-list {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: linear-gradient(180deg, rgba(28, 28, 28, 0.98) 0%, rgba(20, 20, 20, 0.99) 100%);
    min-width: 220px;
    padding: 0.8rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4),
                0 2px 4px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    z-index: 100;
    border: 1px solid rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.products-nav-list::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 1.5rem;
    transform: rotate(45deg);
    width: 10px;
    height: 10px;
    background: rgba(28, 28, 28, 0.98);
    border-left: 1px solid rgba(255, 255, 255, 0.07);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    z-index: 1;
}

/* REMOVED: .main-nav-li:hover .products-nav-list */

.products-nav-list li {
    list-style: none;
}

.products-nav-list a {
    display: flex;
    align-items: center;
    padding: 0.6rem 1rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    border-radius: 6px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    margin: 2px 0;
}

.products-nav-list a:hover {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.07);
    transform: translateX(5px);
    padding-left: 1.2rem;
}

/* Add these active class-based activations for desktop */
.products-list1.active1,
.products-list2.active2,
.products-list3.active3,
.products-list4.active4,
.products-list5.active5,
.products-list6.active6 {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Mobile styles - ensure these are not affected */
@media screen and (max-width: 768px) {
    .products-nav-list {
        position: static;
        background: transparent;
        box-shadow: none;
        width: 100%;
        min-width: unset;
        padding: 0;
        margin: 0;
        border-radius: 0;
        opacity: 1;
        visibility: visible;
        transform: none !important;
        display: block;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease-out;
        left: 0;
    }

    .products-nav-list.mobile-active {
        padding: 0.5rem 0;
        max-height: 500px;
    }

    .products-nav-list li {
        opacity: 0;
        transform: translateX(0);
        transition: all 0.3s ease;
        width: 100%;
    }

    .products-nav-list.mobile-active li {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile menu toggle */
.nav-toggle {
        display: none;
        cursor: pointer;
        padding: 0.5rem;
        border-radius: 8px;
        transition: var(--transition-smooth);
        z-index: 1000;
    }

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* Mobile styles */
@media screen and (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-logo {
        width: 100px;  /* Reduced from 120px */
    }
    
    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 45px;
        height: 45px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
        cursor: pointer;
        z-index: 100;
        transition: var(--transition-smooth);
    }
    
    .nav-toggle:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .bar {
        width: 22px;
        height: 2px;
        margin: 2px;
        background: var(--text-primary);
        border-radius: 4px;
        transition: var(--transition-smooth);
    }
      .nav-menu {
        position: fixed;
        right: -100%;
        top: var(--nav-height);
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background: var(--nav-bg);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 1.5rem;
        overflow-y: auto;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: column;
        gap: 1rem;
        transform: translateX(100%);
        justify-content: flex-start;
        padding-right: 1.5rem;
    }

    .nav-menu.active {
        right: 0;
        transform: translateX(0);
        padding-right: 1.5rem;
    }
    
    .main-nav-ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    
    .main-nav-li {
        width: 100%;
    }
      .nav-link {
        width: 100%;
        padding: 0.9rem 1.2rem;
        border-radius: 8px;
        font-size: 0.95rem;
        font-weight: 600;
        justify-content: space-between;
        background: rgba(255, 255, 255, 0.05);
        margin: 3px 0;
        letter-spacing: 1px;
        border: 1px solid rgba(255, 255, 255, 0.03);
    }
    
    .nav-link:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(var(--primary-color-rgb), 0.3);
    }
      .products-nav-list {
        position: static;
        background: transparent;
        box-shadow: none;
        width: 100%;
        min-width: unset;
        padding: 0;
        margin: 0;
        border-radius: 0;
        opacity: 1;
        visibility: visible;
        transform: none !important;
        display: block;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease-out;
        left: 0;
    }
    
    .products-nav-list::before {
        display: none;
    }
      .products-nav-list li {
        margin: 2px 0;
        opacity: 0;
        transform: translateX(0);
        transition: all 0.3s ease;
        width: 100%;
    }
    
    .products-nav-list.mobile-active {
        padding: 0.5rem 0;
        max-height: 500px;
    }
    
    .products-nav-list.mobile-active li {
        opacity: 1;
        transform: translateX(0);
    }    .products-nav-list a {
        padding: 0.7rem 1.2rem;
        color: rgba(255, 255, 255, 0.65);
        background: rgba(0, 0, 0, 0.2);
        border-radius: 6px;
        font-size: 0.85rem;
        margin: 0.2rem 0 1rem 0;
        display: flex;
        align-items: center;
        width: 100%;
        font-weight: 400;
        text-transform: none;
        letter-spacing: 0.3px;
        backdrop-filter: blur(5px);
    }
    
    .products-nav-list a:hover {
        background: rgba(var(--primary-color-rgb), 0.1);
        color: var(--primary-color);
        transform: none;
        border-left: 2px solid var(--primary-color);
        padding-left: 1.5rem;
    }
      /* Hamburger animation */    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
        background: #ffffff;
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
        transform: translateX(-15px);
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
        background: #ffffff;
    }
    
    /* Dropdown arrow animation */
    .main-nav-li.active .nav-link i {
        transform: rotate(180deg);
    }
}

/* Navigation menu - Desktop Styles */
@media screen and (min-width: 769px) {
    .navbar {
        padding: 0 2rem;
    }
    
    .nav-container {
        max-width: 1400px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        gap: 2rem;
    }
    
    .nav-logo {
        flex-shrink: 0;
    }
    
    .nav-menu {
        flex: 1;
        display: flex;
        justify-content: space-between;
    }
    
    .main-nav-ul {
        display: flex;
        align-items: center;
        gap: clamp(0.4rem, 1vw, 1rem);
        flex-wrap: nowrap;
    }
    
    .nav-link {
        white-space: nowrap;
        font-size: clamp(0.75rem, 0.6rem + 0.25vw, 0.85rem);
        padding: 0.6rem clamp(0.3rem, 0.2rem + 0.4vw, 0.8rem);
    }
    
    /* Dropdown positioning */
    .products-nav-list {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 200px;
        background: #fff;
        padding: 0.5rem;
        border-radius: 8px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.2s ease-in-out;
    }
    
    .main-nav-li:hover .products-nav-list {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    /* Handle dropdown alignment near viewport edges */
    .main-nav-li:nth-last-child(-n+3) .products-nav-list {
        left: auto;
        right: 0;
        transform: translateY(10px);
    }

    .main-nav-li:nth-last-child(-n+3):hover .products-nav-list {
        transform: translateY(0);
    }

    .products-nav-list li {
        opacity: 0;
        transform: translateY(10px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        transition-delay: calc(0.05s * var(--item-index, 0));
    }

    .main-nav-li:hover .products-nav-list li {
        opacity: 1;
        transform: translateY(0);
    }

    .products-nav-list::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), transparent);
        pointer-events: none;
    }

    /* Desktop dropdown styles */
    .products-nav-list {
        position: absolute;
        top: calc(100% + 0.5rem);
        left: 0;
        background: rgba(20, 20, 20, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
        border: 1px solid rgba(255, 255, 255, 0.05);
        max-height: 350px;
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: var(--primary-color) rgba(255, 255, 255, 0.05);
    }
    
    /* Scrollbar styling for webkit browsers */
    .products-nav-list::-webkit-scrollbar {
        width: 6px;
    }
    
    .products-nav-list::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 10px;
    }
    
    .products-nav-list::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 10px;
    }

    .products-nav-list a {
        color: rgba(255, 255, 255, 0.85);
    }

    .products-nav-list a:hover {
        color: var(--primary-color);
        background: rgba(255, 255, 255, 0.05);
    }
}

/* Extra small screens */
@media screen and (min-width: 769px) and (max-width: 900px) {
    .navbar {
        padding: 0 1rem;
    }
    
    .nav-logo {
        width: 90px;
    }
}

/* Desktop responsive breakpoints */
@media screen and (min-width: 769px) and (max-width: 1200px) {
    .nav-container {
        padding: 0 1rem;
    }

    .main-nav-ul {
        gap: 0.6rem;
    }

    .nav-link {
        padding: 0.6rem 0.5rem;
        font-size: 0.8rem;
    }

    .nav-menu {
        padding-right: 1rem;
    }
}

@media screen and (min-width: 1201px) {
    .nav-container {
        padding: 0 2rem;
    }

    .main-nav-ul {
        gap: 1rem;
    }
}

/* Adjustments for medium-sized screens */
@media screen and (min-width: 769px) and (max-width: 992px) {
    .nav-logo {
        width: 90px;
    }

    .nav-link {
        font-size: 0.75rem;
        padding: 0.6rem 0.4rem;
        letter-spacing: 0.4px;
    }

    .products-nav-list {
        min-width: 200px;
    }

    .products-nav-list a {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
}

/*-------footer--------*/

.footer {
    background-color: var(--color1);
    color: #fff;
    padding: 50px 0;
    padding-bottom: 0;
    width: 100%;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    margin: 0 auto;
}

.footer-logo {
    flex-basis: 20%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-logo img {
    width: 70%;
    height: auto;
}

.footer-section {
    flex-basis: 23%;
    margin-bottom: 60px;
}

.footer-section h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.footer-section p {
    font-size: 16px;
    line-height: 1.5;
}

.footer-section p.email-container {
    display: flex;
    align-items: flex-start;
}

.footer-section p.email-container span {
    margin-left: 10px;
    display: inline-block;
    text-align: left;
}

.social-media {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.social-media li {
    margin-right: 20px;
}

.social-media a {
    color: #fff;
    font-size: 26px;
    transition: color 0.2s ease-in-out;
}

.social-media a:hover {
    color: #226fff;
}

.footer-bottom {
    background-color: #000;
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 1.02em;
    margin: 0;
}

/* Mobile Responsive Footer Styles */
@media screen and (max-width: 768px) {
    .footer {
        padding: 30px 0;
    }
    
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 20px;
        gap: 30px;
    }
    
    .footer-logo {
        flex-basis: 100%;
        order: -1;
        margin-bottom: 20px;
    }
    
    .footer-logo img {
        width: 70%;
        max-width: 180px;
    }
    
    .footer-section {
        flex-basis: 100%;
        margin-bottom: 30px;
        text-align: center;
    }
    
    .footer-section h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .footer-section p {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .footer-section p.email-container {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
    
    .footer-section p.email-container span {
        margin-left: 0;
        text-align: center;
    }
    
    .social-media {
        justify-content: center;
        gap: 15px;
    }
    
    .social-media li {
        margin-right: 0;
    }
    
    .social-media a {
        font-size: 24px;
    }
    
    .footer-bottom {
        padding: 15px 0;
        margin: 0;
    }
    
    .footer-bottom p {
        font-size: 0.9em;
        padding: 0 20px;
    }
}

@media screen and (max-width: 480px) {
    .footer {
        padding: 20px 0;
    }
    
    .footer-container {
        padding: 0 15px;
        gap: 20px;
    }
    
    .footer-logo img {
        width: 80%;
        max-width: 160px;
    }
    
    .footer-section {
        margin-bottom: 20px;
    }
    
    .footer-section h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .footer-section p {
        font-size: 13px;
    }
    
    .social-media a {
        font-size: 22px;
    }
    
    .footer-bottom {
        padding: 15px 0;
        margin: 0;
    }
    
    .footer-bottom p {
        font-size: 0.85em;
        padding: 0 15px;
        margin: 0;
    }
}
