/* ========================================
   ProActys - Comprehensive CSS Framework
   Production-Quality Elementor-Like Design
   ======================================== */

/* ========================================
   1. CSS RESET & BASE STYLES
   ======================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', 'Segoe UI', Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--white);
  overflow-x: hidden;
  animation: pageLoadFadeIn 0.8s ease-out;
}

img, video, svg {
  max-width: 100%;
  height: auto;
}

/* ========================================
   2. CSS VARIABLES - BRAND COLORS & TIMINGS
   ======================================== */

:root {
  --blue: #4285F4;
  --dark: #364052;
  --ice: #E1E8F0;
  --navy: #051229;
  --white: #FFFFFF;
  --silver: #FFFFFF;
  --font: 'Inter', 'Segoe UI', Arial, Helvetica, sans-serif;

  /* Extended palette */
  --gray: #364052;
  --light-blue: #4285F4;
  --blue-glow: rgba(66, 133, 244, 0.15);
  --bg-soft: #F8FAFD;
  --accent-green: #10B981;
  --accent-orange: #F97316;
  --accent-violet: #8B5CF6;
  --accent-teal: #14B8A6;

  /* Border-radius system */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-pill: 20px;

  /* Shadow system */
  --shadow-subtle: 0 2px 8px rgba(5,18,41,0.06);
  --shadow-medium: 0 4px 16px rgba(5,18,41,0.10);
  --shadow-strong: 0 8px 32px rgba(5,18,41,0.12);

  /* Animation timings */
  --transition-fast: 0.3s ease-out;
  --transition-normal: 0.6s ease-out;
  --transition-slow: 0.8s ease-out;
}

/* ========================================
   3. TYPOGRAPHY
   ======================================== */

h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 0.8rem;
}

h4, h5, h6 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.8rem;
}

p {
  font-size: 1rem;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 1rem;
}

small {
  font-size: 0.875rem;
  color: var(--dark);
  font-weight: 400;
}

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

a:hover:not(.btn-primary):not(.btn-outline):not(.btn-secondary):not(.btn):not(.projects-cta):not(.nav-cta):not(.cta-btn-light) {
  color: #3366d6;
}

/* ========================================
   4. SCROLL PROGRESS BAR
   ======================================== */

.scroll-progress {
  display: none;
}

/* ========================================
   5. NAVIGATION
   ======================================== */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1rem 2rem;
  background-color: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  transition: all var(--transition-fast);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1340px;
}

nav.scrolled {
  background-color: var(--white);
  box-shadow: var(--shadow-subtle);
  padding: 0.75rem 2rem;
}

.nav-logo {
  font-family: 'Lora', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-logo a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

nav.scrolled .nav-logo {
  color: var(--dark);
}

/* Logo variant toggling: dark variant visible by default (transparent nav over dark hero),
   light variant visible when nav is scrolled (white background) */
.nav-logo .logo-light { display: none; }
.nav-logo .logo-dark { display: flex; align-items: center; gap: 8px; }
nav.scrolled .nav-logo .logo-light { display: flex; align-items: center; gap: 8px; }
nav.scrolled .nav-logo .logo-dark { display: none; }

.nav-menu {
  display: flex;
  gap: 2.2rem;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: var(--white);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 0.25rem;
  text-decoration: none;
}

nav.scrolled .nav-menu a {
  color: var(--dark);
}

/* Active page indicator */
.nav-menu a.active {
  color: var(--blue) !important;
}

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

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--light-blue));
  transition: width var(--transition-fast);
}

.nav-menu a:hover::after {
  width: 100%;
}

