/* ------------------------------------------------------------------
   Clean & Modern Navigation 2025 - Escaping2Earth
   Fixed dropdowns, column layout, integrated social media
   Mobile-specific navigation completely separate from desktop
------------------------------------------------------------------ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ═══════════════════════════════════════════════════════════════
   NAVBAR CONTAINER
   ═══════════════════════════════════════════════════════════════ */
.glass-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    z-index: 1000;
    background: rgb(255, 255, 255);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body:not(.light) .glass-navbar {
    background: rgba(0, 34, 0, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Scrolled state */
.glass-navbar.navbar-scrolled {
    height: 70px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* ═══════════════════════════════════════════════════════════════
   CONTAINER LAYOUT
   ═══════════════════════════════════════════════════════════════ */
.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    padding: 0 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ═══════════════════════════════════════════════════════════════
   BRAND SECTION
   ═══════════════════════════════════════════════════════════════ */
.brand {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
    margin-right: 4rem; /* More space between brand and nav */
}

/* Logo - Large at start, smaller on scroll */
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-scrolled .logo {
    width: 48px;
    height: 48px;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Brand Name */
.brand-name {
    font-size: 1.75rem;
    font-weight: 600;
    font-family: 'Inter', -apple-system, sans-serif;
    letter-spacing: -0.02em;
    color: var(--forest-900);
    transition: all 0.4s ease;
}

/* Make brand text appear as regular text */
.brand-name a {
    color: inherit;
    text-decoration: none;
}

.brand-name a:visited,
.brand-name a:hover,
.brand-name a:focus {
    color: inherit;
    text-decoration: none;
}

body:not(.light) .brand-name {
    color: var(--sand-50);
}

.navbar-scrolled .brand-name {
    font-size: 1.5rem;
}

/* ═══════════════════════════════════════════════════════════════
   RIGHT SIDE NAVIGATION
   ═══════════════════════════════════════════════════════════════ */
.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
    justify-content: flex-end;
}

/* Hamburger toggle, hidden on desktop */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--charcoal-900);
}

body:not(.light) .mobile-menu-toggle {
    color: var(--sand-50);
}

/* Main Navigation Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    position: relative;
    color: var(--charcoal-900);
    text-decoration: none;
    font-size: 0.925rem;
    font-weight: 500;
    font-family: 'Inter', -apple-system, sans-serif;
    letter-spacing: -0.01em;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 0.5rem 0;
}

body:not(.light) .nav-link {
    color: var(--sand-50);
}

.nav-link:hover {
    color: var(--avocado-700);
}

body:not(.light) .nav-link:hover {
    color: var(--avocado-300);
}

/* Underline effect */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--coral-600);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Active state */
.nav-link.active {
    color: var(--coral-600);
    font-weight: 600;
}

/* Dropdown indicator */
.nav-link i {
    font-size: 0.75rem;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

/* Generic dropdown for navigation items */
.nav-item {
    position: relative;
}

.nav-item .dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 180px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
    overflow: hidden;
}

body:not(.light) .nav-item .dropdown-menu {
    background: #0a1f0a;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-item:hover .nav-link i {
    transform: rotate(180deg);
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--charcoal-900);
    text-decoration: none;
    transition: background 0.2s ease;
}

body:not(.light) .dropdown-menu a {
    color: var(--sand-50);
}

.dropdown-menu a:hover {
    background: rgba(0, 0, 0, 0.05);
}

body:not(.light) .dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* ═══════════════════════════════════════════════════════════════
   COUNTRIES DROPDOWN - Multi-column Layout
   ═══════════════════════════════════════════════════════════════ */
.country-dropdown {
    position: relative;
}

