/* ABOUT ME SECTION ------------------------------ */
html {
  scroll-behavior: smooth;
}

.about-section {
  position: relative;
  z-index: 2;

  background: #071426;
  color: #c9d6f2;
  padding: 80px 10vw;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 24px;

  width: 100%;
  max-width: 1200px;

  color: #dbe7ff;
  font-size: clamp(2.2rem, 5vw, 3.2rem);

  margin-bottom: 40px;
}

.section-title::after {
  content: "";

  flex: 1;
  height: 2.5px;

  background: rgba(142, 238, 255, 0.15);
}

.about-dashboard {
  max-width: 1250px;
  width: 95%;
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 60px;
  align-items: stretch;
}

.profile-card,
.about-panel {
  height: 620px;
}

.profile-card {
  overflow: hidden;
  border-radius: 24px;

  border: 1px solid rgba(142, 238, 255, 0.18);
}

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

.profile-info {
  height: 120px;
  padding: 24px;
  border-top: 1px solid rgba(142, 238, 255, 0.12);
}

.profile-info h3 {
  color: #8eeeff;
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.profile-info p {
  color: #9faecc;
}

.about-panel {
  display: grid;
  grid-template-columns: 0.5fr 1fr;

  border-radius: 24px;
  overflow: hidden;
}

.about-tabs {
  display: flex;
  flex-direction: column;
  padding: 32px 0;

  border-right: 1px solid rgba(142, 238, 255, 0.18);
}

.about-tab {
  position: relative;

  padding: 15px 20px;

  background: transparent;
  border: none;

  color: #9faecc;
  text-align: left;
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;

  transition:
    color 0.3s ease,
    background 0.3s ease;
}

.about-tab:hover {
  color: #8eeeff;
}

.about-tab.active {
  color: #8eeeff;
  background: rgba(142, 238, 255, 0.05);
}

.about-tab.active::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 0;

  width: 3px;
  height: 100%;

  background: #8eeeff;
  box-shadow: 0 0 12px rgba(142, 238, 255, 0.9);
}

.about-tab-content {
  display: none;
  padding: 48px;
  overflow-y: auto;
}

.about-tab-content.active {
  display: block;
}

.prompt {
  display: block;
  color: #8eeeff;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 22px;
}

.about-tab-content p {
  color: #9faecc;
  font-size: clamp(1rem, 1.7vw, 1.1rem);
  line-height: 1.9;
}

.about-tab-content p span {
  color: #8eeeff;
  font-weight: 700;
}

/* in current focus tab */
.inline-link {
  color: #8eeeff;
  text-decoration: none;
  font-weight: 600;

  transition:
    color 0.3s ease,
    text-shadow 0.3s ease;
}

.inline-link:hover {
  color: #b8f7ff;

  text-shadow:
    0 0 8px rgba(142, 238, 255, 0.7),
    0 0 16px rgba(142, 238, 255, 0.4);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 18px 40px;
  margin-top: 20px;
}

.tech-grid span {
  color: #d6e2f0;
  font-size: 1.05rem;
}

.tech-grid span::before {
  content: "▹";
  color: #8eeeff;
  margin-right: 10px;
}

