/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Top Section - Logo and Contact Info (WHITE BACKGROUND) */
.navbar-top {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-bottom: 2px solid var(--brand-red);
    padding: 1.5rem 0 0.75rem 0;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(245, 41, 42, 0.1);
}

.navbar-top .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

/* Bottom Section - Navigation Menu (BLACK BACKGROUND) */
.navbar-bottom {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.75), rgba(26, 26, 26, 0.75));
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3), 0 2px 10px rgba(245, 41, 42, 0.2);
    padding: 0.25rem 0;
}

.navbar-bottom .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
}

/* Navbar state after scrolling */
.navbar.scrolled .navbar-top {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.navbar.scrolled .navbar-bottom {
    background: linear-gradient(135deg, #000000, #1a1a1a);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.nav-logo {
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.5rem;
    border-radius: 12px;
}

.logo-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.logo-link:hover {
    transform: scale(1.05) translateY(-2px);
}

.logo-link:hover::before {
    opacity: 1;
}

.logo-image {
    height: 100px;
    width: auto;
    margin: 0;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.2)) drop-shadow(0 2px 8px rgba(245, 41, 42, 0.3));
    position: relative;
}

.logo-link:hover .logo-image {
    filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.3)) drop-shadow(0 4px 12px rgba(245, 41, 42, 0.4));
}

/* Top Section Right Side */
.navbar-top-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.navbar .contact-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.navbar .contact-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: transparent;
    border-radius: 10px;
    box-shadow: none;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid transparent;
}

.navbar .contact-card:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 30px;
    background: rgba(107, 114, 128, 0.3);
    border-radius: 1px;
}

.navbar .contact-card:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

.navbar .contact-card i {
    color: var(--brand-red);
    font-size: 1.5rem;
    width: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.navbar .contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.navbar .contact-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-strong);
    line-height: 1.2;
}

.navbar .contact-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.2;
}

.navbar .contact-value a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.navbar .contact-value a:hover {
    color: var(--brand-red);
}

.navbar .contact-card:hover .contact-value a:hover ~ * i,
.navbar .contact-card:has(.contact-value a:hover) i {
    transform: scale(1.1);
}

.social-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    color: var(--brand-red);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--brand-red), var(--brand-red));
    transition: left 0.4s ease;
    z-index: -1;
}

.social-link:hover {
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(245, 41, 42, 0.4);
    border-color: var(--brand-red);
}

.social-link:hover::before {
    left: 0;
}

/* Bottom Section Navigation */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.75rem;
    padding: 0;
    margin: 0;
    align-items: center;
    background: transparent;
    border-radius: 0;
    padding: 0;
    border: none;
}   

.nav-item {
    position: relative;
}

/* "Apply Now" appears as its own pill button (.btn-apply) on desktop;
   this duplicate menu entry only shows on mobile, see responsive.css */
.nav-item-apply {
    display: none;
}

.nav-link {
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.8rem;
    white-space: nowrap;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: block;
    overflow: hidden;
    background: transparent;
    border: 1px solid transparent;
    box-shadow: none;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--brand-red), var(--brand-red));
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
    z-index: -1;
    transform: scale(0.8);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(245, 41, 42, 0.5);
}

.nav-link:hover,
.nav-link.active:hover {
    color: #ffffff;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(245, 41, 42, 0.4), 0 2px 8px rgba(245, 41, 42, 0.3);
    border-color: rgba(245, 41, 42, 0.8);
    background: linear-gradient(135deg, rgba(245, 41, 42, 0.3), rgba(185, 28, 28, 0.3));
    backdrop-filter: blur(5px);
}

.nav-link:hover::before,
.nav-link.active:hover::before {
    opacity: 1;
    transform: scale(1);
}

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

.nav-link.active {
    color: #ffffff;
    background: transparent;
    box-shadow: none;
    border: none;
    transform: none;
}

.nav-link.active::before {
    opacity: 0;
    transform: scale(0);
}

.nav-link.active::after {
    width: 0;
}

/* Apply Now Button */
.navbar-bottom-right {
    display: flex;
    align-items: center;
}

.btn-apply {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, var(--brand-red), var(--brand-red));
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.8rem;
    white-space: nowrap;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(245, 41, 42, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-apply::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-apply:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(245, 41, 42, 0.4);
    background: linear-gradient(135deg, var(--brand-red-darker), var(--brand-red-darkest));
    backdrop-filter: blur(5px);
}

.btn-apply:hover::before {
    left: 100%;
}

.btn-apply.active {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.btn-apply.active:hover {
    background: linear-gradient(135deg, #047857, #065f46);
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.5);
}

.btn-apply i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

/* Override Apply button styling for application.html page */
body:has(.application-container) .btn-apply {
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    border-radius: 10px;
    font-size: 0.9rem;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 15px rgba(245, 41, 42, 0.3);
}

body:has(.application-container) .btn-apply i {
    font-size: 1rem;
}

.btn-apply:hover i {
    transform: scale(1.1);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 10px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1001;
    margin-left: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(245, 41, 42, 0.3);
}

.hamburger:hover {
    background: rgba(245, 41, 42, 0.2);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(245, 41, 42, 0.3);
}

.bar {
    width: 30px;
    height: 3px;
    background: #ffffff;
    margin: 3px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
    transform-origin: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Hamburger animation when active */
.hamburger.active {
    background: rgba(245, 41, 42, 0.3);
    transform: scale(1.05);
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
    background: #ffffff;
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
    background: #ffffff;
}

/* Language Dropdown */
.language-dropdown {
    position: relative;
}

.language-toggle {
    /* Same button shape/hover pattern as .nav-link, adapted for the light
       top bar (nav-link's version below lives on the dark bottom bar). */
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--text-heading);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    letter-spacing: 0.3px;
    padding: 0.55rem 0.9rem;
    position: relative;
}

.language-toggle:hover {
    color: var(--brand-red);
    background: rgba(245, 41, 42, 0.08);
    border-color: rgba(245, 41, 42, 0.25);
}

.language-toggle i {
    font-size: 0.8rem;
}

.language-toggle.active {
    color: var(--brand-red);
}

.language-options {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 8px;
}

.language-options.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    padding: 10px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f1f5f9;
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background-color: #fef2f2;
}

.language-option.active {
    background-color: var(--brand-red);
    color: white;
}

.language-option .flag {
    font-size: 1.2rem;
}

.language-option .lang-name {
    font-weight: 500;
    font-size: 0.85rem;
}
