* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.6;
  color: #333;
}

nav {
  position: fixed;
  width: 100%;
  padding: 0 1.5rem;
  background: rgba(10, 4, 6, 1);
  color: white;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  color: white;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

nav .logo {
  height: 80px;
  display: flex;
  align-items: center;
}

nav .logo img {
  height: 100%;
  width: auto;
}

section {
  min-height: 100vh;
  padding: 6rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

#home {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  min-height: 100vh;
  background-image: url('./images/services/5.jpeg');
  background-size: cover;
  background-position: center;
  padding: 2rem;
  transition: background-image 1s ease-in-out;
}

#home::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--next-image);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 0;
}

#home.transitioning::before {
  opacity: 1;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 4, 6, 0.7);
}

#home h1 {
  font-size: 8rem;
  letter-spacing: 0.5rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  color: white;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
}

#home h1.visible {
  opacity: 1;
  transform: translateY(0);
}

#home .tagline {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
  position: relative;
  z-index: 1;
  color: white;
  font-size: 2.5rem;
}

#home .tagline.visible {
  opacity: 1;
  transform: translateY(0);
}

.content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 10;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image img {
  width: 100%;
  height: auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
  margin-top: 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.service-item {
  position: relative;
  padding: 0;
  background: #F7F7F7;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  background: rgba(0, 0, 0, 0.02);
}

.service-image {
  height: 300px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.service-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-number {
  display: block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.service-content h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  color: #fff;
}

.service-item p {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 2rem;
}

.team-member img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  margin-bottom: 1.5rem;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.team-member h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.team-member .role {
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
  margin-bottom: 1rem;
}

.team-member p {
  color: rgba(255, 255, 255, 0.8);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  margin-top: 2rem;
}

.project-item {
  cursor: pointer;
  position: relative;
  margin-bottom: 6rem;
}

.project-item img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
  display: block;
  margin-bottom: 0;
}

.project-info {
  padding: 2rem;
  background: #F7F7F7;
  border: 1px solid rgba(0, 0, 0, 0.1);
  margin-top: 0;
}

.project-year {
  display: block;
  font-size: 0.9rem;
  color: #595959;
  margin-bottom: 1rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.project-info h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.project-info p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #000;
}

#about,
#team,
#contact {
  background-color: #0A0406;
  color: #fff;
}

#contact {
  min-height: auto;
  height: auto;
}

#contact h2 {
  text-align: left;
}

#contact a {
  color: white;
  text-decoration: none;
}

#contact a span {
  text-decoration: underline;
}

.decorative-line {
  position: absolute;
  height: 100%;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
  top: 0;
  z-index: 1;
}

.decorative-line.left {
  left: 15%;
}

.decorative-line.right {
  right: 15%;
}

.curved-line {
  position: absolute;
  bottom: -50px;
  left: 0;
  width: 100%;
  height: 100px;
  fill: none;
  stroke: rgba(128, 128, 128, 0.2);
  stroke-width: 1px;
}

#about .about-grid,
#team .team-grid {
  position: relative;
  z-index: 2;
}

#services .service-item {
  background: #F7F7F7;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

#services .content {
  max-width: 100%;
}

.project-info {
  background: #F7F7F7;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.swirl {
  position: absolute;
  width: 400px;
  height: 400px;
  border: 1px solid rgba(128, 128, 128, 0.2);
  border-radius: 50%;
  animation: rotate 40s linear infinite;
}

.swirl.top-right {
  top: -200px;
  right: -200px;
}

.swirl.bottom-left {
  bottom: -200px;
  left: -200px;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.revealed {
  opacity: 1;
  transform: translateY(0);
}

nav a.active {
  position: relative;
}

nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: white;
  transform: scaleX(1);
  transition: transform 0.3s ease;
}

nav a:not(.active)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: white;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

nav a:hover::after {
  transform: scaleX(1);
}

* {
  transition: all 0.3s ease;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.team-member img {
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.team-member:hover img {
  /* filter: grayscale(0%); */
}

#services .decorative-line,
#projects .decorative-line {
  background: rgba(128, 128, 128, 0.2);
}

#services {
  background-color: #fff;
  color: #111;
}

#services .service-item {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

#services .service-number {
  color: rgba(0, 0, 0, 0.4);
}

#services .service-item h3 {
  color: #111;
}

#services .service-item p {
  color: #000;
}

#services .service-item:hover h3 {
  color: rgba(0, 0, 0, 0.7);
}

.project-item {
  cursor: pointer;
  position: relative;
  margin-bottom: 6rem;
}

.project-item img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
  display: block;
  margin-bottom: 0;
}

