:root {
  --black: 33, 28, 32;
  --silver: 188, 189, 191;
  --slate: 166, 169, 179;
  --red: 158, 28, 38;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, sans-serif;
  line-height: 1.6;
  color: rgb(var(--primary-black));
  overflow-x: hidden;
}

nav {
  display: flex;
  justify-content: center;
  position: fixed;
  z-index: 1;
  background-color: rgba(var(--black), 0.8);
  width: 100%;
}

nav .logo {
  width: 187px;
}

nav::after {
  content: "";
  position: absolute;
  width: 4vw;
  height: 0.75em;
  left: 0;
  bottom: 0;
  background-color: rgb(var(--red));
}

/* Hero Section */
.hero {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 90vh;
  display: block;
  object-fit: cover;
  opacity: 0.85;
  object-position: top center;
}

/* Masonry Section */
.masonry-section {
  padding: 80px 5%;
  background: linear-gradient(35deg, white 0%, rgb(var(--slate)) 100%);
}

.masonry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 300px);
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.masonry-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.masonry-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

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

.masonry-card.large {
  grid-column: span 2;
  grid-row: span 2;
}

.masonry-card figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(var(--black), 0.8), transparent);
  color: white;
  font-size: 16px;
  font-weight: 500;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.masonry-card:hover figcaption {
  transform: translateY(0);
}

/* Text + SVG Section */
.text-svg-section {
  display: flex;
  align-items: center;
  padding: 100px 5%;
  max-width: 1400px;
  margin: 0 auto;
  gap: 80px;
}

.text-content {
  flex: 1;
}

.text-content h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #6c757d;
  margin-bottom: 1em;
  font-weight: 600;
  width: fit-content;
  position: relative;
}

.text-content h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: rgba(var(--red), 0.8);
  transform: rotate(-1deg);
  transition: width 0.2s ease-in;
}
.text-content h3.visible::after {
  width: 100%;
}

.text-content h2 {
  font-size: 42px;
  font-weight: 700;
  color: #212529;
  margin-block: 0.4em 0.8em;
  line-height: 1.2;
}

.text-content p {
  font-size: 18px;
  color: #495057;
  line-height: 1.8;
  margin-block: 0.75em;
}

.svg-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.svg-container svg {
  max-width: 400px;
  width: 100%;
  height: auto;
}

/* Image + Text Section */
.image-text-section {
  display: flex;
  align-items: stretch;
  min-height: 500px;
}

.image-side {
  width: 60%;
  overflow: hidden;
}

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

.text-side {
  width: 40%;
  padding: 80px 60px;
  display: flex;
  align-items: center;
  background: #fff;
}

.display-text {
  font-size: 28px;
  line-height: 1.6;
  color: #212529;
  font-weight: 300;
}

/* About Us Section */
.about-us-section {
  display: flex;
  justify-content: center;
  gap: 2vw;
  padding-block: 5vh;
}
.about-us-section .about-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: right;
}
.about-us-section .about-text h4 {
  font-size: 0.9em;
  text-transform: uppercase;
  font-weight: bold;
}
.about-us-section .about-text .name {
  font-weight: bold;
  font-size: 1.5em;
  margin-block: 1em 0.25em;
}

.about-us-section .profile-picture img {
  border-radius: 50%;
  width: min(25vw, 300px);
}

/* Contact Section */
.contact-section {
  padding: 100px 5%;
  text-align: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.contact-btn {
  display: inline-block;
  padding: 18px 50px;
  background: white;
  color: #667eea;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.contact-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  background: #f8f9fa;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .masonry-section {
    padding: 40px 0;
    background: #f8f9fa;
  }

  .masonry-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 15px;
    padding: 0 5%;
    grid-template-columns: none;
    grid-template-rows: none;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .masonry-grid::-webkit-scrollbar {
    display: none;
  }

  .masonry-card {
    min-width: 90vw;
    height: 400px;
    scroll-snap-align: center;
    flex-shrink: 0;
  }

  .masonry-card.large {
    grid-column: span 1;
    grid-row: span 1;
  }

  .text-svg-section {
    flex-direction: column;
    padding: 60px 5%;
    gap: 40px;
  }

  .svg-container {
    order: -1;
  }

  .text-content h2 {
    font-size: 32px;
  }

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

  .image-text-section {
    flex-direction: column;
    position: relative;
    min-height: 600px;
  }

  .image-side {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
  }

  .image-side::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: 2;
  }

  .text-side {
    width: 100%;
    padding: 60px 30px;
    position: relative;
    z-index: 3;
    background: transparent;
  }

  .display-text {
    font-size: 22px;
  }

  .contact-section {
    padding: 60px 5%;
  }

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