:root {
  --bg-main: #05070f;
  --bg-alt: #0b1020;
  --card-bg: rgba(20, 24, 48, 0.85);
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --accent-1: #5eead4;
  --accent-2: #60a5fa;
  --accent-3: #a78bfa;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  scroll-behavior: smooth;
}

body {
  background: radial-gradient(circle at top, var(--bg-alt), var(--bg-main));
  color: var(--text-main);
  overflow-x: hidden;
  position: relative;
}

section {
  padding: 120px 8%;
  position: relative;
  z-index: 1;
}

a {
  text-decoration: none;
  cursor: pointer;
}

.bg-shapes span {
  position: fixed;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.15;
  animation: float 40s linear infinite;
  z-index: 0;
}

.bg-shapes span:nth-child(1) {
  width: 320px;
  height: 320px;
  background: var(--accent-2);
  top: 10%;
  left: 5%;
}

.bg-shapes span:nth-child(2) {
  width: 260px;
  height: 260px;
  background: var(--accent-3);
  bottom: 15%;
  right: 8%;
  animation-duration: 55s;
}

.bg-shapes span:nth-child(3) {
  width: 300px;
  height: 300px;
  background: var(--accent-1);
  top: 55%;
  right: 30%;
  animation-duration: 65s;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-70px);
  }
  100% {
    transform: translateY(0);
  }
}

nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 18px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(5, 7, 15, 0.85);
  backdrop-filter: blur(12px);
  z-index: 1000;
}

nav h2 {
  color: var(--accent-1);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
}

nav ul a {
  color: var(--text-muted);
  transition: color 0.3s ease;
}

nav ul a:hover {
  color: var(--accent-2);
}

.hero {
  min-height: 100vh;
  padding-top: 140px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-img {
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.hero-img:hover {
  transform: translateY(-6px);
  box-shadow: 0 40px 110px rgba(96, 165, 250, 0.25);
}

.hero-img {
  position: relative;
  width: 480px;
  height: 600px;
  border-radius: 22px;
  overflow: hidden;
  cursor: pointer;
}

.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 22px;
  display: block;
  transition:
    transform 0.6s ease,
    box-shadow 0.6s ease,
    filter 0.6s ease;
}

.hero-img:hover img {
  transform: scale(1.05) translateY(-6px);
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.45),
    0 0 35px rgba(94, 234, 212, 0.25);
  filter: brightness(1.05) contrast(1.05);
}

.hero-img::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  border: 2px solid transparent;
  background: linear-gradient(
      120deg,
      rgba(94, 234, 212, 0.6),
      rgba(96, 165, 250, 0.6),
      rgba(167, 139, 250, 0.6)
    )
    border-box;
  mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.hero-img:hover::after {
  opacity: 1;
}

#codeRain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.08;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(94, 234, 212, 0.15),
    transparent 70%
  );
  z-index: 0;
}

.hero-grid {
  max-width: 1300px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
  z-index: 1;
}

.hero-side {
  position: absolute;
  left: 2%;
  top: 50%;
  transform: rotate(-90deg) translateY(-50%);
  font-size: 0.75rem;
  letter-spacing: 3px;
  color: var(--text-muted);
}

.hero h1 {
  font-size: 3.6rem;
}

.hero-role {
  font-size: 1.4rem;
  color: var(--accent-1);
  min-height: 36px;
}

.hero p {
  margin-top: 22px;
  line-height: 1.9;
  color: var(--text-muted);
  max-width: 540px;
}

.hero-btn {
  margin-top: 32px;
  display: inline-block;
  padding: 14px 36px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #020617;
  font-weight: 600;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(96, 165, 250, 0.4);
}

.about-card,
.edu-card,
.project-card,
.cert-card,
.contact-card {
  background: var(--card-bg);
  border-radius: 28px;
  backdrop-filter: blur(14px);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.55);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.about-card:hover,
.edu-card:hover,
.project-card:hover,
.cert-card:hover,
.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 40px 110px rgba(96, 165, 250, 0.25);
}

.about-card {
  max-width: 1200px;
  margin: auto;
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
}

