:root {
  --bg: #070b16;
  --bg-light: #0f172a;
  --card: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.14);
  --text: #f8fafc;
  --muted: #a9b4c7;
  --primary: #7c3aed;
  --secondary: #06b6d4;
  --success: #22c55e;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at 20% 10%, rgba(124, 58, 237, 0.25), transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.18), transparent 28%),
    var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

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

.container {
  width: min(1150px, 92%);
  margin: auto;
}

.section {
  padding: 6rem 0;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  z-index: 9999;
}

.header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(7, 11, 22, 0.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--card-border);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.logo span {
  color: var(--secondary);
}

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

.nav-link {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
  transition: 0.25s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--secondary);
}

.nav-btn {
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 999px;
  font-weight: 800;
  color: white;
}

.menu-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
}

.menu-btn span {
  width: 28px;
  height: 2px;
  background: white;
  display: block;
  margin: 6px 0;
  transition: 0.3s;
}

.hero {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.24), transparent 65%);
  top: 10%;
  right: 8%;
  filter: blur(8px);
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.tagline,
.section-heading p,
.project-type {
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.8rem, 6.8vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.09em;
  max-width: 760px;
}

.hero h1 span:first-child {
  color: var(--secondary);
}

.typing-text {
  color: var(--text);
}

.hero-desc {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  margin: 1.6rem 0 2.2rem;
}

.hero-buttons,
.social-links,
.project-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.3rem;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.25s;
  border: none;
  cursor: pointer;
}

.primary-btn {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 18px 35px rgba(6, 182, 212, 0.2);
}

.secondary-btn {
  background: var(--card);
  border: 1px solid var(--card-border);
  color: white;
}

.btn:hover,
.project-links a:hover,
.social-links a:hover {
  transform: translateY(-4px);
}

.social-links {
  margin-top: 2rem;
}

.social-links a {
  color: var(--muted);
  font-weight: 800;
  transition: 0.25s;
}

.profile-card {
  position: relative;
  text-align: center;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.14),
    rgba(255, 255, 255, 0.05)
  );
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 36px;
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(22px);
  overflow: hidden;
}

.profile-card::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  top: -140px;
  right: -120px;
  opacity: 0.38;
}

.profile-circle {
  position: relative;
  width: clamp(150px, 18vw, 230px);
  height: clamp(150px, 18vw, 230px);
  margin: auto;
  border-radius: 50%;
  overflow: hidden;
  padding: 5px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow:
    0 0 0 8px rgba(255, 255, 255, 0.05),
    0 24px 70px rgba(6, 182, 212, 0.28);
}

.profile-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  display: block;
}

.profile-card h2 {
  margin-top: 1.3rem;
  font-size: 1.7rem;
}

.profile-card p,
.profile-location {
  color: var(--muted);
}

.profile-tags,
.project-tech,
.tech-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.profile-tags {
  justify-content: center;
  margin: 1.3rem 0;
}

.profile-tags span,
.project-tech span,
.tech-cloud span {
  padding: 0.48rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid var(--card-border);
  color: #dbeafe;
  font-size: 0.78rem;
  font-weight: 800;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2.8rem;
}

