/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: var(--text-dark);
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: var(--accent-color);
  text-shadow: none;
}

::selection {
  background: var(--accent-color);
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid var(--border-color);
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

:root {
  --primary-color: #3B82F6;
  --secondary-color: #8B5CF6;
  --accent-color: #00E5CC;
  --highlight-pink: #EC4899;
  --neutral-dark1: #1A1A2E;
  --neutral-dark2: #16162A;
  --neutral-gray: #2E2E45;
  --neutral-light: #E8E8F0;
  --neutral-white: #F7F7FC;
  --text-dark: #16162A;
  --text-muted: #6B6B80;
  --bg-light: var(--neutral-white);
  --border-color: #E0E0EB;
  --radius: 8px;
  --brand-gradient: linear-gradient(135deg, #00E5CC 0%, #3B82F6 25%, #8B5CF6 50%, #EC4899 100%);
  --soft-blue: #F0F7FF;
  --card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
  --card-shadow-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.15);

  /* Geometric background patterns */
  --pattern-grid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M0 40 L40 40 L40 0 M0 0 L0 40' fill='none' stroke='rgba(59, 130, 246, 0.05)' stroke-width='1'/%3E%3C/svg%3E");
  --pattern-dots: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Ccircle cx='2' cy='2' r='1' fill='rgba(139, 92, 246, 0.1)'/%3E%3C/svg%3E");
  --pattern-circuit: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath d='M10 10 L90 10 L90 90 L10 90 Z M10 50 L30 50 M70 50 L90 50 M50 10 L50 30 M50 70 L50 90' fill='none' stroke='rgba(0, 229, 204, 0.05)' stroke-width='1'/%3E%3Ccircle cx='10' cy='10' r='2' fill='rgba(0, 229, 204, 0.1)'/%3E%3Ccircle cx='90' cy='10' r='2' fill='rgba(0, 229, 204, 0.1)'/%3E%3Ccircle cx='90' cy='90' r='2' fill='rgba(0, 229, 204, 0.1)'/%3E%3Ccircle cx='10' cy='90' r='2' fill='rgba(0, 229, 204, 0.1)'/%3E%3C/svg%3E");
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary-color: #3B82F6;
    --secondary-color: #8B5CF6;
    --accent-color: #00E5CC;
    --neutral-light: #1A1A2E;
    --neutral-white: #16162A;
    --text-dark: #E8E8F0;
    --text-muted: #E8E8F0;
    --bg-light: #16162A;
    --border-color: #2A2A40;
    --card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3);
    --card-shadow-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.4);

    --pattern-grid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M0 40 L40 40 L40 0 M0 0 L0 40' fill='none' stroke='rgba(59, 130, 246, 0.1)' stroke-width='1'/%3E%3C/svg%3E");
    --pattern-dots: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Ccircle cx='2' cy='2' r='1' fill='rgba(139, 92, 246, 0.15)'/%3E%3C/svg%3E");
    --pattern-circuit: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath d='M10 10 L90 10 L90 90 L10 90 Z M10 50 L30 50 M70 50 L90 50 M50 10 L50 30 M50 70 L50 90' fill='none' stroke='rgba(0, 229, 204, 0.1)' stroke-width='1'/%3E%3Ccircle cx='10' cy='10' r='2' fill='rgba(0, 229, 204, 0.15)'/%3E%3Ccircle cx='90' cy='10' r='2' fill='rgba(0, 229, 204, 0.15)'/%3E%3Ccircle cx='90' cy='90' r='2' fill='rgba(0, 229, 204, 0.15)'/%3E%3Ccircle cx='10' cy='90' r='2' fill='rgba(0, 229, 204, 0.15)'/%3E%3C/svg%3E");
  }

  body {
    background-color: var(--bg-light);
  }

  .hero-section {
    background-image: linear-gradient(rgba(22, 22, 42, 0.75), rgba(22, 22, 42, 0.85)), url('../img/geneva.png');
    background-size: cover;
    background-position: center;
  }

  .hero-section::before {
    background: radial-gradient(circle at 70% 50%, rgba(22, 22, 42, 0) 0%, rgba(22, 22, 42, 0.8) 100%);
  }

  .footer-snb {
    background-color: var(--neutral-white);
  }

  .mod-card-modern {
    background-color: #112240;
  }

  .logo-icon {
    filter: brightness(0) invert(1);
  }

  .footer-snb .logo-icon {
    filter: brightness(0) invert(1);
  }

  .navbar-main {
    background-color: rgba(22, 22, 42, 0.9);
    border-color: rgba(255, 255, 255, 0.05);
  }

  .bg-grey {
    background-color: rgba(255, 255, 255, 0.02);
    background-image: var(--pattern-dots);
  }

  #modernization {
    background-color: var(--neutral-white);
  }

  .snb-grid-item {
    background: #112240;
    border-color: #1F1F23;
  }

  .form-control {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-dark);
  }

  .form-control:focus {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    color: var(--text-dark);
  }

  .form-control::placeholder {
    color: var(--text-muted);
  }

  .why-card, .service-card {
    background-color: #112240;
    border-color: #2A2A40;
  }

  #menuToggle .bi-list {
    color: var(--text-dark);
  }

  .nav-link-snb.text-snb {
    background: rgba(59, 130, 246, 0.1);
  }

  .mod-card-legacy {
    background-color: #1A1A2E;
  }

  hr {
    border-top-color: var(--border-color);
  }

  .text-muted {
    color: #E8E8F0 !important;
  }

  .dropdown-menu {
    background-color: var(--neutral-white);
    border-color: var(--border-color) !important;
  }

  .dropdown-item {
    color: var(--text-dark);
  }

  .dropdown-item:hover,
  .dropdown-item:focus {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--text-dark);
  }
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
  letter-spacing: -0.02em;
}

