﻿:root {
  color-scheme: dark;
  font-family: "Inter", system-ui, sans-serif;
  color: #e8f0ff;
  background: #05070d;
  accent-color: #7c6eff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(
      circle at top left,
      rgba(124, 110, 255, 0.18),
      transparent 24%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(0, 223, 255, 0.12),
      transparent 22%
    ),
    linear-gradient(180deg, #05070d 0%, #070a11 55%, #05070d 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(124, 110, 255, 0.08),
    transparent 30%,
    rgba(255, 255, 255, 0.02)
  );
  pointer-events: none;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
  background: rgba(5, 7, 13, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.site-header.scrolled {
  background: rgba(5, 7, 13, 0.9);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.site-nav {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.78);
  padding: 0.4rem 0.45rem;
  transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #d6d8ff;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, #7c6eff, #00f3ff);
}

.nav-cta {
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(124, 110, 255, 0.18),
    rgba(0, 243, 255, 0.15)
  );
  border: 1px solid rgba(124, 110, 255, 0.3);
}

.mobile-toggle {
  display: none;
  border: none;
  background: transparent;
  cursor: pointer;
  gap: 0.35rem;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0.25rem;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: #e8f0ff;
}

.section {
  padding: 5rem 0;
  position: relative;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 2rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #7c6eff;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.section-heading h2 {
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.05;
  margin-top: 1rem;
  max-width: 620px;
}

.hero-section {
  min-height: calc(100vh - 80px);
  display: grid;
  align-items: center;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(124, 110, 255, 0.08);
  color: #b6c1ff;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

.hero-copy h1 {
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  line-height: 0.95;
  margin: 0;
  color: #fff;
}

.hero-copy h1 span {
  color: #7c6eff;
}

.hero-copy p {
  max-width: 620px;
  margin: 1.75rem 0 1.8rem;
  color: rgba(229, 236, 255, 0.84);
  font-size: 1.05rem;
  line-height: 1.75;
}

.hero-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 2rem;
  font-size: 1rem;
}

.role-prefix {
  color: rgba(255, 255, 255, 0.74);
}

.typing-text {
  color: #7c6eff;
  font-weight: 700;
  min-height: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  padding: 1rem 1.6rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, #7c6eff, #00f3ff);
  color: #05070d;
  box-shadow: 0 15px 40px rgba(124, 110, 255, 0.2);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #e8f0ff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

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

.hero-socials a {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
}

.hero-socials a:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 110, 255, 0.5);
}

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: center;
}

.profile-frame {
  position: relative;
  width: min(380px, 100%);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border-radius: 50%;
  padding: 1.5rem;
  background: linear-gradient(
    135deg,
    rgba(124, 110, 255, 0.22),
    rgba(0, 243, 255, 0.12)
  );
  box-shadow: 0 30px 80px rgba(0, 131, 255, 0.12);
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  position: relative;
  z-index: 2;
  animation: float 8s ease-in-out infinite;
}

.profile-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow:
    0 0 70px rgba(124, 110, 255, 0.36),
    0 0 140px rgba(0, 243, 255, 0.2);
  filter: blur(14px);
}

.hero-badges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.badge {
  padding: 1rem 1.1rem;
  border-radius: 22px;
  color: #fff;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.badge-glow {
  background: linear-gradient(
    135deg,
    rgba(124, 110, 255, 0.16),
    rgba(0, 243, 255, 0.1)
  );
  box-shadow: 0 20px 50px rgba(124, 110, 255, 0.08);
}

.about-section,
.skills-section,
.experience-section,
.projects-section,
.interests-section,
.certifications-section,
.resume-section,
.contact-section {
  z-index: 1;
}

.about-grid,
.contact-grid {
  display: grid;
  gap: 1.75rem;
}

.about-grid {
  grid-template-columns: 1.5fr 1fr;
}

.about-copy p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: rgba(230, 239, 255, 0.88);
}

