/* Global Styles */
body,
html {
  margin: 0;
  padding: 0;
  /* padding-left: 20px; */
  font-family: "Poppins", sans-serif;
  background-color: #121212;
  color: #ffffff;
  width: 100%;
  overflow-x: hidden; /* Pašalina horizontalią slinkimą */
}

section {
  position: relative;
  /* padding-top: 190px; */
}

.container {
  padding-left: 20px;
  padding-right: 20px;
  padding-top: 70px;
}

/* Hero Section with Video Background */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #ccc;
  overflow: hidden;
}

#hero-background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgb(18, 18, 18),
    rgba(0, 0, 0, 0.5),
    rgba(0, 0, 0, 0.3)
  );
  z-index: 1; /* Užtikrina, kad perdanga būtų virš video, bet po tekstu */
}

.hero .container {
  position: relative;
  z-index: 2; /* Užtikrina, kad tekstas būtų virš perdangos */
}

/* Services Section */
.services {
  /* background-color: #1e1e1e; */
  color: #f39c12;
  text-align: center;
}

.services h2 {
  font-size: 2rem;
  margin-bottom: 30px;
}

/* Domains Section - same styling as Services */
.domains {
  /* background-color: #1e1e1e; */
  color: #f39c12;
  text-align: center;
}

/* Domains grid container */
.domains-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Dvi kortelės eilutėje */
  gap: 20px; /* Tarpas tarp kortelių */
  max-width: 1200px; /* Maksimalus plotis, kad kortelės netaptų per plačios */
  margin: 0 auto; /* Centruoja tinklelį */
  padding: 0 20px; /* Atstumas nuo kraštų mažesniuose ekranuose */
}

/* Responsive layout for smaller screens */
@media (max-width: 768px) {
  .domains-grid {
    grid-template-columns: 1fr; /* Viena kortelė eilutėje mažesniuose ekranuose */
  }
}

.domains h2 {
  font-size: 2rem;
  margin-bottom: 30px;
}

/* Domain CTA Button Container */
.domain-cta {
  text-align: center;
  margin-top: 40px;
}

.domain-cta .cta-btn {
  text-decoration: none;
}

/* Kortelių konteineris */
.service-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Dvi kortelės eilutėje */
  gap: 20px; /* Tarpas tarp kortelių */
  max-width: 1200px; /* Maksimalus plotis, kad kortelės netaptų per plačios */
  margin: 0 auto; /* Centruoja tinklelį */
  padding: 0 20px; /* Atstumas nuo kraštų mažesniuose ekranuose */
}

/* Kiekviena paslaugos kortelė */
.service-item {
  background-color: #2a2a2a;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(243, 156, 18, 0.5); /* Oranžinis švytėjimas */
  transition: transform 0.3s ease;
  width: 100%; /* Užima visą plotį tinklelio langelyje */
  box-sizing: border-box; /* Įskaitome padding į plotį */
}

/* Responsive layout for smaller screens */
@media (max-width: 768px) {
  .service-cards {
    grid-template-columns: 1fr; /* Viena kortelė eilutėje mažesniuose ekranuose */
  }
}

.service-item:hover {
  transform: translateY(-10px); /* Subtilus pakėlimas pelės užvedimo metu */
}

.service-item h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #f39c12;
}

.service-item p {
  font-size: 1rem;
  line-height: 1.6;
  color: #ccc; /* Pritaikytas šviesesnis tekstas */
}

/* About Section */
.about {
  text-align: center;
  position: relative;
  background: linear-gradient(
      to right,
      rgba(18, 18, 18, 0.9),
      rgba(18, 18, 18, 0.6) 30%,
      rgba(18, 18, 18, 0.6) 70%,
      rgba(18, 18, 18, 0.9) 100%
    ),
    url("Apie 16 9.png") no-repeat center center / cover;
  /* color: #ffffff; */
  /* filter: brightness(1.5); */
  padding-top: 100px;
  padding-bottom: 170px;
  margin-top: 90px;
}

.about-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px; /* Tarpas tarp teksto ir nuotraukos */
  flex-wrap: wrap; /* Leis teksto ir nuotraukos išdėstymui keistis mažame ekrane */
}

