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

:root {
  /* Color Palette */
  --bg-primary: #031029;      /* Deepest Navy */
  --bg-secondary: #0F1B2A;    /* Dark Blue Section */
  --bg-card: #162436;         /* Card Background */
  --bg-input: #1a2a40;        /* Input Background */
  
  --accent-steel: #1B2C42;    /* Scrolled Header / UI Elements */
  --accent-glow: #203E65;     /* Border Active / Outline */
  --accent-cyan: #00d084;     /* Brand Highlight Cyan/Green */
  --accent-blue: #0693e3;     /* Brand Blue */
  
  --text-primary: #ffffff;    /* Primary White Text */
  --text-secondary: #a0aec0;  /* Muted Slate Text */
  --text-muted: #606A7E;      /* Secondary Description Text */
  
  --color-error: #d93025;     /* Validation Error Red */
  --color-error-bg: rgba(217, 48, 37, 0.1);
  --color-success: #188038;   /* Validation Success Green */
  --color-success-bg: rgba(24, 128, 56, 0.1);

  /* Typography */
  --font-sans: 'Inter', sans-serif;
  --font-title: 'Roboto', sans-serif;
  
  /* Utilities */
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width-content: 1200px;
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  font-size: 16px;
}

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

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-card);
  border: 2px solid var(--bg-primary);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-steel);
}

/* Containers */
.container {
  width: 100%;
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 7rem 0;
  position: relative;
  overflow: hidden;
}

.section-dark {
  background-color: var(--bg-secondary);
}

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

.section-tag {
  color: var(--accent-cyan);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  display: inline-block;
}

.section-title {
  font-size: 2.5rem;
  line-height: 1.2;
}

.section-desc {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 1rem auto 0 auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-family: var(--font-sans);
  font-weight: 500;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-cyan) 100%);
  color: var(--text-primary);
  box-shadow: 0 4px 15px rgba(0, 208, 132, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 208, 132, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--accent-glow);
}

.btn-secondary:hover {
  background-color: rgba(32, 62, 101, 0.3);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-smooth);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(3, 16, 41, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.header.scrolled {
  background: linear-gradient(180deg, var(--accent-steel) 0%, var(--bg-secondary) 100%);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo img {
  height: 40px;
  width: auto;
  display: block;
}

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

.nav-links a {
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 0.95rem;
  position: relative;
  padding: 0.5rem 0;
}

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

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

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

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--accent-glow);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.lang-switch:hover {
  border-color: var(--accent-cyan);
  background-color: rgba(255, 255, 255, 0.05);
}

.social-icons-header {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.social-icon-circle {
  width: 38px;
  height: 38px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition-smooth);
}
.social-icon-circle img,
.social-icon-circle .social-icon-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  transition: var(--transition-smooth);
}

.social-icon-circle:hover {
  background-color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

.social-icon-circle:hover img,
.social-icon-circle:hover .social-icon-img {
  filter: brightness(0);
}

.burger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
}

.burger-bar {
  position: absolute;
  height: 2px;
  width: 100%;
  background-color: var(--text-primary);
  border-radius: 2px;
  left: 0;
  transition: var(--transition-smooth);
}

.burger-bar:nth-child(1) { top: 0; }
.burger-bar:nth-child(2) { top: 11px; }
.burger-bar:nth-child(3) { top: 22px; }

.burger-menu.active .burger-bar:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}
.burger-menu.active .burger-bar:nth-child(2) {
  opacity: 0;
}
.burger-menu.active .burger-bar:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  height: calc(100vh - 80px);
  background-color: rgba(3, 16, 41, 0.98);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  backdrop-filter: blur(20px);
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}

.mobile-nav-links a {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.mobile-nav-links a:hover {
  color: var(--text-primary);
}

/* Hero Section */
.hero-scroll-track {
  position: relative;
  background-color: var(--bg-primary);
}

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 8rem;
  padding-bottom: 5rem;
}

.hero-glow {
  position: absolute;
  top: -10%;
  right: -10%;
  width: 50%;
  height: 60%;
  background: radial-gradient(circle, rgba(0, 208, 132, 0.08) 0%, rgba(6, 147, 227, 0.03) 70%, transparent 100%);
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 4rem;
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text-primary) 30%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

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

.hero-image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  overflow: hidden;
  border-radius: var(--border-radius-md);
}

.hero-image {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  filter: drop-shadow(0px 20px 40px rgba(0, 0, 0, 0.4));
  border-radius: var(--border-radius-md);
}

