@font-face {
  font-family: 'Poppins';
  src: url('fonts/Poppins/Poppins-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  scroll-behavior: smooth;
  font-family: 'Poppins', sans-serif;
}
:root {
  --bg-color: #080808;
  --second-bg-color: #101010;
  --text-color: rgb(237, 237, 237);
  --main-color: #6ed1d8;
}
html {
  font-size: 60%;
  overflow-x: hidden;
}
body {
  background: var(--bg-color);
  color: var(--text-color);
  
}
.header {
  position:fixed;
  width:100%;
  top:0;
  left: 0;
  padding: 4rem 15%;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index:1000;
}
 #menu-icon {
  font-size:3.5rem;
  color: var(--main-color);
  display: none;
 }
 .logo {
  font-size: 3rem;
  color: var(--text-color);
  font-weight:800;
  cursor: pointer;
  transition: 0.3s ease-in-out;
 }
 .logo:hover {
  transform: scale(1.1);
 }
 span {
  background: linear-gradient(90deg, #7248c1 10%, #6ed1d8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent; 
  color: transparent;
 }

 .navbar a {
  text-decoration: none;
  color:var(--text-color) ;
  font-size: 1.8rem;
  margin-left: 4rem;
  font-weight: 500;
  transition: 0.3s ease-in-out;
  border-bottom:3px solid transparent;

 }

 .navbar a:hover {
  color: var(--main-color);
  border-bottom: 3px solid var(--main-color);
 }

 section {
  min-height: 100vh;
  padding: 10rem 15%;
 }
 .home {
  display: flex;
  align-items: center;
  justify-content: center;
  gap:15rem;
  padding-bottom: 1rem;
  flex-direction: row-reverse;
 }
 .home-content {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
 }
.home-content h1 {
  font-size: 5rem;
  font-weight: 700;
  margin-top: 1.5rem;
  line-height: 1;
}
.home-content h3 {
  margin: 1rem 0;
  font-size: 3rem;
}
.home-content p {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.8;
  
}
.home-img img {
  height:60vh;
  width: auto;
  border-radius:10%;
  box-shadow:0 0 25px var(--main-color);
  transition: 0.4s ease-in-out;
}

.home-img img:hover{
  box-shadow:0 0 25px var(--main-color),
             0 0 50px var(--main-color),
             0 0 100px var(--main-color);
}
.social-icons a{
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  background: transparent;
  border: 2px solid var(--main-color);
  border-radius: 50%;
  color: var(--main-color);
  margin: 0.5rem;
  transition: 0.3s ease-in-out;
}
.social-icons a:hover {
  color: var(--text-color);
  background-color: var(--main-color);
  transform: scale(1.2)translateY(-5px);
  box-shadow: 0 0 25px var(--main-color);
}

.social-icons svg {
  width: 3rem;
  height: 3rem;
}

.about {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10rem;
  background: var(--second-bg-color);
}

.about-img img {
  border-radius:10%;
  height:60vh;
  width: auto;
  border-radius: 10%;
  box-shadow: 0 0 25px var(--main-color);
  transition: 0.4s ease-in-out;
}
.about-img img:hover {
  box-shadow:0 0 25px var(--main-color),
             0 0 50px var(--main-color),
             0 0 100px var(--main-color);
}
.about-content h2 {
  font-size: 5rem;
  text-align: left;
}
.about-content p {
  font-size: 1.8rem;
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}

.btn {
  display: inline-block;
  padding: 1rem 3rem;
  background-color: var(--main-color);
  box-shadow: 0 0 25px var(--main-color);
  border-radius: 3rem;
  font-size: 1.8rem;
  color: black;
  border: 2px solid transparent;
  font-weight: 600;
  transition: 0.3s ease-in-out;
}
.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px var(--main-color),
  0 0 50px var(--main-color);
}

.about-content .btn {
  margin: 3rem 0;
}
::-webkit-scrollbar {
  width:20px;
}

::-webkit-scrollbar-thumb {
  background-color: var(--main-color);
}

::-webkit-scrollbar-track {
  background-color: var(--bg-color);
}

.heading {
  text-align: center;
  font-size: 5rem;
  margin: 5rem 0;

}
.services {
  background-color: var(--bg-color);
  color: black;
}

.services h2 {
  color: var(--text-color);
}
.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: center;
  gap: 2.5rem;
}

.service-box {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--main-color);
  height: 450px;
  border-radius: 3rem;
  border: 5px solid transparent;
  transition: 0.4s ease-in-out;
}

.service-box:hover{
  background: var(--second-bg-color);
  color: var(--main-color);
  border: 5px solid var(--main-color);
  transform: scale(1.03);
}