.about-text {
  flex: 1;
  text-align: center;
}

.about h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #f39c12; /* Antraštės spalva, atitinkanti svetainės akcentus */
}

.about p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #ccc; /* Šviesesnis tekstas, lengvai skaitomas */
}

/* Portfolio Section */
.portfolio {
  background-color: #121212;
  color: #fff;
  text-align: center;
}

.portfolio h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #f39c12; /* Akcentinė antraštės spalva */
}

/* Tinklelio stilius */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  align-items: stretch;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Vienas stulpelis mažesniems ekranams */
@media (max-width: 767px) {
  .gallery {
    grid-template-columns: 1fr;
    max-width: 100%;
    padding: 0 15px;
  }
}

/* Pagrindinė kortelė pritemdyta */
.project {
  background-color: #1e1e1e;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(243, 156, 18, 0.5); /* Oranžinis švytėjimas */
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
  filter: brightness(0.7); /* Pradinis pritemdymas */
  cursor: pointer; /* Žymiklis nurodantis, kad galima spustelėti */
  max-height: 400px; /* Increased max height */
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Užvedus pelę, kortelė tampa ryški */
.project:hover {
  filter: brightness(1); /* Grąžinama originali šviesuma užvedus pelę */
  transform: scale(1.11); /* Šiek tiek padidinta */
  box-shadow: 0 0 15px rgba(243, 156, 18, 0.5); /* Oranžinis švytėjimas */
}

/* Projekto aprašymas paspaudus */
.project-description {
  display: none; /* Aprašymas pradinėje būsenoje yra paslėptas */
  padding: 20px;
  background: rgba(0, 0, 0, 0.8); /* Fono permatomumas */
  color: #fff;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10; /* Aukštesnis z-index, kad aprašymas būtų viršuje */
  overflow-y: auto; /* Slinktis, jei aprašymas ilgas */
  text-align: left;
}

/* Paspaudus pelę aprašymas tampa matomas */
.project.active .project-description {
  display: block;
}

.project img {
  width: 100%;
  height: 200px; /* Fixed height for images */
  object-fit: cover; /* Ensure images cover the area */
  display: block;
}

.project h3 {
  margin: 15px 0;
  font-size: 1.2rem;
  color: #f39c12;
}

/* Contact Section */
.contact {
  /* background-color: #1e1e1e; */
  color: #fff;
  text-align: center;
}

.contact h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #f39c12; /* Akcentinė spalva */
}

/* Kontaktų informacija */
.contact-info {
  margin-bottom: 30px;
}

.contact-info p {
  font-size: 1.1rem;
  color: #ccc;
}

.contact-info a {
  color: #f39c12; /* Akcentinė spalva */
}

.contact-info a:hover {
  text-decoration: underline;
}

/* Kontaktų forma */
#contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  padding-bottom: 50px;
}

#contact-form input,
#contact-form textarea {
  width: 100%;
  max-width: 500px; /* Maksimalus plotis formos laukeliams */
  padding: 15px;
  background-color: #2a2a2a;
  border: none;
  color: #fff;
  border-radius: 5px;
}

#contact-form textarea {
  height: 150px; /* Aukštis tekstui */
}

#contact-form button {
  padding: 15px 30px;
  background-color: #f39c12;
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 10px;
  transition: background-color 0.3s ease;
}

#contact-form button:hover {
  background-color: #e67e22; /* Šviesesnė spalva užvedus */
}

footer {
  background-color: #1e1e1e;
  padding: 20px;
  text-align: center;
  color: #fff;
}

footer a {
  color: #f39c12; /* Akcentinė spalva */
  text-decoration: none;
}

footer p {
  margin: 5px 0; /* Mažesni tarpai tarp kontaktų ir autorių teisių */
}

/* Socialinių tinklų ikonos */
.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  display: inline-block;
  transition: transform 0.3s ease;
}

.social-links a:hover {
  transform: scale(1.1); /* Subtilus efektas ikonoms */
}

.social-links a:hover img {
  filter: none; /* Panaikinti invert efektą */
  transition: 0.3s;
}