.display-3 {
  font-size: 3.5rem;
  font-weight: 600;
  line-height: 1.1;
}

.display-5 {
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.2;
}

.lead {
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.6;
}

.navbar {
  display: none;
}

.navbar-brand {
  font-weight: 500;
  letter-spacing: -0.01em;
}

.navbar-brand span {
  font-weight: 400 !important;
  letter-spacing: 0.1em;
}

.logo-icon {
  width: 54px;
  height: auto;
  transition: width 0.3s ease-in-out;
}

@media (prefers-color-scheme: dark) {
  .logo-icon {
    filter: brightness(0) invert(1);
  }
}

.text-modernis {
  color: var(--primary-color);
}

.btn-modernis {
  background: var(--brand-gradient);
  background-size: 200% auto;
  color: white;
  border-radius: 50px;
  font-weight: 600;
  padding: 16px 40px;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: none;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-modernis:hover {
  background-position: right center;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.form-control {
  border-radius: var(--radius);
}

.why-card {
  border: 1px solid var(--border-color);
  padding: 32px;
  height: 100%;
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.why-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.cta-section {
  display: none;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
  background-size: 32px 32px;
  z-index: -1;
}

.cta-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, transparent 0%, var(--text-dark) 100%);
  opacity: 0.6;
  z-index: -1;
}

.cta-section .label-caps {
  color: white;
  opacity: 0.8;
}

.contact-link {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: var(--primary-color);
}

.social-icon {
  font-size: 1.5rem;
  color: var(--text-dark);
  transition: color 0.3s ease;
}

.social-icon:hover {
  color: var(--primary-color);
}

/* Existing styles below */
.hero-section {
  position: relative;
  background-image:
    linear-gradient(135deg, rgba(247, 247, 252, 0.9) 0%, rgba(247, 247, 252, 0.7) 100%),
    url('../img/geneva.png');
  background-size: cover, cover;
  background-position: center, center;
  background-attachment: fixed;
  overflow: hidden;
  padding: 160px 0 120px;
}

@media (prefers-color-scheme: dark) {
  .hero-section {
    background-image:
      linear-gradient(135deg, rgba(22, 22, 42, 0.95) 0%, rgba(22, 22, 42, 0.8) 100%),
      url('../img/geneva.png');
  }
}

.hero-section::after {
  content: "";
  position: absolute;
  top: -10%;
  right: -10%;
  width: 40%;
  height: 60%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
  filter: blur(50px);
}

.hero-section::before {
  content: "";
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 30%;
  height: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
  filter: blur(50px);
}

.hero-content h1 {
  margin-bottom: 32px;
}

.hero-content p {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 550px;
  line-height: 1.7;
  margin-left: auto;
  margin-right: auto;
}


.text-snb {
  color: var(--primary-color);
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-color);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  transform: translateY(-100%);
  transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
  overflow-y: auto;
}

.menu-overlay .logo-icon {
  filter: brightness(0) invert(1);
}

