:root {
    --primary-color: #2469f3;
    --secondary-color: #8a2be2;
    --gradient-start: #4f46e5;
    --gradient-end: #ec4899;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --warning-color: #f97316;
    --error-color: #ef4444;
}

/* Enhanced Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

/* Enhanced Text Gradient */
.cyber-gradient-text {
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end), var(--accent-color), var(--gradient-start));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

/* Enhanced Buttons */
.btn-primary {
    @apply bg-[var(--primary-color)] text-white hover:bg-opacity-90 transition-all duration-300;
    position: relative;
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(36, 105, 243, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(36, 105, 243, 0.4);
}

.btn-primary::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.5s;
}

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

.btn-secondary {
    @apply bg-slate-100 text-slate-800 hover:bg-slate-200 transition-all duration-300;
    position: relative;
    transform: translateY(0);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Enhanced Section Animations */
.section-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-fade-in.animate {
    opacity: 1;
    transform: translateY(0);
}

.section-fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-fade-in-left.animate {
    opacity: 1;
    transform: translateX(0);
}

.section-fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-fade-in-right.animate {
    opacity: 1;
    transform: translateX(0);
}

/* Enhanced Cards */
.card-pop {
    @apply transition-all duration-500 ease-out;
    transform: translateY(0) scale(1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.card-pop:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.card-pop::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.card-pop:hover::before {
    opacity: 1;
}

/* Enhanced Navigation */
.nav-link {
    @apply text-slate-700 hover:text-[var(--primary-color)] text-sm font-medium leading-normal transition-all duration-300;
    position: relative;
    z-index: 1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

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

.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Enhanced Mobile Menu */
#mobile-menu {
    max-height: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    width: 100%;
    transform: translateY(-100%);
    opacity: 0;
    padding-top: 80px; /* Account for header height */
}

#mobile-menu.show {
    max-height: 100vh;
    overflow-y: auto;
    transform: translateY(0);
    opacity: 1;
}

/* Improved mobile menu scrolling */
#mobile-menu::-webkit-scrollbar {
    width: 4px;
}

#mobile-menu::-webkit-scrollbar-track {
    background: transparent;
}

#mobile-menu::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