.project-info {
  padding: 2rem;
  background: #F7F7F7;
  border: 1px solid rgba(0, 0, 0, 0.1);
  margin-top: 0;
}

.project-year {
  display: block;
  font-size: 0.9rem;
  color: #595959;
  margin-bottom: 1rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.project-info h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.project-info p {
  font-size: 1.1rem;
  line-height: 1.6;
}

.service-item {
  position: relative;
  padding: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.service-item:hover {
  background: rgba(0, 0, 0, 0.02);
}

.service-item p {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 90%;
}

.content.full-width {
  max-width: 100%;
  padding: 0 2rem;
}

.projects-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 2rem 0;
}

.projects-track {
  display: flex;
  transition: transform 0.5s ease-out;
  gap: 2rem;
  padding: 0 15%;
}

.project-item {
  min-width: calc(70% - 2rem);
  opacity: 0.4;
  transform: scale(0.8);
  transition: all 0.5s ease;
}

.project-item:hover {
  opacity: 1;
  transform: scale(0.85);
}

.project-item.active {
  opacity: 1;
  transform: scale(1);
}

.project-item img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.carousel-button:hover {
  background: rgba(0, 0, 0, 1);
}

.carousel-button.prev {
  left: 2rem;
}

.carousel-button.next {
  right: 2rem;
}

.project-info {
  padding: 2rem;
  background: #F7F7F7;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.project-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 4, 6, 0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 2rem;
  overflow-y: auto;
}

.project-modal.active {
  display: flex;
}

.modal-content {
  position: relative;
  background: #fff;
  max-width: 1200px;
  width: 90%;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-image {
  position: sticky;
  top: 0;
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-info {
  padding: 3rem 2rem;
}

.modal-info .project-year {
  font-size: 1rem;
  color: rgba(0, 0, 0, 0.5);
  margin-bottom: 1rem;
  display: block;
}

.modal-info h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-align: left;
}

.project-details {
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.8);
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: rgba(0, 0, 0, 0.5);
  transition: color 0.3s ease;
}

.close-modal:hover {
  color: #000;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1000;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #fff;
  margin: 5px 0;
  transition: all 0.3s ease;
}

#about .content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.about-grid {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.about-intro {
  margin: 24px auto;
}

.highlight-text {
  font-size: 1.5rem;
  line-height: 1.4;
  color: #fff;
  font-weight: 500;
}

.about-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.about-column h3 {
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
  color: #fff;
}

.about-column p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

.about-column p a {
  color: #fff;
  font-weight: 500;
}

/* Media Queries */
@media (max-width: 1200px) {
  #home h1 {
    font-size: 4.5rem;
    letter-spacing: 0.25rem;
    white-space: normal;
  }

  #home .tagline {
    margin-top: 1rem;
    font-size: 2rem;
  }
}

@media (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 968px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 0 2rem;
  }

  .service-image {
    height: 420px;
  }

  .service-content h3 {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  section {
    min-height: auto;
  }

  nav ul {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  #home h1 {
    font-size: 2.5rem;
    letter-spacing: 0.25rem;
    white-space: normal;
  }

  #home .tagline {
    margin-top: 1rem;
    font-size: 1rem;
  }

  #about .content {
    padding: 0;
  }

  #services {
    padding: 4rem 0;
  }

  #services h2 {
    padding: 0 2rem;
  }

  .service-image {
    height: 320px;
  }

  nav .logo {
    height: 80px;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .team-member img {
    height: 400px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-info h3 {
    font-size: 1.75rem;
  }

  .service-item p,
  .project-info p {
    max-width: 100%;
  }

  .content.full-width {
    padding: 0;
  }

  .projects-carousel {
    padding: 0;
  }

  .projects-track {
    display: block;
    padding: 0;
  }

  .project-item {
    width: 100%;
    opacity: 1;
    margin-bottom: 4rem;
    transform: scale(1);
  }

  .project-info {
    padding: 2rem;
  }

  .carousel-button {
    display: none;
  }


  .mobile-menu-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: rgba(10, 4, 6, 0.98);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.3s ease;
    z-index: 999;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu li {
    margin: 1.5rem 0;
  }

  .nav-menu a {
    font-size: 1.5rem;
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  body.menu-open {
    overflow: hidden;
  }

  .about-columns {
    grid-template-columns: 1fr;
  }

  .highlight-text {
    font-size: 1.25rem;
  }

  .about-column h3 {
    font-size: 1.5rem;
  }



  .modal-content {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
  }

  .modal-image {
    position: relative;
  }

  .modal-info h2 {
    font-size: 2rem;
  }
}

.copyright {
  margin-top: 3rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.copyright p {
  margin: 0;
}