.about-card img {
  width: 100%;
  border-radius: 22px;
}

.about-content p {
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 16px;
}

.section-header {
  text-align: center;
  margin-bottom: 70px;
}

.section-header h2 {
  font-size: 2.6rem;
  background: linear-gradient(90deg, var(--accent-2), var(--accent-3));
  -webkit-background-clip: text;
  color: transparent;
}

.section-line {
  width: 90px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent-3));
  margin: 14px auto 0;
  border-radius: 2px;
}

.skills-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.skills-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: skillsScroll 28s linear infinite;
}

.skills-track:hover {
  animation-play-state: paused;
}

.skill-card {
  width: 170px;
  height: 130px;
  background: rgba(20, 24, 48, 0.9);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-shrink: 0;
  box-shadow: 0 0 25px rgba(96, 165, 250, 0.18);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.skill-card i {
  font-size: 42px;
  color: #60a5fa;
}

.skill-card span {
  font-size: 0.95rem;
  color: #e5e7eb;
}

.skill-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 45px rgba(96, 165, 250, 0.45);
}

.skills-sub {
  margin-top: 14px;
  color: #9ca3af;
  font-size: 0.95rem;
  text-align: center;
}

@keyframes skillsScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}



.education-wrapper {
  max-width: 1300px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.edu-card {
  padding: 48px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.edu-card.reverse {
  grid-template-columns: 1fr 1.2fr;
}

.edu-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 16px;
  background: rgba(96, 165, 250, 0.15);
  color: var(--accent-2);
  font-size: 0.75rem;
  margin-bottom: 16px;
}

.edu-sub {
  color: var(--accent-1);
  margin-bottom: 18px;
}

.edu-image img {
  width: 100%;
  border-radius: 22px;
}

.projects-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.project-card {
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.project-card ul {
  padding-left: 20px;
  margin: 18px 0;
  color: var(--text-muted);
}

.tech {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.tech span {
  padding: 6px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}

.project-actions {
  display: flex;
  gap: 14px;
  margin-top: auto;
}

.project-actions a {
  text-decoration: none;
  padding: 10px 24px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--accent-2);
  border: 1px solid rgba(96, 165, 250, 0.6);
  background: rgba(96, 165, 250, 0.08);
  white-space: nowrap;
  transition: all 0.3s ease;
}

.project-actions a:hover {
  background: rgba(96, 165, 250, 0.2);
  color: #020617;
  box-shadow: 0 0 18px rgba(96, 165, 250, 0.35);
  transform: translateY(-2px);
}

.cert-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.cert-card {
  padding: 30px;
}

.contact-section {
  padding: 120px 8%;
}

.contact-header {
  text-align: center;
  margin-bottom: 70px;
}

.contact-header h2 {
  font-size: 2.6rem;
  background: linear-gradient(90deg, #8b5cf6, #60a5fa);
  -webkit-background-clip: text;
  color: transparent;
}

.contact-wrapper {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-card {
  background: rgba(20, 24, 48, 0.65);
  backdrop-filter: blur(18px);
  border-radius: 28px;
  padding: 42px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.contact-card h3 {
  font-size: 1.6rem;
  margin-bottom: 28px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  padding: 14px 16px;
  color: #e5e7eb;
  margin-bottom: 18px;
}

.contact-form textarea {
  min-height: 150px;
  resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.25);
}

.contact-form button {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  color: #60a5fa;
  font-size: 1rem;
  cursor: pointer;
  padding: 6px 0;
  transition: color 0.3s ease, transform 0.3s ease;
}

.contact-form button:hover {
  color: #8b5cf6;
  transform: translateX(4px);
}

.contact-image {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 26px;
}

.contact-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.contact-link {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 16px;
  transition: background 0.3s ease, border 0.3s ease;
}

.contact-link:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(96, 165, 250, 0.4);
}

.contact-link strong {
  display: block;
  margin-bottom: 6px;
}

.contact-link a {
  color: var(--text-main);
  font-weight: 400;
  opacity: 0.9;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .hero-grid,
  .about-card,
  .edu-card,
  .projects-grid,
  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .hero-side {
    display: none;
  }
}