.country-dropdown .dropdown-content {
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: 90vw;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

body:not(.light) .country-dropdown .dropdown-content {
    background: rgba(15, 30, 15, 0.98);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Show on hover */
.country-dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.country-dropdown:hover .nav-link i {
    transform: rotate(180deg);
}

/* Search bar */
.country-search-wrapper {
    padding: 1.25rem 1.5rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

body:not(.light) .country-search-wrapper {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.country-search {
    width: 100%;
    min-width: 300px;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--charcoal-900);
    outline: none;
    transition: all 0.3s ease;
}

body:not(.light) .country-search {
    background: rgba(255, 255, 255, 0.05);
    color: var(--sand-50);
}

.country-search::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

body:not(.light) .country-search::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.country-search-wrapper::before {
    content: '\f002';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 2rem;
    top: 1.8rem;
    color: rgba(0, 0, 0, 0.4);
    font-size: 0.9rem;
}

body:not(.light) .country-search-wrapper::before {
    color: rgba(255, 255, 255, 0.4);
}

/* Multi-column layout */
.country-list-wrapper {
    display: flex;
    padding: 1.5rem;
    gap: 2rem;
}

.continent-group {
    min-width: 180px;
    padding: 0 0.5rem;
}

.continent-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--avocado-700);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(136, 168, 40, 0.2);
}

body:not(.light) .continent-title {
    color: var(--avocado-300);
    border-bottom-color: rgba(182, 214, 92, 0.2);
}

.country-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    margin: 0.125rem -0.75rem;
    color: var(--charcoal-900);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

body:not(.light) .country-item {
    color: var(--sand-50);
}

.country-item:hover {
    background: rgba(136, 168, 40, 0.1);
    transform: translateX(4px);
}

body:not(.light) .country-item:hover {
    background: rgba(182, 214, 92, 0.1);
}

.country-flag {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    display: inline-block;
    line-height: 1;
}
.country-flag img {
    width: 100%;
    height: auto;
    vertical-align: middle;
}

/* ═══════════════════════════════════════════════════════════════
   COLLAPSIBLE SEARCH
   ═══════════════════════════════════════════════════════════════ */
.site-search {
    position: relative;
}

.search-form {
    display: flex;
    align-items: center;
    position: relative;
}

.search-input {
    width: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid transparent;
    border-radius: 100px;
    font-size: 0.875rem;
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--charcoal-900);
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

body:not(.light) .search-input {
    background: rgba(255, 255, 255, 0.08);
    color: var(--sand-50);
}

/* Expanded state */
.search-form.search-active .search-input {
    width: 220px;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    opacity: 1;
}

.search-button {
    position: relative;
    z-index: 1;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.12);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    padding: 0;
    color: var(--charcoal-900);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

body:not(.light) .search-button {
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--sand-50);
}

.search-button:hover {
    border-color: var(--coral-600);
    color: var(--coral-600);
}

.search-button i {
    font-size: 0.875rem;
}

/* ═══════════════════════════════════════════════════════════════
   SOCIAL MEDIA LINKS
   ═══════════════════════════════════════════════════════════════ */
.social-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: var(--charcoal-900);
    transition: all 0.3s ease;
}

body:not(.light) .social-link {
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--sand-50);
}

.social-link:hover {
    background: var(--coral-600);
    border-color: var(--coral-600);
    color: white;
    transform: translateY(-2px);
}

.social-link i {
    font-size: 0.9rem;
}

/* ═══════════════════════════════════════════════════════════════
   LANGUAGE SELECTOR
   ═══════════════════════════════════════════════════════════════ */
.language-selector {
    position: relative;
}

.language-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--charcoal-900);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

body:not(.light) .language-toggle {
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--sand-50);
}

.language-toggle:hover {
    border-color: var(--coral-600);
}

.language-toggle .flag,
.dropdown-item .flag {
    font-size: 1.1rem;
    display: inline-block;
    line-height: 1;
}

.language-toggle i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

/* Language Dropdown */
.language-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    overflow: hidden;
    pointer-events: none;
}

