/* Base styles */
:root {
  /* Modern industrial color palette */
  --bg: #ffffff;
  --bg-soft: #f8f9fa;
  --card: #ffffff;
  --text: #1a202c;
  --muted: #4a5568;
  --primary: #2c5282; /* Industrial blue */
  --primary-600: #2b6cb0;
  --accent: #dd6b20; /* Orange accent */
  --accent-hover: #c05621;
  --light: #f7fafc;
  --border: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease;
  /* Spacing scale */
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
}

/* Compact, premium mobile layout */
@media (max-width: 480px){
  /* Nav menu tap targets */
  .menu a{padding: 12px 12px; line-height: 1.25; border-radius: 10px}
  .menu a + a{margin-top: 4px}
  
  /* Hero */
  .hero{padding: 48px 0 28px}
  .hero-title{font-size: clamp(24px, 7vw, 30px); line-height:1.12; margin-bottom: 6px}
  .hero-subtitle{font-size: 11px; letter-spacing: .12em; margin-bottom: 8px}
  .hero-divider{display:none}
  .hero-text{font-size: 14px; max-width: 90%; margin-bottom: 10px}
  .hero-cta{gap: 10px; margin-bottom: 12px}
  .hero .btn{min-width: 0; width: 100%; padding: 11px 14px; height: 46px; border-radius:12px; box-shadow:none}
  
  /* Features */
  .features{padding: 24px 0}
  .features-grid{grid-template-columns: 1fr; gap: 14px; padding: 0}
  .feature-card{padding: 16px 14px; border-radius: 14px}
  .feature-icon{width: 64px; height: 64px}
  .feature-card h3{font-size: 18px}
  .feature-card p{font-size: 14px}
  
  /* Partners */
  .partners-grid{grid-template-columns: repeat(2, 1fr); gap: 10px}
  .partner{padding: 10px; border-radius: 12px}
  .partner img{max-height: 30px}
  
  /* Gallery */
  .masonry{columns: 1; column-gap: 12px}
  .tile{margin-bottom: 12px; border-radius: 12px}
  
  /* Footer */
  .footer-inner{flex-direction: column; gap: 8px}
  .footer-nav{gap: 12px}
}

/* Ultra-compact for very small screens */
@media (max-width: 360px){
  .hero{padding: 64px 0 48px}
  .hero-title{font-size: 26px}
  .hero-text{font-size: 14px}
  .feature-card{padding: 16px 12px}
  .partner img{max-height: 26px}
}

/* Ensure mobile nav works consistently up to tablets */
@media (max-width: 1024px){
  .menu{display:flex;flex-direction:column}
  .menu[data-visible="false"]{transform:translateY(-150%)}
  .menu[data-visible="true"]{transform:translateY(0)}
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* Disable body scroll when mobile menu is open */
.no-scroll{overflow:hidden}
img{max-width:100%;display:block}
.container{width:min(1100px,92%);margin-inline:auto}

/* Dim backdrop when mobile menu is open */
body.no-scroll::before{
  content:'';position:fixed;inset:0;background:rgba(2,6,23,.5);z-index:900;pointer-events:none
}

/* Final partners override to ensure single row on desktop */
@media (min-width: 980px) {
  .partners .container { width: min(1600px, 96%) !important; }
  .partners .partners-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .partners .partner { flex: 1 1 0; min-width: 0; }
  .partners .partner img { max-height: 36px !important; height: auto; width: auto; }
}

/* Final override to guarantee 4-in-a-row on desktop (wins over later base rules) */
@media (min-width: 1100px) {
  .features .container { width: min(1440px, 96%); }
  .features .features-grid { grid-template-columns: repeat(4, minmax(0,1fr)) !important; column-gap: 1rem; row-gap: 1.25rem; padding: 0; }
  .features .feature-card { padding: 1.75rem 1.25rem; min-width: 0; margin: 0; }
}

/* Partners: one row on most desktops */
@media (min-width: 980px) {
  .partners .container { width: min(1600px, 96%); }
  .partners-grid {
    grid-template-columns: repeat(6, minmax(0,1fr));
    column-gap: 12px;
    row-gap: 12px;
    align-items: stretch;
  }
  .partner {
    min-width: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 12px; /* slightly tighter */
  }
  .partner img { max-height: 36px; margin: 6px auto 6px; }
  .partner figcaption { flex-grow: 1; font-size: 13px; }
}

/* Header */
.header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  z-index: 100;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.98);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  padding: 0 1rem;
}

.logo {
  color: var(--primary);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
}

.logo:hover {
  opacity: 0.9;
}

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

.logo-text {
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  font-size: 1.1em;
}

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

.menu a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  padding: 0.5rem 0;
  transition: var(--transition);
}

.menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

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

.menu a:hover::after,
.menu a.active::after {
  width: 100%;
}

