/* ----------------------------------------------
   IMPORTS & RESET
------------------------------------------------- */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;300;400;800&display=swap");

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ----------------------------------------------
   GLOBAL STYLES
------------------------------------------------- */
body {
  font-family: "Poppins", sans-serif;
}

::selection {
  background: #0b372dbb;
}

/* ----------------------------------------------
   MAIN LAYOUT
------------------------------------------------- */
main {
  position: relative;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

.parallax {
  pointer-events: none;
  backface-visibility: hidden;
}

/* ----------------------------------------------
   PARALLAX DATA LAYERS (Background + Mountains)
------------------------------------------------- */
.data .bg-img {
  position: absolute;
  width: 253.90625vw;
  top: calc(50% + -320 * 100vh / 768);
  left: calc(50% + 3.90625vw);
  z-index: 1;
}

.data .mountain-10 {
  position: absolute;
  z-index: 3;
  width: 97.65625vw;
  top: calc(50% + 140 * 100vh / 768);
  left: calc(50% + 27.34375vw);
}

.data .mountain-9 {
  position: absolute;
  z-index: 5;
  width: 54.6875vw;
  top: calc(50% + 260 * 100vh / 768);
  left: calc(50% + -460 * 100vw / 1024);
}

.data .mountain-8 {
  position: absolute;
  z-index: 6;
  width: 74.21875vw;
  top: calc(50% + 15.625vh);
  left: calc(50% - 7.8125vw);
}

.data .mountain-7 {
  position: absolute;
  z-index: 8;
  width: calc(620 * 100vw / 1024);
  top: calc(50% + 160 * 100vh / 768);
  left: calc(50% + 380 * 100vw / 1024);
}

/* ----------------------------------------------
   CENTERED TEXT CONTENT
------------------------------------------------- */
.data .text {
  position: absolute;
  z-index: 9;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: auto;
  color: #fff;
  width: 90%;
  max-width: calc(900 * 100vw / 1024);
  display: flex;
  flex-direction: column;
  align-items: center;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.data .text h1 {
  font-weight: 800;
  font-size: min(calc(51 * 100vw / 1024), calc(51 * 100vh / 768));
  line-height: 1.1;
  letter-spacing: calc(3 * 100vw / 1024);
  backface-visibility: hidden;
}

.data .text h1 .gradient-text {
  background: linear-gradient(to right, #fefffc, #000, #fefffc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.data .text h2 {
  font-weight: 500;
  font-size: min(calc(22 * 100vw / 1024), calc(22 * 100vh / 768));
  line-height: 1.4;
  margin-top: calc(10 * 100vh / 768);
  letter-spacing: calc(1 * 100vw / 1024);
  color: #c4cfff;
}

.data .text h3 {
  font-weight: 400;
  font-size: min(1.5625vw, calc(16 * 100vh / 768));
  line-height: 1.4;
  margin-top: calc(4 * 100vh / 768);
  letter-spacing: calc(0.5 * 100vw / 1024);
  color: #fff;
}

.data .text p {
  font-weight: 400;
  font-size: min(calc(14 * 100vw / 1024), calc(14 * 100vh / 768));
  line-height: 1.6;
  margin-top: 2.34375vh;
  color: #fff;
}

/* ----------------------------------------------
   MOUNTAINS (Foreground layers)
------------------------------------------------- */
.mountain-6 {
  position: absolute;
  z-index: 10;
  top: calc(50% + 100 * 100vh / 768);
  left: calc(50% + 500 * 100vw / 1024);
  width: calc(340 * 100vw / 1024);
}

.mountain-5 {
  position: absolute;
  z-index: 12;
  top: calc(50% + 56.0625vh);
  left: calc(50% + 27.34375vw);
  width: 58.59375vw;
}

.mountain-4 {
  position: absolute;
  z-index: 15;
  top: calc(50% + 160 * 100vh / 768);
  left: calc(50% + -580 * 100vw / 1024);
  width: 89.84375vw;
}

.mountain-3 {
  position: absolute;
  z-index: 16;
  top: calc(50% + -15 * 100vh / 768);
  left: calc(50% + 620 * 100vw / 1024);
  width: 50.78125vw;
}

.mountain-2 {
  position: absolute;
  z-index: 17;
  top: calc(50% + 27.34375vh);
  left: calc(50% + 42.96875vw);
  width: calc(500 * 100vw / 1024);
  pointer-events: auto;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mountain-2:hover {
  opacity: 0.8;
  filter: brightness(1.2);
  transform: scale(1.08);
  z-index: 999;
}

.mountain-1 {
  position: absolute;
  z-index: 18;
  top: calc(50% + 160 * 100vh / 768);
  left: calc(50% - 58.59375vw);
  width: 89.84375vw;
}

/* ----------------------------------------------
   ATMOSPHERIC EFFECTS
------------------------------------------------- */
.sun-rays {
  position: absolute;
  z-index: 19;
  top: 0;
  right: 0;
  width: calc(580 * 100vw / 1024);
}

.black-shadow {
  position: absolute;
  z-index: 20;
  bottom: 0;
  right: 0;
  width: 100%;
}

.vignette {
  position: absolute;
  z-index: 100;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: radial-gradient(ellipse at center, #0000 65%, #000000b3);
  pointer-events: none;
}

/* ----------------------------------------------
   PROFILE COMPONENT
------------------------------------------------- */
.profile-container {
  position: absolute;
  z-index: 101;
  top: 3.125vh;
  left: 50%;
  transform: translateX(-50%);
}

.profile-img {
  width: calc(100 * 100vw / 1024);
  height: calc(100 * 100vw / 1024);
  border-radius: 50%;
  object-fit: cover;
  border: calc(3 * 100vw / 1024) solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 calc(20 * 100vw / 1024) #ffffff26;
  opacity: 0.85;
  transition: all 0.3s ease;
  cursor: pointer;
  display: block;
}

.profile-img:hover {
  opacity: 1;
  transform: scale(1.08);
  border-color: #fffc;
  box-shadow: 0 0 calc(25 * 100vw / 1024) #ffffff4d;
}

.profile-badge {
  position: absolute;
  bottom: calc(1 * 100vh / 768);
  right: calc(1 * 100vw / 1024);
  width: calc(28 * 100vw / 1024);
  height: calc(28 * 100vw / 1024);
  border-radius: 50%;
  border: calc(2 * 100vw / 1024) solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 calc(10 * 100vw / 1024) #0006;
  object-fit: cover;
  pointer-events: none;
}

/* ----------------------------------------------
   CV MENU BUTTONS (overlay)
------------------------------------------------- */
.cv-panel-overlay {
  position: fixed;
  z-index: 10000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.cv-menu {
  display: grid;
  grid-template-columns: repeat(2, auto);
  justify-content: center;
  gap: calc(6 * 100vw / 1024);
  padding: 1.5625vh 0 0;
  pointer-events: auto;
  width: 100%;
}

.cv-btn {
  background: rgba(99, 169, 255, 0.3);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: calc(1 * 100vw / 1024) solid rgba(255, 255, 255, 0.12);
  border-radius: calc(14 * 100vw / 1024);
  padding: calc(2 * 100vh / 768) calc(7 * 100vw / 1024);
  cursor: pointer;
  font-size: min(calc(10 * 100vw / 1024), calc(10 * 100vh / 768));
  font-family: "Poppins", sans-serif;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: calc(3 * 100vw / 1024);
  text-shadow: none;
}

.cv-btn-label {
  color: #fff;
  font-size: min(calc(10 * 100vw / 1024), calc(10 * 100vh / 768));
  text-shadow: none;
}

.cv-btn:hover {
  background: #f59e0b40;
  border-color: #f59e0b;
  transform: translateY(calc(-2 * 100vh / 768)) scale(1.05);
  box-shadow: 0 0 calc(12 * 100vw / 1024) #f59e0b66;
}

.cv-btn.active {
  background: transparent;
  border-color: #fff;
}

.cv-btn-icon {
  font-size: min(calc(12 * 100vw / 1024), 1.5625vh);
}

/* ----------------------------------------------
   CV INFORMATION PANEL
------------------------------------------------- */
.cv-panel {
  position: absolute;
  top: 70%;
  right: calc(3 * 100vw / 1024);
  transform: translateY(-50%);
  width: calc(370 * 100vw / 1024);
  max-height: 70vh;
  overflow-y: auto;
  background: #0000004d;
  -webkit-backdrop-filter: blur(calc(6 * 100vw / 1024));
  backdrop-filter: blur(calc(6 * 100vw / 1024));
  border: calc(1 * 100vw / 1024) solid rgba(255, 255, 255, 0.1);
  border-radius: calc(12 * 100vw / 1024);
  padding: calc(20 * 100vh / 768) calc(20 * 100vw / 1024) calc(16 * 100vh / 768);
  pointer-events: auto;
  animation: fadeInRight 0.3s ease;
}

@keyframes fadeInRight {
  0% {
    opacity: 0;
    transform: translateY(-50%) translateX(calc(20 * 100vw / 1024));
  }
  100% {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

.cv-panel-close {
  position: absolute;
  top: calc(10 * 100vh / 768);
  right: calc(12 * 100vw / 1024);
  background: none;
  border: none;
  color: #fff9;
  font-size: min(calc(19 * 100vw / 1024), calc(19 * 100vh / 768));
  cursor: pointer;
  line-height: 1;
  padding: calc(4 * 100vh / 768) calc(6 * 100vw / 1024);
  border-radius: calc(6 * 100vw / 1024);
  transition: all 0.2s;
}

.cv-panel-close:hover {
  color: #fff;
  background: #ffffff1a;
}

.cv-panel-title {
  font-size: min(calc(15 * 100vw / 1024), calc(15 * 100vh / 768));
  font-weight: 700;
  background: linear-gradient(135deg, #e8c84a, #d4a843);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5625vh;
  letter-spacing: calc(1 * 100vw / 1024);
  padding-right: 2.34375vw;
}

.cv-panel-text {
  font-family: "Poppins", sans-serif;
  font-size: min(calc(12 * 100vw / 1024), 1.5625vh);
  line-height: 1.6;
  color: #c8d0d8;
  white-space: pre-wrap;
  margin: 0;
}

/* ----------------------------------------------
   FOOTER LINES (global)
------------------------------------------------- */
.cv-footer-line {
  line-height: 1.5;
}

.text .cv-footer-line.line-1 {
  position: static;
  width: 100%;
  text-align: center;
  padding: calc(10 * 100vh / 768) 0 0;
  pointer-events: none;
  color: #fff;
  font-size: min(calc(11 * 100vw / 1024), calc(11 * 100vh / 768));
  font-weight: 400;
  letter-spacing: calc(0.5 * 100vw / 1024);
}

.cv-footer-line.line-2 {
  position: fixed;
  left: 0;
  width: 100%;
  text-align: center;
  padding: calc(2 * 100vh / 768) 1.5625vw;
  pointer-events: none;
  z-index: 9999;
  bottom: calc(50 * 100vh / 768);
  color: #c7ffef;
  font-size: min(calc(10 * 100vw / 1024), calc(10 * 100vh / 768));
  font-weight: 300;
}

.cv-footer-line.line-3 {
  position: fixed;
  left: 0;
  width: 100%;
  text-align: center;
  padding: calc(2 * 100vh / 768) 1.5625vw;
  pointer-events: none;
  z-index: 9999;
  bottom: calc(10 * 100vh / 768);
  color: #c7ffef;
  font-size: min(calc(10 * 100vw / 1024), calc(10 * 100vh / 768));
  font-weight: 300;
  letter-spacing: calc(0.3 * 100vw / 1024);
}

.contact-link {
  color: inherit;
  text-decoration: none;
}

.contact-link:hover {
  text-decoration: underline;
  color: #f59e0b;
}

/* ----------------------------------------------
   RESPONSIVE ADJUSTMENTS
------------------------------------------------- */
/* Tablet & Desktop improvements */
@media (min-width: 768px) {
  .cv-btn {
    border-radius: calc(21 * 100vw / 1024);
    padding: calc(3 * 100vh / 768) calc(10.5 * 100vw / 1024);
    font-size: min(calc(15 * 100vw / 1024), calc(15 * 100vh / 768));
    gap: calc(4.5 * 100vw / 1024);
  }
  .cv-btn-label {
    font-size: min(calc(15 * 100vw / 1024), calc(15 * 100vh / 768));
  }
  .cv-btn-icon {
    font-size: min(calc(18 * 100vw / 1024), 2.34375vh);
  }
  .cv-menu {
    gap: calc(9 * 100vw / 1024);
    padding: 2.34375vh 0 0;
  }
}

/* Mobile overrides */
@media (max-width: 767px) {
  .cv-menu {
    grid-template-columns: auto;
    justify-content: center;
    gap: calc(6 * 100vw / 1024 * 1.7);
    padding: 2.65625vh 0 0;
  }
  .cv-btn {
    width: 100%;
    border-radius: calc(14 * 100vw / 1024 * 1.7);
    padding: calc(2 * 100vh / 768 * 1.7) calc(7 * 100vw / 1024 * 1.7);
    font-size: min(calc(10 * 100vw / 1024 * 1.7), calc(10 * 100vh / 768 * 1.7));
    gap: calc(3 * 100vw / 1024 * 1.7);
  }
  .cv-btn-label {
    font-size: min(
      calc(10 * 100vw / 1024 * 1.7),
      calc(10 * 100vh / 768 * 1.7)
    );
  }
  .cv-btn-icon {
    font-size: min(calc(12 * 100vw / 1024 * 1.7), 2.65625vh);
  }

  .data .text h1 {
    font-size: min(calc(61 * 100vw / 1024 * 1.7), calc(61 * 100vh / 768 * 1.7));
  }
  .data .text h2 {
    font-size: min(calc(22 * 100vw / 1024 * 1.7), calc(22 * 100vh / 768 * 1.7));
    margin-top: calc(10 * 100vh / 768 * 1.7);
  }
  .data .text h3 {
    font-size: min(2.65625vw, calc(16 * 100vh / 768 * 1.7));
    margin-top: calc(4 * 100vh / 768 * 1.7);
  }
  .data .text p {
    font-size: min(calc(14 * 100vw / 1024 * 1.7), calc(14 * 100vh / 768 * 1.7));
    margin-top: calc(18 * 100vh / 768 * 1.7);
  }

  .cv-panel-title {
    font-size: min(
      calc(15 * 100vw / 1024 * 1.7),
      calc(15 * 100vh / 768 * 1.7)
    );
  }
  .cv-panel-text {
    font-size: min(calc(12 * 100vw / 1024 * 1.7), 2.65625vh);
  }
  .cv-panel-close {
    font-size: min(calc(19 * 100vw / 1024 * 1.7), calc(19 * 100vh / 768 * 1.7));
  }

  .cv-footer-line.line-1 {
    font-size: min(
      calc(11 * 100vw / 1024 * 1.7),
      calc(11 * 100vh / 768 * 1.7)
    );
    padding: calc(10 * 100vh / 768 * 1.7) 0 0;
  }
  .cv-footer-line.line-2,
  .cv-footer-line.line-3 {
    font-size: min(
      calc(10 * 100vw / 1024 * 1.7),
      calc(10 * 100vh / 768 * 1.7)
    );
  }

  /* Center background image on mobile */
  .data .bg-img {
    top: 90%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  /* Vertically center mountain layers on mobile */
  .data .mountain-10,
  .data .mountain-9,
  .data .mountain-8,
  .data .mountain-7,
  .mountain-6,
  .mountain-5,
  .mountain-4,
  .mountain-3,
  .mountain-2,
  .mountain-1 {
    top: 50%;
  }
}