/* MODERNUS MELSVAS INŽINERINIS STILIUS */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #334155;
  background-color: #ffffff;
  scroll-behavior: smooth;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* KONTEINERIAI */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* NAVIGATION (MELSVAS GLASS-EFFECT) */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #ebf5fd; /* Pašalintas 'cc' (permatomumas) pabaigoje, dabar spalva 100% nepermatoma */
  /* Pašalinti backdrop-filter, nes jie nebereikalingi, kai fonas nepermatomas */
  border-bottom: 1px solid #f0f9ff; 
  z-index: 1000;
  padding: 15px 0;
  transition: all 0.3s ease;
}

/* Nauja struktūra: Facebook kairėje, logo centre, nav dešinėje */
.header-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

/* Kairysis blokas (Facebook) */
.header-left {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

/* Centrinis blokas (Logo) */
.header-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Dešinysis blokas (Meniu) */
.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 36px;
}

/* LOGOTIPAS */
.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 95px;
  width: 250px;       /* Nurodom fiksuotą plotį, kad gautųsi stačiakampis */
  display: block;
  object-fit: cover;  /* Užpildo visą stačiakampį neperkreipdamas vaizdo (apkerpa kraštus) */
}

/* Navigacijos nuorodos */
.header-right a {
  text-decoration: none;
  color: #0369a1;
  font-size: 15px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.header-right a:hover {
  color: #0284c7;
}

/* MYGTUKAI */
.btn-nav {
  background: #0c4a6e;
  color: #ffffff !important;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(12, 74, 110, 0.1);
  transition: all 0.2s ease !important;
}

.btn-nav:hover {
  background: #0284c7;
  transform: translateY(-1px);
}

/* FACEBOOK IKONOS STILIUS NAVIGACIJOJE */
.fb-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0369a1 !important;
  transition: transform 0.2s ease, color 0.2s ease;
}

.fb-link:hover {
  color: #1877F2 !important;
  transform: scale(1.1);
}

.fb-icon {
  width: 24px;
  height: 24px;
}

/* STANDARTINĖS SEKCIJOS */
.content-section {
  padding: 120px 0;
}

/* Specifinis reguliavimas Apie sekcijai mažesniam tuščiam plotui */
.section-apie {
  padding-top: 150px; /* Šiek tiek vietos nuo fiksuoto meniu */
  padding-bottom: 40px; /* Sumažinta per ~100px iš apačios */
}

.alternate-bg {
  background-color: #f0f9ff;
}

.section-tag {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  color: #0284c7;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

h1 {
  font-size: 42px;
  font-weight: 800;
  color: #0c4a6e;
  letter-spacing: -1px;
  line-height: 1.25;
}

h2 {
  font-size: 40px;
  font-weight: 800;
  color: #0c4a6e;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

/* APIE MUS GRID */
.section-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.section-text {
  max-width: 650px; /* Apribotas plotis iki optimalaus skaitymo ilgio (~60-75 simboliai) */
}

.section-text p {
  font-size: 16px;
  color: #475569;
  margin-bottom: 20px;
}

.section-text .lead-text {
  font-size: 22px;
  color: #0f172a;
  line-height: 1.6;
}

/* PASITIKĖJIMO ELEMENTAI (NAUJA) */
.trust-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #0c4a6e;
  font-weight: 600;
  font-size: 16px;
}

.trust-icon {
  width: 20px;
  height: 20px;
  color: #1938ff; /* Žalia patikimumo spalva */
  flex-shrink: 0;
}

/* SEKCIJŲ ANTRAŠTĖS CENTRUOTOS */
.section-center-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px auto;
}

.section-subtitle {
  font-size: 18px;
  color: #475569;
  margin-top: 16px;
}

/* PASLAUGŲ TINKLELIS */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.service-card {
  background: #ffffff;
  border: 1px solid #e0f2fe;
  padding: 40px 32px;
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-icon {
  width: 40px;
  height: 40px;
  color: #0284c7;
  margin-bottom: 24px;
}

.service-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: #0c4a6e;
  margin-bottom: 14px;
}