.social-links img {
  width: auto; /* Ikonos dydis */
  height: 24px;
  filter: invert(100%); /* Balta ikona tamsiame fone */
}

/* Modal background */
/* Modal - iš pradžių paslėptas */
.modal {
  display: none; /* Paslėpti modalą pradiniame etape */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* Pusiau skaidrus fonas */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Modal content */
.modal-content {
  background-color: #2a2a2a;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5); /* Subtilus šešėlis */
  text-align: center;
  color: #fff;
  max-width: 500px;
  width: 90%; /* Užtikrina, kad modalas būtų mažesnis mobiliesiems */
}

/* Modal heading */
.modal-content h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #f39c12; /* Akcentinė spalva */
}

/* Modal paragraph */
.modal-content p {
  font-size: 1rem;
  margin-bottom: 30px;
  color: #ccc;
}

/* CTA Button in Modal */
.cta-btn {
  padding: 10px 20px;
  background-color: #f39c12;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 10px;
  transition: background-color 0.3s ease;
}

.cta-btn:hover {
  background-color: #e67e22;
}

/* Close button */
.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.5rem;
  color: #fff;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-btn:hover {
  color: #f39c12; /* Akcentinė spalva užvedus pelę */
}

/* Animacijos (optional) */
/* @keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
} */

.modal-content {
  animation: modalFadeIn 0.3s ease; /* Modalinis langas atsidaro sklandžiai */
}

/* Navigation bar */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #1e1e1e;
  z-index: 1000;
  display: flex;
  justify-content: space-between; /* Ensures the logo and nav items are spaced apart */
  align-items: center; /* Vertically aligns the logo and nav items */
}

/* Bendri nustatymai logotipui ir meniu punktams */
.logo img {
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Sklandus perėjimas */
}

/* Efektas užvedus ant logotipo */
.logo img:hover {
  filter: drop-shadow(0 0 10px rgba(243, 156, 18, 0.8)); /* Oranžinis šešėlis */
  transform: scale(1.3); /* Šiek tiek padidinti */
}

/* Efektas užvedus ant meniu punktų */
.nav-links a:hover {
  text-shadow: 0 0 10px rgba(243, 156, 18, 0.8); /* Oranžinis šešėlis aplink raides */
  transform: scale(1.3); /* Šiek tiek padidinti */
  display: inline-block; /* Pridedame, kad būtų taikomas 'transform' */
  transition: transform 0.2s ease-in-out; /* Sklandi animacija */
}

.logo img {
  height: 55px;
  width: auto;
  margin-right: 20px; /* Adds space between the logo and nav items */
  padding-left: 20px;
}

header nav {
  display: flex;
  align-items: center;
  height: 80px;
  padding-right: 20px;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin-left: 20px;
}

/* .nav-links li:first-child {
  margin-left: 0;
} */

.nav-links li a {
  font-size: 1rem;
  color: #ffffff;
  text-decoration: none;
}

.language-switcher {
  margin-left: 20px;
}

/* Hamburger Menu Styles */
.hamburger {
  display: none; /* Default - hidden on large screens */
  flex-direction: column;
  cursor: pointer;
  margin-left: auto;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #fff;
  margin: 4px 0;
  transition: 0.4s;
}

/* Mobilių ekranų meniu */
@media screen and (max-width: 767px) {
  .hamburger {
    display: flex; /* Rodyti hamburger meniu tik mažiems ekranams */
  }

  .language-switcher {
    display: none; /* Paslepiame kalbų perjungiklį viršutinėje juostoje mažiems ekranams */
  }

  .language-switcher-mobile {
    display: block; /* Rodyti kalbų perjungiklį hamburger meniu */
    margin-top: 20px;
    font-size: 1.2rem;
  }

  .nav-links {
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%; /* Meniu užima visą ekrano plotį */
    height: 100vh; /* Užima visą ekrano aukštį */
    background-color: #1e1e1e;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 50px;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
  }

  .nav-links.active {
    transform: translateX(0);
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .nav-links li {
    margin: 10px 0; /* Sumažiname vertikalų tarpą tarp punktų */
  }

  .service-item {
    flex: 1 1 100%; /* Kortelės užims visą plotą mažesniuose ekranuose */
    max-width: 100%;
  }

  .about-content {
    flex-direction: column; /* Tekstas ir nuotrauka bus viena po kita */
    text-align: center; /* Centruotas tekstas mažiems ekranams */
  }

  .about-text {
    text-align: center; /* Centruotas tekstas */
  }

  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  #contact-form input:focus,
  #contact-form textarea:focus {
    outline: none;
    box-shadow: 0 0 10px #f39c12;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .social-links {
    justify-content: center; /* Centruoti ikonas mažesniuose ekranuose */
  }
}

