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

/* --- Design Tokens --- */
:root {
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Colors */
  --bg-primary: #ffffff;
  --bg-secondary: rgba(248, 250, 252, 0.6);
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --border-color: rgba(15, 23, 42, 0.07);
  --border-color-hover: rgba(0, 136, 204, 0.4);

  --color-primary: #0088cc; /* Darkened primary for contrast on light background */
  --color-primary-rgb: 0, 136, 204;
  --color-secondary: #002060;
  --color-accent: #005cff;
  --color-text-main: #0f172a;
  --color-text-muted: #475569;
  --color-white: #0f172a; /* Used for headings, mapped to dark slate for contrast */

  /* Gradients */
  --gradient-logo: linear-gradient(135deg, #002060 0%, #00d2ff 100%);
  --gradient-primary: linear-gradient(135deg, #002060 0%, #0088cc 100%);
  --gradient-dark: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  --gradient-glow: radial-gradient(circle, rgba(0, 210, 255, 0.08) 0%, rgba(248, 250, 252, 0) 70%);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows */
  --shadow-glow: 0 0 20px rgba(0, 136, 204, 0.15);
  --shadow-glow-strong: 0 0 30px rgba(0, 136, 204, 0.3);
}

/* --- Base Reset --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--color-text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background grid details */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(15, 23, 42, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.015) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -2;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  top: -10%;
  right: -10%;
  width: 60%;
  height: 60%;
  background: var(--gradient-glow);
  z-index: -1;
  pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Layout Elements --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-subtitle {
  font-size: 0.875rem;
  text-transform: uppercase;
  color: var(--color-primary);
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(to right, var(--color-white), var(--color-text-muted));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- UI Components --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--bg-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  color: var(--bg-primary);
}

.btn-secondary {
  background: transparent;
  border-color: var(--border-color);
  color: var(--color-text-main);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem;
  transition: var(--transition-normal);
  position: relative;
}

.card:hover {
  border-color: var(--border-color-hover);
  background: var(--bg-card-hover);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* --- Navigation Bar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: var(--transition-normal);
  padding: 1.5rem 0;
}

.navbar.scrolled {
  padding: 0.8rem 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 48px;
  width: auto;
  transition: var(--transition-normal);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
}

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
  padding: 0.5rem;
  z-index: 101;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--color-text-main);
  margin: 5px 0;
  transition: var(--transition-normal);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 8rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 40%;
  height: 40%;
  background: var(--gradient-glow);
  z-index: -1;
  opacity: 0.7;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  max-width: 650px;
}

.hero-tag {
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.15);
  color: var(--color-primary);
  padding: 0.4rem 1rem;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  display: inline-block;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.hero-title {
  font-size: 3.75rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-white) 30%, var(--color-text-muted) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(0, 210, 255, 0.1);
}

.hero-description {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual-bg {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.1) 0%, transparent 70%);
  z-index: -1;
  animation: pulse 6s infinite alternate;
}

.visual-element {
  width: 100%;
  max-width: 480px;
  border-radius: 30px;
  box-shadow: 0 20px 50px rgba(0, 136, 204, 0.08);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  padding: 1.5rem;
  backdrop-filter: blur(10px);
}

/* --- Services Section --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.service-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: rgba(0, 210, 255, 0.06);
  border: 1px solid rgba(0, 210, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1.75rem;
  margin-bottom: 1.75rem;
  transition: var(--transition-normal);
}

.service-card:hover .service-icon {
  background: var(--gradient-primary);
  color: var(--bg-primary);
  box-shadow: var(--shadow-glow);
}

.service-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.service-text {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.service-link i {
  transition: var(--transition-fast);
}

.service-card:hover .service-link i {
  transform: translateX(4px);
}

/* --- Action Plan (Timeline) --- */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--border-color);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 2rem 3rem;
  box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-badge {
  position: absolute;
  top: 2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  z-index: 2;
  transition: var(--transition-normal);
}

.timeline-item:nth-child(odd) .timeline-badge {
  right: -20px;
}

.timeline-item:nth-child(even) .timeline-badge {
  left: -20px;
}

.timeline-item:hover .timeline-badge {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-glow);
  background: var(--color-primary);
  color: var(--bg-primary);
}

.timeline-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  transition: var(--transition-normal);
}

.timeline-panel:hover {
  border-color: var(--border-color-hover);
  background: var(--bg-card-hover);
}

.timeline-panel h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--color-white);
}

.timeline-panel p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* --- Integrations Section --- */
.integrations-wrapper {
  position: relative;
  overflow: hidden;
  padding: 2rem 0;
  width: 100%;
}

.integrations-slider {
  display: flex;
  width: max-content;
  animation: slide-scroll 35s linear infinite;
  gap: 2rem;
}

