@font-face {
  font-family: "Rethink Sans";
  src: url("/fonts/rl-madena.woff") format("woff");

  font-family: "Chillax-Variable";
  src: url("../fonts/Chillax-Variable.woff2") format("woff2"),
    url("../fonts/Chillax-Variable.woff") format("woff"),
    url("../fonts/Chillax-Variable.ttf") format("truetype");
  font-weight: 200 700;
  font-display: swap;
  font-style: normal;
}

body {
  margin: 0;
  background-color: black;
  color: #ede2e2;
  font-family: "Rethink Sans", sans-serif;
  position: relative; /* Add this */
  overflow-x: hidden; /* Add this */
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 50px 50px;
  background-color: transparent;
  z-index: 1000;
  box-sizing: border-box;
  padding-bottom: 65px;
  mix-blend-mode: difference;
}

.header .center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 48px;
  font-weight: bold;
  text-align: center;
  font-family: "Chillax-Variable";
  letter-spacing: 10px;
}

.header .side {
  font-size: 20px;
}

.section {
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: 120px 0;
  padding-top: 100px;
  box-sizing: border-box;
  max-width: 1800px;
  margin: 0 auto;
  justify-content: center;
}

a.center {
  display: inline-block; /* or block if you want the whole div width */
  text-decoration: none; /* remove underline from the link */
  color: inherit; /* keep the text color the same as in the div */
}

a.center:hover {
  cursor: pointer; /* show the pointer on hover */
}

.image-container {
  flex: 0 0 50%;
  position: relative;
  overflow: hidden;
  display: flex;
}

.image-container img {
  width: 500px;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  position: relative; /* Add this */
}

.image-container:hover img {
  transform: scale(1.05);
}

.content-container {
  flex: 0 0 50%; /* Fixed width */
  padding: 60px;
}

.content-container h2 {
  font-size: 48px;
  margin-bottom: 30px;
  color: #ff2b2b;
}

.content-container p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 40px;
  color: #ede2e2;
}

.view-project {
  display: inline-block;
  padding: 15px 30px;
  background-color: #ff2b2b;
  color: black;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.view-project:hover {
  background-color: #ff4444;
}

.highlight-box {
  position: absolute;
  bottom: 30px;
  padding: 15px;
  background-color: rgba(255, 43, 43, 0.9);
  color: black;
  font-weight: bold;
  z-index: 1; /* Add this */
}

.section:nth-child(odd) {
  flex-direction: row-reverse; /* First and third sections */
}

.section:nth-child(even) {
  flex-direction: row; /* Second section */
}

.section:nth-child(odd) .content-container {
  padding-right: 60px; /* Add padding to right for first and third */
  text-align: right; /* Right align text */
}

.section:nth-child(even) .content-container {
  padding-left: 60px; /* Add padding to left for second */
  text-align: left; /* Left align text */
}

.section:nth-child(odd) .view-project {
  float: right; /* Align buttons with text */
}

/* Adjust alignment for odd sections (1 and 3) */
.section:nth-child(odd) .image-container {
  justify-content: flex-start; /* Changed from flex-end to flex-start */
  padding-left: 60px; /* Add padding to match section 2 spacing */
}

/* Maintain alignment for even section (2) */
.section:nth-child(even) .image-container {
  justify-content: flex-end;
  padding-right: 60px;
}

/* Adjust highlight box position for odd sections (1 and 3) */
.section:nth-child(odd) .highlight-box {
  right: 400px; /* Adjusted to be closer to the image */
  left: auto;
}

/* Adjust highlight box position for even section (2) */
.section:nth-child(even) .highlight-box {
  left: 400px; /* Adjusted to be closer to the image */
  right: auto;
}

.image-container img {
  width: 500px; /* Fixed width */
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* Add these new styles after the body styles */
.parallax-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.parallax-layer {
  position: absolute;
  width: 100%;
  height: 300%; /* Increased height to cover more scroll area */
  background-repeat: repeat-y; /* Make the background repeat vertically */
  background-size: 100% auto; /* Maintain aspect ratio */
  background-position: center top;
  will-change: transform;
}

/* Update layer opacities to be more visible */
.layer-1 {
  background-image: url("images/layer1.svg");
  opacity: 0.25;
}

.layer-2 {
  background-image: url("images/layer2.svg");
  opacity: 0.25;
}

.layer-3 {
  background-image: url("images/layer3.svg");
  opacity: 0.25;
}

.nav-links {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 30px;
  width: fit-content; /* Added to ensure proper centering */
  justify-content: center; /* Added to ensure links are centered */
}

.nav-link {
  color: #ede2e2;
  text-decoration: none;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: color 0.3s;
}

.header .center .red-x {
  color: #ff2b2b;
}

.nav-link:hover {
  color: #ff2b2b;
}

/*works page*/
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 120px 60px;
  max-width: 1800px;
  margin: 0 auto;
  padding-top: 180px;
}

.work-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}