.menu-overlay.closing {
  transform: translateY(-100%);
  transition-delay: 0.6s; /* Wait for items to fade out */
}

.menu-overlay.active {
  transform: translateY(0);
}

.overlay-link {
  position: relative;
  transition: opacity 0.3s ease;
  font-weight: 300 !important;
  letter-spacing: 0.02em;
  font-size: 1.5rem;
  text-transform: uppercase;
}

.overlay-link:hover {
  opacity: 0.6;
}

/* Menu Animation */
.menu-overlay .list-unstyled li {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
  width: 100%;
}

.menu-overlay .list-unstyled li:nth-child(1) { transition-delay: 0.2s; }
.menu-overlay .list-unstyled li:nth-child(2) { transition-delay: 0.15s; }
.menu-overlay .list-unstyled li:nth-child(3) { transition-delay: 0.1s; }
.menu-overlay .list-unstyled li:nth-child(4) { transition-delay: 0.05s; }
.menu-overlay .list-unstyled li:nth-child(5) { transition-delay: 0s; }

.menu-overlay.active .list-unstyled li {
  opacity: 1;
  transform: translateY(0);
}

.menu-overlay.active .list-unstyled li:nth-child(1) { transition-delay: 0.4s; }
.menu-overlay.active .list-unstyled li:nth-child(2) { transition-delay: 0.5s; }
.menu-overlay.active .list-unstyled li:nth-child(3) { transition-delay: 0.6s; }
.menu-overlay.active .list-unstyled li:nth-child(4) { transition-delay: 0.7s; }
.menu-overlay.active .list-unstyled li:nth-child(5) { transition-delay: 0.8s; }

/* Staggered exit animation (reverse) */
.menu-overlay.closing .list-unstyled li {
  opacity: 0;
  transform: translateY(20px);
}

.menu-overlay.closing .list-unstyled li:nth-child(1) { transition-delay: 0.2s; }
.menu-overlay.closing .list-unstyled li:nth-child(2) { transition-delay: 0.15s; }
.menu-overlay.closing .list-unstyled li:nth-child(3) { transition-delay: 0.1s; }
.menu-overlay.closing .list-unstyled li:nth-child(4) { transition-delay: 0.05s; }
.menu-overlay.closing .list-unstyled li:nth-child(5) { transition-delay: 0s; }

.stagger-form .stagger-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.stagger-form .stagger-item:nth-child(1) { transition-delay: 0.25s; }
.stagger-form .stagger-item:nth-child(2) { transition-delay: 0.2s; }
.stagger-form .stagger-item:nth-child(3) { transition-delay: 0.15s; }
.stagger-form .stagger-item:nth-child(4) { transition-delay: 0.1s; }
.stagger-form .stagger-item:nth-child(5) { transition-delay: 0.05s; }
.stagger-form .stagger-item:nth-child(6) { transition-delay: 0s; }

.menu-overlay.active .stagger-form.active .stagger-item {
  opacity: 1;
  transform: translateY(0);
}

.menu-overlay.active .stagger-form.active .stagger-item:nth-child(1) { transition-delay: 0.4s; }
.menu-overlay.active .stagger-form.active .stagger-item:nth-child(2) { transition-delay: 0.5s; }
.menu-overlay.active .stagger-form.active .stagger-item:nth-child(3) { transition-delay: 0.6s; }
.menu-overlay.active .stagger-form.active .stagger-item:nth-child(4) { transition-delay: 0.7s; }
.menu-overlay.active .stagger-form.active .stagger-item:nth-child(5) { transition-delay: 0.8s; }
.menu-overlay.active .stagger-form.active .stagger-item:nth-child(6) { transition-delay: 0.9s; }

/* Staggered exit animation (reverse) for contact form */
.menu-overlay.closing .stagger-form .stagger-item {
  opacity: 0;
  transform: translateY(20px);
}

.menu-overlay.closing .stagger-form .stagger-item:nth-child(1) { transition-delay: 0.25s; }
.menu-overlay.closing .stagger-form .stagger-item:nth-child(2) { transition-delay: 0.2s; }
.menu-overlay.closing .stagger-form .stagger-item:nth-child(3) { transition-delay: 0.15s; }
.menu-overlay.closing .stagger-form .stagger-item:nth-child(4) { transition-delay: 0.1s; }
.menu-overlay.closing .stagger-form .stagger-item:nth-child(5) { transition-delay: 0.05s; }
.menu-overlay.closing .stagger-form .stagger-item:nth-child(6) { transition-delay: 0s; }

