/* DESIGN TOKENS */

   :root {
    --color-yellow: #ffd44d;
    --color-yellow-hover: #ffcc33;
    --color-blue: #2f8faa;
    --color-blue-dark: #0b2b35;
  
    --color-text: #0f172a;
    --color-white: #ffffff;
    --color-grey-light: #f0f0f0;
  }
  
  /* Global reset & base */
  
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
    height: 100%;
  }
  
  body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont,
                 "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--color-text);
    background-color: var(--color-white);
    line-height: 1.5;
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  #mainContent {
    flex: 1;
  }

  img {
    max-width: 100%;
    display: block;
  }
  
  a {
    color: inherit;
    text-decoration: none;
  }
  
  ul {
    padding: 0;
    margin: 0;
    list-style: none;
  }
  
  button {
    font-family: inherit;
    cursor: pointer;
  }

  /* Section spacing */
.services-inner,
.projects-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 32px; /* more horizontal air */
}

@media (max-width: 768px) {
  .services-inner,
  .projects-inner {
    padding: 64px 20px;
  }
}
  
  /* HEADER */
  
  .site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--color-blue);
  }
  
  .header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

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

  .logo img {
    height: 120px;         
    width: auto;
    max-width: 240px;      
    display: block;
  }

  @media (max-width: 768px) {
    .logo img {
      height: 100px;
      max-width: 160px;
    }
  }
  
  /* NAV DESKTOP */
  .main-nav ul {
    display: flex;
    gap: 24px;
  }
  
  .main-nav a {
    color: var(--color-yellow);
    font-weight: 500;
  }
  
  .burger {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--color-yellow);
  }
  
  /* LANGUAGE SWITCH */
  
  .lang-switch {
    display: flex;
    align-items: center;
    background: var(--color-yellow);
    border-radius: 999px;
    padding: 4px;
    gap: 4px;
  }
  
  .lang-btn {
    border: none;
    background: transparent;
    color: var(--color-blue);
    font-weight: 600;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
  }
  
  .lang-btn:hover {
    background: rgba(47, 143, 170, 0.15);
  }
  
  .lang-btn.active {
    background: var(--color-blue);
    color: var(--color-white);
  }
  
  /* MOBILE MENU */
  
  @media (max-width: 768px) {
    .main-nav {
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      background: var(--color-blue);
      display: none;
      padding: 24px 0;
    }
  
    .main-nav ul {
      flex-direction: column;
      gap: 16px;
      align-items: center;
    }
  
    .main-nav.open {
      display: block;
    }
  
    .burger {
      display: block;
    }
  }
  
  /* FOOTER */
  
  .site-footer {
    background: #2f8faa;
    color: rgba(255, 255, 255, 0.92);
    padding: 28px 0;
    text-align: center;
    margin-top: 40px;
  }
  
  .footer-copy {
    margin-top: 10px;
    font-size: 0.85rem;
    opacity: 0.9;
  }
  
  .footer-inner {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 12px;
  }
  
  .footer-icon {
    width: 48px;
    height: 48px;
    background: var(--color-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;
  }
  
  .footer-icon img {
    width: 22px;
    height: 22px;
    filter: invert(32%) sepia(35%) saturate(1200%) hue-rotate(160deg);
    transition: filter 0.2s ease;
  }
  
  .footer-icon:hover {
    transform: translateY(-2px);
    background: var(--color-yellow-hover);
  }
  
  .footer-icon:hover img {
    filter: invert(15%) sepia(40%) saturate(1600%) hue-rotate(160deg);
  }
  
  /* SERVICES */

  .services-area {
    max-width: 70ch;
    margin: 0 0 32px;
    color: #334155;
    font-size: 1.05rem;
  }

  .services-area span {
    display: block;
    opacity: 0.8;
  }
  
  .services-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
  }
  
  .services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  
  @media (max-width: 900px) {
    .services-grid {
      grid-template-columns: 1fr;
    }
  }
  
  .service-card {
    background: #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    border: 5px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }

  .service-card h3 {
    color: var(--color-blue);
    font-size: 1.25rem;
    margin-bottom: 10px;
  }
  
  .service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12);
  }
  
  .service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }
  
  .service-card-content {
    padding: 20px;
  }
  
  .service-description {
    display: none;
    margin-top: 12px;
    font-size: 0.95rem;
    color: var(--color-text);
  }
  
  .service-card.open .service-description {
    display: block;
  }

  /* service content structure */

.service-intro {
  margin-top: 10px;
  font-size: 0.95rem;
  color: var(--color-text);
}

.service-bullets {
  display: none;
  margin-top: 12px;
  padding-left: 18px;
  font-size: 0.95rem;
  color: var(--color-text);
}

.service-bullets li {
  margin-bottom: 6px;
  list-style: disc;
}