body:not(.light) .language-dropdown {
    background: #0a1f0a;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* Show on hover */
.language-selector:hover .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.language-selector:hover .language-toggle i {
    transform: rotate(180deg);
}

.language-dropdown form {
    padding: 0.5rem;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    margin: 0.25rem;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: 'Inter', -apple-system, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--charcoal-900);
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    text-align: left;
    position: relative;
}

body:not(.light) .dropdown-item {
    color: var(--sand-50);
}

.dropdown-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

body:not(.light) .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.dropdown-item.active {
    color: var(--coral-600);
}

.dropdown-item.active::after {
    content: '✓';
    position: absolute;
    right: 1rem;
    color: var(--coral-600);
    font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════
   THEME TOGGLE
   ═══════════════════════════════════════════════════════════════ */
.theme-toggle {
    margin-left: 0.75rem;
}

.theme-toggle .switch {
    width: 44px;
    height: 24px;
}

.theme-toggle .slider {
    background: rgba(0, 0, 0, 0.15);
    border: none;
}

body:not(.light) .theme-toggle .slider {
    background: rgba(255, 255, 255, 0.15);
}

.theme-toggle .slider:before {
    width: 18px;
    height: 18px;
    left: 3px;
    bottom: 3px;
}

.theme-toggle input:checked + .slider:before {
    transform: translateX(20px);
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE NAVIGATION MENU
   ═══════════════════════════════════════════════════════════════ */
.mobile-nav-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    overflow-y: auto;
}

body:not(.light) .mobile-nav-menu {
    background: #0a1f0a;
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.4);
}

.mobile-nav-menu.active {
    transform: translateX(0);
}

/* Mobile Nav Header */
.mobile-nav-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

body:not(.light) .mobile-nav-header {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.mobile-nav-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--charcoal-900);
}

body:not(.light) .mobile-nav-title {
    color: var(--sand-50);
}

.mobile-nav-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--charcoal-900);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.2s ease;
}

body:not(.light) .mobile-nav-close {
    color: var(--sand-50);
}

.mobile-nav-close:hover {
    background: rgba(0, 0, 0, 0.05);
}

body:not(.light) .mobile-nav-close:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Mobile Search */
.mobile-search {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

body:not(.light) .mobile-search {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.mobile-search-form {
    display: flex;
    gap: 0.5rem;
}

.mobile-search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--charcoal-900);
    outline: none;
}

body:not(.light) .mobile-search-input {
    background: rgba(255, 255, 255, 0.05);
    color: var(--sand-50);
}

.mobile-search-button {
    padding: 0.75rem 1.25rem;
    background: var(--coral-600);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    cursor: pointer;
}

/* Mobile Nav Content */
.mobile-nav-content {
    padding: 1.5rem 0;
}

.mobile-nav-item {
    display: block;
    padding: 0.875rem 1.5rem;
    color: var(--charcoal-900);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    transition: background 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body:not(.light) .mobile-nav-item {
    color: var(--sand-50);
}

.mobile-nav-item:hover {
    background: rgba(0, 0, 0, 0.03);
}

body:not(.light) .mobile-nav-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.mobile-nav-item i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.mobile-nav-item.active i {
    transform: rotate(180deg);
}

/* Mobile Dropdowns */
.mobile-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.02);
}

body:not(.light) .mobile-dropdown {
    background: rgba(255, 255, 255, 0.02);
}

.mobile-dropdown.active {
    max-height: 1000px;
}

.mobile-dropdown-item {
    display: block;
    padding: 0.75rem 1.5rem 0.75rem 3rem;
    color: var(--charcoal-900);
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.2s ease;
}

body:not(.light) .mobile-dropdown-item {
    color: var(--sand-50);
}

.mobile-dropdown-item:hover {
    background: rgba(0, 0, 0, 0.03);
}

body:not(.light) .mobile-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* Mobile Countries List */
.mobile-countries-list {
    padding: 0.5rem 0;
}

.mobile-continent-group {
    padding: 0.5rem 1.5rem;
}

