:root {
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.12);
  --blur: 14px;
  --primary: #38bdf8;
}

/* ================= GLOBAL ================= */

html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background: #0f172a;
  color: white;
  line-height: 1.6;
  padding-top: 70px;
  overflow-x: hidden;
  position: relative;
}

/* ================= NAVBAR ================= */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10000;

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

  padding: 20px 50px;

  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));

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

.logo {
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 700;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  transition: 0.25s ease;
}

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

/* ================= HERO ================= */

.hero {
  min-height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;

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

/* VIDEO */

.bg-video {
  position: absolute;
  top: 50%;
  left: 50%;

  min-width: 100%;
  min-height: 100%;

  transform: translate(-50%, -50%);
  object-fit: cover;

  z-index: 0;
}

/* OVERLAY */

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1;
}

/* HERO CONTENT */

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

  max-width: 1000px;
  padding: 20px;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
}

.hero-content p {
  font-size: 1.05rem;
  opacity: 0.92;
}

.hero span {
  color: var(--primary);
}

/* ================= BUTTONS ================= */

.btn {
  display: inline-block;

  margin-top: 10px;
  padding: 14px 34px;

  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.5);

  color: white;
  font-weight: 700;
  text-decoration: none;

  cursor: pointer;
  border-radius: 12px;

  backdrop-filter: blur(10px);

  transition: 0.3s ease;
}

.btn:hover {
  background: rgba(56, 189, 248, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.35);
}

/* ================= SECTIONS ================= */

.section {
  padding: 80px 20px;
  text-align: center;

  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);

  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);

  max-width: 1400px;
  margin: auto;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

/* ================= PROJECTS ================= */

.projects-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;

  margin-top: 20px;
}

.card {
  background: var(--glass-bg);

  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));

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

  padding: 20px;
  width: 250px;

  border-radius: 15px;

  transition: 0.3s ease;
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  background: rgba(255, 255, 255, 0.12);
}

.project-card img {
  width: 100%;
  height: 160px;

  object-fit: cover;
  border-radius: 8px;

  margin-bottom: 10px;
}

/* ================= CONTACT ================= */

.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;

  margin-top: 25px;
  flex-wrap: wrap;
}

/* ================= FOOTER ================= */

footer {
  text-align: center;
  padding: 20px;

  background: #111827;
  margin-top: 40px;
}

/* ================= ANIMATIONS ================= */

@keyframes floatOnly {

  0% {
    translate: 0 0;
  }

  50% {
    translate: 0 -10px;
  }

  100% {
    translate: 0 0;
  }
}