/* Toggle behavior */
.service-card.open .service-bullets {
  display: block;
}
  
  /* PRIMARY SERVICE BUTTON */
  
  .service-toggle {
    margin-top: 16px;
    padding: 8px 14px;
    background: var(--color-yellow);
    color: var(--color-blue);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
  }
  
  .service-toggle:hover {
    background: var(--color-yellow-hover);
    transform: translateY(-1px);
  }
  
  @media (max-width: 768px) {
    .service-toggle {
      width: 100%;
    }
  }
  
  /* PROJECTS */
  
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  
  .project-card {
    background: #f0f0f0;
    border-radius: 14px;
    overflow: hidden;
    border: 5px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }

  .project-card h3 {
    color: var(--color-blue);
    font-size: 1.25rem;
    margin-bottom: 10px;
  }
  
  .project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.14);
  }
  
  .project-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }
  
  .project-content {
    padding: 16px;
  }
  
  .project-date {
    font-size: 0.85rem;
    opacity: 0.7;
  }
  
  @media (max-width: 768px) {
    .projects-grid {
      grid-template-columns: 1fr;
    }
  }
  
  /* PROJECT FILTERS */
  
  .project-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 24px 0;
  }
  
  .filter-btn {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 212, 77, 0.6);
    background: transparent;
    color: var(--color-yellow);
    cursor: pointer;
  }
  
  .filter-btn.is-active {
    background: var(--color-yellow);
    color: var(--color-blue-dark);
  }
  
  .project-filters-mobile {
    display: none;
    margin: 16px 0 24px;
    padding: 10px 12px;
    border-radius: 10px;
  }
  
  @media (max-width: 768px) {
    .project-filters {
      display: none;
    }
    .project-filters-mobile {
      display: block;
    }
  }
  
  /* IMAGE CONTAINERS */
  
  .project-image,
  .service-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--color-grey-light);
  }
  
  .project-image img,
  .service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* HOME */

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

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 84px 32px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 64px 20px;
  }
}

.hero-kicker {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 12px;
}

.hero-title {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 56ch;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  background: var(--color-yellow);
  color: var(--color-blue);
  border-radius: 10px;
  font-weight: 700;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-primary:hover {
  background: var(--color-yellow-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  font-weight: 700;
}

.hero-card {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  overflow: hidden;
}

.hero-card-inner {
  padding: 22px;
}

.hero-card-title {
  margin: 0 0 10px;
  font-size: 1.1rem;
  color: var(--color-yellow);
}

.hero-card-text {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.9);
}

.hero-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--color-yellow);
  color: var(--color-blue);
  font-weight: 700;
}

/* About + section titles */
.section-title {
  color: var(--color-blue);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}

.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 32px;
}

@media (max-width: 768px) {
  .about-inner {
    padding: 56px 20px;
  }
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.about-text {
  margin: 0;
  color: #334155;
  font-size: 1.05rem;
}

.about-points {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.about-point {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

/* Teasers */
.home-teasers-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px 88px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 900px) {
  .home-teasers-inner {
    grid-template-columns: 1fr;
    padding: 0 20px 72px;
  }
}

.teaser-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.teaser-title {
  margin: 0 0 8px;
  color: var(--color-blue);
  font-weight: 800;
}

.teaser-text {
  margin: 0 0 12px;
  color: #334155;
}

.teaser-link {
  color: var(--color-blue);
  font-weight: 800;
}

/* CONTACT */

   .contact-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 88px 32px;
    text-align: center;
  }
  
  @media (max-width: 768px) {
    .contact-inner {
      padding: 64px 20px;
    }
  }
  
  .contact-intro {
    max-width: 60ch;
    margin: 0 auto 36px;
    color: #334155;
    font-size: 1.05rem;
  }
  
  .contact-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  
  @media (max-width: 768px) {
    .contact-cards {
      grid-template-columns: 1fr;
    }
  }
  
  .contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }
  
  .contact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
  }
  
  .contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffd44d;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .contact-icon img {
    width: 22px;
    height: 22px;
    filter: invert(32%) sepia(35%) saturate(1200%) hue-rotate(160deg);
  }
  
  .contact-card-content {
    text-align: left;
  }
  
  .contact-label {
    display: block;
    font-size: 0.85rem;
    color: #64748b;
  }
  
  .contact-value {
    color: #2f8faa;
    font-weight: 800;
    word-break: break-all;
  }

  /* TECHNOLOGY PAGE */

.technology {
  padding: 4rem 1.5rem;
}

.technology-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.technology-intro {
  max-width: 700px;
  margin-bottom: 3rem;
  color: var(--color-text-muted);
}

.technology-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 2.5rem;
  margin-bottom: 3rem;

  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.technology-item.is-reversed {
  direction: rtl;
}

.technology-item.is-reversed > * {
  direction: ltr;
}

.technology-media img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.technology-content h3 {
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .technology-item,
  .technology-item.is-reversed {
    grid-template-columns: 1fr;
    direction: ltr;
    padding: 1.75rem;
  }
}

/* Project Modal */

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal.hidden {
  display: none;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
}

.modal-content {
  max-width: 1000px;
  width: 95%;
  margin: auto;
  background: #ffffff;
  padding: 2rem;
  border-radius: 15px;
  position: relative;
  overflow-y: auto;
  max-height: 90vh;
  box-shadow:
  0 25px 60px rgba(0, 0, 0, 0.18),
  0 5px 15px rgba(0, 0, 0, 0.08);
}

.modal-body h2 {
  margin-bottom: 0.5rem;
}

.modal-body p {
  margin-bottom: 2rem;
  color: #555;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* GLIDE SLIDER */

.glide {
  margin-bottom: 2rem;
}

.glide__slide img {
  width: 100%;
  height: 450px;
  object-fit: cover;

  border-radius: 10px;
  border: 1px solid #e5e5e5;

  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.08),
    0 2px 6px rgba(0, 0, 0, 0.05);

  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glide__slide img:hover {
  transform: scale(1.01);
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.12),
    0 5px 12px rgba(0, 0, 0, 0.08);
}

.glide__arrow {
  background: var(--color-blue);
  border: none;
  padding: 10px 16px 12px 16px;
  border-radius: 40%;
  color: var(--color-yellow-hover);
  font-size: 20px;
  transition: 0.3s ease;
}

.glide__arrow:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Video in modal */

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  margin-top: 2rem;

  border-radius: 10px;
  overflow: hidden;

  border: 1px solid #e5e5e5;

  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.08),
    0 2px 6px rgba(0, 0, 0, 0.05);
}

.video-wrapper iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}