.mobile-nav-link {
    @apply text-slate-700 hover:text-[var(--primary-color)] text-sm font-medium leading-normal transition-all duration-300;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    margin: 0.25rem 0.5rem;
    position: relative;
    z-index: 1;
    display: block;
    text-decoration: none;
    font-size: 16px; /* Prevent zoom on iOS */
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav-link:hover {
    background-color: rgba(36, 105, 243, 0.1);
    transform: translateX(4px);
}

.mobile-nav-link:active {
    background-color: rgba(36, 105, 243, 0.2);
    transform: scale(0.98);
}

.mobile-nav-link.active {
    color: var(--primary-color);
    background-color: rgba(36, 105, 243, 0.1);
    font-weight: 600;
}

/* Enhanced Mobile Dropdown Styles */
.mobile-dropdown {
    position: relative;
}

.mobile-dropdown button {
    background: none;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
    font-size: 16px; /* Prevent zoom on iOS */
    -webkit-tap-highlight-color: transparent;
}

.mobile-dropdown-content {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 0;
    padding-left: 1rem;
}

.mobile-dropdown-content.show {
    max-height: 300px;
    overflow: visible;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.mobile-dropdown .material-icons {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-dropdown.active .material-icons {
    transform: rotate(180deg);
}

/* Enhanced Header for Mobile */
.header-glass {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
}

/* Mobile menu button improvements */
#mobile-menu-btn {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    transition: all 0.2s ease;
}

#mobile-menu-btn:active {
    transform: scale(0.95);
}

#mobile-menu-btn .material-icons {
    font-size: 24px;
    transition: transform 0.2s ease;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    .layout-content-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .card-pop:hover {
        transform: none;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
    
    /* Improve touch targets */
    .btn-primary, .btn-secondary {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
        font-size: 16px;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    /* Improve form inputs */
    .form-input {
        font-size: 16px;
        min-height: 44px;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Improve navigation links */
    .nav-link {
        padding: 0.75rem 1rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Optimize animations for mobile */
    .section-fade-in,
    .section-fade-in-left,
    .section-fade-in-right {
        animation-duration: 0.6s;
    }
    
    /* Reduce motion for users who prefer it */
    @media (prefers-reduced-motion: reduce) {
        * {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }
    
    /* Improve scrolling performance */
    body {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    /* Optimize images for mobile */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Improve text readability */
    h1, h2, h3, h4, h5, h6 {
        line-height: 1.3;
    }
    
    p {
        line-height: 1.6;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .layout-content-container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .mobile-nav-link {
        padding: 1.25rem 1.5rem;
        font-size: 18px;
    }
    
    .btn-primary, .btn-secondary {
        padding: 1rem 1.5rem;
        font-size: 18px;
    }
    
    /* Stack buttons vertically on very small screens */
    .flex.flex-col.sm\\:flex-row {
        flex-direction: column;
    }
    
    .flex.flex-col.sm\\:flex-row > * {
        margin-bottom: 0.5rem;
    }
}

/* Landscape orientation fixes */
@media (max-width: 768px) and (orientation: landscape) {
    #mobile-menu {
        padding-top: 60px;
    }
    
    .mobile-nav-link {
        padding: 0.75rem 1.5rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .header-glass {
        border-bottom-width: 0.5px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    #mobile-menu {
        background: rgba(15, 23, 42, 0.98);
        color: #f1f5f9;
    }
    
    .mobile-nav-link {
        color: #f1f5f9;
    }
    
    .mobile-nav-link:hover {
        background-color: rgba(36, 105, 243, 0.2);
    }
}

/* Enhanced Header */
.header-glass {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
}

/* Enhanced Hero Section */
.hero-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    z-index: 1;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    z-index: -1;
}

/* Enhanced Form Styles */
.form-input {
    @apply w-full px-4 py-3 border border-slate-300 rounded-lg transition-all duration-300;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(36, 105, 243, 0.1);
    transform: translateY(-1px);
}

/* Enhanced Loading States */
.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
}

/* Enhanced Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--primary-color), var(--gradient-end));
    border-radius: 4px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, var(--gradient-end), var(--primary-color));
}

/* Enhanced Smooth Hover */
.smooth-hover {
    @apply transition-all duration-300 ease-out;
}

/* Enhanced Text Animations */
.text-reveal {
    position: relative;
    z-index: 1;
}

.text-reveal::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: -1;
}

.text-reveal.animate::after {
    transform: translateX(100%);
}

/* Enhanced Image Hover Effects */
.image-hover {
    transition: all 0.3s ease;
    filter: brightness(1);
    position: relative;
    z-index: 1;
}

.image-hover:hover {
    filter: brightness(1.1) contrast(1.1);
    transform: scale(1.05);
}

/* Enhanced Badge Animations */
.badge-pulse {
    animation: pulse 2s infinite;
}

.badge-float {
    /* Removed float animation to fix background movement */
    /* animation: float 3s ease-in-out infinite; */
    transition: all 0.3s ease;
}

.badge-float:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Enhanced Counter Animation */
.counter-animation {
    transition: all 0.3s ease;
}

.counter-animation:hover {
    transform: scale(1.1);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* Domain Filter Buttons */
.filter-btn {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.filter-btn.active {
    border-color: currentColor;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Domain Cards Animation */
.domain-card {
    transition: all 0.3s ease;
}

.domain-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Enhanced Grid Animations */
.grid-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
    position: relative;
    z-index: 1;
}

.grid-item.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Focus States */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Enhanced Selection */
::selection {
    background: var(--primary-color);
    color: white;
}

/* Enhanced Print Styles */
@media print {
    .card-pop:hover,
    .btn-primary:hover,
    .nav-link:hover {
        transform: none !important;
        box-shadow: none !important;
    }
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(45deg, var(--primary-color), var(--gradient-end));
    z-index: 1001;
    transition: width 0.1s ease;
}

/* Ensure proper stacking context for main content */
main {
    position: relative;
    z-index: 1;
}

/* Ensure sections don't interfere with header */
section {
    position: relative;
    z-index: 1;
}

/* Ensure buttons stay above content */
.btn-primary, .btn-secondary {
    position: relative;
    z-index: 1;
}

/* Ensure form elements stay above background */
form {
    position: relative;
    z-index: 1;
}

/* Ensure footer doesn't interfere with header */
footer {
    position: relative;
    z-index: 1;
    @apply transition-all duration-300;
}

/* Application Modal Styles */
#application-modal {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#application-modal > div {
    animation: modalSlideIn 0.3s ease-out;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

#application-modal iframe {
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

#close-modal {
    transition: all 0.2s ease;
}

#close-modal:hover {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    transform: scale(1.1);
}

/* Modal responsive adjustments */
@media (max-width: 768px) {
    #application-modal > div {
        margin: 1rem;
        max-height: 95vh;
    }
    
    #application-modal iframe {
        height: 500px;
    }
}

@media (max-width: 480px) {
    #application-modal iframe {
        height: 400px;
    }
}

/* Remove or comment out global scroll lock on body */
/* body {
  overflow: auto !important;
  position: static !important;
} */

body.mobile-menu-open {
  position: fixed !important;
  width: 100%;
}

/* Dropdown overlay styles */
.navbar {
  position: relative;
  z-index: 100;
}
.dropdown-menu {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 180px;
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.dropdown-open .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
}
@media (max-width: 768px) {
  .dropdown-menu {
    position: static;
    min-width: 100%;
    box-shadow: none;
    border-radius: 0;
  }
}

/* Enhanced Header & Navigation System */
.header-container {
  position: relative;
  z-index: 1000;
}

/* Header Glass Effect */
.header-glass {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  position: relative;
  color: #475569;
  font-weight: 500;
  text-decoration: none;
  padding: 0.5rem 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0.375rem;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
  border-radius: 1px;
}

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

.nav-link:hover,
.nav-link:focus {
  color: var(--primary-color);
  transform: translateY(-1px);
}

.nav-link.active {
  color: var(--primary-color);
  font-weight: 600;
}

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

/* Dropdown System */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
}