/* Mobile menu button */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1000;
}

.burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* Language selector */
#langSwitcher {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 2.5rem 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background-color: #ffffff;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234b5563' stroke-width='2.5' 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 0.75rem center;
  background-size: 14px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  position: relative;
  z-index: 10;
  height: 40px;
  min-width: 90px;
  text-align: left;
}

#langSwitcher:hover {
  border-color: #cbd5e1;
  background-color: #f8fafc;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}

#langSwitcher:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

#langSwitcher option {
  padding: 0.5rem;
  background: white;
  color: #1e293b;
  font-size: 0.95em;
}

#langSwitcher option[value="bg"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='12' viewBox='0 0 16 12'%3E%3Crect width='16' height='12' fill='%23fff'/%3E%3Crect y='4' width='16' height='4' fill='%23000'/%3E%3Crect y='8' width='16' height='4' fill='%23d62612'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  padding-right: 2rem;
}

#langSwitcher option[value="en"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='12' viewBox='0 0 16 12'%3E%3Crect width='16' height='12' fill='%230f2043'/%3E%3Cpath d='M0,0 L16,0 L0,4.8 L0,0 Z M0,7.2 L16,12 L0,12 L0,7.2 Z' fill='%23fff'/%3E%3Cpath d='M0,4.8 L16,0 L16,4.8 L0,7.2 L0,4.8 Z M0,7.2 L16,12 L16,7.2 L0,4.8 L0,7.2 Z' fill='%23f7d618'/%3E%3Cpath d='M6.4,0 L9.6,0 L9.6,4.8 L16,4.8 L16,7.2 L9.6,7.2 L9.6,12 L6.4,12 L6.4,7.2 L0,7.2 L0,4.8 L6.4,4.8 L6.4,0 Z' fill='%23fff'/%3E%3Cpath d='M9.6,0 L6.4,0 L6.4,4.8 L0,4.8 L0,7.2 L6.4,7.2 L6.4,12 L9.6,12 L9.6,7.2 L16,7.2 L16,4.8 L9.6,4.8 L9.6,0 Z' fill='%23d62612'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  padding-right: 2rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  transition: var(--transition);
  cursor: pointer;
  text-align: center;
  line-height: 1.5;
}

/* Button Sizes */
.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

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

