/* FRADM font*/
@font-face {
  font-family: "Fradm";
  src: url("../fonts/FRADM.TTF") format("truetype");
  font-weight: normal;
  font-style: normal;
}

/* custom properties */
:root {
  --primary-gray: #485562;
  --light-gray: #a2a8ae;
  --dark: #181c20;
  --light: #fff;
}

html {
  overflow-x: hidden;
}

body {
  overflow: hidden;
}

body.content-loaded {
  overflow-x: hidden;
  overflow-y: auto;
}

/* Splash Screen */
.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow: hidden;
}

.splash-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.splash-text-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 60px;
}
#splashText1 {
  font-size: 50px;
}

.splash-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  transition: all 1.5s ease-out;
  flex-shrink: 0;
  position: relative;
}

.splash-icon.animate {
  position: fixed;
  width: 40px;
  height: 40px;
  z-index: 10000;
  transition: top 1.5s ease-out, left 1.5s ease-out, width 1.5s ease-out, height 1.5s ease-out;
}

.splash-text {
  display: flex;
  gap: 2px;
  font-size: 32px;
  color: #fff;
  font-weight: 400;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  height: 30px;
  align-items: center;
}

.splash-text-subtitle {
  font-size: 14px;
  margin-top: 0;
  letter-spacing: 2px;
  justify-content: flex-start;
  white-space: nowrap;
  height: 30px;
  align-items: center;
  line-height: 1.1;
}

.text-letter {
  display: inline-block;
  transition: all 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 1;
  transform: translate(0, 0) rotate(0deg);
}

.text-letter.scatter {
  opacity: 0;
}

/* Fragmented logo container and pieces */
.fragments-container {
  position: relative;
  width: var(--logo-width, 320px);
  height: var(--logo-height, 120px);
  pointer-events: none;
  overflow: visible;
}

.fragment-piece {
  position: absolute;
  background-image: url("../images/logo_animate.svg");
  background-repeat: no-repeat;
  background-size: var(--logo-width, 320px) var(--logo-height, 120px);
  will-change: transform, opacity;
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1), opacity 600ms ease;
  opacity: 0;
}

/* final assembled state helper (not required, JS will remove transforms) */
.fragments-assembled .fragment-piece {
  opacity: 1;
}


/* Main Content */
.main-content {
  opacity: 0;
  transform: translateY(100vh);
  transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  min-height: 100vh;
}

.main-content.show {
  opacity: 1;
  transform: translateY(0);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Fradm", sans-serif;
  font-weight: 400;
}

p {
  margin-bottom: 0;
}
hr {
  margin: 0;
}
.gap {
  gap: 30px;
}
.header {
  position: fixed; 
  padding-top: 16px;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  z-index: 30;
  background-color: white;
  transition: all 0.6s ease-in-out, opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
  box-shadow: none;
}

.header.sticky {
  animation: slideDown 0.6s ease forwards;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
}

.navbar {
  padding-left: 0;
  padding-right: 0;
}

.navbar-toggler.hamburg {
  border: none;
  box-shadow: none;
}

.navbar-nav {
  gap: 70px;
}
.navbar-nav li a {
  text-decoration: none;
  color: var(--primary-gray);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 400;
}
.navbar-nav li a.active {
  color: var(--dark);
  font-weight: 600;
}

/* footer */
.footer {
  padding: 36px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--primary-gray);
  font-size: 13px;
  letter-spacing: 2%;
  line-height: 16px;
}
.socials {
  display: flex;
  gap: 25px;
  margin-bottom: 18px;
}
.socials > a > img {
  width: 27px;
  height: 27px;
}
.footer p {
  text-transform: uppercase;
}
.contact-info {
  margin-bottom: 20px;
}
.address-info {
  margin-bottom: 44px;
}
.all-rights {
  margin-bottom: 33px;
}
.all-rights a {
  color: var(--primary-gray);
}

/* home page */

/* slider */
.home-slider {
  width: 100%;
  overflow-x: hidden;
  margin-top: 97px;
}
.home-slider div {
  width: 100%;
  height: auto;
  position: relative;
}
.home-slider div img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-slider .slick-dots {
  display: flex;
  justify-content: center;
  position: static;
  margin: 35px 0 35px;
}
.home-slider .slick-dots li {
  padding: 0;
  margin: 0;
  width: 14px;
}
.home-slider .slide-wrapper {
  position: relative;
}
.prev {
  position: absolute;
  top: 45%;
  left: 35px;
  transform: translateY(-50%);
}
.next {
  position: absolute;
  top: 45%;
  right: 35px;
  transform: translateY(-50%);
}
.prev,
.next {
  cursor: pointer;
  padding: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--dark);
  border-radius: 100%;
}