.section-heading h2,
.contact-info h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.about-grid,
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.about-text,
.mini-card,
.skill-box,
.project-card,
.timeline-item,
.education-card,
.certificate-card,
.contact-form {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.about-text,
.mini-card,
.skill-box,
.timeline-item,
.education-card,
.certificate-card,
.contact-form {
  padding: 1.6rem;
}

.about-text p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.about-info {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.about-info div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 0.7rem;
}

.about-info span {
  color: var(--muted);
  text-align: right;
}

.about-cards {
  display: grid;
  gap: 1rem;
}

.mini-card h3,
.skill-box h3,
.project-content h3,
.timeline-item h3,
.education-card h3,
.certificate-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.mini-card p,
.timeline-item p,
.education-card p,
.certificate-card p,
.project-content p,
.contact-info p {
  color: var(--muted);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.skill {
  margin-top: 1rem;
}

.skill span {
  display: block;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.skill div {
  width: 100%;
  height: 9px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.skill b {
  height: 100%;
  display: block;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: inherit;
}

.tech-cloud {
  margin-top: 2rem;
  justify-content: center;
}

.projects-grid {
  display: grid;
  gap: 1.6rem;
}

.project-card {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  overflow: hidden;
  transition: 0.25s;
}

.project-card:hover,
.skill-box:hover,
.mini-card:hover,
.timeline-item:hover,
.education-card:hover,
.certificate-card:hover {
  transform: translateY(-6px);
  border-color: rgba(6, 182, 212, 0.45);
}

.project-image {
  min-height: 260px;
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.7), rgba(6, 182, 212, 0.7)),
    var(--bg-light);
  display: grid;
  place-items: center;
}

.project-image span {
  font-size: 4rem;
  font-weight: 900;
  opacity: 0.9;
}

.project-content {
  padding: 1.7rem;
}

.project-tech {
  margin: 1.2rem 0;
}

.project-links a {
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid var(--card-border);
  font-weight: 900;
  transition: 0.25s;
}

.timeline {
  display: grid;
  gap: 1.2rem;
  position: relative;
}

.timeline-item {
  border-left: 4px solid var(--secondary);
}

.date {
  color: var(--secondary);
  font-weight: 900;
  display: inline-block;
  margin-bottom: 0.6rem;
}

.timeline-item h4 {
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.education-grid,
.certificate-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

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

.education-card span {
  display: block;
  color: var(--secondary);
  margin: 0.8rem 0;
  font-weight: 800;
}

.education-card strong {
  color: var(--success);
}

.contact-info {
  align-self: center;
}

.contact-info p {
  margin: 1rem 0;
}

.contact-details {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.contact-details a,
.contact-details span {
  color: var(--muted);
  font-weight: 700;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  outline: none;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--secondary);
}

.footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted);
  border-top: 1px solid var(--card-border);
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  font-size: 1.4rem;
  font-weight: 900;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: 0.25s;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: 0.7s ease;
}

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

@media (max-width: 950px) {

  /* ===== NAVBAR ===== */
  .menu-btn {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 76px;
    right: -100%;
    width: min(320px, 85%);
    height: calc(100vh - 76px);
    background: rgba(7, 11, 22, 0.98);
    backdrop-filter: blur(18px);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    border-left: 1px solid var(--card-border);
    transition: 0.3s ease;
    z-index: 999;
  }

  .nav-links.show {
    right: 0;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 0.8rem 0;
    font-size: 1rem;
  }

  /* ===== HERO SECTION ===== */
  .hero {
    padding-top: 4rem;
    min-height: auto;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 7vw, 3.2rem);
    line-height: 1.1;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
    max-width: 500px;
    font-size: 1rem;
  }

  .hero-buttons {
    justify-content: center;
    flex-direction: column;
    gap: 0.8rem;
  }

  .btn {
    width: 100%;
    max-width: 260px;
    margin: auto;
  }

  .social-links {
    justify-content: center;
    gap: 1rem;
  }

  /* ===== PROFILE CARD ===== */
  .hero-card {
    max-width: 400px;
    margin: auto;
  }

  .profile-card {
    padding: 1.6rem;
  }

  .profile-circle {
    width: clamp(130px, 40vw, 180px);
    height: clamp(130px, 40vw, 180px);
  }

  /* ===== ABOUT ===== */
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-info div {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .about-info span {
    text-align: left;
  }

  /* ===== SKILLS ===== */
  .skills-grid {
    grid-template-columns: 1fr;
  }

  /* ===== PROJECTS ===== */
  .project-card {
    grid-template-columns: 1fr;
  }

  .project-image {
    min-height: 200px;
  }

  .project-links {
    flex-direction: column;
  }

  .project-links a {
    width: 100%;
    text-align: center;
  }

  /* ===== TIMELINE ===== */
  .timeline-item {
    padding-left: 1rem;
  }

  /* ===== EDUCATION ===== */
  .education-grid {
    grid-template-columns: 1fr;
  }

  /* ===== CERTIFICATES ===== */
  .certificate-grid {
    grid-template-columns: 1fr;
  }

  /* ===== CONTACT ===== */
  .contact-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .contact-details {
    align-items: center;
  }

  .contact-form {
    width: 100%;
  }

  /* ===== GENERAL ===== */
  .section {
    padding: 4rem 0;
  }

}

@media (max-width: 560px) {
  .section {
    padding: 4rem 0;
  }

  .hero-buttons,
  .project-links {
    flex-direction: column;
  }

  .btn,
  .project-links a {
    width: 100%;
  }

  .about-info div {
    flex-direction: column;
  }

  .about-info span {
    text-align: left;
  }
}

#formStatus {
  font-weight: 800;
  text-align: center;
  margin-top: 10px;
}