/* Dropdown Services */
.nav-item.has-dropdown { position: relative; }
.nav-dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: var(--white); border: 1px solid var(--ice); border-radius: 16px;
  box-shadow: 0 8px 30px rgba(5,18,41,0.12); padding: 0.6rem 0;
  min-width: 220px; opacity: 0; visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease;
  transform: translateX(-50%) translateY(8px); z-index: 100;
}
.nav-item.has-dropdown:hover .nav-dropdown {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  display: block; padding: 0.55rem 1.4rem; color: var(--dark);
  font-size: 0.88rem; font-weight: 500; text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-dropdown a::after { display: none; }
.nav-dropdown a:hover { background: rgba(66,133,244,0.06); color: var(--blue); }
.nav-dropdown a.active { color: var(--blue); font-weight: 600; }

/* GET IN TOUCH button */
.nav-cta {
  border: 2px solid var(--white);
  color: var(--white);
  padding: 0.5rem 1.4rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-cta:hover {
  background-color: var(--white);
  color: var(--navy);
}

nav.scrolled .nav-cta {
  border-color: var(--blue);
  color: var(--blue);
}

nav.scrolled .nav-cta:hover {
  background-color: #5A9CF5;
  border-color: #5A9CF5;
  color: var(--white);
  box-shadow: 0 8px 25px rgba(66, 133, 244, 0.45);
  transform: translateY(-2px);
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 1rem;
  flex-shrink: 0;
}
.lang-switcher a {
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.5px;
  padding: 2px 4px;
  border-radius: 8px;
  transition: all var(--transition-fast);
}
.lang-switcher a:hover {
  color: var(--white);
}
.lang-switcher a.active-lang {
  color: var(--white);
  background: rgba(255,255,255,0.15);
}
.lang-switcher .lang-sep {
  color: rgba(255,255,255,0.3);
  font-size: 0.65rem;
  user-select: none;
}
nav.scrolled .lang-switcher a {
  color: rgba(0,0,0,0.35);
}
nav.scrolled .lang-switcher a:hover {
  color: var(--dark);
}
nav.scrolled .lang-switcher a.active-lang {
  color: var(--dark);
  background: rgba(0,0,0,0.08);
}
nav.scrolled .lang-switcher .lang-sep {
  color: rgba(0,0,0,0.2);
}

/* German nav: slightly tighter spacing for longer words */
html[lang="de"] .nav-menu {
  gap: 1.8rem;
}
html[lang="de"] .nav-menu a {
  font-size: 0.88rem;
  letter-spacing: 0.45px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 0.4rem;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--white);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

nav.scrolled .nav-toggle span {
  background-color: var(--dark);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ========================================
   6. HERO SECTION
   ======================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding-top: 80px;
  overflow: hidden;
}

/* hero-photo removed — replaced by animated .hero-glow orbs in index.html */

.hero::after {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
  animation: fadeInUp 0.8s ease-out;
}

.hero h1 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.hero p {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.typed-text {
  display: inline-block;
  color: var(--blue);
}

.typed-text::after {
  content: '|';
  animation: blink 0.7s infinite;
  margin-left: 2px;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* ========================================
   7. SECTIONS & CONTAINERS
   ======================================== */

section {
  padding: 80px 2rem;
  margin: 0 auto;
}

section:nth-child(even):not(.hero):not(.services-hero):not(.contact-hero):not(.policy-hero):not(.policy-content) {
  background: linear-gradient(180deg, var(--ice) 0%, #dae3ed 100%);
}

section:nth-child(odd):not(.hero):not(.services-hero):not(.contact-hero):not(.policy-hero):not(.policy-content) {
  background: linear-gradient(180deg, var(--white) 0%, var(--bg-soft) 100%);
}

.container {
  max-width: 1340px;
  margin: 0 auto;
  width: 100%;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  color: var(--dark);
  margin-bottom: 0.5rem;
}

/* ========================================
   8. CARDS
   ======================================== */

.card {
  background-color: var(--white);
  border: 1px solid var(--ice);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-subtle);
  transition: all var(--transition-fast);
  overflow: hidden;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--light-blue));
  opacity: 0;
  transition: opacity var(--transition-fast);
  border-radius: 16px 10px 0 0;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(66, 133, 244, 0.15), 0 4px 12px rgba(0, 0, 0, 0.06);
  border-color: rgba(66, 133, 244, 0.2);
}

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

.card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  transition: transform var(--transition-fast);
}

.card:hover img {
  transform: scale(1.05);
}

.card h3 {
  margin-bottom: 0.8rem;
}

.card p {
  color: var(--dark);
  margin-bottom: 1rem;
}

/* ========================================
   9. BUTTONS
   ======================================== */

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  text-decoration: none;
  font-size: 1rem;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(66, 133, 244, 0.25);
}