.reveal-item {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.reveal-item.show {
  opacity: 1;
  transform: translateY(0);
}

/* MOBILE */
@media (max-width: 900px) {
  .about-section {
    padding: 90px 7vw;
  }

  .about-dashboard {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .profile-card,
  .about-panel {
    height: auto;
  }

  .profile-card {
    max-width: 340px;
    margin: 0 auto;
  }

  .profile-card img {
    height: 360px;
  }

  .about-panel {
    grid-template-columns: 1fr;
  }

  .about-tabs {
    flex-direction: row;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid rgba(142, 238, 255, 0.18);
    padding: 0;
    overflow-y: hidden;
  }

  .about-tab {
    white-space: nowrap;
  }

  .about-tab.active::after {
    right: 0;
    top: auto;
    bottom: -1px;
    width: 100%;
    height: 3px;
  }

  .about-tab-content {
    padding: 32px 24px;
  }

  .tech-grid {
    grid-template-columns: 1fr;
  }
}

/* PROJECT SECTION ---------------------------------------------------------------- */
.projects-section {
  position: relative;
  z-index: 2;
  padding: 120px 10vw 0px;
  background: #071426;
  color: #c9d6f2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.projects-carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 1250px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.projects-carousel {
  --cards-visible: 3;
  --gap: 33px;
  width: 90%;
  display: flex;
  gap: var(--gap);

  overflow: hidden;
  scroll-behavior: smooth;

  padding: 20px 8px 50px;
}

.project-card {
  flex: 0 0
    calc(
      (100% - (var(--gap) * (var(--cards-visible) - 1))) / var(--cards-visible)
    );

  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(142, 238, 255, 0.16);

  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(142, 238, 255, 0.45);
}

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

.project-info {
  padding: 20px;
}

.project-label {
  color: #8eeeff;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.project-info h3 {
  color: #ffffff;
  font-size: 1.55rem;
  margin-bottom: 14px;
}

.project-info p {
  color: #9faecc;
  line-height: 1.7;
  font-size: 0.98rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.tag {
  color: #8eeeff;
  font-size: 0.78rem;

  padding: 6px 10px;
  border-radius: 999px;

  background: #112239;
  border: 1px solid rgba(142, 238, 255, 0.16);
}

.project-links {
  display: flex;
  gap: 18px;
}

.project-links a {
  color: #dbe7ff;
  text-decoration: none;
  font-size: 0.95rem;

  transition:
    color 0.3s ease,
    text-shadow 0.3s ease;
}

.project-links a:hover {
  color: #8eeeff;
  text-shadow:
    0 0 8px rgba(142, 238, 255, 0.7),
    0 0 16px rgba(142, 238, 255, 0.4);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 48px;
  height: 48px;

  display: flex;
  justify-content: center;
  align-items: center;

  border-radius: 50%;
  border: 1px solid rgba(142, 238, 255, 0.3);

  background: rgba(7, 20, 38, 0.9);
  color: #8eeeff;

  cursor: pointer;
  z-index: 5;

  box-shadow:
    0 0 20px rgba(142, 238, 255, 0.14),
    inset 0 0 12px rgba(142, 238, 255, 0.05);

  transition:
    transform 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease;
}

.carousel-btn:hover {
  transform: translateY(-50%) scale(1.1);
  border-color: #8eeeff;
  background: rgba(12, 34, 60, 0.95);
}

.carousel-btn.left {
  left: -24px;
}

.carousel-btn.right {
  right: -24px;
}

/* Coming soon style */
.coming-soon-link {
  color: #ff7b7b !important;
}

.coming-soon-link:hover {
  color: #ff9a9a !important;
  text-shadow: none !important;
}

.coming-soon-message {
  margin-top: 12px;

  color: #ff9a9a;
  font-size: 0.9rem;

  opacity: 0;
  max-height: 0;
  overflow: hidden;

  transition:
    opacity 0.3s ease,
    max-height 0.3s ease;
}

.coming-soon-message.show {
  opacity: 1;
  max-height: 40px;
}

/* VIEW ALL PROJECTS BUTTON --------------------------------------------------- */
.projects-footer {
  display: flex;

  justify-content: center;

  margin: 30px 0 20px;
}

.view-all-projects-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 14px 28px;

  border: 1px solid rgba(142, 238, 255, 0.25);
  border-radius: 999px;

  color: #8eeeff;
  text-decoration: none;
  font-weight: 600;

  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.view-all-projects-btn:hover {
  transform: translateY(-2px);

  border-color: rgba(142, 238, 255, 0.6);

  box-shadow:
    0 0 12px rgba(142, 238, 255, 0.25),
    0 0 24px rgba(142, 238, 255, 0.12);
}

/* MOBILE */
@media (max-width: 900px) {
  .projects-section {
    padding: 90px 7vw 0;
  }

  .projects-carousel-wrapper {
    width: 100%;
  }

  .projects-carousel {
    --cards-visible: 1;
    --gap: 10px;

    width: 100%;
    overflow-x: auto;
    overflow-y: visible;

    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;

    padding: 10px 0 40px;
  }

  .project-card {
    flex: 0 0 100%;
    scroll-snap-align: center;
  }

  .carousel-btn {
    display: none;
  }
}

/* WRITING SECTION -------------------------------------------------------------------------- */
.writing-section {
  position: relative;
  z-index: 2;

  background: #071426;
  color: #c9d6f2;

  padding: 150px 10vw 0;

  display: flex;
  flex-direction: column;
  align-items: center;
}

.writing-intro {
  max-width: 1200px;
  width: 100%;

  margin: 0 auto 50px;

  text-align: left;

  color: #9faecc;
  font-size: 1.2rem;
  line-height: 1.8;
}

.writing-list {
  width: 100%;
  max-width: 1200px;

  display: flex;
  flex-direction: column;
  gap: 28px;
}

.writing-card {
  display: grid;
  grid-template-columns: 450px 1fr;
  gap: 32px;

  overflow: hidden;
  border-radius: 24px;

  border: 1px solid rgba(142, 238, 255, 0.16);

  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.writing-card:hover {
  transform: translateY(-6px);
  border-color: rgba(142, 238, 255, 0.45);
}

.writing-card img {
  width: 100%;
  height: 100%;
  min-height: 220px;

  object-fit: cover;
  display: block;
}

.writing-info {
  padding: 28px 32px 28px 0;
}

.writing-label {
  color: #8eeeff;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;

  margin-bottom: 12px;
}

.writing-info h3 {
  color: #ffffff;
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  margin-bottom: 14px;
}

.writing-info p {
  color: #9faecc;
  line-height: 1.7;
  font-size: 1rem;
}

.writing-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;

  margin: 22px 0;
}

.writing-link {
  color: #dbe7ff;
  text-decoration: none;
  font-size: 0.95rem;

  transition:
    color 0.3s ease,
    text-shadow 0.3s ease;
}

.writing-link:hover {
  color: #8eeeff;
  text-shadow:
    0 0 8px rgba(142, 238, 255, 0.7),
    0 0 16px rgba(142, 238, 255, 0.4);
}

/* MOBILE ------------------ */
@media (max-width: 900px) {
  .writing-section {
    padding: 90px 7vw;
  }

  .writing-card {
    grid-template-columns: 1fr;
  }

  .writing-info {
    padding: 26px;
  }

  .writing-card img {
    height: 220px;
  }
}

/* EXPERIENCE SECTION ----------------------------------------------------------------------- */
.experience-section {
  position: relative;
  z-index: 2;
  background: #071426;
  color: #c9d6f2;
  padding: 150px 10vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100vh;
}

.experience-panel {
  width: 95%;
  max-width: 1200px;

  display: grid;
  grid-template-columns: 240px 1fr;
  overflow: hidden;
}

.experience-tabs {
  display: flex;
  flex-direction: column;
  padding: 32px 0;
  border-right: 1px solid rgba(142, 238, 255, 0.18);
  height: 620px;
}

.experience-tab {
  position: relative;
  padding: 15px 20px;
  background: transparent;
  border: none;
  color: #9faecc;
  text-align: left;
  font-family: inherit;
  font-size: 1.1rem;
  cursor: pointer;
  transition:
    color 0.3s ease,
    background 0.3s ease;
}

.experience-tab:hover {
  color: #8eeeff;
}

.experience-tab.active {
  color: #8eeeff;
  background: rgba(142, 238, 255, 0.05);
}

.experience-tab.active::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 0;
  width: 3px;
  height: 100%;
  background: #8eeeff;
  box-shadow: 0 0 12px rgba(142, 238, 255, 0.9);
}

.experience-content {
  padding: 48px;
  overflow-y: auto;
}

.experience-tab-content {
  display: none;
}

.experience-tab-content.active {
  display: block;
}

.experience-tab-content h3 {
  color: #ffffff;
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  margin-bottom: 10px;
}

.experience-date {
  color: #8fa1bf;
  font-size: 1.1rem;
  margin-bottom: 32px;
  letter-spacing: 1px;
}

.experience-tab-content ul {
  list-style: none;
}

.experience-tab-content li {
  color: #9faecc;
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 18px;
  position: relative;
  padding-left: 28px;
}

.experience-tab-content li span {
  color: #8eeeff;
}

.experience-tab-content li::before {
  content: "▹";
  color: #8eeeff;
  position: absolute;
  left: 0;
}

/* MOBILE */
@media (max-width: 900px) {
  .experience-section {
    height: auto;
    padding: 90px 7vw;
  }

  .experience-panel {
    width: 100%;
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .experience-tabs {
    height: auto;
    min-height: 60px;
    padding: 0;
    display: flex;
    flex-direction: row;
    gap: 10px;

    border-right: none;
    border-bottom: 1px solid rgba(142, 238, 255, 0.18);

    overflow-x: auto;
    overflow-y: hidden;
  }

  .experience-tab {
    flex: 0 0 auto;

    padding: 10px 14px;

    font-size: 0.9rem;
    white-space: nowrap;
  }

  .experience-tab.active {
    background: rgba(142, 238, 255, 0.12);
  }

  .experience-tab.active::after {
    display: none;
  }

  .experience-content {
    padding: 32px 0 0;
    overflow: visible;
  }

  .experience-tab-content h3 {
    font-size: 1.6rem;
  }

  .experience-date {
    font-size: 0.95rem;
  }

  .experience-tab-content li {
    font-size: 1rem;
    line-height: 1.7;
  }
}

/* FOOTER --------------------------------------------------------------------- */
.footer {
  background: #071426;

  padding: 140px 20px 80px;

  border-top: 1px solid rgba(142, 238, 255, 0.1);

  text-align: center;
}

.footer-content {
  max-width: 1200px;
  text-align: start;
  margin: 0 auto;
}

.footer h2 {
  color: #dbe7ff;
  font-size: clamp(2rem, 4vw, 4rem);

  margin-bottom: 24px;
}

.footer p {
  color: #9faecc;
  font-size: 20px;
  line-height: 2;
}

.footer-links {
  display: flex;
  justify-content: start;
  gap: 30px;

  margin: 50px 0;
}

.footer-links a {
  color: white;
  font-size: 2.5rem;
  cursor: pointer;

  transition:
    color 0.3s ease,
    transform 0.3s ease,
    text-shadow 0.3s ease;

  z-index: 3;
}

.footer-links a:hover {
  color: #8eeeff;

  transform: scale(1.15);

  text-shadow:
    0 0 8px rgba(142, 238, 255, 0.7),
    0 0 16px rgba(142, 238, 255, 0.4);
}

.footer-copyright {
  font-size: 0.9rem !important;
  color: #7d8ba5;
}

/* MOBILE ------------------- */
@media (max-width: 1100px) {
  .footer-content {
    text-align: center;
  }

  .footer h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .footer p {
    font-size: 1rem;
    line-height: 1.8;
  }

  .footer-links {
    justify-content: center;
    gap: 24px;
    margin: 40px 0;
  }

  .footer-links a {
    font-size: 2rem;
  }

  .footer-copyright {
    font-size: 0.85rem !important;
  }
}
