@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}
/* body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding-top: 80px;
} */

/* First Navbar - Brand and Language */
.navbar-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1001;
    padding: 0 2rem;
}

.navbar-top-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

/* Second Navbar - Navigation Links */
.navbar-bottom {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 1000;
    padding: 0 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.navbar-bottom-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70px;
}

/* Section 1: Brand Logo and Name */
.brand-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 0 0 auto;
}

.brand-logo {
    width: 60px;
    height: 60px;
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: white;
    /* box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4); */
    transition: transform 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.05);
}
.brand-logo img{
    height: 100%;
}
.brand-name {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Section 2: Navigation Links */
.nav-links-section {
    display: flex;
    gap: 2.5rem;
    flex: 1;
    justify-content: center;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-links-section a,
.nav-item > span {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.nav-item > span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-links-section a::after,
.nav-item > span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

.nav-links-section a:hover,
.nav-item > span:hover {
    color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

.nav-links-section a:hover::after,
.nav-item > span:hover::after {
    width: 100%;
}

.nav-links-section a.active {
    color: white;
}

.nav-links-section a.active::after {
    width: 100%;
}

/* Dropdown Arrow */
.dropdown-icon {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.nav-item:hover .dropdown-icon {
    transform: rotate(180deg);
}

/* Navigation Dropdown */
.nav-dropdown {
    position: absolute;
    top: calc(100% + 20px);
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
    padding: 0.5rem 0;
}

.nav-item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
    display: block;
    padding: 0.875rem 1.5rem;
    color: #2d3748;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 15px;
    font-weight: 400;
    white-space: nowrap;
}

.nav-dropdown a::after {
    display: none;
}

.nav-dropdown a:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: #667eea;
    padding-left: 2rem;
}

.nav-dropdown a:first-child {
    border-radius: 12px 12px 0 0;
}

.nav-dropdown a:last-child {
    border-radius: 0 0 12px 12px;
}

/* Section 3: Language Selector */
.language-section {
    flex: 0 0 auto;
}

.language-selector {
    position: relative;
}

.language-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.language-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.globe-icon {
    font-size: 18px;
}

.dropdown-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.language-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    color: #2d3748;
    text-decoration: none;
    transition: background 0.2s ease;
    font-size: 15px;
}

.language-dropdown a:first-child {
    border-radius: 12px 12px 0 0;
}

.language-dropdown a:last-child {
    border-radius: 0 0 12px 12px;
}

.language-dropdown a:hover {
    background: #f7fafc;
}

.language-dropdown a.selected {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: #667eea;
    font-weight: 600;
}

.flag-icon {
    font-size: 20px;
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: #667eea;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Demo Content */
.demo-content {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 2rem;
    text-align: center;
    color: white;
}

.demo-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.demo-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 968px) {
    body {
        padding-top: 70px;
    }

    .mobile-toggle {
        display: flex;
    }

    .navbar-bottom {
        top: 70px;
        height: auto;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
    }

    .navbar-bottom.active {
        max-height: 800px;
    }

    .navbar-bottom-container {
        height: auto;
        padding: 1rem 0;
    }

    .nav-links-section {
        width: 100%;
        flex-direction: column;
        gap: 0;
        padding: 0;
        align-items: stretch;
    }

    .nav-item {
        width: 100%;
    }

    .nav-item > span {
        padding: 1rem 1.5rem;
        text-align: left;
        width: 100%;
        justify-content: space-between;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links-section > a {
        padding: 1rem 1.5rem;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-dropdown {
        position: static;
        transform: none;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        box-shadow: none;
        transition: all 0.3s ease;
        background: rgba(255, 255, 255, 0.1);
        margin: 0;
    }

    .nav-item.mobile-active .nav-dropdown {
        opacity: 1;
        visibility: visible;
        max-height: 500px;
    }

    .nav-dropdown a {
        text-align: left;
        padding: 0.875rem 2.5rem;
        color: rgba(255, 255, 255, 0.9);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-dropdown a:last-child {
        border-bottom: none;
    }

    .nav-dropdown a:hover {
        background: rgba(255, 255, 255, 0.15);
        padding-left: 3rem;
    }

    .dropdown-icon {
        transition: transform 0.3s ease;
    }

    .nav-item.mobile-active .dropdown-icon {
        transform: rotate(180deg);
    }
}

@media (max-width: 768px) {
    .navbar-top,
    .navbar-bottom {
        padding: 0 1.5rem;
    }

    .demo-content h1 {
        font-size: 2.5rem;
    }

    .demo-content p {
        font-size: 1.1rem;
    }

    .language-button {
        padding: 0.6rem 1.2rem;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .navbar-top,
    .navbar-bottom {
        padding: 0 1rem;
    }

    .navbar-top-container {
        height: 60px;
    }

    body {
        padding-top: 60px;
    }

    .navbar-bottom {
        top: 60px;
    }

    .brand-name {
        width: 80%;
        /* text-overflow: break-word; */
        font-size: 18px;
        /* border: 1px solid red; */
    }

    .brand-logo {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .demo-content h1 {
        font-size: 2rem;
    }

    .demo-content p {
        font-size: 1rem;
    }

    

    .language-button {
        padding: 0.5rem 1rem;
        font-size: 13px;
    }

    .globe-icon {
        font-size: 16px;
    }

    .nav-links-section a,
    .nav-item > span {
        font-size: 15px;
    }

    .nav-dropdown a {
        font-size: 14px;
        padding: 0.75rem 2rem;
    }
    .brand-section{
        /* border: 1px solid red; */
        /* margin-right: 40px; */
        width: 60%;
    }
    .nav-item:hover .nav-dropdown{
        transform: translateX(0%) translateY(0);
    }
}

@media (max-width: 360px) {
    .brand-name {
        font-size: 16px;
    }

    .brand-logo {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .brand-section {
        gap: 0.7rem;
    }

    .language-button {
        padding: 0.5rem 0.8rem;
        font-size: 12px;
    }

    #currentLanguage {
        display: none;
    }

    .demo-content h1 {
        font-size: 1.75rem;
    }
    .nav-item:hover .nav-dropdown{
        transform: translateX(0%) translateY(0);
    }
}