/* ========== Base ========= */
:root {
  --bg: #07060a;
  --txt: #e9f1ff;
  --muted: #b4c0d0;
  --glass: rgba(255, 255, 255, .04);
  --border: rgba(255, 255, 255, .08);
  --accent: #6ee7f3;
  --accent-2: #8b5cf6;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .65);
}

* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, var(--bg), #040305);
  color: var(--txt);
  font-family: Poppins, system-ui, Segoe UI, Roboto, Arial, sans-serif;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased
}

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

a {
  color: inherit;
  text-decoration: none
}

.container {
  width: min(1100px, 92vw);
  margin-inline: auto
}

.section {
  padding: 80px 0
}

.section.alt {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .01))
}

.section__title {
  font-size: clamp(28px, 5vw, 40px);
  margin: 0 0 24px;
  letter-spacing: .4px
}

/* Nav */
.nav {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  margin: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  transition: transform .25s cubic-bezier(.2, .9, .3, 1);
  max-width: 100%;
  overflow-x: auto;
}

.nav.glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, .01))
}

.logo {
  font-weight: 800;
  letter-spacing: 1px;
  display: flex;
  gap: 6px;
  align-items: center
}

.logo .logox {
  font-size: 22px;
  color: var(--accent);
  filter: drop-shadow(0 6px 18px rgba(110, 231, 243, .12))
}

.nav nav {
  display: flex;
  gap: 18px;
  align-items: center
}

.nav a {
  opacity: .85;
  padding: 8px 14px;
  border-radius: 999px;
  transition: .25s ease
}

.nav a:hover {
  opacity: 1;
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .01));
  box-shadow: 0 0 30px -8px var(--accent)
}

.nav a.active {
  border: 1px solid var(--border)
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 20px;
  text-align: center;
  overflow: hidden;
  z-index: 1;
}

.hero__video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  animation: fadeInVideo 2s ease-in forwards;
}

@keyframes fadeInVideo {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.hero__image-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  height: auto;
  object-fit: contain;
  z-index: 1;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.65);
  z-index: 2;
}

.hero__content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hello {
  letter-spacing: 0.4em;
  text-transform: uppercase;
  opacity: 0.7;
  color: var(--muted, #ccc);
}

.title {
  font-size: clamp(32px, 6vw, 64px);
  margin: 0.2em 0;
  line-height: 1.02;
}

.title .accent {
  background: linear-gradient(135deg, var(--accent, #00f), var(--accent-2, #0ff));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  color: var(--muted, #ccc);
  max-width: 60ch;
  margin-top: 10px;
}

.hero__img {
  width: 150px;
  height: 150px;
  margin-top: 20px;
  border-radius: 50%;
  border: 3px solid white;
  object-fit: cover;
}

.cta {
  display: flex;
  gap: 12px;
  margin: 20px 0 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  border-radius: 999px;
  padding: 12px 18px;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.15s ease, box-shadow 0.3s ease, background 0.25s ease;
}

.btn-solid {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(6px);
  color: #fff;
}

.btn-ghost {
  background: transparent;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 60px -30px var(--accent);
}

.badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 8px 0;
  padding: 3px;
  justify-content: center;
}

.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.4rem 0.8rem;
  border-radius: 30px;
  font-size: 0.9rem;
  color: #fff;
}

.chip::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: white;
  border-radius: 50%;
  animation: pulse 1.8s infinite ease-in-out;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.5);
    opacity: 0.5;
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 0.85rem;
  opacity: 0.8;
}

.cards,
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px
}

@media (max-width:900px) {

  .cards,
  .grid {
    grid-template-columns: 1fr
  }
}

.card {
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform .25s ease, box-shadow .3s ease, border-color .3s ease
}

.card:hover {
  transform: translateY(-8px) rotate3d(.5, 1, 0, 2deg);
  box-shadow: 0 32px 90px -40px var(--accent-2);
  border-color: rgba(255, 255, 255, .2)
}

.tilt {
  position: relative;
  overflow: hidden
}

.tilt::after {
  content: "";
  position: absolute;
  inset: -100% -100% auto -100%;
  height: 60%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .18), transparent);
  transform: translateX(-100%) rotate(8deg);
  display: none !important;
}

.tilt:hover::after {
  animation: sheen .8s ease
}

@keyframes sheen {
  to {
    transform: translateX(200%) rotate(8deg)
  }
}

.hover-glow {
  transition: box-shadow .3s ease, transform .2s ease
}

.hover-glow:hover {
  box-shadow: 0 0 60px -16px var(--accent), 0 0 80px -30px var(--accent-2);
  transform: translateY(-6px) scale(1.02)
}

.skillbars {
  display: grid;
  gap: 14px
}

.skill {
  position: relative;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .01), transparent)
}

.skill em {
  position: absolute;
  inset: auto 6px 6px 6px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  width: 0;
  box-shadow: var(--shadow);
  animation: fillBar 2s ease forwards;
}

@keyframes fillBar {
  to {
    width: var(--val);
  }
}

.drop {
  padding: 28px;
  border: 2px dashed rgba(255, 255, 255, .12);
  border-radius: 16px;
  text-align: center;
  transition: border-color .15s ease, transform .12s ease
}

.drop:focus {
  outline: 2px solid var(--accent);
  transform: translateY(-4px)
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 14px
}

.preview-grid .file {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, .01))
}

.preview-grid img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 6px
}

.contact input,
.contact textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .02);
  color: var(--txt)
}

.contact .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px
}

@media (max-width:700px) {
  .contact .row {
    grid-template-columns: 1fr
  }
}

.socials {
  margin-top: 20px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.socials a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--txt);
  font-weight: 500;
  transition: color 0.3s ease;
}

.socials a:hover {
  color: rgb(60, 138, 247);
}

.socials i {
  font-size: 18px;
}

.footer {
  padding: 40px 20px;
  text-align: center;
  opacity: .8
}

.fx-pop {
  animation: pop .6s ease .1s both
}

.fx-slide {
  animation: slide .7s cubic-bezier(.2, .8, .2, 1) .15s both
}

.fx-fade {
  animation: fade .8s ease .2s both
}

.fx-zoom {
  animation: zoom .9s ease .1s both
}

@keyframes pop {
  from {
    transform: translateY(10px) scale(.98);
    opacity: 0
  }

  to {
    transform: translateY(0) scale(1);
    opacity: 1
  }
}

@keyframes slide {
  from {
    transform: translateY(20px);
    opacity: 0
  }

  to {
    transform: translateY(0);
    opacity: 1
  }
}

@keyframes fade {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

@keyframes zoom {
  from {
    transform: scale(.92);
    opacity: 0
  }

  to {
    transform: scale(1);
    opacity: 1
  }
}

.inview {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease
}

.inview.show {
  opacity: 1;
  transform: none;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.04'/></svg>");
  mix-blend-mode: overlay;
  opacity: 0.18;
}