/* Button Variants */
.btn-primary {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-primary:hover {
  background: var(--primary-600);
  border-color: var(--primary-600);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-accent {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.btn-accent:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: rgba(44, 82, 130, 0.05);
  color: var(--primary-600);
  border-color: var(--primary-600);
}

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

.btn-ghost:hover {
  background: rgba(0, 0, 0, 0.02);
  border-color: var(--muted);
}

/* Button with icon */
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 50%;
}

.btn-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}
.btn-light{background:#111827;color:#ffffff}
/* Ghost button on dark backgrounds (hero) */
.btn-ghost.on-dark{color:#ffffff;border-color:rgba(255,255,255,.65)}
.btn-ghost.on-dark:hover{border-color:#ffffff;background:rgba(255,255,255,.08);color:#ffffff}

/* ====================
   HEADER & NAVIGATION
   ==================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.98);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  padding: 0 2rem;
  max-width: 1440px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  color: white;
  letter-spacing: 0.02em;
}

.logo-text-part1 {
  color: white;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.logo-text-part2 {
  color: var(--primary-600);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-left: 1px;
}

@media (min-width: 1025px) {
  .logo {
    font-size: 1.3rem;
    gap: 12px;
  }
}

.logo:hover {
  transform: translateX(3px);
}

.logo img {
  margin-right: 0.75rem;
  transition: transform 0.3s ease;
}

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

.logo-text {
  font-size: 1.1em;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.02em;
}

.menu {
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu a {
  position: relative;
  text-decoration: none;
  color: #475569;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  transition: width 0.3s ease;
}

.menu a:hover,
.menu a:focus {
  color: #1e40af;
  outline: none;
}

.menu a:hover::after,
.menu a:focus::after {
  width: 100%;
}

.menu a[aria-current="page"] {
  color: var(--primary);
  font-weight: 700;
}

.menu a[aria-current="page"]::after {
  width: 100%;
  background: var(--primary);
}

/* Burger menu */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #1e293b;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.burger[aria-expanded="true"] span:first-child {
  transform: translateY(9px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.burger[aria-expanded="true"] span:last-child {
  transform: translateY(-9px) rotate(-45deg);
}

/* Mobile menu */
@media (max-width: 1024px) {
  .nav {
    height: 70px;
    padding: 0 1.5rem;
  }
  /* Hide desktop dropdown in collapsed menu bar; show dedicated mobile one */
  .menu-actions { display: none !important; }
  .lang-mobile { display: inline-flex; margin-right: 4px; }
  .lang-mobile .lang-btn { height: 32px; padding: 0 4px; }
  /* Dark overlay menu for better contrast on hero */
  .menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #0f172a; /* dark navy */
    padding: 1rem 1.25rem;
    box-shadow: 0 16px 40px rgba(2,6,23,0.45);
    transform: translateY(-150%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 0 16px 16px;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    gap: 0.25rem;
    border-top: 1px solid rgba(255,255,255,.12);
  }
  
  .menu[data-visible="true"] {
    transform: translateY(0);
  }
  
  .menu a {
    padding: 0.9rem 1rem;
    border-radius: 10px;
    text-align: left;
    color: #e2e8f0; /* visible on dark bg */
  }
  .menu a:hover { color: #ffffff; background: rgba(255,255,255,.06); }
  
  .burger {
    display: flex;
  }
  
  .logo img {
    height: 32px;
  }
}

/* Desktop: hide the extra mobile dropdown */
@media (min-width: 1025px){
  .lang-mobile{display:none}
}

/* Sticky header on scroll */
@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

.header.scrolled {
  animation: slideDown 0.5s ease forwards;
}

/* Language switcher in header */
.nav #langSwitcher {
  margin-left: 1rem;
  margin-right: 1rem;
}

/* Active link */
.menu a[aria-current="page"] {
  color: #1e40af;
  font-weight: 600;
}

.menu a[aria-current="page"]::after {
  width: 100%;
}

/* ====================
   HERO SECTION
   ==================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
  color: #ffffff;
  overflow: hidden;
  padding: 0;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
  width: 100%;
  height: 100vh;
}

.hero * {
  color: #ffffff;
}

.hero h1, .hero h2, .hero h3, .hero h4, .hero h5, .hero h6 {
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  margin: 0;
  line-height: 1.2;
}

.hero p, .hero span:not(.btn), .hero a:not(.btn) {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  margin: 0;
}

.hero a:not(.btn):hover {
  color: #ffffff;
  text-decoration: none;
  opacity: 0.9;
}

.hero .container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  box-sizing: border-box;
}

.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  text-align: center;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  box-sizing: border-box;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-shadow: none;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 0.5rem;
  color: #ffffff;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hero-subtitle {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.95);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hero-text {
  font-size: clamp(1rem, 1.25vw, 1.25rem);
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 500;
}

.hero-cta {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-6);
  margin-bottom: var(--space-8);
}

.hero .btn {
  min-width: 200px;
  justify-content: center;
  font-weight: 600;
  text-shadow: none;
}

.hero-trust {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Tighter rhythm on medium and small screens */
@media (max-width: 1024px){
  section { padding: 60px 0; }
  .section-header { margin-bottom: var(--space-10); }
  .hero-cta { margin-bottom: var(--space-6); }
  .hero-trust { margin-top: var(--space-6); padding-top: var(--space-4); }
}

@media (max-width: 640px){
  section { padding: 44px 0; }
  .section-header { margin-bottom: var(--space-8); }
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

.trust-item svg {
  color: var(--accent);
  flex-shrink: 0;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  text-decoration: none;
  z-index: 10;
  animation: bounce 2s infinite;
  cursor: pointer;
}

.hero-scroll svg {
  width: 24px;
  height: 24px;
  color: rgba(255, 255, 255, 0.7);
  transition: transform 0.3s ease, color 0.3s ease;
}

.hero-scroll:hover {
  color: #ffffff;
}

.hero-scroll:hover svg {
  color: #ffffff;
  transform: translateY(5px);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-10px) translateX(-50%);
  }
  60% {
    transform: translateY(-5px) translateX(-50%);
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Darker, richer blue overlay */
  background:
    linear-gradient(135deg, rgba(12, 38, 74, 0.95) 0%, rgba(20, 62, 118, 0.95) 100%),
    url('../images/nachalna.png') center/cover no-repeat;
  z-index: 0;
  opacity: 1;
  background-blend-mode: multiply;
  /* Slight boost to saturation/contrast to avoid gray look */
  filter: saturate(1.2) contrast(1.08);
  background-attachment: fixed;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero {
    padding: 84px 0 64px;
    min-height: auto;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
  }
  
  .hero-text {
    font-size: 1rem;
    margin-bottom: 1.25rem;
  }
  
  .hero-cta {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .hero .btn {
    width: 100%;
  }
  
  .hero-trust {
    flex-direction: column;
    gap: .75rem;
    margin-top: 1.25rem;
  }
  
  .hero-scroll {
    display: none;
  }
}

/* Mobile/tablet: ensure image shows clearly (lighter gradient, no element opacity) */
@media (max-width: 1024px){
  /* Put the photo directly on the hero on mobile to avoid iOS rendering issues */
  .hero{
    background: transparent; /* image handled by overlay below */
    background-attachment: scroll;
    min-height: 72vh;
  }
  /* Make overlay transparent on mobile so it doesn't hide the photo */
  .hero-overlay{
    /* Match darker desktop tint on mobile */
    background:
      linear-gradient(135deg, rgba(12, 38, 74, 0.95) 0%, rgba(20, 62, 118, 0.95) 100%),
      url('../images/nachalna.png') center 30% / cover no-repeat;
    background-blend-mode: multiply;
    background-attachment: scroll;
    opacity: 1;
    filter: saturate(1.2) contrast(1.08);
  }
}

/* ====================
   SECTIONS & HEADERS
   ==================== */
section {
  padding: 80px 0; /* unified default */
  position: relative;
}

.section-header {
  max-width: 800px;
  margin: 0 auto var(--space-12);
  text-align: center;
  position: relative;
}

.section-tagline {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 1rem;
  position: relative;
  padding: 0 1rem;
}

.section-tagline::before,
.section-tagline::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
}

.section-tagline::before {
  left: -30px;
}

.section-tagline::after {
  right: -30px;
}

section h2 {
  font-size: clamp(1.875rem, 4.5vw, 2.75rem);
  margin: 0 0 1rem;
  line-height: 1.2;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto var(--space-8);
}

/* Accent underline for section titles */
section h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin: 1.5rem auto 0;
  opacity: 0.9;
}

/* ====================
   PAGE HEADER
   ==================== */
.page-header {
  position: relative;
  padding: 120px 0 80px;
  background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
  color: white;
  text-align: center;
  overflow: hidden;
}

.page-header-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.page-title {
  font-size: 2.8rem;
  font-weight: 800;
  margin: 0 0 1rem 0;
  line-height: 1.2;
  color: white;
}

.page-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 auto;
  max-width: 700px;
  line-height: 1.6;
}

.page-header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

/* ====================
   SERVICES SECTION
   ==================== */
/* Refreshed page header visuals (used by Services/Projects) */
.page-header {
  position: relative;
  padding: 140px 0 100px;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(59,130,246,.25), rgba(59,130,246,0) 60%),
    linear-gradient(135deg, rgba(15,23,42,.95) 0%, rgba(15,23,42,.86) 100%),
    url('../images/nachalna1.png') center/cover no-repeat;
  color: #fff;
}

.page-header .container { position: relative; z-index: 2; text-align: center; }

.page-title {
  font-size: clamp(2.2rem, 3.8vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 .75rem;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
}

.page-title::after {
  content: '';
  display: block;
  width: 70px;
  height: 3px;
  border-radius: 3px;
  margin: 16px auto 0;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.page-subtitle {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  color: rgba(255,255,255,.9);
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.7;
}

.page-header-overlay { background: linear-gradient(180deg, rgba(2,6,23,.25), rgba(2,6,23,.5)); }

@media (max-width: 768px) {
  .page-header { padding: 110px 0 70px; }
  .page-title::after { width: 54px; height: 2px; }
}
.services-section {
  padding: 5rem 0;
  background-color: #f8fafc;
}

.services-category {
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #1e293b;
  text-align: center;
  margin: 0 0 1rem 0;
  line-height: 1.2;
}

.section-description {
  font-size: 1.25rem;
  color: #64748b;
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(203, 213, 225, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border-color: rgba(59, 130, 246, 0.2);
}

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 1.75rem;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 1.25rem 0;
  text-align: center;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  flex-grow: 1;
}

.service-features li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  color: #475569;
  line-height: 1.6;
}

.service-features li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #3b82f6;
  font-weight: bold;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  border-radius: 16px;
  padding: 3rem 2rem;
  color: white;
  text-align: center;
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.cta-section h3 {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 1rem 0;
  color: white;
}

.cta-section p {
  font-size: 1.25rem;
  margin: 0 0 2rem 0;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .btn {
  font-size: 1.1rem;
  padding: 0.8rem 2rem;
  background: white;
  color: #1e40af;
  border: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cta-section .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-header {
    padding: 100px 0 60px;
  }
  
  .page-title {
    font-size: 2.4rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 640px) {
  .page-header {
    padding: 80px 0 50px;
  }
  
  .page-title {
    font-size: 2rem;
  }
  
  .page-subtitle,
  .section-description {
    font-size: 1.1rem;
  }
  
  .services-section {
    padding: 3rem 0;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .cta-section {
    padding: 2rem 1.5rem;
    margin-top: 2rem;
  }
  
  .cta-section h3 {
    font-size: 1.5rem;
  }
  
  .cta-section p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }
}

/* ====================
   NAVIGATION ENHANCEMENTS
   ==================== */
.header {
  background: rgba(15, 23, 42, 0.45); /* slate-900 at 45% */
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.header .nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.header.scrolled {
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 8px 30px rgba(2, 6, 23, 0.25);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

/* Make nav text highly visible on dark header */
.header .logo { color: #ffffff; }
.header .logo-text { color: #ffffff; }
.header .menu a,
.header .menu .nav-link { color: rgba(255, 255, 255, 0.9); }
.header .menu a:hover,
.header .menu .nav-link:hover { color: #ffffff; }
.header .menu a[aria-current="page"],
.header .menu .nav-link[aria-current="page"] { color: #ffffff; }
.header .burger span { background: #ffffff; }

/* Language switcher styling on dark header */
.header #langSwitcher {
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  height: 36px;
  min-width: 140px;
  border-radius: 10px;
  font-weight: 600;
  padding: 0.45rem 2.2rem 0.45rem 2.1rem; /* room for globe */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20M12 2a15.3 15.3 0 0 1 0 20M12 2a15.3 15.3 0 0 0 0 20'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' 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, no-repeat;
  background-position: 10px center, right 10px center;
  background-size: 16px 16px, 14px 14px;
}

.header #langSwitcher:hover {
  background-color: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  transform: none;
}

.header #langSwitcher:focus {
  outline: none;
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.35);
}

.header #langSwitcher option {
  color: #0f172a;
  background: #ffffff; /* best effort for dropdown panel */
}

/* Ensure container spacing looks good */
.menu .menu-actions { display: flex; align-items: center; }

/* Custom language dropdown */
.lang-dropdown { position: relative; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 10px 0 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.12);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background .2s ease, border-color .2s ease;
}
.lang-btn:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.4); }
.lang-btn:focus { outline: none; box-shadow: 0 0 0 3px rgba(96,165,250,.35); }
.lang-icon { display: inline-flex; opacity: .95; }
.lang-caret { display: inline-flex; opacity: .95; transition: transform .2s ease; }
.lang-btn[aria-expanded="true"] .lang-caret svg{ transform: rotate(180deg); }
.lang-label { line-height: 1; }

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: #0f172a;
  color: #e2e8f0;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(2,6,23,.45);
  padding: 6px;
  margin: 0;
  list-style: none;
  display: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease;
  z-index: 1200;
}
.lang-menu.open { display: block; opacity: 1; transform: translateY(0); }
.lang-menu li {
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}
.lang-menu li[aria-selected="true"] { background: rgba(59,130,246,.15); color: #fff; }
.lang-menu li:hover { background: rgba(255,255,255,.08); color: #fff; }

.menu .nav-link {
  position: relative;
}

.menu .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.25s ease;
}

.menu .nav-link:hover { color: var(--primary); }
.menu .nav-link:hover::after { width: 100%; }

/* Active state stays underlined */
.menu .nav-link[aria-current="page"]::after { width: 100%; }

@media (max-width: 900px) {
  .header { background: rgba(15, 23, 42, 0.6); }
}

/* ====================
   FEATURES SECTION
   ==================== */
.features {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
}

/* One-row layout for features on large screens */
@media (min-width: 1100px) {
  /* Widen only the features section container to fit 4 cards */
  .features .container { width: min(1440px, 96%); }
  .features-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 0;              /* remove extra side padding */
    column-gap: 1rem;        /* tighter gap to avoid wrap */
    row-gap: 1.25rem;
  }
  .feature-card { padding: 1.75rem 1.25rem; }
  .feature-icon { width: 72px; height: 72px; }
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
}

.section-tagline {
  display: inline-block;
  color: #3b82f6;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.section-tagline::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  border-radius: 3px;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 1rem 0;
  line-height: 1.2;
}

.section-subtitle {
  color: #64748b;
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto;
}

.feature-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  color: #1e293b;
  transition: color 0.3s ease;
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.feature-card h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: #e2e8f0;
  transition: all 0.3s ease;
}

.feature-card:hover h3::after {
  width: 60px;
  background: #3b82f6;
}

.feature-card p {
  color: #64748b;
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0;
  padding: 0 0.5rem;
}

.feature-card:hover h3 {
  color: #3b82f6;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 1;
  padding: 0 1rem;
}

.feature-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(203, 213, 225, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.05);
}

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

