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

:root {
  --bg: #060a0f;
  --bg2: #0b1118;
  --bg3: #101923;

  --surface: rgba(16, 25, 35, 0.92);
  --surface2: rgba(22, 33, 46, 0.92);

  --border: rgba(255, 255, 255, 0.06);
  --border2: rgba(255, 255, 255, 0.12);

  --ocean: #00a6d6;
  --ocean2: #32c8ff;

  --sun: #f28b36;
  --sun2: #ff9f52;

  --sand: #d9c0a0;

  --text: #eef4ff;
  --text2: #95a8bc;
  --text3: #536577;

  --mono: "Space Mono", monospace;
  --display: "Syne", sans-serif;

  --shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(
      circle at top right,
      rgba(0, 166, 214, 0.08),
      transparent 30%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(242, 139, 54, 0.06),
      transparent 30%
    ),
    var(--bg);

  color: var(--text);
  font-family: var(--display);
  overflow-x: hidden;
  min-height: 100vh;
}

/* REMOVE CURSOR */
.cursor,
.cursor-ring {
  display: none !important;
}

/* SCROLL */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--ocean);
  border-radius: 999px;
}

/* GLOBAL */
a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

section {
  position: relative;
  padding: 6rem 2rem;
}

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
}

/* NAV */
nav {
  position: fixed;
  inset: 0 0 auto 0;

  height: 78px;

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

  padding: 0 2rem;

  z-index: 1000;

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  background: rgba(6, 10, 15, 0.72);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  text-decoration: none;
}

.nav-logo-text {
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--ocean);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
}

.nav-links a {
  position: relative;

  text-decoration: none;

  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;

  color: var(--text2);

  transition: 0.25s ease;
}

.nav-links a::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: -6px;

  width: 0;
  height: 1px;

  background: var(--ocean);

  transition: width 0.25s ease;
}

.nav-links a:hover {
  color: var(--ocean);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  text-decoration: none;

  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;

  color: var(--sun);

  border: 1px solid rgba(242, 139, 54, 0.4);

  padding: 0.8rem 1.25rem;
  border-radius: 10px;

  transition: 0.25s ease;
}

.nav-cta:hover {
  background: var(--sun);
  color: #111;
  transform: translateY(-2px);
}

/* HERO */
#hero {
  min-height: 100vh;

  display: flex;
  align-items: center;

  padding-top: 7rem;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;

  background-image:
    linear-gradient(rgba(0, 166, 214, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 166, 214, 0.04) 1px, transparent 1px);

  background-size: 55px 55px;

  mask-image: radial-gradient(circle at center, black 35%, transparent 85%);
}

.hero-blob-1,
.hero-blob-2 {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
}

.hero-blob-1 {
  width: 600px;
  height: 600px;

  top: -150px;
  right: -150px;

  background: rgba(0, 166, 214, 0.08);
}

.hero-blob-2 {
  width: 500px;
  height: 500px;

  bottom: -180px;
  left: -120px;

  background: rgba(242, 139, 54, 0.06);
}

.hero-inner {
  position: relative;
  z-index: 2;

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

  margin: 0 auto;

  display: grid;
  grid-template-columns: 1fr 470px;
  gap: 4rem;

  align-items: center;
}

.hero-avail {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;

  padding: 0.55rem 1rem;

  border-radius: 999px;

  background: rgba(0, 166, 214, 0.08);
  border: 1px solid rgba(0, 166, 214, 0.18);

  color: var(--ocean);

  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;

  margin-bottom: 1.7rem;
}

.hero-avail::before {
  content: "";

  width: 8px;
  height: 8px;

  border-radius: 50%;
  background: var(--ocean);

  box-shadow: 0 0 10px var(--ocean);
}

.hero-name {
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 800;

  margin-bottom: 1rem;
}

.hero-name .ocean {
  color: var(--ocean);
}

.hero-subtitle {
  font-family: var(--mono);
  font-size: 0.9rem;
  letter-spacing: 0.08em;

  color: var(--text2);

  margin-bottom: 1.5rem;
}