.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.work-item:hover img {
  transform: scale(1.05);
}

.work-item .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: #ede2e2;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.work-item:hover .overlay {
  transform: translateY(0);
}

/*contact page*/
.contact-section {
  height: calc(100vh - 180px); /* Account for header and footer */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 60px;
  margin-top: 70px; /* Space for header */
}

.contact-container {
  max-width: 600px;
  width: 100%;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px; /* Reduced from 20px */
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px; /* Reduced from 10px */
}

.form-group label {
  color: #ff2b2b;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.form-group input,
.form-group textarea {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  padding: 15px;
  color: #ede2e2;
  font-family: inherit;
}

.form-group textarea {
  min-height: 120px; /* Reduced from 150px */
  resize: vertical;
}

.submit-btn {
  background: #ff2b2b;
  color: black;
  border: none;
  padding: 15px 30px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
  align-self: flex-start;
}

.submit-btn:hover {
  background: #ff4444;
}

#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
  background-color: #000000;
}

.footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  padding: 20px 0;
  background-color: rgba(0, 0, 0, 0.8);
  border-top: 1px solid rgba(255, 43, 43, 0.3);
  z-index: 5;
}

.footer-column {
  flex: 1;
  padding: 0 20px;
}

.footer-title {
  font-size: 24px;
  color: #ff2b2b;
  margin-bottom: 20px;
  font-weight: bold;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #ede2e2;
  font-size: 14px;
  letter-spacing: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #ede2e2;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #ff2b2b;
}

.footer-bottom {
  width: 100%;
  text-align: center;
  padding: 20px 0;
  background-color: rgba(0, 0, 0, 0.9);
  color: #ede2e2;
  font-size: 12px;
}

.social-links {
  display: flex;
  gap: 20px;
  padding-top: 15px; /* Added to match submit button padding */
}

.social-links a {
  color: #ede2e2;
  text-decoration: none;
  font-size: 24px;
  transition: color 0.3s, transform 0.3s;
  line-height: 1; /* Added to improve vertical alignment */
}

.social-links a:hover {
  color: #ff2b2b;
  transform: translateY(-2px);
}

.contact-heading {
  font-size: 40px;
  color: #ff2b2b;
  margin-bottom: 30px;
  text-align: center;
  white-space: nowrap;
}

.message-container {
  position: relative;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* Changed from center to flex-start */
  margin-top: 20px; /* Reduced from 30px */
  flex-direction: row-reverse; /* This will switch the order */
}

#montreal-time {
  font-family: monospace;
  color: #ff2b2b;
}