.btn-primary:hover {
  background: #5A9CF5;
  color: var(--white);
  box-shadow: 0 8px 25px rgba(66, 133, 244, 0.45);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--ice);
  color: var(--dark);
}

.btn-secondary:hover {
  background-color: #d0d7e0;
}

.btn-outline {
  background-color: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}

.btn-outline:hover {
  background-color: var(--blue);
  color: var(--white);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

/* ========================================
   10. GRID SYSTEM
   ======================================== */

.grid {
  display: grid;
  gap: 2rem;
  width: 100%;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ========================================
   11. ANIMATION CLASSES - INTERSECTION OBSERVER
   ======================================== */

.hidden {
  opacity: 0;
}

.visible {
  opacity: 1;
  transition: all var(--transition-slow);
}

.fade-in-up {
  transform: translateY(40px);
}

.fade-in-up.visible {
  transform: translateY(0);
}

.fade-in-left {
  transform: translateX(-40px);
}

.fade-in-left.visible {
  transform: translateX(0);
}

.fade-in-right {
  transform: translateX(40px);
}

.fade-in-right.visible {
  transform: translateX(0);
}

.scale-in {
  transform: scale(0.9);
}

.scale-in.visible {
  transform: scale(1);
}

.slide-in-bottom {
  transform: translateY(60px);
}

.slide-in-bottom.visible {
  transform: translateY(0);
}

/* Stagger delays for sequential animations */
.delay-1 { transition-delay: 150ms; }
.delay-2 { transition-delay: 300ms; }
.delay-3 { transition-delay: 450ms; }
.delay-4 { transition-delay: 600ms; }
.delay-5 { transition-delay: 750ms; }
.delay-6 { transition-delay: 900ms; }

/* ========================================
   12. (Reserved)
   ======================================== */

/* ========================================
   14. ACCORDION
   ======================================== */

.accordion-item {
  background-color: var(--white);
  border: 1px solid var(--ice);
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.accordion-header {
  padding: 1.25rem;
  background: linear-gradient(135deg, var(--ice), #eaf0f7);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--dark);
  transition: all var(--transition-fast);
  user-select: none;
  border-left: 3px solid transparent;
}

.accordion-header:hover {
  background: linear-gradient(135deg, #d0d7e0, #dfe6ed);
  border-left-color: var(--blue);
}

.accordion-item.active .accordion-header {
  border-left-color: var(--blue);
}

.accordion-toggle {
  display: inline-block;
  transition: transform var(--transition-fast);
  font-size: 1.25rem;
}

.accordion-item.active .accordion-toggle {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-fast);
  background-color: var(--white);
}

.accordion-item.active .accordion-content {
  max-height: 500px;
  padding: 1.25rem;
}

/* ========================================
   15. PROCESS STEPS
   ======================================== */

.process-step {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  position: relative;
}

.process-step::before {
  content: '';
  position: absolute;
  left: 39px;
  top: 80px;
  width: 2px;
  height: calc(100% + 2rem);
  background-color: var(--ice);
}

.process-step:last-child::before {
  display: none;
}

.process-step-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--light-blue));
  color: var(--white);
  font-weight: 700;
  font-size: 1.5rem;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
}

.process-step-content h3 {
  color: var(--dark);
}

/* ========================================
   16. FOOTER
   ======================================== */

footer {
  background: linear-gradient(135deg, var(--navy) 0%, #0a2240 50%, #0d1f3c 100%);
  color: var(--white);
  padding: 60px 2rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  max-width: 1340px;
  margin: 0 auto 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(66, 133, 244, 0.15);
}

.footer-column h4 {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-column a {
  color: var(--white);
  display: block;
  margin-bottom: 0.75rem;
  transition: color var(--transition-fast);
}

.footer-column a:hover {
  color: var(--blue);
}

.footer-bottom {
  max-width: 1340px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  color: var(--white);
  font-size: 0.9rem;
}

.footer-bottom p:nth-child(2) {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

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

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  transition: all var(--transition-fast);
}

.social-links a:hover {
  background: linear-gradient(135deg, var(--blue), var(--light-blue));
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.4);
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--ice);
  border-radius: 8px;
  font-family: var(--font);
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--white);
}