.feature-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.75rem;
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  color: white;
  font-size: 2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.feature-card:hover .feature-icon {
  transform: scale(1.05) rotate(5deg);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .features {
    padding: 4rem 0;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
}

@media (max-width: 640px) {
  .features {
    padding: 3rem 0;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 0.5rem;
  }
  
  .feature-card {
    padding: 2rem 1.5rem;
  }
  
  .section-header {
    margin-bottom: 2.5rem;
  }
  
  .section-header h2 {
    font-size: 1.75rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
    padding: 0 1rem;
  }
}
.section-sub{color:#6b7280;margin:0 0 28px}
/* Alternating soft background on selected sections */
.about{background:linear-gradient(180deg,#ffffff,#f8fafc)}
.features{background:#fff}
.service-tiles{background:linear-gradient(180deg,#f9fafb,#ffffff)}
/* About */
.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.about-grid h3{margin:.2em 0 .4em}
.about-grid ul{margin:0;padding-left:18px;color:#4b5563}
.about-grid li{margin:.28em 0}

/* Features */
.features .grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.services-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}
.card{background:var(--card);padding:22px;border-radius:16px;border:1px solid rgba(2,6,23,.08);box-shadow:0 6px 18px rgba(0,0,0,.04);transition:transform .2s ease, box-shadow .2s ease}
.card .icon{font-size:24px}
.card h3{margin:.5em 0 .3em}
.card p{color:#6b7280}
.card:hover{transform:translateY(-3px);box-shadow:0 12px 32px rgba(0,0,0,.08)}

/* Projects */
.masonry{columns:2;column-gap:18px}
.tile{break-inside:avoid;background:var(--card);border:1px solid rgba(2,6,23,.08);border-radius:14px;overflow:hidden;margin:0 0 18px;box-shadow:0 6px 18px rgba(0,0,0,.05)}
.tile img{width:100%;height:auto;display:block}
.tile figcaption{padding:12px 14px;color:#6b7280}

.tile-card{display:block;text-decoration:none;color:inherit}
.tile-card figure{margin:0;background:var(--card);border:1px solid rgba(2,6,23,.08);border-radius:16px;overflow:hidden;box-shadow:0 6px 18px rgba(0,0,0,.05);transition:transform .2s ease, box-shadow .2s ease}
.tile-card img{width:100%;height:auto;display:block}
.tile-card figcaption{padding:12px 10px 14px;font-weight:600;color:#374151}
.tile-card:hover figure{transform:translateY(-2px);box-shadow:0 10px 26px rgba(0,0,0,.08)}

/* Service tiles */
.service-tiles{padding-top:20px}
.tiles-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.tile-card{display:block;text-decoration:none;color:inherit}
.tile-card figure{margin:0;background:var(--card);border:1px solid rgba(2,6,23,.08);border-radius:16px;overflow:hidden;box-shadow:0 6px 18px rgba(0,0,0,.05);transition:transform .2s ease, box-shadow .2s ease}
.tile-card img{width:100%;height:auto;display:block}
.tile-card figcaption{padding:12px 10px 14px;font-weight:600;color:#374151}
.tile-card:hover figure{transform:translateY(-2px);box-shadow:0 10px 26px rgba(0,0,0,.08)}

/* Pricing */
.pricing{background:linear-gradient(180deg,#ffffff, #f6f7fb)}
.pricing-grid{grid-template-columns:repeat(3,1fr)}

/* Lightbox for gallery */
.lightbox{position:fixed;inset:0;background:rgba(2,6,23,.85);display:flex;align-items:center;justify-content:center;z-index:1400;opacity:0;pointer-events:none;transition:opacity .2s ease}
.lightbox[aria-hidden="false"]{opacity:1;pointer-events:auto}
.lightbox-img{max-width:92vw;max-height:88vh;border-radius:12px;box-shadow:0 16px 48px rgba(0,0,0,.5)}
.lightbox-close{position:absolute;top:16px;right:16px;background:#ffffff;border:1px solid rgba(2,6,23,.08);border-radius:999px;width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;font-size:20px;line-height:1;box-shadow:0 6px 18px rgba(0,0,0,.12)}
.lightbox-close:hover{filter:brightness(.95)}
.price-card{background:var(--card);padding:22px;border-radius:16px;border:1px solid rgba(2,6,23,.08);position:relative;box-shadow:0 8px 22px rgba(0,0,0,.05)}
.price-card .badge{position:absolute;top:14px;right:14px;background:rgba(245,158,11,.12);border:1px solid rgba(245,158,11,.5);padding:4px 8px;border-radius:999px;font-size:12px;color:#92400e}
.price-card.featured{border-color:rgba(245,158,11,.4);box-shadow:0 12px 40px rgba(232,121,15,.18)}
.price{font-size:28px;font-weight:800;margin:.2em 0 .6em;color:#111827}
.price-card ul{color:var(--muted);padding-left:18px}
.note{color:var(--muted);font-size:14px;margin-top:10px}

/* CTA */
.cta{padding:48px 0;background:linear-gradient(90deg, rgba(245,158,11,.12), rgba(250,204,21,.12));border-block:1px solid rgba(2,6,23,.06)}
.cta-inner{display:flex;align-items:center;justify-content:space-between;gap:18px}

/* Contact */
.contact-grid{display:grid;grid-template-columns:1fr .9fr;gap:26px}
.form{display:grid;gap:14px}
.form-row{display:grid;gap:8px}
.form-row label{color:#374151}
.form input,.form select,.form textarea{background:#ffffff;color:#111827;border:1px solid rgba(2,6,23,.12);border-radius:10px;padding:12px 14px;outline:none}
.form input:focus,.form select:focus,.form textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(232,121,15,.15)}
.dims{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.form-actions{display:flex;align-items:center;gap:16px}
.form-note{color:#6b7280;font-size:12px}
.form-success{margin-top:8px;color:#16a34a}
.contact-info .info-card{background:var(--card);border:1px solid rgba(2,6,23,.08);border-radius:14px;padding:16px;margin-bottom:12px;box-shadow:0 6px 18px rgba(0,0,0,.04)}
.contact-info a{color:#b45309}

/* Footer */
.footer{border-top:1px solid rgba(2,6,23,.06);padding:18px 0;background:#ffffff}
.footer-inner{display:flex;align-items:center;justify-content:space-between;gap:12px}
.footer-nav{display:flex;gap:16px}
.footer-nav a{color:#4b5563;text-decoration:none}
.footer-nav a:hover{color:#111827}
/* Icon button (social) */
.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:999px;background:#1877F2;color:#fff;border:1px solid rgba(2,6,23,.06);box-shadow:0 4px 14px rgba(24,119,242,.25)}
.icon-btn:hover{filter:brightness(.95)}
.icon-btn svg{width:16px;height:16px;fill:#ffffff}
/* Override inline fills inside SVGs so glyph is visible on blue background */
.icon-btn svg path{fill:#ffffff !important}

/* Contacts Section */
.contacts-section {
  padding: 5rem 0;
  background-color: var(--bg-soft);
  position: relative;
  overflow: hidden;
}

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

.contacts-section .section-tagline {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.contacts-section .section-tagline::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background-color: var(--accent);
}

.contacts-section h2 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.contacts-section .section-subtitle {
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-card {
  background: var(--card);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.contact-icon {
  width: 64px;
  height: 64px;
  background: rgba(44, 82, 130, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-icon svg {
  width: 28px;
  height: 28px;
}

.contact-details h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

.contact-details p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.contact-details a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
}

.contact-details a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.contact-person {
  background: var(--primary);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  align-items: center;
  max-width: 500px;
  margin: 3rem auto 2rem;
  color: white;
  text-align: left;
}

.person-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.person-avatar svg {
  width: 40px;
  height: 40px;
  color: white;
}

.person-details h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.person-details p {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.person-title {
  opacity: 0.8;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  margin-bottom: 0 !important;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .contacts-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .contact-person {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }
  
  .person-avatar {
    margin: 0 0 1rem 0;
  }
  
  .contacts-section h2 {
    font-size: 1.75rem;
  }
  
  .contacts-section .section-subtitle {
    font-size: 1rem;
    padding: 0 1rem;
  }
}

/* Recent Projects */
.recent-projects {
  padding: 5rem 0;
  background: #f8fafc;
  position: relative;
  overflow: hidden;
}

.recent-projects .container {
  position: relative;
  z-index: 1;
}

.section-title {
  text-align: center;
  font-size: 2.25rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #2c5282, #dd6b20);
  border-radius: 2px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 0 auto;
  max-width: 1400px;
  padding: 0 1rem;
}

.project-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 4/3;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-overlay h3 {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.project-overlay span {
  font-size: 1rem;
  opacity: 0.9;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.text-center {
  text-align: center;
  margin-top: 3rem;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: #2c5282;
  background-color: transparent;
  border: 2px solid #2c5282;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
}

.btn-outline:hover {
  background-color: #2c5282;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .recent-projects {
    padding: 3rem 0;
  }
  
  .section-title {
    font-size: 1.875rem;
    margin-bottom: 2rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }
  
  .project-overlay {
    opacity: 1;
  }
}

/* Partners */
.partners {
  border-top: 1px solid rgba(2,6,23,.06);
  background: linear-gradient(180deg,#fff,#f9fafb);
}
.partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  align-items: center;
}
.partner{margin:0;background:#fff;border:1px solid rgba(2,6,23,.06);border-radius:12px;padding:16px;box-shadow:0 6px 18px rgba(0,0,0,.04);text-align:center;transition:transform .2s ease, box-shadow .2s ease}
.partner img{max-width:100%;max-height:46px;object-fit:contain;filter:none;opacity:1;transition:transform .2s ease}
.partner figcaption{margin-top:10px;color:#6b7280;font-size:13px;min-height:38px}
.partner:hover{transform:translateY(-2px);box-shadow:0 10px 26px rgba(0,0,0,.08)}
.partner:hover img{transform:scale(1.02)}

/* Reveal on scroll (subtle) */
.reveal{opacity:0;transform:translateY(14px);transition:opacity .5s ease, transform .5s ease}
.reveal.in{opacity:1;transform:none}

/* Messenger Floating Button */
.messenger-fab{position:fixed;right:18px;bottom:18px;background:#ffffff;border:1px solid rgba(2,6,23,.1);border-radius:999px;padding:10px;box-shadow:0 10px 24px rgba(0,0,0,.12);z-index:120;color:#111827;display:inline-flex}
.messenger-fab:hover{box-shadow:0 12px 28px rgba(0,0,0,.16)}

/* Responsive */
@media (max-width: 980px){
  .hero-inner{grid-template-columns:1fr}
  .hero-grid{grid-template-columns:1fr;gap:16px}
  .hero-media{order:-1}
  .about-grid{grid-template-columns:1fr}
  .features .grid{grid-template-columns:repeat(2,1fr)}
  .partners-grid{grid-template-columns:repeat(3,1fr)}
  .services-grid{grid-template-columns:1fr}
  .pricing-grid{grid-template-columns:1fr}
  .contact-grid{grid-template-columns:1fr}
  .cta-inner{flex-direction:column;align-items:flex-start}
}
@media (max-width: 700px){
  /* Use overlay menu controlled via [data-visible] */
  .menu{position:fixed;left:0;right:0;top:70px;background:#0f172a;border-top:1px solid rgba(255,255,255,.12);border-radius:0 0 12px 12px;padding:8px 10px;flex-direction:column;align-items:stretch;box-shadow:0 16px 40px rgba(2,6,23,.45);z-index:1100;display:flex;transform:translateY(-150%);transition:transform .35s cubic-bezier(.4,0,.2,1)}
  .menu[data-visible="true"]{transform:translateY(0)}
  /* Make dropdown menu comfortable on small screens */
  .menu{left:4%;width:92%;max-height:70vh;overflow:auto}
  .menu a{padding:12px 10px;color:#e2e8f0}
  .burger{display:flex}
  .logos{flex-wrap:wrap}
  .logo-text{font-size:14px}
  /* Truncate long brand text to prevent wrap */
  .logo{max-width:68%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  /* Bigger language selector on mobile */
  #langSwitcher {
    font-size: 15px;
    padding: 0.6rem 2.2rem 0.6rem 0.9rem;
    height: 44px;
    min-width: 100px;
    background-size: 12px;
    background-position: right 0.7rem center;
  }
  .hero{padding:64px 0 56px;min-height:64vh}
  .hero-text h1{font-size:clamp(26px,8vw,34px)}
  .hero p{font-size:16px}
  .hero-cta{flex-direction:column;gap:10px}
  .hero-cta .btn{width:100%}
  .brand-logo-inline{height:48px}
  /* Disable fixed background on mobile for performance/compat */
  .hero{background-attachment: scroll}
  .hero-overlay{background-attachment: scroll; opacity:.90; background-position:center top}
}

/* Also ensure hero overlay is not fixed on tablets (iOS issue) */
@media (max-width: 1024px){
  .hero-overlay{background-attachment: scroll}
}
/* (Removed dangling mobile rules here; they are defined later in the proper @media block) */
/* ====================
   FINAL MOBILE POLISH
   ==================== */
@media (max-width: 768px){
  /* General rhythm */
  section{padding: 48px 0}
  .container{width: min(100%, 94%)}
  h1, h2, .section-title{letter-spacing: -0.015em}

  /* Header */
  .nav{height:68px;padding:0 1rem}
  .logo img{height:30px}
  .logo-text{font-size: 15px}
  .menu a{font-size: 15px}

  /* Features */
  .features .features-grid{grid-template-columns: 1fr; gap: 14px}
  .feature-card{padding: 16px}

  /* Tiles (services quick links on home) */
  .service-tiles .tiles-grid{display:grid;grid-template-columns:1fr;gap:14px}
  .service-tiles .tile-card figure{margin:0}
  .service-tiles .tile-card img{width:100%;height:220px;object-fit:cover;border-radius:14px}
  .service-tiles .tile-card figcaption{font-size:16px;margin-top:8px}

  /* Recent projects */
  .recent-projects{padding: 40px 0}
  .projects-grid{grid-template-columns:1fr;gap:14px}
  .project-card{aspect-ratio: 16/10}
  .project-overlay{opacity:1;padding:14px}
  .project-overlay h3{font-size:18px}

  /* Partners */
  .partners-grid{grid-template-columns: repeat(2, 1fr); gap: 10px}
  .partner{padding:10px;border-radius:12px}
  .partner img{max-height:32px}
  .partner figcaption{font-size:12px}

  /* Contacts */
  .contacts-section .section-header{margin-bottom: 22px}
  .contacts-grid{grid-template-columns:1fr;gap:14px}
  .contact-card{padding:16px}
  .contact-person{margin-top: 22px}

  /* Buttons */
  .btn{width:100%;padding:.9rem 1rem}
}

@media (max-width: 480px){
  h1.hero-title{font-size: 26px}
  .section-title, section h2{font-size: 22px}
  .hero-text{font-size: 14px}
  .btn-large{padding:.9rem 1rem;font-size:1rem}
}