.mobile-continent-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--avocado-700);
    margin: 0.5rem 0;
    padding: 0.5rem 1.5rem;
}

body:not(.light) .mobile-continent-title {
    color: var(--avocado-300);
}

.mobile-country-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem 0.75rem 3rem;
    color: var(--charcoal-900);
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.2s ease;
}

body:not(.light) .mobile-country-item {
    color: var(--sand-50);
}

.mobile-country-item:hover {
    background: rgba(0, 0, 0, 0.03);
}

body:not(.light) .mobile-country-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* Mobile Footer */
.mobile-nav-footer {
    margin-top: auto;
    padding: 2rem 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

body:not(.light) .mobile-nav-footer {
    border-top-color: rgba(255, 255, 255, 0.06);
}

.mobile-social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.mobile-social-links .social-link {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
}

.mobile-theme-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
}

.mobile-theme-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--charcoal-900);
}

body:not(.light) .mobile-theme-label {
    color: var(--sand-50);
}

/* Mobile Language Buttons */
.mobile-language-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.mobile-lang-button {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: transparent;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--charcoal-900);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

body:not(.light) .mobile-lang-button {
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--sand-50);
}

.mobile-lang-button.active {
    background: var(--coral-600);
    border-color: var(--coral-600);
    color: white;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
    .navbar-container {
        padding: 0 2rem;
    }

    .brand {
        margin-right: 2rem;
    }

    .nav-wrapper {
        gap: 1rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .country-list-wrapper {
        gap: 1.5rem;
    }

    .continent-group {
        min-width: 160px;
    }
}

@media (max-width: 968px) {
    .glass-navbar {
        height: 70px;
    }

    .navbar-scrolled {
        height: 60px;
    }

    .logo {
        width: 48px;
        height: 48px;
    }

    .navbar-scrolled .logo {
        width: 40px;
        height: 40px;
    }

    .brand-name {
        font-size: 1.4rem;
    }

    .navbar-scrolled .brand-name {
        font-size: 1.25rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    /* Hide some links on tablet */
    .nav-link:nth-child(n+4) {
        display: none;
    }

    .social-links {
        display: none;
    }
}

@media (max-width: 768px) {
    .navbar-container {
        padding: 0 1rem;
    }

    .glass-navbar {
        height: 60px;
    }

    .logo {
        width: 40px;
        height: 40px;
    }

    .brand-name {
        font-size: 1.25rem;
    }

    .brand {
        margin-right: auto;
        gap: 1rem;
    }

    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 8px;
        transition: all 0.3s ease;
        position: relative;
        z-index: 1002;
    }

    .mobile-menu-toggle:hover {
        background: rgba(0, 0, 0, 0.05);
    }

    body:not(.light) .mobile-menu-toggle:hover {
        background: rgba(255, 255, 255, 0.05);
    }

    /* Hide desktop navigation */
    .nav-links,
    .site-search,
    .social-links,
    .language-selector,
    .theme-toggle {
        display: none;
    }

    /* Show mobile menu */
    .mobile-nav-menu {
        display: block;
    }
}

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.glass-navbar {
    animation: fadeIn 0.6s ease forwards;
}

/* Smooth transitions */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Focus styles */
*:focus-visible {
    outline: 2px solid var(--coral-600);
    outline-offset: 2px;
}

/* Loading state */
.dropdown-content.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-top-color: var(--coral-600);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Ensure proper emoji rendering */
@font-face {
    font-family: 'Twemoji';
    src: url('https://cdn.jsdelivr.net/npm/twemoji-colr-font@14/twemoji.woff2') format('woff2');
    unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E0063, U+E0065, U+E0067, U+E006C, U+E006E, U+E0073-E0074, U+E0077, U+E007F;
}

.country-flag, .flag {
    font-family: 'Twemoji', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji', sans-serif;
}

/* Prevent body scroll when mobile menu is open */
body.mobile-menu-open {
    overflow: hidden;
}