.newsletter-form input::placeholder {
  color: rgba(255,255,255,0.5);
}

.newsletter-form button {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--blue), #5a9cf5);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.newsletter-form button:hover {
  background: linear-gradient(135deg, #3366d6, var(--blue));
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.4);
}

/* ========================================
   17. BACK TO TOP BUTTON
   ======================================== */

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background-color: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  z-index: 99;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.4);
}

.back-to-top:hover {
  background-color: #3366d6;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(66, 133, 244, 0.6);
}

.back-to-top.show {
  display: flex;
}

/* ========================================
   18. UTILITY CLASSES
   ======================================== */

.text-center {
  text-align: center;
}

.text-blue {
  color: var(--blue);
}

.text-white {
  color: var(--white);
}

.text-silver {
  color: var(--white);
}

.bg-navy {
  background-color: var(--navy);
}

.bg-ice {
  background-color: var(--ice);
}

.bg-white {
  background-color: var(--white);
}

/* Margin utilities */
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.py-1 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-4 { padding-top: 2rem; padding-bottom: 2rem; }

.px-1 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2 { padding-left: 1rem; padding-right: 1rem; }
.px-3 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-4 { padding-left: 2rem; padding-right: 2rem; }

/* ========================================
   19. PAGE LOAD ANIMATION
   ======================================== */

@keyframes pageLoadFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

/* ========================================
   20. RESPONSIVE DESIGN - TABLET (768px-1024px)
   ======================================== */