.service-card p {
  color: #475569;
  font-size: 15px;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: #0284c7;
  box-shadow: 0 20px 40px rgba(2, 132, 199, 0.05);
}

/* PORTFOLIO / DARBAI */
.darbai-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.card-img-wrapper {
  overflow: hidden;
  position: relative;
  height: 240px;
  background-color: #f1f5f9;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card-content {
  padding: 28px;
}

.card-category {
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  color: #0284c7;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.card-content h3 {
  font-size: 20px;
  color: #0c4a6e;
  margin-bottom: 10px;
  font-weight: 700;
}

.card-content p {
  font-size: 14px;
  color: #475569;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(12, 74, 110, 0.08);
  border-color: #bae6fd;
}

.card:hover img {
  transform: scale(1.04);
}

.read-more-btn {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 700;
  color: #0284c7;
  transition: color 0.2s ease;
}

.card:hover .read-more-btn {
  color: #0c4a6e;
}

/* KONTAKTAI */
.contact-card {
  background: #0c4a6e;
  color: #ffffff;
  padding: 60px;
  border-radius: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  box-shadow: 0 40px 80px rgba(12, 74, 110, 0.15);
}

.contact-text-side h2 {
  color: #ffffff;
  margin-bottom: 16px;
}

.contact-text-side p {
  color: #e0f2fe;
  font-size: 17px;
}

.contact-info-side {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.info-row {
  display: flex;
  flex-direction: column;
}

.info-label {
  font-size: 12px;
  text-transform: uppercase;
  color: #bae6fd;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.info-value {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

a.info-value:hover {
  color: #38bdf8;
}

/* FOOTER */
footer {
  padding: 40px 0;
  font-size: 14px;
  color: #64748b;
  border-top: 1px solid #e0f2fe;
  background-color: #ffffff;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fb-footer-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.fb-footer-link:hover {
  color: #1877F2;
}

.fb-footer-link .fb-icon {
  width: 18px;
  height: 18px;
}

/* MODALINIAI LANGAI */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(12, 74, 110, 0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-window {
  background: #ffffff;
  width: 100%;
  max-width: 800px;
  max-height: 85vh;
  border-radius: 24px;
  padding: 40px;
  position: relative;
  overflow-y: auto;
  box-shadow: 0 30px 60px rgba(12, 74, 110, 0.25);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-window {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: #f0f9ff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  color: #0c4a6e;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: #0284c7;
  color: #ffffff;
}

.modal-body h2 {
  margin-bottom: 24px;
  font-size: 32px;
}

.modal-body .card-category {
  margin-bottom: 20px;
}

.modal-desc {
  font-size: 16px;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 30px;
}

.modal-body h3 {
  font-size: 20px;
  color: #0c4a6e;
  margin-bottom: 16px;
  font-weight: 700;
}

.modal-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.modal-gallery img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #e0f2fe;
  transition: transform 0.3s ease;
}

.modal-gallery img:hover {
  transform: scale(1.03);
}

/* RESPONSIVE (PLANŠETĖS IR MAŽESNI) */
@media (max-width: 992px) {
  .section-grid, .contact-card {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .section-apie {
    padding-top: 180px; /* Daugiau vietos mobiliajame variante, nes meniu plečiasi */
    padding-bottom: 40px;
  }

  .header-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .header-left, .header-center, .header-right {
    justify-content: center;
    width: 100%;
  }

  .header-right {
    flex-wrap: wrap;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  header {
    padding: 16px 0;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 30px;
  }

  .content-section {
    padding: 80px 0;
  }

  .section-apie {
    padding-top: 180px;
    padding-bottom: 30px;
  }

  .contact-card {
    padding: 30px;
  }

  .footer-container {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .modal-window {
    padding: 24px;
    padding-top: 50px;
  }
  .modal-body h2 {
    font-size: 24px;
  }
}