.hero-subtitle .dot {
  color: var(--sun);
}

.hero-desc {
  max-width: 620px;

  color: var(--text2);

  font-size: 1rem;
  line-height: 1.9;

  margin-bottom: 2.2rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 52px;

  padding: 0 1.6rem;

  border-radius: 12px;

  text-decoration: none;

  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;

  transition: 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--ocean), var(--ocean2));
  color: white;

  box-shadow: 0 10px 30px rgba(0, 166, 214, 0.22);
}

.btn-primary:hover {
  transform: translateY(-3px);
}

.btn-secondary {
  border: 1px solid var(--border2);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--sun);
  color: var(--sun);
  transform: translateY(-3px);
}

/* TERMINAL */
.hero-terminal {
  overflow: hidden;

  border-radius: 22px;

  background: linear-gradient(
    180deg,
    rgba(18, 30, 42, 0.96),
    rgba(10, 16, 24, 0.96)
  );

  border: 1px solid rgba(255, 255, 255, 0.08);

  box-shadow: var(--shadow);
}

.term-bar {
  height: 54px;

  display: flex;
  align-items: center;

  gap: 0.55rem;

  padding: 0 1.3rem;

  background: rgba(255, 255, 255, 0.03);

  border-bottom: 1px solid var(--border);
}

.t-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.t-dot.r {
  background: #ff5f57;
}

.t-dot.y {
  background: #ffbd2e;
}

.t-dot.g {
  background: #28ca42;
}

.term-title {
  margin-left: 0.5rem;

  font-family: var(--mono);
  font-size: 0.72rem;

  color: var(--text3);
}

.term-body {
  padding: 1.7rem;

  font-family: var(--mono);
  font-size: 0.8rem;

  line-height: 2;
}

.t-line {
  color: var(--text);
}

.t-prompt {
  color: var(--ocean);
}

.t-out {
  padding-left: 1.5rem;
  color: var(--text2);
}

.t-out .k {
  color: var(--sand);
}

.t-out .v {
  color: var(--sun);
}

/* TITLES */
.sec-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;

  margin-bottom: 1rem;

  font-family: var(--mono);
  font-size: 0.72rem;

  text-transform: uppercase;
  letter-spacing: 0.18em;

  color: var(--ocean);
}

.sec-tag::before {
  content: "";

  width: 30px;
  height: 1px;

  background: var(--ocean);
}

.sec-title {
  font-size: clamp(2.3rem, 4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.sec-title .oc {
  color: var(--ocean);
}

.sec-title .su {
  color: var(--sun);
}

.sec-title .sa {
  color: var(--sand);
}

/* ABOUT */
#about {
  background: var(--bg2);
}

.about-grid {
  margin-top: 4rem;

  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 5rem;

  align-items: center;
}

.about-photo-wrap {
  position: relative;
}

.about-photo {
  overflow: hidden;

  border-radius: 24px;

  border: 1px solid var(--border2);

  background: linear-gradient(
    180deg,
    rgba(20, 31, 44, 0.95),
    rgba(12, 18, 27, 0.95)
  );

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

.photo-placeholder {
  text-align: center;

  font-family: var(--mono);

  color: var(--text3);
  line-height: 1.8;
}

.photo-placeholder .icon {
  display: block;
  margin-bottom: 1rem;

  font-size: 3rem;
}

.about-accent {
  position: absolute;

  right: -16px;
  bottom: -16px;

  width: 80px;
  height: 80px;

  border: 2px solid rgba(242, 139, 54, 0.25);

  border-radius: 18px;
}

.about-text p {
  color: var(--text2);

  line-height: 1.95;
  font-size: 1rem;

  margin-bottom: 1.3rem;
}

.about-text strong {
  color: var(--text);
}

.about-text .hl {
  color: var(--ocean);
}

/* SKILLS */
.skills-grid {
  margin-top: 3.5rem;

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.3rem;
}

.skill-cat {
  background: linear-gradient(
    180deg,
    rgba(18, 30, 42, 0.95),
    rgba(12, 18, 27, 0.95)
  );

  border: 1px solid var(--border);

  border-radius: 22px;

  padding: 1.7rem;

  transition: 0.3s ease;
}

.skill-cat:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 166, 214, 0.25);
}