@keyframes dropIn {
  0% {
    opacity: 0;
    transform: translateY(-60px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content h1,
.hero-content p,
.hero-content .btn {
  opacity: 0;
}

.hero-content h1 {
  animation: dropIn 0.9s ease-out forwards;
}

.hero-content p {
  animation: dropIn 1.1s ease-out forwards;
}

.hero-content .btn {
  animation: dropIn 1.3s ease-out forwards;
}

/* ================= FLOATING CLOUDS ================= */

.floating-cloud {
  position: fixed;
  top: 60%;
  left: -30%;

  width: 500px;
  height: 250px;

  background: rgba(56, 189, 248, 0.12);

  border-radius: 50%;
  filter: blur(80px);

  z-index: 0;
  pointer-events: none;

  animation: cloudMove 35s linear infinite;

  opacity: 0.7;
}

.cloud2 {
  top: 20%;
  animation-duration: 45s;
}

.cloud3 {
  top: 80%;
  animation-duration: 55s;
}

@keyframes cloudMove {
  0% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(150vw) translateY(-60px) scale(1.3);
  }

  100% {
    transform: translateX(300vw);
  }
}

/* ================= AVATAR STAGE ================= */

.avatar-stage {
  position: relative;

  width: 700px;
  height: 460px;

  margin: 0 auto 40px auto;

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

  overflow: visible;
}

/* ================= PROFILE IMAGE ================= */

.profile-pic {
  position: absolute;

  bottom: 0;
  left: 50%;

  width: 160px;
  height: 160px;

  margin-left: -80px;

  border-radius: 50%;
  overflow: hidden;

  border: 4px solid #38bdf8;

  box-shadow:
    0 0 25px rgba(56,189,248,0.7),
    0 0 60px rgba(56,189,248,0.3);

  z-index: 20;

  animation:
    floatOnly 4s ease-in-out infinite,
    dropIn 0.8s ease-out forwards;
}

.profile-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ================= SKILL BUBBLES ================= */

.skill-bubbles {
  position: absolute;
  inset: 0;
}

/* ================= BUBBLE BASE ================= */

.bubble {
  position: absolute;

  width: 120px;
  height: 120px;

  border-radius: 50%;

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

  font-size: 1.1rem;
  font-weight: 700;
  color: white;

  background: rgba(15, 25, 45, 0.45);

  border: 2px solid #38bdf8;

  backdrop-filter: blur(14px);

  box-shadow:
    0 0 22px rgba(56,189,248,0.45),
    inset 0 0 30px rgba(255,255,255,0.05);

  animation: floatBubble 4s ease-in-out infinite;

  z-index: 10;
}

/* ================= FLOAT ================= */

@keyframes floatBubble {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* ================= STRINGS ================= */

.string {
  position: absolute;

  z-index: 0;

  pointer-events: none;

  border: 4px solid rgba(255,255,255,0.9);

  filter: drop-shadow(0 0 6px rgba(255,255,255,0.7));
}

/* JAVA */

.string.java {
  width: 170px;
  height: 150px;

  left: 185px;
  top: 225px;

  border-top: none;
  border-right: none;

  border-bottom-left-radius: 120px;

  transform: rotate(-8deg);
}

/* CSS */

.string.css {
  width: 110px;
  height: 220px;

  left: 285px;
  top: 110px;

  border-top: none;
  border-right: none;

  border-bottom-left-radius: 120px;

  transform: rotate(8deg);
}

/* HTML */

.string.html {
  width: 110px;
  height: 220px;

  right: 285px;
  top: 110px;

  border-top: none;
  border-left: none;

  border-bottom-right-radius: 120px;

  transform: rotate(-8deg);
}

/* UIUX */

.string.uiux {
  width: 170px;
  height: 150px;

  right: 185px;
  top: 225px;

  border-top: none;
  border-left: none;

  border-bottom-right-radius: 120px;

  transform: rotate(8deg);
}

/* ================= JAVA ================= */

.bubble.java {
  left: 80px;
  top: 150px;
  animation-delay: 1s;
}


/* ================= CSS ================= */

.bubble.css {
  left: 210px;
  top: 30px;
  animation-delay: 0.5s;
}


/* ================= HTML ================= */

.bubble.html {
  right: 210px;
  top: 30px;
  animation-delay: 0.2s;
}


/* ================= UI/UX ================= */

.bubble.uiux {
  right: 80px;
  top: 150px;
  animation-delay: 1.5s;
}


/* ================= MODAL ================= */

.modal {
  display: none;
  position: fixed;
  inset: 0;

  background: rgba(0,0,0,0.8);

  z-index: 99999;

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

.modal-content {
  background: #111827;

  padding: 20px;
  width: 80%;
  max-width: 800px;
  max-height: 90vh;

  overflow-y: auto;

  border-radius: 10px;

  position: relative;
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;

  font-size: 25px;
  cursor: pointer;
}

/* ================= LIGHTBOX ================= */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;

  background: rgba(0,0,0,0.9);

  z-index: 100000;

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

.lightbox img {
  max-width: 90%;
  max-height: 90%;

  border-radius: 10px;

  animation: zoomIn 0.2s ease forwards;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
  }

  to {
    transform: scale(1);
  }
}


/* ================= CHANGING TEXT ================= */

#changing-text {
  color: #38bdf8;
  transition: opacity 0.3s ease;
}
/* ================= CHANGING TEXT ================= */

.fade-text {
  color: #38bdf8;
  display: inline-block;
  transition: opacity 0.4s ease;
}

.fade-out {
  opacity: 0;
}

.fade-in {
  opacity: 1;
}

/* ================= CONTACT FORM ================= */

.contact-form {
  max-width: 500px;
  margin: 30px auto 0 auto;

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

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;

  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 12px;

  background: rgba(255, 255, 255, 0.08);
  color: white;

  font-size: 1rem;
  outline: none;

  backdrop-filter: blur(10px);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}

.contact-form textarea {
  resize: none;
}

#msg {
  min-height: 24px;
  font-weight: 600;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {

  .navbar {
    padding: 15px 20px;
    flex-direction: column;
    gap: 10px;
  }

  .nav-links {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-content h1 {
    font-size: 2.1rem;
  }

  .hero-content p {
    font-size: 0.95rem;
  }

  .avatar-stage {
    width: 360px;
    height: 320px;
    margin: 0 auto 30px auto;
  }

  .profile-pic {
    width: 110px;
    height: 110px;
    margin-left: -55px;
  }

  .bubble {
    width: 75px;
    height: 75px;
    font-size: 0.8rem;
  }

  .bubble.java {
    left: 5px;
    top: 140px;
  }

  .bubble.css {
    left: 70px;
    top: 45px;
  }

  .bubble.html {
    right: 70px;
    top: 45px;
  }

  .bubble.uiux {
    right: 5px;
    top: 140px;
  }

  .string.java {
    left: 82px;
    top: 162px;
    width: 95px;
    height: 90px;
  }

  .string.css {
    left: 130px;
    top: 95px;
    width: 70px;
    height: 145px;
  }

  .string.html {
    right: 130px;
    top: 95px;
    width: 70px;
    height: 145px;
  }

  .string.uiux {
    right: 82px;
    top: 162px;
    width: 95px;
    height: 90px;
  }

  .projects-grid {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 90%;
    max-width: 350px;
  }

  .floating-cloud {
    width: 300px;
    height: 180px;
  }
}