.dropdown-toggle::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 0.5rem;
  background: transparent;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 200px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 0.75rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -0.5rem;
  left: 1rem;
  width: 0;
  height: 0;
  border-left: 0.5rem solid transparent;
  border-right: 0.5rem solid transparent;
  border-bottom: 0.5rem solid rgba(255, 255, 255, 0.98);
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1rem;
  color: #475569;
  text-decoration: none;
  transition: all 0.2s ease;
  border-radius: 0.375rem;
  margin: 0.125rem;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-color);
  transform: translateX(0.25rem);
}

/* Mobile Menu System */
.mobile-menu-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9999;
}

.mobile-menu-container.show {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 320px;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

.mobile-menu-container.show .mobile-menu {
  transform: translateX(0);
}

/* Mobile Menu Header */
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(255, 255, 255, 0.9);
}

.mobile-menu-close {
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
}

.mobile-menu-close:hover {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-color);
}

/* Mobile Navigation Links */
.mobile-nav {
  padding: 1rem 0;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  padding: 0.875rem 1.5rem;
  color: #475569;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-color);
  border-left-color: var(--primary-color);
  transform: translateX(0.5rem);
}

.mobile-nav-link.active {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-color);
  border-left-color: var(--primary-color);
}

/* Mobile Dropdown */
.mobile-dropdown {
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.mobile-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: none;
  border: none;
  color: #475569;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.mobile-dropdown-toggle:hover,
.mobile-dropdown-toggle:focus {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-color);
  border-left-color: var(--primary-color);
}

.mobile-dropdown-toggle .material-icons {
  transition: transform 0.2s ease;
}

.mobile-dropdown.active .mobile-dropdown-toggle .material-icons {
  transform: rotate(180deg);
}

.mobile-dropdown-content {
  max-height: 0;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(248, 250, 252, 0.5);
}

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

.mobile-dropdown-content a {
  display: block;
  padding: 0.75rem 1.5rem 0.75rem 3rem;
  color: #64748b;
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.mobile-dropdown-content a:hover,
.mobile-dropdown-content a:focus {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-color);
  transform: translateX(0.25rem);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #475569;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
}

.mobile-menu-btn:hover,
.mobile-menu-btn:focus {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-color);
}

.mobile-menu-btn .material-icons {
  font-size: 1.5rem;
  transition: transform 0.2s ease;
}

/* Social Links */
.social-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.social-link {
  color: #64748b;
  text-decoration: none;
  padding: 0.5rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
}

.social-link:hover,
.social-link:focus {
  color: var(--primary-color);
  background: rgba(59, 130, 246, 0.1);
  transform: translateY(-1px);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .desktop-nav {
    gap: 1.5rem;
  }
  
  .nav-link {
    font-size: 0.875rem;
  }
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .social-links {
    display: none;
  }
  
  .mobile-menu {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .mobile-menu {
    max-width: 100%;
  }
  
  .mobile-nav-link,
  .mobile-dropdown-toggle {
    padding: 1rem 1.25rem;
  }
  
  .mobile-dropdown-content a {
    padding: 0.75rem 1.25rem 0.75rem 2.5rem;
  }
}

/* Touch Optimizations */
@media (hover: none) and (pointer: coarse) {
  .nav-link:hover::after,
  .dropdown:hover .dropdown-menu {
    display: none;
  }
  
  .nav-link:active,
  .mobile-nav-link:active {
    transform: scale(0.98);
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .nav-link,
  .dropdown-menu,
  .mobile-menu,
  .mobile-nav-link,
  .mobile-dropdown-content {
    transition: none;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .header-glass {
    background: rgba(15, 23, 42, 0.95);
    border-bottom-color: rgba(148, 163, 184, 0.2);
  }
  
  .mobile-menu {
    background: rgba(15, 23, 42, 0.98);
  }
  
  .mobile-menu-header {
    background: rgba(15, 23, 42, 0.9);
    border-bottom-color: rgba(148, 163, 184, 0.2);
  }
  
  .mobile-dropdown-content {
    background: rgba(30, 41, 59, 0.5);
  }
}

/* Scroll Lock for Mobile Menu */
body.mobile-menu-open {
  position: fixed;
  width: 100%;
} 