/* CSS Resets */
* {
  box-sizing: border-box;
}
@font-face {
  font-family: "PPMori";
  src: url("./assets/fonts/PPMori-Regular.woff") format("woff2"),
    url("./assets/fonts/PPMori-Regular.woff2") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: "PP Mori", sans-serif;
  margin: 0;
  color: #fdfdfc;
  background-color: #191818;
  font-weight: 200;
  line-height: 1.2;
  overflow-x: hidden; /* Prevent horizontal scrolling */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  cursor: none !important;
}

html {
  scroll-behavior: smooth; /* Enable smooth scrolling */
  max-width: 100%;
  overflow-x: hidden;
  cursor: none !important;
}

h1,
h2,
h3,
h4,
p,
ul {
  margin: 0;
  font-weight: 200;
}

/* Remove default list styles */
ul {
  list-style: none;
  padding: 0;
}

/* Remove default link styles */
a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  width: 100%;
  object-fit: cover; /* Ensure images maintain aspect ratio */
}

/* NavBar */
.navbar {
  height: 50px;
  width: 454px;
  padding: 10px 12px;
  background-color: rgba(242, 242, 240, 0.2); /* #F2F2F0 with 20% opacity */
  border-radius: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  backdrop-filter: blur(30px); /* Background blur */
}

.logo img {
  width: 171.56px;
  height: 30px;
}

.contact-btn {
  padding: 0;
  border: none;
  background-color: transparent;
  font-size: 18px;
  color: #fdfdfc;
  font-family: "PP Mori", sans-serif;
  cursor: pointer;
  font-weight: 200;
  text-decoration: none;
}

/* Banner - Mobile  first*/
.banner {
  display: flex;
  justify-content: center;
  text-align: center;
}