.brightness-0-invert {
  filter: brightness(0) invert(1);
}

body.menu-open {
  overflow: hidden;
}

#menuToggle:focus {
  outline: none;
  box-shadow: none;
}

#menuToggle .bi-list {
  color: var(--text-dark);
  transition: color 0.3s ease;
}

#menuToggle:hover .bi-list {
  color: var(--primary-color);
}

.service-card {
  border: 1px solid var(--border-color);
  padding: 48px;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.service-card h3 {
  font-weight: 600;
  margin-bottom: 16px;
  font-size: 1.25rem;
}

.service-card p {
  color: var(--text-muted);
  margin-bottom: 0;
}


.bg-light-subtle {
  background-color: var(--neutral-light) !important;
}

.casestudy-card {
  display: none;
}

.casestudy-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.05);
  border-color: var(--primary-color);
}

.parallax-section {
  display: none;
}

.parallax-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.85); /* Semi-transparent overlay to keep content readable */
  z-index: 1;
}

.parallax-section .container {
  position: relative;
  z-index: 2;
}

.mod-card {
  display: none;
}

.mod-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.mod-card-legacy, .mod-card-modern {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.mod-card-legacy {
  background-color: var(--neutral-light);
}

.mod-card-modern {
  background-color: var(--neutral-white);
}

.mod-card-sep {
  width: 1px;
  background-color: var(--border-color);
  margin: 16px 0;
  align-self: stretch;
}

.mod-card:hover .mod-card-sep {
  background-color: var(--primary-color);
  opacity: 0.3;
}

.mod-tag {
  font-size: 0.6rem;
  padding: 1px 6px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.1em;
  border: 1px solid;
  margin-bottom: 8px;
  display: inline-block;
}

.mod-tag-legacy {
  color: var(--text-muted);
  border-color: var(--border-color);
}

.mod-tag-modern {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.mod-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.2;
}

@media (max-width: 767px) {
  .mod-card {
    padding: 0;
    flex-direction: row;
    text-align: left;
    align-items: stretch;
  }
  .mod-card-sep {
    margin: 12px 0;
  }
  .mod-card-legacy, .mod-card-modern {
    padding: 20px;
  }
}

.letter-spacing-1 {
  letter-spacing: 0.1em;
}

@media (max-width: 991px) {
  .modernization-list li {
    font-size: 1.1rem;
  }
}

/* Removed .transformation-grid and old .transformation-item styles as they are replaced by new grid structure */

.label-caps {
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--primary-color);
  margin-bottom: 24px;
  display: block;
}

.tech-stack .border-end,
.tech-stack .border-top {
  border-color: var(--border-color) !important;
}

@media (max-width: 767px) {
  .tech-stack .border-end {
    border-right: none !important;
    border-bottom: 1px solid var(--border-color) !important;
  }
}

@media (max-width: 991px) {
  #expertise .border-start {
    border-left: none !important;
    padding-left: 0 !important;
    margin-top: 24px;
  }
}

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

.no-caret::after {
  display: none !important;
}

#langDropdown .dropdown-menu {
  min-width: 80px;
}

#langDropdown .dropdown-item {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
  text-align: center;
}

#langDropdown .bi-globe {
  font-size: 1.25rem;
  color: var(--text-dark);
}

#langDropdown .dropdown-toggle:hover .bi-globe,
#langDropdown .dropdown-toggle:hover #currentLangCode {
  color: var(--primary-color);
}

/* Menu Transitions */
.transition-container {
  transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.6s ease;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.slide-out-left {
  transform: translate(-150%, -50%) !important;
  opacity: 0;
}

.slide-in-right {
  transform: translate(-50%, -50%) !important;
  opacity: 1;
}

.hidden-right {
  transform: translate(100%, -50%);
  opacity: 0;
}

.btn-white:hover {
  background-color: rgba(255, 255, 255, 0.9) !important;
}

.hover-opacity-100:hover {
  opacity: 1 !important;
}

#contactStatus.text-success {
  color: var(--accent-color) !important;
  font-weight: 600;
}

#contactStatus.text-danger {
  color: #ffb3b3 !important; /* Lighter red for better contrast on blue */
  font-weight: 600;
}