/* Plansetiniai ekranai */
@media screen and (min-width: 768px) {
  .language-switcher {
    display: block; /* Rodyti kalbų perjungiklį viršutinėje dalyje dideliuose ekranuose */
  }

  .language-switcher a {
    color: #ffffff; /* Šviesi spalva, gerai matoma tamsiame fone */
    text-decoration: none;
    font-weight: normal; /* Normalus svoris kitiems variantams */
  }

  .language-switcher a.active {
    color: #f39c12; /* Oranžinė spalva aktyviai kalbai */
    font-weight: bold; /* Storesnis šriftas aktyviai kalbai */
  }

  .language-switcher a:hover {
    color: #f39c12; /* Ryškiai oranžinė spalva užvedus pelę */
    text-decoration: underline;
  }

  .language-switcher-mobile {
    display: none; /* Paslėpti kalbų perjungiklį hamburger meniu dideliuose ekranuose */
  }

  .hamburger {
    display: none; /* Slėpti hamburger meniu didesniuose ekranuose */
  }

  .footer-content {
    display: flex;
    justify-content: center; /* Autorių teisės kairėje, nuorodos dešinėje */
    align-items: center; /* Vertikaliai centruoja turinį */
    padding: 10px 20px;
    padding-bottom: 30px;
    background-color: #333;
    color: #fff;
  }
}

/* Dideli ekranai (desktop) */
@media screen and (min-width: 1200px) {
  .nav-links {
    justify-content: flex-end;
  }

  .hamburger {
    display: none;
  }

  .language-switcher {
    margin-left: 20px;
  }
}

/* ========================
   ACCESSIBILITY & KEYBOARD NAVIGATION
   ======================== */

/* Focus indicators for better keyboard navigation */
button:focus,
a:focus,
input:focus,
textarea:focus,
.project:focus,
.hamburger:focus {
  outline: 2px solid #f39c12;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.3);
}

/* Focus indicators for portfolio projects */
.project:focus {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(243, 156, 18, 0.8);
}

/* Hamburger menu focus state */
.hamburger:focus {
  background-color: rgba(243, 156, 18, 0.1);
  border-radius: 4px;
  padding: 5px;
}

/* Navigation link focus states */
.nav-links a:focus {
  background-color: rgba(243, 156, 18, 0.2);
  border-radius: 4px;
  padding: 5px 10px;
  margin: -5px -10px;
}

/* Skip to main content link (for screen readers) */
.skip-link {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  background: #f39c12;
  color: #000;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 10000;
  overflow: hidden;
}

.skip-link:focus {
  position: absolute;
  left: 6px;
  top: 6px;
  width: auto;
  height: auto;
  padding: 8px;
  background: #f39c12;
  color: #000;
  text-decoration: none;
  border-radius: 4px;
  overflow: visible;
}

/* Form focus improvements */
#contact-form input:focus,
#contact-form textarea:focus {
  border: 2px solid #f39c12;
  box-shadow: 0 0 10px rgba(243, 156, 18, 0.3);
}

/* Improve button accessibility */
button,
.cta-btn {
  cursor: pointer;
  transition: all 0.3s ease;
}

button:focus,
.cta-btn:focus {
  transform: scale(1.05);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .project:focus {
    outline: 3px solid #fff;
    outline-offset: 3px;
  }

  button:focus,
  a:focus {
    outline: 3px solid #fff;
    background-color: #000;
    color: #fff;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .project:hover,
  .project:focus,
  button:hover,
  button:focus {
    transform: none;
  }

  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