.about-highlights {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.highlight-card,
.stat-card,
.glass-card {
  padding: 1.4rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.highlight-card strong,
.contact-panel h3 {
  display: block;
  margin-bottom: 0.9rem;
  font-size: 1rem;
  color: #d6d8ff;
}

.highlight-card p,
.stat-card p,
.glass-card p,
.glass-card span {
  color: rgba(229, 236, 255, 0.8);
}

.stat-card {
  display: grid;
  place-items: center;
  text-align: center;
}

.stat-card span {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}

.skills-grid,
.projects-grid,
.interests-grid,
.certifications-grid,
.timeline {
  display: grid;
  gap: 1.5rem;
}

.skills-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.skill-card {
  padding: 1.4rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  transition:
    transform 0.35s ease,
    border-color 0.35s ease;
}

.skill-card:hover {
  transform: translateY(-5px);
  border-color: rgba(124, 110, 255, 0.3);
}

.skill-card h3 {
  margin-bottom: 1rem;
}

.skill-progress {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.skill-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7c6eff, #00f3ff);
}

.experience-section .timeline,
.resume-section .timeline {
  grid-template-columns: 1fr;
}

.timeline-item {
  padding: 1.8rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.timeline-item time {
  color: #7c6eff;
  font-weight: 700;
  display: block;
  margin-bottom: 1rem;
}

.timeline-item h3 {
  margin: 0 0 0.6rem;
}

.timeline-item p {
  margin: 0.8rem 0 0;
  line-height: 1.75;
  color: rgba(229, 236, 255, 0.84);
}

.project-card {
  position: relative;
  padding: 1.8rem;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(124, 110, 255, 0.2),
    transparent 40%
  );
  opacity: 0.3;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 35px 80px rgba(124, 110, 255, 0.12);
}

.project-card-content {
  position: relative;
  z-index: 1;
}

.project-card h3 {
  margin-top: 0;
}

.project-card .project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0 1.3rem;
}

.project-tag {
  display: inline-flex;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(229, 236, 255, 0.86);
  font-size: 0.9rem;
}

.project-card p {
  margin-bottom: 1.3rem;
  color: rgba(227, 232, 255, 0.86);
  line-height: 1.75;
}

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

.project-links a {
  color: #7c6eff;
  font-weight: 700;
}

.interests-grid,
.certifications-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.interest-card,
.certification-card {
  padding: 1.5rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.25s ease;
}

.interest-card:hover,
.certification-card:hover {
  transform: translateY(-5px);
}

.interest-card h3,
.certification-card h3 {
  margin-top: 0;
  color: #fff;
}

.interest-card p,
.certification-card p {
  color: rgba(229, 236, 255, 0.78);
  line-height: 1.75;
}

.contact-grid {
  grid-template-columns: 1.4fr 0.8fr;
}

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

.contact-card h3 {
  margin-top: 0;
}

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

.contact-form label {
  display: grid;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: rgba(229, 236, 255, 0.86);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem 1.05rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #f2f7ff;
  transition: border-color 0.25s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(124, 110, 255, 0.75);
}

.form-status {
  min-height: 1.5rem;
  color: #9cb2ff;
  font-size: 0.95rem;
}

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

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

.contact-panel a {
  color: #d6d8ff;
}

.contact-socials {
  display: grid;
  gap: 0.75rem;
}

.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c6eff, #00f3ff);
  color: #05070d;
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2rem 0 3rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-contact {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-contact a {
  color: rgba(229, 236, 255, 0.8);
}

.reveal-up,
.reveal-right {
  opacity: 0;
  transform: translateY(32px);
  will-change: transform, opacity;
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal-right {
  transform: translateX(32px);
}

.reveal-visible {
  opacity: 1;
  transform: translate(0, 0);
}

.loader-overlay {
  position: fixed;
  inset: 0;
  background: #05070d;
  display: grid;
  place-items: center;
  z-index: 1000;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.loader-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-shell {
  display: grid;
  place-items: center;
  gap: 1rem;
  padding: 2.2rem 2.4rem;
  border-radius: 28px;
  background: rgba(10, 13, 23, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.loader-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #7c6eff;
  animation: pulse 1.2s infinite ease-in-out;
}

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

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-section {
    padding-top: 120px;
  }
}

@media (max-width: 760px) {
  .header-inner {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .site-nav {
    position: absolute;
    inset: auto 0 0;
    margin: 0 auto;
    width: min(100%, 420px);
    left: 50%;
    transform: translateX(-50%) scaleY(0);
    transform-origin: top center;
    background: rgba(7, 10, 18, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1rem 1rem 1.2rem;
    backdrop-filter: blur(18px);
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    transition: transform 0.25s ease;
    pointer-events: none;
  }

  .site-nav.open {
    transform: translateX(-50%) scaleY(1);
    pointer-events: auto;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .nav-link {
    display: block;
    padding: 0.95rem 0.8rem;
    border-radius: 16px;
  }

  .hero-copy h1 {
    font-size: clamp(2.4rem, 8vw, 3.2rem);
  }

  .hero-copy p {
    font-size: 1rem;
  }
}

@media (max-width: 520px) {
  .hero-actions,
  .hero-socials,
  .footer-inner,
  .contact-details,
  .project-links {
    flex-direction: column;
  }

  .hero-visual,
  .hero-copy,
  .hero-badges {
    align-items: center;
  }

  .hero-visual {
    margin-top: 1rem;
  }

  .profile-frame {
    width: 100%;
    aspect-ratio: 1 / 1;
  }

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