.skill-cat-icon {
  display: block;
  margin-bottom: 1rem;

  font-size: 1.5rem;
}

.skill-cat-title {
  margin-bottom: 1.2rem;

  font-family: var(--mono);
  font-size: 0.72rem;

  text-transform: uppercase;
  letter-spacing: 0.16em;

  color: var(--ocean);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.s-tag {
  padding: 0.45rem 0.8rem;

  border-radius: 999px;

  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);

  font-family: var(--mono);
  font-size: 0.68rem;

  color: var(--text2);

  transition: 0.25s ease;
}

.s-tag:hover {
  color: var(--ocean);
  border-color: rgba(0, 166, 214, 0.3);
}

/* PROJECTS */
#projects {
  background: var(--bg2);
}

.proj-grid {
  margin-top: 3.5rem;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.proj-card {
  overflow: hidden;

  background: linear-gradient(
    180deg,
    rgba(18, 30, 42, 0.95),
    rgba(12, 18, 27, 0.95)
  );

  border: 1px solid var(--border);

  border-radius: 24px;

  transition: 0.3s ease;
}

.proj-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 166, 214, 0.25);
}

.proj-preview {
  position: relative;

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

  overflow: hidden;

  border-bottom: 1px solid var(--border);

  background: var(--bg3);
}

.proj-preview-bg {
  position: absolute;
  inset: 0;

  background-image:
    linear-gradient(rgba(0, 166, 214, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 166, 214, 0.04) 1px, transparent 1px);

  background-size: 28px 28px;
}

.proj-emoji {
  position: relative;
  z-index: 2;

  font-size: 2.7rem;
}

.proj-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;

  z-index: 2;

  padding: 0.4rem 0.7rem;

  border-radius: 999px;

  background: rgba(242, 139, 54, 0.12);
  border: 1px solid rgba(242, 139, 54, 0.2);

  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;

  color: var(--sun);
}

.proj-body {
  padding: 1.6rem;
}

.proj-num {
  margin-bottom: 0.5rem;

  font-family: var(--mono);
  font-size: 0.65rem;

  letter-spacing: 0.16em;

  color: var(--text3);
}

.proj-name {
  font-size: 1.25rem;
  font-weight: 700;

  margin-bottom: 0.8rem;
}

.proj-desc {
  color: var(--text2);

  line-height: 1.8;
  font-size: 0.92rem;

  margin-bottom: 1.3rem;
}

.proj-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;

  margin-bottom: 1.3rem;
}

.p-tech {
  padding: 0.42rem 0.8rem;

  border-radius: 999px;

  background: rgba(0, 166, 214, 0.08);
  border: 1px solid rgba(0, 166, 214, 0.14);

  font-family: var(--mono);
  font-size: 0.66rem;

  color: var(--ocean2);
}

.proj-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.proj-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;

  text-decoration: none;

  font-family: var(--mono);
  font-size: 0.68rem;

  text-transform: uppercase;
  letter-spacing: 0.12em;

  color: var(--text2);

  transition: 0.25s ease;
}

.proj-link:hover {
  color: var(--ocean);
}

.proj-link.play {
  color: var(--sun);
}

.proj-link.play:hover {
  color: var(--sun2);
}

.proj-link svg {
  width: 14px;
  height: 14px;
}

/* EXPERIENCE */
.timeline {
  position: relative;

  margin-top: 3.5rem;

  padding-left: 2rem;
}

.timeline::before {
  content: "";

  position: absolute;

  left: 4px;
  top: 0;
  bottom: 0;

  width: 1px;

  background: linear-gradient(to bottom, rgba(0, 166, 214, 0.7), transparent);
}

.tl-item {
  position: relative;

  padding-bottom: 3rem;
}