.integrations-slider:hover {
  animation-play-state: paused;
}

.integration-item {
  width: 130px;
  height: 70px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
  filter: grayscale(100%) opacity(60%);
  padding: 0.8rem;
}

.integration-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.integration-item:hover {
  filter: grayscale(0%) opacity(100%);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.05);
}

/* --- Clients Section --- */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.client-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.client-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.client-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
  border: 1px solid rgba(0, 210, 255, 0.2);
  background: rgba(0, 210, 255, 0.04);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  text-transform: uppercase;
}

.client-name {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  color: var(--color-white);
}

.client-desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

/* --- FAQ Section --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: var(--bg-card);
  overflow: hidden;
  transition: var(--transition-normal);
}

.faq-item:hover {
  border-color: var(--border-color-hover);
}

.faq-question {
  width: 100%;
  padding: 1.5rem 2rem;
  background: none;
  border: none;
  outline: none;
  text-align: left;
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-icon {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  transition: var(--transition-normal);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease-out;
}

.faq-answer-inner {
  padding: 0 2rem 1.5rem 2rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item.active {
  border-color: var(--color-primary);
  background: var(--bg-card-hover);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--color-primary);
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

/* --- Contacts Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-info-title {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.contact-info-desc {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-method-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.contact-method-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(0, 210, 255, 0.05);
  border: 1px solid rgba(0, 210, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-method-details h4 {
  font-size: 1rem;
  color: var(--color-white);
  margin-bottom: 0.25rem;
}

.contact-method-details p,
.contact-method-details a {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.contact-method-details a:hover {
  color: var(--color-primary);
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 3rem;
  backdrop-filter: blur(20px);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-main);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.85rem 1.2rem;
  color: var(--color-text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(0, 136, 204, 0.1);
  background: #ffffff;
}

textarea.form-input {
  min-height: 120px;
  resize: vertical;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.9rem;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.form-status.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.form-input.invalid {
  border-color: #ef4444;
}

/* --- Footer --- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 5rem 0 2rem 0;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin: 1.5rem 0;
  max-width: 320px;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: var(--transition-fast);
}

.social-link:hover {
  background: var(--color-primary);
  color: var(--bg-primary);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.footer-nav-title {
  font-size: 1.1rem;
  color: var(--color-white);
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-links a {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--color-primary);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* --- Keyframe Animations --- */
@keyframes pulse {
  0% {
    transform: scale(0.95);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

@keyframes slide-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* --- Responsive Styling --- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

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

  .section {
    padding: 4rem 0;
  }

  .hero-title {
    font-size: 2.75rem;
  }

  .timeline::before {
    left: 40px;
  }

  .timeline-item {
    width: 100%;
    padding: 1.5rem 0 1.5rem 80px;
  }

  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    left: 0;
    text-align: left;
  }

  .timeline-badge {
    left: 20px !important;
    right: auto !important;
  }

  .hamburger {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    flex-direction: column;
    justify-content: center;
    gap: 3rem;
    transition: var(--transition-slow);
    z-index: 100;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    opacity: 0;
    transform: translateX(50px);
    transition: var(--transition-slow);
  }

  .nav-links.active li {
    opacity: 1;
    transform: translateX(0);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: span 2;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.25rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: span 1;
  }
}

/* ===== PREMIUM INTERACTIVE STYLING ===== */

/* 1. Cursor Glow Spotlight */
.cursor-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.08) 0%, rgba(0, 32, 96, 0.04) 40%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 1;
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* 2. 3D Card Tilt */
.tilt-card {
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg) scale(1);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.tilt-card > * {
  transform: translateZ(20px);
}

/* 3. WebGL Canvas Positioning */
#bg-shader-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
  opacity: 0.6;
}

/* 4. Language Selector Dropdown */
.lang-selector {
  position: relative;
  display: inline-block;
  margin-left: 1rem;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid var(--border-color);
  color: var(--color-text-main);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.lang-btn:hover {
  border-color: var(--border-color-hover);
  background: rgba(15, 23, 42, 0.06);
}

.lang-btn svg {
  transition: transform var(--transition-fast);
}

.lang-selector:hover .lang-btn svg {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  padding: 0.4rem 0;
  min-width: 140px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-normal);
  z-index: 110;
}

.lang-selector:hover .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-family: var(--font-body);
  transition: var(--transition-fast);
  cursor: pointer;
  font-weight: 500;
}

.lang-item:hover {
  background: var(--bg-secondary);
  color: var(--color-text-main);
}

.lang-item.active {
  color: var(--color-primary);
  font-weight: 600;
}

.lang-flag {
  font-size: 1.1rem;
  line-height: 1;
}

/* Ensure navbar list accommodates lang selector */
.nav-container {
  display: flex;
  align-items: center;
}