/* i18n Transitions */
.i18n-fade {
  transition: opacity 0.4s ease-in-out;
}

.i18n-fading {
  opacity: 0;
}

.section-padding {
  padding: 120px 0;
  position: relative;
}

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

.hero-content {
  animation: fadeInUp 0.8s ease-out forwards;
}

section {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease-out;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

.bg-grey {
  background-color: var(--soft-blue);
  background-image: var(--pattern-dots);
  background-attachment: fixed;
}


@media (prefers-color-scheme: dark) {
  .bg-grey {
    background-color: rgba(255, 255, 255, 0.02);
    background-image: var(--pattern-dots);
  }
}

#expertise {
  background-image: var(--pattern-circuit);
  background-size: 200px 200px;
  background-position: center;
}

#modernization {
  background-color: var(--bg-light);
  background-image: var(--pattern-dots);
}

.modernization-image-container {
  position: relative;
  z-index: 1;
}

.modernization-image-container::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  right: -10px;
  bottom: -10px;
  border: 2px solid var(--primary-color);
  border-radius: var(--radius);
  z-index: -1;
  opacity: 0.3;
}

@media (prefers-color-scheme: dark) {
  #modernization {
    background-color: var(--neutral-white);
  }
}

#modernization .snb-grid-item {
  padding: 15px;
  min-height: auto;
}

#modernization .snb-grid-item h3 {
  font-size: 0.9rem;
}

#casestudy {
  background-image: var(--pattern-grid);
  background-size: 60px 60px;
}

.snb-grid-item {
  background: white;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.snb-grid-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--brand-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.snb-grid-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
  border-color: transparent;
}

.snb-grid-item:hover::before {
  transform: scaleX(1);
}

@media (prefers-color-scheme: dark) {
  .snb-grid-item {
    background: #112240;
    border-color: #1F1F23;
  }
}

.snb-grid-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.snb-grid-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.snb-methodology-content {
  flex-grow: 1;
}

.snb-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.snb-link:hover {
  text-decoration: underline;
}

.snb-title {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 3.5rem;
  margin-bottom: 40px;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-section .snb-title {
  font-size: 5.5rem;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .snb-title {
    font-size: 2.5rem;
  }
  .hero-section .snb-title {
    font-size: 3.5rem;
  }
}

.navbar-top {
  background: var(--brand-gradient);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  padding: 8px 0;
  position: relative;
  z-index: 1060;
}

.navbar-top .btn,
.navbar-top #currentLangCode {
  color: var(--neutral-white) !important;
}

.navbar-top .bi-chevron-down {
  color: var(--neutral-white);
}

.navbar-main {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1050;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

@media (prefers-color-scheme: dark) {
  .navbar-main {
    background-color: rgba(22, 22, 42, 0.8);
    border-color: rgba(255, 255, 255, 0.05);
  }
}

@media (max-width: 991px) {
  .navbar-main {
    padding: 10px 0;
  }
}

.navbar-main .navbar-brand {
  color: var(--text-dark) !important;
}

.navbar-main .navbar-brand .text-muted {
  color: var(--text-muted) !important;
}

.nav-link-snb {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  padding: 10px 18px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link-snb::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 18px;
  right: 18px;
  height: 2px;
  background: var(--brand-gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nav-link-snb:hover::after {
  transform: scaleX(1);
}

.nav-link-snb:hover {
  color: var(--primary-color);
}

.nav-link-snb.text-snb {
  color: var(--primary-color) !important;
  background: var(--soft-blue);
  border-radius: 50px;
}

@media (prefers-color-scheme: dark) {
  .nav-link-snb.text-snb {
    background: rgba(59, 130, 246, 0.1);
  }
}

#menuToggle .bi-list {
  color: var(--text-dark);
}

.footer-snb {
  background-color: var(--neutral-white);
  border-top: 1px solid var(--border-color);
  padding: 60px 0;
  font-size: 0.85rem;
}

.footer-snb .logo-icon {
  filter: none;
}

.footer-snb h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.footer-snb ul {
  list-style: none;
  padding: 0;
}

.footer-snb ul li {
  margin-bottom: 10px;
}

.footer-snb a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-snb a:hover {
  color: var(--primary-color);
}

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
(-webkit-min-device-pixel-ratio: 1.25),
(min-resolution: 1.25dppx),
(min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: var(--neutral-white) !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}