@media (min-width: 1025px) {
  .hero-scroll-track {
    height: 280vh; /* Increased scroll track distance for prolonged video scrub pinning */
  }

  .hero {
    position: sticky;
    top: 80px; /* Pin right below the fixed header */
    height: calc(85vh - 150px); /* Height reduced by 15% from calc(100vh - 180px) */
    display: flex;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
  }

  .hero-grid {
    display: grid !important;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 4rem;
    height: 100%;
    width: 100%;
    position: static !important; /* Remove position relative to allow video absolute pin to viewport right edge */
    z-index: 1;
  }

  .hero-content {
    width: 100%;
    position: relative;
    z-index: 2;
  }
  
  .hero-image-wrap {
    position: absolute;
    right: 0; /* Aligned strictly to the right screen edge */
    top: 0;
    height: 100% !important; /* Spans the full height of the hero block */
    max-height: 100% !important;
    width: auto !important;
    z-index: 1; /* Place behind the text in case they overlap */
    display: flex;
    justify-content: flex-end;
    align-items: center;
    pointer-events: none; /* Let user clicks pass through if needed */
  }

  .hero-image {
    width: auto !important; /* Auto width to preserve aspect ratio without cropping */
    height: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important; /* Preserves 16:9 ratio, no cropping */
    filter: none !important;
    opacity: 1; /* Full brightness */
    border-radius: var(--border-radius-md);
  }

  #about {
    position: sticky;
    top: calc(85vh - 70px); /* Matches new natural offset, preventing any jump upon scrolling */
    height: auto;
    z-index: 2;
  }
}

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

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-content h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.about-text {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.stat-item {
  background-color: var(--bg-card);
  padding: 1.5rem;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  transition: var(--transition-smooth);
}

.stat-item:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 208, 132, 0.2);
  box-shadow: 0 10px 20px rgba(0, 208, 132, 0.05);
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-cyan);
  font-family: var(--font-title);
  margin-bottom: 0.25rem;
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.about-image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.about-image {
  width: 100%;
  max-width: 450px;
  height: auto;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.3));
}

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

.service-card {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 2.5rem;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 15px rgba(6, 147, 227, 0.05);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon-box {
  width: 55px;
  height: 55px;
  background-color: rgba(6, 147, 227, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  border: 1px solid rgba(6, 147, 227, 0.2);
  transition: var(--transition-smooth);
}

.service-card:hover .service-icon-box {
  background-color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  transform: rotate(5deg) scale(1.05);
}

.service-icon-box svg {
  width: 26px;
  height: 26px;
  stroke: var(--accent-cyan);
  stroke-width: 1.5;
  transition: var(--transition-smooth);
}

.service-card:hover .service-icon-box svg {
  stroke: var(--bg-primary);
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  flex-grow: 1;
}

/* Advantages Section */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 5rem;
}

.adv-card {
  background-color: var(--bg-primary);
  border-radius: var(--border-radius-md);
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: var(--transition-smooth);
}

.adv-card:hover {
  background-color: var(--bg-card);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-5px);
}

.adv-icon {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  display: block;
}

.adv-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.adv-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Timeline: Roadmap to Cooperation */
.roadmap-wrap {
  margin-top: 6rem;
  position: relative;
}

.roadmap-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}

/* Timeline Horizontal Line */
.roadmap-grid::before {
  content: '';
  position: absolute;
  top: 35px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, rgba(6, 147, 227, 0.3) 0%, rgba(0, 208, 132, 0.3) 100%);
  z-index: 0;
}

.roadmap-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-num {
  width: 70px;
  height: 70px;
  background-color: var(--bg-card);
  border: 2px solid var(--accent-glow);
  color: var(--accent-cyan);
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  transition: var(--transition-smooth);
}

.roadmap-step:hover .step-num {
  background-color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: var(--bg-primary);
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(0, 208, 132, 0.3);
}

.roadmap-step h4 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.roadmap-step p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 0 0.5rem;
}

/* Form Section */
.form-section {
  position: relative;
  overflow: hidden;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: center;
}

.form-info h2 {
  font-size: 2.8rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.form-info p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

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

.form-contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.form-contact-item a:hover {
  color: var(--accent-cyan);
}

.form-contact-icon {
  width: 44px;
  height: 44px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.form-contact-icon img,
.form-contact-icon .form-contact-icon-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  opacity: 0.7;
  transition: var(--transition-smooth);
}

.form-contact-item:hover .form-contact-icon {
  border-color: var(--accent-cyan);
  background-color: rgba(0, 208, 132, 0.05);
}

.form-contact-item:hover .form-contact-icon img,
.form-contact-item:hover .form-contact-icon .form-contact-icon-img {
  filter: brightness(0) saturate(100%) invert(67%) sepia(85%) saturate(1478%) hue-rotate(124deg) brightness(94%) contrast(101%);
  opacity: 1;
}

.contact-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-value {
  font-weight: 500;
  font-size: 1.1rem;
}

/* Glassmorphism Form Wrapper */
.form-box {
  background: rgba(22, 36, 54, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

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

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

.form-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  background-color: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  padding: 0.9rem 1.2rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-smooth);
  outline: none;
}

.form-control:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 2px rgba(6, 147, 227, 0.15);
  background-color: rgba(22, 36, 54, 0.8);
}

textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

/* Input validation styles (interaction-only validation feedback) */
input.form-control:user-invalid,
select.form-control:user-invalid,
textarea.form-control:user-invalid {
  border-color: var(--color-error);
  background-color: var(--color-error-bg);
}

input.form-control:user-valid,
select.form-control:user-valid,
textarea.form-control:user-valid {
  border-color: var(--color-success);
  background-color: rgba(24, 128, 56, 0.02);
}