.service-info {
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: center;
  align-items: center;
  padding: 5rem;
}
.service-info h4 {
  font-size: 2rem;
  margin: 2rem 0;
  font-weight: 800;
}

.service-info P {
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.7;
}

.service-info svg {
  width: 7rem;
  height: 7rem;
}

.projects {
  background-color: var(--second-bg-color);
}
.projects-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
  place-items: center;
  gap: 3rem;
  row-gap: 5rem;
}
.project-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--bg-color);
  border: 2px solid var(--main-color);
  border-radius: 3rem;
  gap: 3rem;
  padding: 5rem 2rem;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 0 5px var(--main-color);
  transition: 0.3s ease;
}
.project-card:hover {
  box-shadow:0 0 25px var(--main-color),
             0 0 50px var(--main-color);
  transform: scale(1.02);
}

.special-sprite {
  width: 500px;
  height: auto; /* автоматичне визначення */
  aspect-ratio: 842 / 1191; /* збереже оригінальне співвідношення */
  border-radius: 1.25em;
  background-image: url('img/Adams_day.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: switchImage 2s steps(1) infinite;
  margin-bottom: 1rem;
}

@keyframes switchImage {
  0% {
    background-image: url('img/Adams_day.webp');
  }
  50% {
    background-image: url('img/Adams_night.webp');
  }
  100% {
    background-image: url('img/Adams_day.webp');
  }
}

.project-card img {
  max-width:500px;
  height: auto;
  border-radius: 1.25em;
  object-fit: cover;
}

.project-card video {
  max-width:500px;
  border-radius: 1.25em;
  object-fit: cover;
}

.project-card h3{
  font-size: 3rem;
}
.project-card p {
  font-size: 1.6rem;
  width: 100%;
  max-width: 500px;
  text-align: center;
}
.footer {
  padding: 50px 0;
}
.footer .social-icons {
  text-align: center;
  font-size: 0.7rem;
}
.footer .list {
  text-align: center;
  font-size: 1.7rem;
}
.footer ul li {
  display: inline-block;
  padding: 20px 30px 30px;
}
.footer ul li a {
  text-decoration: none;
  color: white;
  border-bottom: 3px solid transparent;
  transition: 0.3s ease-in-out;
}
.footer ul li a:hover {
  border-bottom: 3px solid var(--main-color);
} 
.footer .copyright {
  text-align: center;
  margin-top: 20px;
  font-size: 16px;
}

@media(max-width:1285px){
  #menu-icon {
    display: block;
  }
  .navbar {
    position: absolute;
    top: 100%;
    right: 0;
    width: 50%;
    padding: 1rem 3rem;
    background: rgba(0, 0, 0, 0.8);
    border-bottom-left-radius: 2rem;
    border-left: 2px solid var(--main-color);
    border-bottom: 2px solid var(--main-color);
    display: none;
  }
  .navbar a {
    display: block;
    font-size: 2rem;
    margin: 3rem 0;
    color: var(--text-color);
  }
  .navbar.active {
    display: block;
  }
  .home{
    flex-direction: column-reverse;
    margin: 5rem 0;
    gap:5rem;
  }
  .home-content{
    align-items: center;
    text-align: center;
  }
  
  .about {
    flex-direction: column-reverse;
    text-align: center;
  }
  .about h2{
    text-align: center;
    margin: 2rem 0;
  }
  
}
@media(max-width:800px){
  .home-img img {
    height:40vh;
  }
  .about-img img {
    height:40vh;
  }
  .services {
    text-align: center;
    padding: 4rem;
  }
  .home-content h1 {
    font-size: 3.5rem;
  }
  .home-content h3 {
    font-size: 2rem;
  }
  .about h2 {
    font-size: 3rem;
  }
  .services h2 {
    font-size: 3rem;
  }

  .service-box {
    height: 270px;
  }
  .heading {
    font-size: 3rem;
  }

  .project-card h3 {
    font-size: 2rem;
  }
  .home-content p {
    font-size: 1.2rem;
  }
  .project-card p {
    font-size: 1.2rem;
    max-width: 250px;
  }
  .about-content p {
    font-size: 1.2rem;
  }
  .projects {
    text-align: center;
    padding: 4rem;
  }
  .projects-box {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  .project-card img {
    max-width:250px;
  }
  .project-card video {
    max-width:250px;
  }
  .special-sprite {
    max-width: 250px;
  }
  .footer .list{
    font-size: 1rem;
    padding: 5px 10px 10px;
  }
  .footer .copyright {
    font-size: 1rem;
  }
  .footer ul li {
    padding: 5px 10px 10px;
  }
}