/* ==========================================================================
   COMPONENTS
   Buttons and navigation components
   ========================================================================== */

  /* Buttons - Mobile Optimized */
  .btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
  }

  @media (min-width: 768px) {
    .btn {
      padding: 1rem 2.5rem;
      font-size: 1rem;
    }
  }

  .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,.3) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
  }

  .btn:hover::before {
    transform: translateX(100%);
  }

  .btn-primary {
    background: var(--gradient-main);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0,102,255,.3);
  }

  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,102,255,.4);
  }

  .btn-secondary {
    background: rgba(255,255,255,.1);
    color: var(--primary);
    border: 2px solid var(--primary);
  }

  .btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
  }

  .btn-glass {
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.2);
    color: var(--white);
  }

  .btn-glass:hover {
    background: rgba(255,255,255,.2);
    transform: translateY(-2px);
  }

  .btn-demo {
    background: var(--white);
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 2rem;
    border: 2px solid rgba(0,102,255,.1);
    box-shadow: 0 10px 30px rgba(0,0,0,.1);
    font-size: 1rem;
    min-width: 240px;
  }

  .btn-demo:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,102,255,.2);
    border-color: var(--primary);
  }

  .demo-flag {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
  }

  .demo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    flex: 1;
  }

  .demo-country {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--dark);
  }

  .demo-label {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 600;
  }

  .btn-glow {
    background: var(--gradient-main);
    color: var(--white);
    box-shadow: 0 0 20px rgba(0,102,255,.5);
    animation: glow-pulse 2s ease-in-out infinite;
  }

  @keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(0,102,255,.5); }
    50% { box-shadow: 0 0 40px rgba(0,102,255,.8); }
  }

  /* Navigation - Mobile First */
  nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255,255,255,0);
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
    transition: all 0.3s ease;
  }

  nav.scrolled {
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0,0,0,.1);
  }

  .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    transition: padding 0.3s ease;
  }

  nav.scrolled .nav-container {
    padding: 0.75rem 1.5rem;
  }

  .logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .logo-image {
    width: 35px;
    height: 35px;
    transition: transform 0.3s ease;
  }

  .logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  /* Desktop Nav */
  .nav-links {
    display: none;
    gap: 2rem;
    align-items: center;
    list-style: none;
  }

  @media (min-width: 768px) {
    .nav-links {
      display: flex;
    }
  }

  .nav-links a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
  }

  nav:not(.scrolled) .nav-links a {
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0,0,0,.2);
  }

  .nav-links a.btn {
    padding: 0.5rem 1.25rem;
    color: var(--white) !important;
    text-shadow: none !important;
  }

  /* Mobile Menu */
  .mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    position: relative;
    z-index: 1002;
  }

  @media (min-width: 768px) {
    .mobile-menu {
      display: none;
    }
  }

  .mobile-menu span {
    position: absolute;
    width: 100%;
    height: 3px;
    background: var(--dark);
    transition: all 0.3s ease;
    border-radius: 3px;
  }

  nav:not(.scrolled) .mobile-menu span {
    background: var(--white);
  }

  .mobile-menu span:nth-child(1) { top: 0; }
  .mobile-menu span:nth-child(2) { top: 50%; transform: translateY(-50%); }
  .mobile-menu span:nth-child(3) { bottom: 0; }

  .mobile-menu.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    background: var(--dark);
  }

  .mobile-menu.active span:nth-child(2) { opacity: 0; }

  .mobile-menu.active span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
    background: var(--dark);
  }

  /* Mobile Nav Overlay - FIXED */
  .nav-links.mobile-active {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(255,255,255,.98) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    gap: 2.5rem;
    animation: slideDown 0.3s ease;
    z-index: 9999 !important;
    overflow-y: auto;
    max-height: 100vh !important;
    min-height: 100vh !important;
}

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-links.mobile-active li:nth-child(1) a { animation-delay: 0.1s; }
  .nav-links.mobile-active li:nth-child(2) a { animation-delay: 0.15s; }
  .nav-links.mobile-active li:nth-child(3) a { animation-delay: 0.2s; }
  .nav-links.mobile-active li:nth-child(4) a { animation-delay: 0.25s; }
  .nav-links.mobile-active li:nth-child(5) a { animation-delay: 0.3s; }
  .nav-links.mobile-active li:nth-child(6) a { animation-delay: 0.35s; }
  .nav-links.mobile-active li:nth-child(7) a { animation-delay: 0.4s; }
  .nav-links.mobile-active li:nth-child(8) a { animation-delay: 0.45s; }

  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-links.mobile-active a {
    color: var(--dark) !important;
    font-size: 1.25rem;
    text-shadow: none !important;
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
  }
