* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  opacity: 0;
  transition: opacity 1.5s ease;
}
body.fade-in {
  opacity: 1;
}
/* large size */
.header {
  position: relative;
}
.cpu-cover {
  display: block;
}
.cpu-cover img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.mobile-cover {
  display: none;
}
.logos {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.logos:hover {
  transform: scale(1.15);
}
.noon {
  position: absolute;
  top: 5%;
  left: 78%;
  width: 12%;
}
.noon img {
  width: 100%;
}
.re-music {
  position: absolute;
  top: 16.5%;
  left: 75%;
  width: 17%;
}
.re-music img {
  width: 100%;
}
.re-studios {
  position: absolute;
  top: 16.5%;
  left: 58%;
  width: 12%;
}
.re-studios img {
  width: 100%;
}
.ejaaz {
  position: absolute;
  top: 19.5%;
  left: 41%;
  width: 12%;
}
.ejaaz img {
  width: 100%;
}
.bless {
  position: absolute;
  top: 0.6%;
  left: 40%;
  width: 12%;
}
.bless img {
  width: 100%;
}
/* About Section */
.timeline-body {
  position: absolute;
  text-align: left;
  top: 35%;
  left: 11%;
  width: 78%;
  max-height: 158vw;
  overflow: hidden;
}

/* Intro Text */
.intro-text p {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.3vw;
  font-weight: 500;
  line-height: 1.55;
  color: #1a1a1a;
  margin-bottom: 1.8vw;
  text-align: center;
  letter-spacing: -0.02em;
}

/* Section Titles */
.section-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 3.2vw;
  font-weight: 700;
  color: #c41e3a;
  margin: 2.2vw 0 1.3vw 0;
  text-align: center;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

/* Companies Section */
.companies-section {
  margin: 1.5vw 0;
}

/* Company Items with Red Dots */
.company-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5vw;
  padding-left: 0.5vw;
}

.red-dot {
  min-width: 0.8vw;
  width: 0.8vw;
  height: 0.8vw;
  background: linear-gradient(135deg, #c41e3a 0%, #8b1528 100%);
  border-radius: 50%;
  margin-right: 1.2vw;
  margin-top: 0.6vw;
  box-shadow: 0 0 0.5vw rgba(196, 30, 58, 0.4);
  flex-shrink: 0;
}

.company-content {
  flex: 1;
}

.company-content strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.1vw;
  font-weight: 700;
  color: #2c2c2c;
  letter-spacing: -0.01em;
}

.company-content p {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 1.65vw;
  font-weight: 400;
  line-height: 1.55;
  color: #4a4a4a;
  margin: 0.3vw 0 0 0;
  letter-spacing: -0.01em;
}

/* Legacy Section */
.legacy-section {
  margin-top: 1.8vw;
}

.legacy-section p {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 1.75vw;
  font-weight: 400;
  line-height: 1.65;
  color: #3a3a3a;
  text-align: center;
  letter-spacing: -0.01em;
}
/* footer */
.custom-footer {
  position: absolute;
  display: flex;
  gap: 10px;
  top: 188vw;
  left: 15%;
  width: 20%;
}
.custom-footer img {
  cursor: pointer;
  width: 100%;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.custom-footer img:hover {
  transform: scale(1.2);
}

/* developer- */

.developer-credit {
  position: absolute;
  top: 7vw;
  width: 100%;
  text-align: center;
  align-self: center;
  font-size: 10px;
  color: #fff;
  letter-spacing: 0.5px;
}

.developer-credit a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
  font-family: monospace;
}

.developer-credit a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 1px;
  background: #fff;
  transition: width 0.3s ease;
}

.developer-credit a:hover {
  color: #fff;
}
.developer-credit a:hover::after {
  width: 100%;
}

/* Small size */
@media (max-width: 768px) {
  .header {
    position: relative;
  }
  .mobile-cover {
    display: block;
  }
  .mobile-cover img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
  }
  .cpu-cover {
    display: none;
  }
  .noon {
    position: absolute;
    top: 8%;
    left: 70%;
    width: 20%;
  }
  .noon img {
    width: 100%;
  }
  .re-music {
    position: absolute;
    top: 14.5%;
    left: 60%;
    width: 30%;
  }
  .re-music img {
    width: 100%;
  }
  .re-studios {
    position: absolute;
    top: 15%;
    left: 20%;
    width: 25%;
  }
  .re-studios img {
    width: 100%;
  }
  .ejaaz {
    position: absolute;
    top: 12%;
    left: 15%;
    width: 25%;
  }
  .ejaaz img {
    width: 100%;
  }
  .bless {
    position: absolute;
    top: 6%;
    left: 12%;
    width: 25%;
  }
  .bless img {
    width: 100%;
  }
  .timeline-body {
    position: absolute;
    text-align: left;
    top: 23%;
    left: 7%;
    width: 86%;
    max-height: 800vw;
    overflow: hidden;
  }

  /* Mobile Intro Text */
  .intro-text p {
    font-size: 5.8vw;
    line-height: 1.5;
    margin-bottom: 4.5vw;
  }

  /* Mobile Section Titles */
  .section-title {
    font-size: 7.2vw;
    margin: 5.5vw 0 3.5vw 0;
  }

  /* Mobile Company Items */
  .company-item {
    margin-bottom: 4.5vw;
    padding-left: 0;
  }

  .red-dot {
    min-width: 2.5vw;
    width: 2.5vw;
    height: 2.5vw;
    margin-right: 3.5vw;
    margin-top: 1.8vw;
  }

  .company-content strong {
    font-size: 5.5vw;
    display: block;
    margin-bottom: 1.2vw;
  }

  .company-content p {
    font-size: 4.6vw;
    line-height: 1.55;
    margin-top: 1.2vw;
  }

  /* Mobile Legacy Section */
  .legacy-section {
    margin-top: 4.5vw;
  }

  .legacy-section p {
    font-size: 5vw;
    line-height: 1.6;
  }
  /* footer */
  .custom-footer {
    position: absolute;
    top: 797vw;
    left: 10%;
    width: 25%;
  }
  .custom-footer img {
    cursor: pointer;
    width: 100%;
    transition: 0.2s;
  }
  .custom-footer img:hover {
    transform: scale(1.2);
  }
  .developer-credit {
    width: 150%;
    left: 0%;
    top: 100%;
  }
}