.splash-active .header {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}
.prev img,
.next img {
  width: 24px;
  height: 24px;
}

/* home projects */
.home-subtitle {
  text-align: center;
  text-transform: uppercase;
  font-size: 24px;
  letter-spacing: -3%;
  font-weight: 400;
  margin-bottom: 35px;
  color: var(--light-gray);
}
.home-subtitle span {
  color: var(--dark);
}
.home-projects {
  margin-bottom: 16px;
}
.project-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.project-card > img,
.project-image {
  max-width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}
.project-card:hover .project-image {
  transform: scale(1.02);
}
.project-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-transform: uppercase;
  margin-top: 14px;
}
.project-link p {
  color: var(--primary-gray);
  font-size: 12px;
  font-weight: 400;
  line-height: 15px;
  margin: auto 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.project-link a {
  display: flex;
  align-items: baseline;
}

/* Projects page grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 97px;
  margin-bottom: 40px;
}
[data-scroll] {
  will-change: transform, opacity;
  transition: all 0.6s ease-out;
  opacity: calc(0.3 + (var(--visible-y) * 0.7));
  transform: scale(calc(0.5 + calc(var(--visible-y) * 0.5)));
}

/* Expanded project card */
.project-card {
  transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              grid-column 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              max-width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-origin: center center;
  will-change: width, transform;
}

.project-card.expanded {
  grid-column: 1 / -1;
  width: 70%;
  max-width: 1100px;
  margin: 0 auto;
  animation: growFromCenter 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes growFromCenter {
  0% {
    transform: scale(0.4);
    opacity: 0.85;
  }
  60% {
    transform: scale(1.02);
    opacity: 0.95;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.project-card.expanded .project-image {
  display: none;
}

/* Project slider container */
.project-slider-container {
  display: none;
  width: 100%;
  position: relative;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.project-card.expanded .project-slider-container {
  display: block;
  opacity: 1;
}

.project-expanded-slider {
  width: 100%;
  padding: 20px 0;
}

.project-expanded-slider .swiper-slide {
  width: auto;
  height: auto;
}

.project-expanded-slider .swiper-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.project-expanded-slider .swiper-slide.text-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  width: 400px;
  max-width: 400px;
  box-sizing: border-box;
}

.project-expanded-slider .swiper-slide.text-slide p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--primary-gray);
  text-align: justify;
  margin: 0 auto;
  width: 98%;
}

/* Project slider navigation arrows */
.project-slider-prev,
.project-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  cursor: pointer;
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: transparent;
  transition: all 0.3s ease-in-out;
  border: none;
  outline: none;
  pointer-events: auto;
}

.project-slider-prev {
  left: 0px;
}

.project-slider-next {
  right: 0px;
}

.project-slider-prev img,
.project-slider-next img {
  width: 20px;
  height: 20px;
  transition: all 0.3s ease-in-out;
}

.project-expanded-slider .swiper-slide.image-slide {
  min-width: 500px;
  width: auto;
}

.project-slide img {
  width: 100%;
  height: auto;
  display: block;
}

/* Slider navigation - not needed for free mode but keeping for potential future use */
.project-slider-nav {
  display: none;
}

.modal-wrapper {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background-color: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(3px);
  z-index: 100;
  justify-content: center;
  align-items: center;
  transform: scale(0.1);
  transition: all 1s ease-in-out;
}
.modal-wrapper.show {
  display: flex;
  transform: scale(1);
  animation: zoom 0.6s ease-in-out;
}
.close {
  position: absolute;
  right: 2%;
  top: 4%;
  z-index: 300;
  cursor: pointer;
  font-size: 25px;
}
.modal-slider {
  padding: 50px 0;
  background: white;
}
.modal-slider .swiper-wrapper {
  display: flex;
  align-items: center;
}
.modal-slider .swiper-slide {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.modal-slider .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.modal-slider .swiper-slide p {
  font-size: 16px;
  line-height: 1.5;
  color: #333;
  padding: 20px;
  margin: 0;
  text-align: justify;
}

/* Single project page */
.container-custom {
  max-width: 1600px;
  margin: 100px auto 70px;
  position: relative;
}
.project-slider {
  margin: 0 auto;
  overflow: hidden;
}
.project-slider .slick-slide {
  transform: scale(0.8);
  transition: all 0.4s ease-in-out;
  padding: 40px 0;
}
.project-slider .slick-slide img {
  width: 100%;
  transition: all 0.4s ease-in-out;
}
.project-slider .slick-center {
  transform: scale(1.1);
}
.prevBtn,
.nextBtn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  cursor: pointer;
  width: 33px;
  height: 33px;
  padding: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--dark);
  border-radius: 100%;
}
.prevBtn {
  left: 20.2%;
}
.nextBtn {
  right: 20.2%;
}
.prevBtn img,
.nextBtn img {
  width: 18px;
  height: 18px;
}
.about-project {
  width: 415px;
  margin: 0 auto 32px;
}
.about-project h4 {
  text-align: center;
  color: var(--dark);
  font-size: 20px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.project-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.project-info div {
  display: flex;
  justify-content: space-between;
}
.project-info div p {
  color: var(--primary-gray);
  font-size: 12px;
}
/* About page */

.about-info {
  max-width: 800px;
  margin: 97px auto 0;
}
.about-title {
  text-align: center;
  text-transform: uppercase;
  font-size: 48px;
  letter-spacing: -3%;
  font-weight: 400;
  color: var(--dark);
  line-height: 132px;
}
.about-title span {
  color: var(--light-gray);
}
.info-wrapper {
  color: var(--primary-gray);
  font-size: 14px;
  line-height: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: justify;
  margin-bottom: 40px;
}
.btn-wrapper {
  text-align: center;
}
.btn-wrapper button,
.btn-wrapper a{
  border: 1px solid var(--primary-gray);
  background-color: white;
  border-radius: 900px;
  padding: 14px 20px;
  text-transform: uppercase;
  color: var(--dark);
  font-size: 10px;
  line-height: 24px;
  transition: all 0.3s ease-in-out;
}
.btn-wrapper button:hover,
.btn-wrapper a:hover {
  background-color: var(--dark);
  color: var(--light-gray);
}

/* Team */
.team-section {
  width: 395px;
  margin: 0 auto;
}
.team-wrapper {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  justify-content: center;
  margin-bottom: 40px;
}
.team-card {
  display: 33%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.team-card > img {
  max-width: 100%;
  height: auto;
}
.team-card p {
  color: var(--dark);
  font-size: 10px;
  line-height: 12px;
  letter-spacing: 2%;
  text-transform: uppercase;
  max-width: 150px;
}

/* clients page */
.clients {
  margin-top: 97px;
}
.clients-wrapper {
  width: 720px;
  margin: 0 auto 50px;
}
.clients-wrapper div {
  display: flex;
  justify-content: center;
  align-items: center;
}
.clients-wrapper div img {
  width: 80px;
  height: 80px;
}
.clients-title {
  margin-bottom: 35px;
}

/* contact */
.contact-container {
  margin-top: 97px;
}
.contact {
  margin-top: 10px;
  margin-bottom: 65px;
}
.map {
  border-radius: 20px;
  height: 100%;
}
.map iframe {
  width: 100%;
  height: 100%;
  border-radius: 20px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.form-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.form-field {
  width: 100%;
  display: flex;
  flex-direction: column;
}
.form-field label {
  color: var(--dark);
  font-size: 14px;
  line-height: 23px;
  letter-spacing: 2%;
}
.form-field input,
.form-field textarea {
  border: 1px solid var(--light-gray);
  border-radius: 10px;
  padding: 10px 20px;
  color: var(--dark);
  font-size: 14px;
  line-height: 23px;
  letter-spacing: 2%;
}
.form-field textarea {
  height: 155px;
}
.form-btn button {
  background-color: white;
  width: 180px;
  border: 1px solid var(--dark);
  border-radius: 900px;
  padding: 13px 20px;
  font-size: 12px;
  letter-spacing: 2%;
  text-transform: uppercase;
  color: var(--dark);
  transition: all 0.3s ease-in-out;
}
.form-btn button:hover {
  background-color: var(--dark);
  color: var(--light-gray);
}

/* Responsive 1200px */
@media (max-width: 1200px) {
  .navbar-nav {
    gap: 40px;
  }
  .map {
    height: 500px;
  }
  .contact {
    gap: 30px;
  }
  .prevBtn,
  .nextBtn {
    height: 28px;
    width: 28px;
  }
  .prevBtn {
    left: 20%;
  }
  .nextBtn {
    right: 20%;
  }
  .projects-grid {
    gap: 25px;
  }
}

/* Responsive 992px */
@media (max-width: 992px) {
  .navbar-nav {
    gap: 20px;
    margin-top: 30px;
  }
  .about-title {
    line-height: 100px;
    font-size: 35px;
  }
  .prevBtn,
  .nextBtn {
    height: 24px;
    width: 24px;
  }
  .prevBtn img,
  .nextBtn img {
    width: 15px;
    height: 15px;
  }
  .modal-slider .swiper-slide p {
    font-size: 14px;
    line-height: 16px;
  }
}
/* Responsive 768px */
@media (max-width: 768px) {
  .team-section {
    width: 100%;
  }
  .clients-wrapper {
    width: 100%;
  }
  .clients-wrapper .row div {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .prevBtn,
  .nextBtn {
    display: none;
  }
  .container-custom {
    margin-bottom: 40px;
  }
  .form-row {
    flex-direction: column;
    gap: 30px;
  }
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .project-card.expanded {
    grid-column: 1 / -1;
    width: 85%;
  }
  .project-expanded-slider .swiper-slide.image-slide {
    min-width: 400px;
  }
  .project-expanded-slider .swiper-slide.text-slide {
    width: 350px;
    max-width: 350px;
    padding: 30px;
  }
}
/* Responsive 576px */
@media (max-width: 576px) {
  body {
    overflow-x: hidden;
  }
  .header {
    padding-top: 10px;
    padding-bottom: 10px;
    width: 100%;
    left: 0;
    right: 0;
  }
  .header .container {
    width: 100%;
    max-width: 100%;
    padding-left: 0 ;
    padding-right: 0 ;
    margin-left: 0 ;
    margin-right: 0 ;
  }
  .navbar-brand {
    padding-left: 15px;
  }
  .navbar-toggler {
    padding-right: 15px;
  }
  .navbar-brand img {
    width: 150px ;
    height: auto;
  }
  .navbar {
    padding-left: 0 ;
    padding-right: 0 ;
  }
  .navbar-nav {
    gap: 15px;
    padding-left: 15px;
  }
  .home-projects {
    gap: 30px;
  }
  .slick-dotted.slick-slider {
    margin-bottom: 0;
  }
  .prev, .next { 
    border: none;
  }
  .prev img, .next img { 
    display: none;
  }
  .about-project{
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }
  .about-title {
    line-height: 80px;
    font-size: 25px;
  }
  .info-wrapper {
    text-align: justify;
    padding: 0 20px;
  }
  .team-wrapper {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 40px;
    row-gap: 30px;
  }
  .home-projects {
    margin-right: 0;
    margin-left: 0;
  }
  .slider {
    margin-left: 0;
    margin-right: 0;
  }
  .contact-form {
    gap:15px; 
  }
  .form-row {
    gap: 15px;
  }
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .project-card.expanded {
    width: 95%;
  }

  .project-card img, 
  .project-card-home img {
      width: 100%;
      max-width: 100%;
      height: auto;
      display: block; 
      object-fit: cover; 
  }

  .project-expanded-slider .swiper-slide.image-slide {
    min-width: 300px;
  }
  .project-expanded-slider .swiper-slide.text-slide {
    width: 320px;
    max-width: 320px;
    padding: 20px;
  }
  .project-expanded-slider .swiper-slide.text-slide p {
    font-size: 14px;
  }
  .project-slider-prev,
  .project-slider-next {
    width: 32px;
    height: 32px;
  }
  .project-slider-prev img,
  .project-slider-next img {
    width: 16px;
    height: 16px;
  }
  /* Splash screen mobile */
  .splash-icon {
    width: 50px;
    height: 50px;
  }
  .splash-icon.animate {
    width: 30px;
    height: 30px;
  }
  #splashText1 {
    font-size: 30px;
  }
  .splash-text {
    font-size: 20px;
    height: 24px;
  }
  .splash-text-subtitle {
    font-size: 11px;
    height: 20px;
  }
  .splash-content {
    gap: 12px;
  }
  .splash-text-wrapper {
    height: 44px;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-100px);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes zoom {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}