.banner-content {
  padding: 150px 10px 90px 10px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.banner-content h2 {
  font-size: 28px;
  line-height: 1.05;
  font-weight: 200;
  margin: 0 auto;
  text-align: start;
}
.banner-content p {
  font-size: 16px;
  text-align: start;
  margin-top: 25px;
}

/* Tablet styles */
@media (min-width: 768px) {
  .banner-content {
    width: 91%;
  }

  .banner-content h2 {
    font-size: 45px;
    margin-bottom: 20px;
  }
  .banner-content p {
    width: 55%;
    font-size: 20px;
  }
}

/* Desktop styles */
@media (min-width: 1024px) {
  .banner-content {
    width: 82%;
    padding-left: 0;
    padding-right: 0;
  }

  .banner-content h2 {
    font-size: 56px;
  }
  .banner-content p {
    font-size: 22px;
  }
}

@media (min-width: 1440px) {
  .banner-content h2 {
    font-size: 72px;
  }
  .banner-content p {
    width: 35%;
  }
}

/* Projects */
.projects-container {
  position: relative;
  z-index: 2;
}

.project {
  padding-left: 10px;
  margin-bottom: 150px;
  overflow: visible;
  touch-action: auto;
}

.projects-slider {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  /* scroll-behavior: smooth; */
  scrollbar-width: none;
  touch-action: pan-x pan-y; /* Allow both horizontal and vertical touch actions */
  user-select: none;
  margin-left: 0; /* Reset margin on smaller screens */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  will-change: scroll-position;
  scroll-behavior: smooth;
}

.projects-slider::-webkit-scrollbar {
  display: none;
}

.project h2 {
  margin-bottom: 24px;
}

.project p {
  margin-bottom: 48px;
}

.project-info {
  width: 453px;
  font-size: 22px;
  margin-left: var(--info-margin, 0);
}

/* Fix for project images - maintain consistent height */
.project-img,
.project-img-small {
  height: 302px !important; /* Force consistent height */
  border-radius: 5px;
  object-fit: cover; /* Maintain aspect ratio */
}

.project-img {
  width: 453px;
}

.project-img-small {
  width: 217px;
}

.project-video {
  width: 453px;
  height: 302px;
  border-radius: 5px;
  pointer-events: none;
}

.project-card {
  user-select: none;
}

.widgets-container {
  display: flex;
  gap: 10px;
  margin-left: var(--widgets-margin, 0);
  flex-wrap: wrap;
}

.widget {
  padding: 8px 10px;
  background-color: #474646;
  border-radius: 5px;
  font-size: 18px;
  opacity: 80%;
}

@media (min-width: 1440px) {
  .projects-slider {
    margin-left: calc(
      (100vw - 1440px) / 2
    ); /* Add left margin on larger screens */
  }
}

.video-container {
  position: relative;
}

/* About Section - Mobile First Approach */
.about-section {
  padding: 40px 10px;
  background-color: #191818; /* Dark background color */
  color: #fdfdfc;
}

.team {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
}

.card-box {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.about-section h2 {
  font-size: 22px;
  margin-bottom: 20px;
  font-weight: 300;
  color: rgba(253, 253, 252, 0.65); /* 65% opacity */
}

.card {
  width: 100%;
}

.fixed-card {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1.25;
  margin-bottom: 10px;
  background-color: #f5f5f5;
  overflow: hidden;
  border-radius: 5px;
}

.fixed-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
}

.card-content {
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-content h3 {
  font-size: 16px;
  font-weight: 400;
  color: #fdfdfc;
}

.card-content p {
  font-size: 14px;
  color: rgba(253, 253, 252, 0.65); /* 65% opacity */
  font-weight: 300;
}

/* Small Mobile (375px - 575px) */
@media (min-width: 375px) {
  .about-section h2 {
    font-size: 24px;
  }

  .card-content h3 {
    font-size: 18px;
  }

  .card-content p {
    font-size: 10px;
  }
}

/* Tablets (576px - 991px) */
@media (min-width: 576px) {
  .about-section {
    padding: 60px 30px;
  }

  .team {
    max-width: 800px;
    margin: 0 auto;
  }

  .card-box {
    flex-direction: row;
    gap: 10px;
    justify-content: flex-start;
  }

  .card {
    width: calc(50% - 5px);
  }

  .fixed-card {
    border-radius: 5px;
    overflow: hidden;
  }

  .fixed-card img {
    border-radius: 5px;
  }

  .about-section h2 {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .card-content h3 {
    font-size: 20px;
  }

  .card-content p {
    font-size: 16px;
  }
}

/* Small Desktop (992px - 1199px) */
@media (min-width: 992px) {
  .about-section {
    padding: 80px 40px;
  }

  .about-section h2 {
    font-size: 32px;
    margin-bottom: 40px;
  }

  .card-content h3 {
    font-size: 24px;
  }

  .card-content p {
    font-size: 18px;
  }
}

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
  .about-section {
    padding: 0 10px;
  }
  .team {
    max-width: 100%;
    justify-content: start;
  }
  .card {
    width: max-content;
  }

  .fixed-card {
    height: 500px;
    width: 400px;
  }

  .about-section h2 {
    font-size: 36px;
  }

  .card-content {
    padding: 20px 0;
    gap: 10px;
  }

  .card-content h3 {
    font-size: 28px;
  }

  .card-content p {
    font-size: 20px;
  }
}

/* Extra Large Desktop (1440px+) */
@media (min-width: 1440px) {
  .fixed-card {
    height: 566px;
    width: 453px;
  }

  .card-content h3 {
    font-size: 36px;
  }

  .card-content p {
    font-size: 22px;
  }
}

/* Media Queries for Responsive Design */

/* Large tablets and small desktops */
@media screen and (max-width: 1200px) {
  .project-info {
    width: 90%;
    max-width: 453px;
  }

  .project-img {
    width: 400px;
  }

  .project-img-small {
    width: 200px;
  }

  .project-video {
    width: 400px;
    height: 302px;
  }
}

/* Tablets */
@media screen and (max-width: 992px) {
  .navbar {
    width: 90%;
    max-width: 454px;
  }

  .project {
    margin-bottom: 120px;
  }
  .custom-cursor {
    display: none !important;
  }
}

/* Medium-sized tablets and large mobile */
@media screen and (max-width: 768px) {
  .navbar {
    width: 95%;
    height: 45px;
    padding: 8px 10px;
  }

  .logo img {
    width: 150px;
    height: 26px;
  }

  .contact-btn {
    font-size: 16px;
  }

  .project-info {
    font-size: 20px;
  }
  .project {
    padding: 0;
  }
  .project h2 {
    margin-bottom: 20px;
  }

  .project p {
    margin-bottom: 40px;
  }

  .project-img,
  .project-video {
    width: 350px;
  }

  .project-img-small {
    width: 175px;
  }

  .widget {
    font-size: 16px;
    padding: 7px 9px;
  }
}

/* Mobile Phones */
@media screen and (max-width: 576px) {
  .navbar {
    width: calc(100% - 20px);
    max-width: 100vw; /* Ensure it never exceeds viewport width */
    box-sizing: border-box; /* Include padding in width calculation */
    left: 50%;
    transform: translateX(-50%);
    padding-left: 8px;
    padding-right: 8px;
  }

  /* Ensure logo and button don't overflow */
  .logo img {
    width: 137px;
    height: 24px;
  }

  .contact-btn {
    white-space: nowrap; /* Prevent text wrapping */
    font-size: 14px;
  }

  .project {
    margin-bottom: 100px;
    overflow: visible;
    touch-action: auto;
  }

  .project-info {
    width: 95%;
    font-size: 16px;
  }

  .project h2 {
    margin-bottom: 16px;
  }

  .project p {
    margin-bottom: 30px;
  }

  .projects-slider {
    width: 100%;
    box-sizing: border-box;
    touch-action: pan-x pan-y; /* Allow both horizontal and vertical touch actions */
  }

  .project-card {
    flex: 0 0 auto;
  }

  .project-img,
  .project-video {
    width: 277px;
    height: 185px !important;
  }
  .project-img-small {
    height: 185px !important;
    width: 138px;
  }
  .widgets-container {
    gap: 8px;
    margin-bottom: 10px;
  }

  .widget {
    font-size: 14px;
    padding: 6px 8px;
  }
}

/* Extra Small Mobile Phones */
@media screen and (max-width: 375px) {
  .navbar {
    padding-left: 6px;
    padding-right: 6px;
    width: calc(100% - 12px); /* Slightly narrower on very small screens */
  }

  .contact-btn {
    font-size: 12px;
  }

  .project-info {
    font-size: 16px;
  }

  .widget {
    font-size: 12px;
    padding: 5px 7px;
  }
}

/* Custom cursor base style */
/* Default cursor state */
.custom-cursor {
  width: 20px; /* Small default size */
  height: 20px;
  border-radius: 50%;
  background-color: #d33233;
  color: #fdfdfc;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.2s, height 0.2s;
  pointer-events: none;
  position: fixed;
  transform: translate(-50%, -50%);
  z-index: 9999;
}

/* Footer hover state */
.custom-cursor.footer-hover {
  background-color: #ffffff; /* white */
  color: #d33233; /* red text if needed */
  border: 2px solid #d33233; /* optional border for contrast */
}

/* Larger cursor with arrow */
.custom-cursor.arrow-active {
  width: 50px; /* Larger size when arrow is active */
  height: 50px;
}

/* Slider hover state (without arrow) */
.custom-cursor.slider-hover {
  width: 20px; /* Keep small when hovering slider but no arrow */
  height: 20px;
}

/* Combined state - both slider hover and arrow active */
.custom-cursor.slider-hover.arrow-active {
  width: 50px; /* Larger size when arrow is active */
  height: 50px;
}

/* How we do it section */
.how-we-do-it {
  display: flex;
  flex-direction: column;
  padding: 0 10px 60px 10px;
  color: white;
  width: 100%;
  box-sizing: border-box;
}

.how-we-do-it span {
  font-size: 18px;
  margin-bottom: 24px;
  display: block;
  opacity: 0.5;
}

.inner-content {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.left-side h3 {
  font-size: 28px;
  margin-top: 0;
  margin-bottom: 40px;
}

.right-side p {
  font-size: 16px;
}

.right-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Tablet styles */
@media (min-width: 768px) {
  .how-we-do-it {
    margin-bottom: 100px;
  }
  .inner-content {
    flex-direction: row;
    gap: 10%;
  }

  .left-side {
    flex-basis: 50%;
  }

  .right-side {
    flex-basis: 50%;
  }

  .left-side h3 {
    font-size: 36px;
    margin-bottom: 0;
  }
}

/* Desktop styles */
@media (min-width: 1024px) {
  .left-side h3 {
    font-size: 56px;
  }

  .right-side p {
    font-size: 22px;
  }

  .inner-content {
    gap: 10%;
  }
}

@media (min-width: 1440px) {
  .how-we-do-it {
    padding: 80px;
    max-width: 1400px;
    margin: 0 auto;
  }
}
/* Slider Section - Mobile First */
.slider-section {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 30px 10px;
  gap: 20px;
  position: relative;
  background-color: #191818;
  color: #fdfdfc;
}

/* Images Slider - Adjusted for vertical/portrait images */
.images-slider {
  width: 100%;
  position: relative;
  aspect-ratio: 3 / 4; /* Portrait aspect ratio */
  height: 450px; /* Fixed height as requested */
  overflow: hidden;
  border-radius: 5px;
}

.images-slider > div {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.images-slider > div.active {
  opacity: 1;
  z-index: 2;
  animation: fadeIn 0.6s ease forwards;
}

.images-slider > div.hidden {
  opacity: 0;
  z-index: 1;
}

.images-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Text Slider */
.text-slider {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.text-slider > div {
  cursor: pointer;
  padding: 8px 0;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.text-slider h3 {
  font-size: 18px;
  margin-bottom: 4px;
  color: #fdfdfc;
  opacity: 0.4;
  transition: all 0.3s ease;
}

.text-slider p {
  font-size: 14px;
  color: #fdfdfc;
  opacity: 0.2;
  transition: all 0.3s ease;
}
.text-slider span {
  display: none;
  font-size: 16px;
}
.text-slider div p {
  display: block;
}
.text-slider div h3.activ-text + p {
  display: none;
}
.text-slider div h3.activ-text ~ span {
  display: inline;
}

.text-slider h3.activ-text,
.text-slider p.activ-text {
  opacity: 1;
}

/* Hover Effects */
.text-slider > div:hover h3,
.text-slider > div:hover p {
  opacity: 1;
}

/* Underline Animation */
.text-slider > div::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 1px;
  background-color: #fdfdfc;
  transition: width 0.3s ease;
}

.text-slider > div:hover::after,
.text-slider > div:focus::after {
  width: 100%;
}

/* Progress Indicators */
.slider-progress {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 10px;
}

.slider-progress-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.slider-progress-dot.active {
  background-color: #fdfdfc;
  transform: scale(1.2);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tablet (768px+) */
@media (min-width: 768px) {
  .slider-section {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 60px; /* Increased gap between left and right parts */
    width: 100vw; /* Full viewport width */
    max-width: 100vw; /* Ensure it doesn't exceed viewport */
    margin-left: calc(-50vw + 50%); /* Center the full-width section */
    margin-right: calc(-50vw + 50%);
    margin-bottom: 100px;
    box-sizing: border-box;
  }

  .images-slider {
    width: 50%; /* Exactly 50% width */
    height: 450px;
    max-width: none; /* Remove max-width constraint */
  }

  .text-slider {
    width: 50%; /* Exactly 50% width */
  }

  .text-slider > div {
    padding: 10px 0;
  }

  .text-slider h3 {
    font-size: 22px;
  }

  .text-slider p {
    font-size: 16px;
  }
  .text-slider span {
    font-size: 18px;
  }

  .slider-progress {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .slider-section {
    gap: 80px; /* Even more gap on desktop */
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
  }

  .images-slider {
    width: 50%;
    height: 550px;
    max-width: none;
  }

  .text-slider {
    width: 50%;
  }

  .text-slider > div {
    padding: 12px 0;
  }

  .text-slider h3 {
    font-size: 28px;
    margin-bottom: 6px;
  }

  .text-slider p {
    font-size: 18px;
  }
  .text-slider span {
    font-size: 22px;
  }
}

/* Large Desktop (1440px+) */
@media (min-width: 1440px) {
  .slider-section {
    padding: 100px;
    width: 1400px; /* Return to container width on very large screens */
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    justify-content: space-between;
  }

  .images-slider {
    height: 600px;
    max-width: 500px;
  }

  .text-slider h3 {
    font-size: 36px; /* Larger text for better readability */
  }

  .text-slider p {
    font-size: 22px; /* Larger text for better readability */
  }
}

/* Extra Large Desktop (1920px+) */
@media (min-width: 1920px) {
  .slider-section {
    padding: 80px 100px;
    max-width: 1600px;
  }

  .images-slider {
    height: 500px; /* Maximum height for very large screens */
    max-width: 400px; /* Increased width proportionally */
  }

  .text-slider h3 {
    font-size: 42px; /* Even larger text for ultra-wide screens */
  }

  .text-slider p {
    font-size: 24px; /* Even larger text for ultra-wide screens */
  }

  .text-slider > div {
    padding: 16px 0; /* More padding for larger screens */
  }
}

/* Footer - Mobile first */
.footer {
  width: 100%;
  padding: 10px;
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 auto;
}

.footer-text,
.footer-cta {
  background-color: #d33233;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  height: 250px;
  padding: 20px;
  line-height: 1.1;
}

.footer-text p {
  font-size: 28px;
}

.footer-cta {
  justify-content: space-between;
  min-height: 200px;
}

.logo {
  font-size: 1.75rem;
  font-weight: 500;
}

.start-project {
  text-decoration: none;
  font-size: 28px;
  display: flex;
  align-items: center;
  margin-top: auto;
}

.arrow {
  margin-left: 0.5rem;
}

/* Tablet (768px+) */
@media (min-width: 768px) {
  .footer-container {
    flex-direction: row;
  }

  .footer-text {
    width: 50%;
  }

  .footer-cta {
    width: 50%;
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .footer-text {
    width: 65%;
  }

  .footer-cta {
    width: 35%;
  }

  .footer-text p {
    font-size: 36px;
  }
  .footer .logo {
    font-size: 2.5rem;
  }
}

/* Large Desktop (1440px+) */
@media (min-width: 1440px) {
  .footer-text p {
    font-size: 2rem;
  }

  .logo {
    font-size: 2rem;
  }

  .start-project {
    font-size: 1.5rem;
  }
}