.tl-item::before {
  content: "";

  position: absolute;

  left: -2rem;
  top: 0.45rem;

  width: 10px;
  height: 10px;

  border-radius: 50%;

  background: var(--ocean);

  box-shadow: 0 0 15px rgba(0, 166, 214, 0.5);
}

.tl-period {
  margin-bottom: 0.6rem;

  font-family: var(--mono);
  font-size: 0.7rem;

  text-transform: uppercase;
  letter-spacing: 0.14em;

  color: var(--ocean);
}

.tl-role {
  font-size: 1.15rem;
  font-weight: 700;

  margin-bottom: 0.3rem;
}

.tl-company {
  margin-bottom: 1rem;

  font-family: var(--mono);
  font-size: 0.8rem;

  color: var(--sun);
}

.tl-desc {
  max-width: 900px;

  color: var(--text2);

  line-height: 1.9;
  font-size: 0.94rem;
}

/* CONTACT */
#contact {
  background: var(--bg2);
}

.contact-inner {
  max-width: 760px;

  margin: 0 auto;

  text-align: center;
}

.contact-inner .sec-tag {
  justify-content: center;
}

.contact-inner .sec-tag::before {
  display: none;
}

.contact-desc {
  margin: 1.5rem auto 2rem;

  max-width: 560px;

  color: var(--text2);

  line-height: 1.9;
}

.contact-email {
  display: inline-block;

  margin-bottom: 2.5rem;

  text-decoration: none;

  font-family: var(--mono);
  font-size: clamp(1rem, 2vw, 1.3rem);

  color: var(--ocean);

  transition: 0.25s ease;
}

.contact-email:hover {
  transform: translateY(-2px);
  color: var(--ocean2);
}

.socials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;

  min-height: 52px;

  padding: 0 1.25rem;

  border-radius: 14px;

  text-decoration: none;

  border: 1px solid var(--border2);

  font-family: var(--mono);
  font-size: 0.7rem;

  text-transform: uppercase;
  letter-spacing: 0.12em;

  color: var(--text2);

  transition: 0.25s ease;
}

.social-link:hover {
  transform: translateY(-3px);

  border-color: rgba(0, 166, 214, 0.28);

  color: var(--ocean);
}

.social-link svg {
  width: 16px;
  height: 16px;
}

/* FOOTER */
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;

  padding: 1.8rem 2rem;

  border-top: 1px solid var(--border);

  background: var(--bg);
}

.foot-copy,
.foot-back {
  font-family: var(--mono);
  font-size: 0.7rem;

  letter-spacing: 0.06em;
}

.foot-copy {
  color: var(--text3);
}

.foot-copy span {
  color: var(--ocean);
}

.foot-back {
  text-decoration: none;

  color: var(--text3);

  transition: 0.25s ease;
}

.foot-back:hover {
  color: var(--ocean);
}

/* REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(24px);

  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.r1 {
  transition-delay: 0.1s;
}

.r2 {
  transition-delay: 0.2s;
}

.r3 {
  transition-delay: 0.3s;
}

.r4 {
  transition-delay: 0.4s;
}

.r5 {
  transition-delay: 0.5s;
}

.r6 {
  transition-delay: 0.6s;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .proj-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-terminal {
    max-width: 700px;
  }
}

@media (max-width: 860px) {
  nav {
    padding: 0 1.2rem;
  }

  .nav-links {
    display: none;
  }

  section {
    padding: 4.5rem 1.2rem;
  }

  #hero {
    padding-top: 6rem;
  }

  .hero-terminal {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-photo-wrap {
    max-width: 320px;
  }

  .skills-grid,
  .proj-grid {
    grid-template-columns: 1fr;
  }

  .socials {
    flex-direction: column;
  }

  .social-link {
    width: 100%;
    justify-content: center;
  }

  footer {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .hero-name {
    font-size: 3rem;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .contact-email {
    word-break: break-word;
  }

  .term-body {
    font-size: 0.72rem;
  }
}