.error-message {
  display: none;
  color: var(--color-error);
  font-size: 0.8rem;
  margin-top: 0.4rem;
}

.form-control:user-invalid + .error-message {
  display: block;
  animation: fadeIn 0.2s ease-in-out;
}

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

/* Fallback support for validation */
.form-control.user-invalid-fallback {
  border-color: var(--color-error);
  background-color: var(--color-error-bg);
}
.form-control.user-invalid-fallback + .error-message {
  display: block;
}
.form-control.user-valid-fallback {
  border-color: var(--color-success);
}

/* Dropdown styling */
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a0aec0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
  background-size: 1.2em;
  padding-right: 2.5rem;
}

/* Form success message */
.form-success-alert {
  display: none;
  background-color: var(--color-success-bg);
  border: 1px solid var(--color-success);
  color: var(--text-primary);
  border-radius: var(--border-radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.form-success-alert h4 {
  color: #81c784;
  margin-bottom: 0.5rem;
}

/* Footer */
.footer {
  background-color: #020917;
  padding: 5rem 0 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

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

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 1.5rem;
  max-width: 250px;
}

.footer-logo img {
  height: 40px;
  width: auto;
}

.footer-col h4 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

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

.footer-links a:hover {
  color: var(--accent-cyan);
  padding-left: 5px;
}

.footer-contacts p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.footer-contacts a:hover {
  color: var(--accent-cyan);
}

.social-icons-footer {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}

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

.footer-legal-links a:hover {
  color: var(--text-primary);
}

/* Animations & Scroll Reveals (Progressive Enhancement) */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes revealUp {
      from {
        opacity: 0;
        transform: translateY(40px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* Target specific grids/cards to animate as they enter the scrollport */
    .services-grid > *,
    .about-stats > *,
    .advantages-grid > *,
    .roadmap-step {
      animation: revealUp auto cubic-bezier(0.16, 1, 0.3, 1) both;
      animation-timeline: view();
      animation-range: entry;
    }

    .about-content, .about-image-wrap, .form-info, .form-box {
      animation: revealUp auto cubic-bezier(0.16, 1, 0.3, 1) both;
      animation-timeline: view();
      animation-range: entry;
    }
  }
}

/* JS-based fallback class for animation reveals (applied via IntersectionObserver) */
@supports not ((animation-timeline: view()) and (animation-range: entry)) {
  .js-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .js-reveal.active {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  
  .hero-content h1 {
    font-size: 2.8rem;
  }
  
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-btn-group {
    justify-content: center;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .roadmap-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 2rem;
  }
  
  .roadmap-grid::before {
    display: none; /* Hide timeline horizontal line on tablet/mobile wraps */
  }
  
  .form-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 0 1.5rem;
  }
  
  .logo img {
    height: 28px !important; /* Shrink logo to prevent overlaps */
  }

  .burger-menu {
    display: block;
    z-index: 1001;
    width: 24px !important; /* Shrink burger menu icon */
    height: 18px !important;
  }

  .burger-bar {
    height: 2px !important;
    width: 100% !important;
  }

  .burger-bar:nth-child(1) { top: 0 !important; }
  .burger-bar:nth-child(2) { top: 8px !important; }
  .burger-bar:nth-child(3) { top: 16px !important; }

  .burger-menu.active .burger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg) !important;
  }
  .burger-menu.active .burger-bar:nth-child(2) {
    opacity: 0 !important;
  }
  .burger-menu.active .burger-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg) !important;
  }

  .lang-switch {
    font-size: 0.75rem !important; /* Compact lang switcher */
    padding: 0.2rem 0.5rem !important;
  }

  .header-right {
    gap: 0.75rem !important; /* Compact gap */
  }

  .nav-links, .social-icons-header {
    display: none;
  }
  
  .section {
    padding: 5rem 0;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .hero-content h1 {
    font-size: 2.3rem;
  }

  .hero {
    padding-bottom: 0 !important; /* Touch bottom of the screen with video on mobile */
  }

  .hero-btn-group {
    flex-direction: column !important; /* Stack buttons vertically */
    align-items: center !important;
    width: 100% !important;
    gap: 1rem !important;
  }

  .hero-btn-group .btn {
    width: 100% !important;
    max-width: 290px !important; /* Match widths */
    white-space: nowrap !important; /* Prevent text wrap inside button */
    justify-content: center !important;
  }

  .hero-image-wrap {
    width: calc(100% + 3rem) !important; /* Expand video to screen edges */
    margin-left: -1.5rem !important;
    margin-right: -1.5rem !important;
    border-radius: 0 !important;
  }

  .hero-image {
    width: 100% !important;
    max-height: 50vh !important;
    object-fit: cover !important;
    border-radius: 0 !important;
  }
  
  .about-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .advantages-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .roadmap-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .form-info h2 {
    font-size: 1.6rem !important; /* Shrink header to fit screen */
    line-height: 1.3 !important;
  }

  .form-box {
    padding: 2rem 1.5rem;
    width: 100% !important; /* Centered, symmetric margins */
    max-width: 100% !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}