.header-center {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #ede2e2;
  position: absolute;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger span:first-child {
  top: 0;
}

.hamburger span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger span:last-child {
  bottom: 0;
}

.hamburger.active span:first-child {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:last-child {
  transform: translateY(-9px) rotate(-45deg);
}

/* Mobile and Tablet Responsiveness */
@media screen and (max-width: 1024px) {
  /* Header adjustments */
  .header {
    padding: 20px;
    margin-top: 40px;
  }

  .header-center {
    width: 100%;
    justify-content: center;
    position: relative;
  }

  .center {
    font-size: 36px;
  }

  /* Navigation adjustments */
  .hamburger {
    display: block;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #000000; /* Solid black background */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-link {
    font-size: 24px;
  }

  .header .side {
    display: none;
  }

  /* Section adjustments */
  .section {
    flex-direction: column;
    padding: 40px 20px;
    text-align: center;
    margin-top: 0px;
  }

  .section:first-of-type {
    margin-top: 120px;
  }

  .section:last-of-type {
    margin-bottom: 80px;
  }

  .image-container {
    width: 100%;
    max-width: 700px; /* Slightly larger for iPad */
    margin: 0 auto 30px;
    padding: 0;
    justify-content: center;
  }

  .image-container img {
    width: 100%;
    height: auto;
  }

  .highlight-box {
    left: 50% !important;
    right: auto !important;
    bottom: 20px;
    transform: translateX(-50%);
    width: 150px;
  }

  .content-container {
    width: 100%;
    max-width: 700px; /* Slightly larger for iPad */
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
  }

  /* Override odd/even section styles */
  .section:nth-child(odd),
  .section:nth-child(even) {
    flex-direction: column;
  }

  .section:nth-child(odd) .content-container,
  .section:nth-child(even) .content-container {
    padding: 0 20px;
    text-align: center;
  }

  .section:nth-child(odd) .image-container,
  .section:nth-child(even) .image-container {
    padding: 0;
    justify-content: center;
  }

  .section:nth-child(odd) .view-project,
  .section:nth-child(even) .view-project {
    float: none;
    margin: 0 auto;
  }

  /* Works grid adjustments */
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 120px 40px;
    padding-top: 200px;
  }

  .view-project {
    width: 150px;
  }

  .work-item:last-of-type {
    padding-bottom: 80px;
  }

  /* Mobile-specific adjustments */
  @media screen and (max-width: 768px) {
    /* Header adjustments */
    .header {
      padding: 20px 0; /* Reduced padding */
      flex-direction: column;
      align-items: center;
      gap: 15px;
    }

    .header .center {
      position: relative;
      left: 0;
      transform: none;
      font-size: 50px;
      order: -1;
    }

    .header .side {
      font-size: 14px;
      display: none; /* Hide email and location on mobile */
    }

    .nav-links {
      position: relative;
      bottom: 0;
      margin-top: 15px;
    }

    /* Section adjustments */
    .section {
      padding: 80px 20px;
      flex-direction: column;
      min-height: auto;
      text-align: center;
    }

    .image-container {
      flex: none;
      width: 100%;
      padding: 0 20px;
      justify-content: center;
      margin-bottom: 30px;
    }

    .image-container img {
      width: 100%;
      max-width: 500px;
      height: auto;
      margin: 0 auto;
    }

    .highlight-box {
      left: 50% !important;
      right: auto !important;
      bottom: 20px;
      transform: translateX(-50%);
    }

    .content-container {
      padding: 0 20px;
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .content-container h2 {
      font-size: 36px;
      margin-bottom: 20px;
      text-align: center;
    }

    .content-container p {
      font-size: 16px;
      line-height: 1.5;
      margin-bottom: 30px;
      text-align: center;
    }

    .view-project {
      float: none;
      margin: 0 auto;
    }

    /* Override any existing odd/even section styles for mobile */
    .section:nth-child(odd),
    .section:nth-child(even) {
      flex-direction: column;
    }

    .section:nth-child(odd) .content-container,
    .section:nth-child(even) .content-container {
      padding: 0 20px;
      text-align: center;
    }

    .section:nth-child(odd) .image-container,
    .section:nth-child(even) .image-container {
      padding: 0 20px;
      justify-content: center;
    }

    .section:nth-child(odd) .view-project {
      float: none;
    }

    /* Works page adjustments */
    .works-grid {
      grid-template-columns: 1fr;
      padding: 100px 20px;
      padding-top: 200px;
    }

    /* Contact page adjustments */
    .contact-section {
      padding: 20px;
      height: auto;
      margin-top: 100px;
    }

    .contact-heading {
      font-size: 28px;
      padding-top: 120px;
    }

    .form-actions {
      flex-direction: column;
      gap: 20px;
      align-items: center;
    }

    .social-links {
      order: 2;
    }

    .submit-btn {
      width: 100%;
      order: 1;
    }

    /* Footer adjustments */
    .footer {
      padding: 15px 0;
    }

    .footer-content {
      font-size: 12px;
      gap: 5px;
    }

    .header-center {
      width: 100%;
      justify-content: center; /* Center ANTIX title */
      position: relative; /* For absolute positioning of hamburger */
    }

    .hamburger {
      position: absolute;
      right: 20px;
      top: 50%;
      transform: translateY(-50%);
    }

    /* Section spacing fixes */
    .section {
      padding: 40px 20px; /* Reduced padding */
      margin-top: 60px; /* Add space after header */
    }

    .image-container {
      margin-bottom: 20px; /* Reduced spacing */
      width: 80%;
    }

    .content-container {
      gap: 15px; /* Reduced spacing between elements */
      width: 80%;
    }

    .content-container h2 {
      margin-bottom: 15px; /* Reduced spacing */
    }

    /* Hamburger menu overlay */
    .nav-links {
      background-color: rgba(0, 0, 0, 0.98); /* Darker background */
    }

    .nav-links.active ~ * {
      filter: blur(5px); /* Blur background content when menu is active */
      pointer-events: none; /* Disable interactions with blurred content */
    }

    /* First section additional spacing */
    .section:first-of-type {
      margin-top: 120px; /* More space after header for first section */
    }

    /* Header adjustments */
    .header {
      padding: 20px;
      margin-top: 0px;
    }

    .image-container {
      max-width: 100%;
    }

    .content-container h2 {
      font-size: 40px;
    }

    .content-container p {
      font-size: 18px;
    }

    .hamburger {
      display: block;
    }

    .nav-links {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100vh;
      background-color: rgba(0, 0, 0, 0.95);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 30px;
      transform: translateX(-100%);
      transition: transform 0.3s ease-in-out;
      z-index: 1000;
    }

    .nav-links.active {
      transform: translateX(0);
    }

    .header .side {
      display: none;
    }

    /* Section adjustments */
    .section {
      flex-direction: column;
      padding: 40px 20px;
      text-align: center;
      margin-top: 60px;
    }

    .section:first-of-type {
      margin-top: 120px;
    }

    .section:last-of-type {
      margin-bottom: 120px;
    }

    @media screen and (max-width: 480px) {
      .contact-heading {
        padding-top: 0px;
      }

      /* Contact page adjustments */
      .contact-container {
        margin-bottom: 200px;
      }
    }
  }
}
