/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f5f5f5; /* Just to show the navbar clearly */
    padding-top: 130px; /* Prevent content overlap on pages with fixed navbar (80px header + 50px gap) */
}

/* Navbar Styles */
.navbar {
    width: 100%;
    height: 80px;
    background: transparent;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background: #FFFFFF;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.nav-container {
    width: 100%;
    max-width: 1920px; /* As per design reference width */
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px; /* Add some padding on sides */
}

/* Left: Logo */
.nav-left {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #000;
    gap: 10px;
}

.logo img {
    height: 35px; /* Line 393 */
}

/* Center: Menu */
.nav-center {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 30px; /* Line 32 */
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 5px; /* Line 49 */
    cursor: pointer;
    position: relative;
}

.nav-item a {
    text-decoration: none;
    font-family: 'Geist', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 20px; /* Line 69 */
    line-height: 26px;
    color: #111111; /* Line 75 */
}

/* Specific styles for Download and Market nav items */
#download-nav-item a, #market-nav-item a {
    height: 26px;
    font-family: 'Geist';
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    line-height: 26px;
    display: flex;
    align-items: center;
    color: #111111;
    transition: color 0.2s ease, font-weight 0.2s ease;
}

#download-nav-item a {
    width: 98px;
}

/* Active state for direct links (High Specificity) */
#download-nav-item.active a,
#market-nav-item.active a {
    font-weight: 700;
    color: #111111;
}

.arrow-icon {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #333333; /* Line 105 */
    display: inline-block;
    margin-left: 5px;
    transition: transform 0.2s ease;
}

/* Right: Actions */
.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    margin-right: 10px;
}

.language-selector img {
    width: 24px; /* Line 617 */
    height: 24px;
}

.language-selector span {
    font-family: 'Geist';
    font-style: normal;
    font-weight: 400;
    font-size: 14px; /* Line 594 */
    line-height: 18px;
    color: #333333;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-login {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 6px 20px; /* Line 331 */
    gap: 10px;
    width: 88px; /* Line 335 */
    height: 34px; /* Line 336 */
    border: 1px solid #3B82F6; /* Line 340 */
    border-radius: 100px; /* Line 341 */
    
    font-family: 'Geist';
    font-style: normal;
    font-weight: 400;
    font-size: 16px; /* Line 352 */
    line-height: 21px;
    text-decoration: none;
    color: #3B82F6; /* Line 359 */
    transition: all 0.3s ease;
}

.btn-login:hover {
    background-color: #f0f7ff;
}

.btn-download {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 6px 20px;
    height: 34px;
    background: #3B82F6; /* Line 318 */
    border-radius: 100px; /* Line 319 */
    
    font-family: 'Geist';
    font-style: normal;
    font-weight: 400;
    font-size: 16px; /* Line 379 */
    line-height: 21px;
    text-decoration: none;
    color: #FFFFFF; /* Line 386 */
    transition: background-color 0.3s ease;
}

.btn-download:hover {
    background-color: #2563eb;
}

/* Dropdown Menu Styles */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 330px;
    padding: 20px;
    background: #FFFFFF;
    border: 1px solid #EEEEEE;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    flex-direction: column;
    gap: 20px;
    z-index: 1000;
    margin-top: 15px;
    cursor: default;
}

/* Solutions Dropdown Specifics */
.dropdown-menu.solutions {
    width: 770px;
    flex-direction: row;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: nowrap;
}

.dropdown-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dropdown-menu.solutions .dropdown-item {
    width: 350px;
    /* Maintain height and other props from base .dropdown-item */
}

/* Active state for arrow rotation */
.nav-item.active .arrow-icon {
    transform: rotate(180deg);
}

.dropdown-arrow {
    position: absolute;
    width: 16px;
    height: 8px;
    left: 50%;
    top: -8px;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #FFFFFF;
    filter: drop-shadow(0px -1px 0px #EEEEEE);
}

.dropdown-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 10px;
    gap: 10px;
    width: 290px;
    height: 80px;
    border-radius: 10px;
    text-decoration: none;
    transition: background-color 0.2s;
}

.dropdown-item:hover {
    background: rgba(100, 110, 131, 0.1);
}

.dropdown-item.active {
    background: rgba(59, 130, 246, 0.1);
}

.dropdown-icon {
    box-sizing: border-box;
    width: 60px;
    height: 60px;
    background: #FFFFFF;
    border: 1px solid #EEEEEE;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.dropdown-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 260px;
}

.item-title {
    font-family: 'Geist';
    font-style: normal;
    font-weight: 700;
    font-size: 16px;
    line-height: 21px;
    color: #111111;
}

.item-desc {
    font-family: 'Geist';
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    color: #666666;
}

/* Icon Styles from Figma */

/* RPA Icon Box */
.rpa-icon-box {
    position: relative;
    width: 60px;
    height: 60px;
    background: #FFFFFF;
    border: 1px solid #EEEEEE;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Language Dropdown Specifics */
.dropdown-menu.language {
    width: 200px;
    padding: 10px;
    left: auto;
    right: 0;
    transform: none;
    gap: 0; /* Reset gap */
}

/* Adjust arrow for language dropdown (right aligned) */
.dropdown-menu.language .dropdown-arrow {
    left: auto;
    right: 30px; /* Adjust based on parent center */
    transform: translateX(50%);
}

.language-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 10px;
    width: 100%;
    height: 41px;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    gap: 10px;
}

.language-item:hover {
    background: rgba(100, 110, 131, 0.1);
}

.language-item.active {
    background: rgba(59, 130, 246, 0.05);
}

.language-item img.flag-icon {
    width: 20px;
    height: 20px;
    flex: none;
}

.language-item span {
    font-family: 'Geist';
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 21px;
    color: #333333;
    flex-grow: 1;
}

/* Specific font for Chinese */
.language-item span.cn-font {
    font-family: 'Microsoft YaHei UI', sans-serif;
}

.check-icon {
    width: 16px;
    height: 16px;
    display: none;
}

.language-item.active .check-icon {
    display: block;
}