@media (max-width: 1024px) {
  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.35rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  section {
    padding: 60px 1.5rem;
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  nav {
    padding: 1rem 1.5rem;
  }

  .nav-menu {
    gap: 2rem;
  }
}

/* ========================================
   21. RESPONSIVE DESIGN - MOBILE (<768px)
   ======================================== */

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: var(--white);
    padding: 2rem 1.5rem;
    gap: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 99;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-item {
    text-align: center;
    width: 100%;
  }

  .nav-menu a {
    color: var(--dark);
  }

  nav.scrolled .nav-menu a {
    color: var(--dark);
  }

  .nav-cta {
    display: none;
  }

  .lang-switcher {
    margin-left: auto;
    margin-right: 1rem;
  }
  .lang-switcher a {
    color: rgba(255,255,255,0.5);
  }
  .lang-switcher a.active-lang {
    color: var(--white);
    background: rgba(255,255,255,0.15);
  }
  nav.scrolled .lang-switcher a {
    color: rgba(0,0,0,0.35);
  }
  nav.scrolled .lang-switcher a.active-lang {
    color: var(--dark);
    background: rgba(0,0,0,0.08);
  }

  /* Mobile dropdown - always visible, no flyout */
  .nav-dropdown {
    position: static; transform: none; box-shadow: none; border: none;
    background: transparent; opacity: 1; visibility: visible;
    padding: 0; min-width: auto;
    display: flex; flex-direction: column; align-items: center;
  }
  .nav-dropdown a { color: var(--dark); padding: 0.4rem 0; font-size: 0.82rem; }
  .nav-dropdown a:hover, .nav-dropdown a.active { color: var(--blue); background: transparent; }

  /* On mobile: keep default logo logic (dark-bg logo when not scrolled, light-bg logo when scrolled).
     The dropdown menu has its own white bg, but the nav bar stays transparent until scroll. */

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  h3 {
    font-size: 1rem;
  }

  .hero {
    min-height: 80vh;
    padding-top: 60px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  section {
    padding: 40px 1.5rem;
  }

  .section-title {
    margin-bottom: 2rem;
  }

  .container {
    padding: 0 1rem;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 1.5rem;
  }

  .btn {
    padding: 0.65rem 1.5rem;
    font-size: 0.95rem;
  }

  .process-step {
    gap: 1.5rem;
  }

  .process-step-circle {
    width: 60px;
    height: 60px;
    font-size: 1.25rem;
  }

  .process-step::before {
    left: 29px;
  }

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

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

  .footer-bottom p:nth-child(2) {
    position: static;
    transform: none;
  }

  .back-to-top {
    width: 45px;
    height: 45px;
    bottom: 1.5rem;
    right: 1.5rem;
    font-size: 1.1rem;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form button {
    width: 100%;
  }
}

/* ========================================
   22. RESPONSIVE DESIGN - SMALL MOBILE (<480px)
   ======================================== */

@media (max-width: 480px) {
  h1 {
    font-size: 1.3rem;
  }

  h2 {
    font-size: 1.1rem;
  }

  h3 {
    font-size: 0.95rem;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  section {
    padding: 30px 1rem;
  }

  .container {
    padding: 0 0.75rem;
  }

  .btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
  }

  .btn-lg {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }

  .card {
    padding: 1.25rem;
  }

  .footer-grid {
    gap: 1.25rem;
  }

  footer {
    padding: 2.5rem 1rem 1.5rem;
  }
}

/* ========================================
   23. ACCESSIBILITY & PRINT STYLES
   ======================================== */

@media print {
  nav,
  .back-to-top,
  .scroll-progress {
    display: none;
  }

  body {
    background-color: var(--white);
    color: var(--dark);
  }

  a {
    color: var(--dark);
  }
}

/* Focus states for accessibility */
button:focus,
a:focus,
input:focus {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* ========================================
   24. ACCENT COLORS & VIBRANCY ENHANCEMENTS
   ======================================== */

/* Accent color utilities for icons & badges */
.accent-green { color: var(--accent-green); }
.accent-orange { color: var(--accent-orange); }
.accent-violet { color: var(--accent-violet); }
.accent-teal { color: var(--accent-teal); }

/* Glowing icon containers */
.icon-box {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  transition: all var(--transition-fast);
}

.icon-box-blue {
  background: rgba(66, 133, 244, 0.1);
  color: var(--blue);
}

.icon-box-green {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-green);
}

.icon-box-orange {
  background: rgba(249, 115, 22, 0.1);
  color: var(--accent-orange);
}

.icon-box-violet {
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent-violet);
}

.icon-box-teal {
  background: rgba(20, 184, 166, 0.1);
  color: var(--accent-teal);
}

.card:hover .icon-box-blue { background: rgba(66, 133, 244, 0.18); }
.card:hover .icon-box-green { background: rgba(16, 185, 129, 0.18); }
.card:hover .icon-box-orange { background: rgba(249, 115, 22, 0.18); }
.card:hover .icon-box-violet { background: rgba(139, 92, 246, 0.18); }
.card:hover .icon-box-teal { background: rgba(20, 184, 166, 0.18); }

/* CTA section gradient for dark sections */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, #0a2240 50%, #112d4e 100%);
}

/* Typed text glow */
.typed-text {
  text-shadow: 0 0 20px rgba(66, 133, 244, 0.3);
}

/* Link hover with vibrancy */
a:hover:not(.btn-primary):not(.btn-outline):not(.btn-secondary):not(.btn):not(.projects-cta):not(.nav-cta):not(.cta-btn-light) {
  color: var(--light-blue);
}

/* Footer link hover */
.footer-column a:hover {
  color: var(--light-blue);
  padding-left: 4px;
}

/* ========================================
   End of CSS Framework
   ======================================== */
