@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;700&family=Great+Vibes&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #040816;
  --surface: rgba(11, 20, 39, 0.9);
  --surface-2: rgba(17, 29, 54, 0.95);
  --text: #f4f7ff;
  --muted: #9fb0cc;
  --neon: #00d9ff;
  --neon-2: #3b82f6;
  --border: rgba(0, 217, 255, 0.2);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  background: linear-gradient(135deg, var(--bg), #071329);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.background-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.2;
  z-index: -1;
}

.glow-1 {
  top: 10%;
  left: -5%;
  width: 250px;
  height: 250px;
  background: var(--neon);
}

.glow-2 {
  bottom: 10%;
  right: -5%;
  width: 300px;
  height: 300px;
  background: var(--neon-2);
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background: rgba(4, 8, 22, 0.8);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.logo-signature {
  font-family: 'Great Vibes', cursive;
  font-size: 2.1rem;
  font-weight: 400;
  text-decoration: none;
  background: linear-gradient(90deg, var(--neon), #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: opacity 0.3s ease;
}

.logo-signature:hover {
  opacity: 0.8;
}

.logo {
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
}

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

.nav-links {
  display: flex;
  gap: 1.2rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  transition: 0.3s ease;
}

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

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s ease-in-out;
}

/* Animate hamburger into an X when menu is open */
.menu-btn.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.menu-btn.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.section {
  padding: 5rem 5%;
  max-width: 1200px;
  margin: 0 auto;
  scroll-margin-top: 5rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  min-height: 90vh;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--neon);
  font-size: 0.8rem;
  margin-bottom: 0.8rem;
}

h1,
h2,
h3 {
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  margin-bottom: 1rem;
}

h1 span {
  color: var(--neon);
}

.hero-text,
.section-heading p,
.info-card p,
.achievement-card p,
.timeline-item span,
.contact-info p {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
}

.btn-primary {
  background: linear-gradient(90deg, var(--neon), var(--neon-2));
  color: #021018;
}

.btn-secondary {
  color: var(--text);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.stats-grid,
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.platform-links {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.platform-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 62px;
  height: 62px;
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
  color: var(--text);
  transition: 0.3s ease;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.platform-card:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: var(--neon);
  box-shadow: 0 0 14px rgba(0, 217, 255, 0.18);
}

.platform-card img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 50%;
  background: transparent;
  padding: 0;
}


.stat-card,
.info-card,
.achievement-card,
.timeline-item,
.contact-form,
.contact-info,
.profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.achievement-profiles {
  margin-top: 1.2rem;
  padding: 1.2rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.publication-card {
  padding: 1.3rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.08), rgba(59, 130, 246, 0.08));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.publication-card h3 {
  margin-bottom: 0.6rem;
  color: var(--text);
}

.publication-card p {
  color: var(--muted);
  margin-bottom: 0.7rem;
}

.publication-card span {
  display: block;
  color: var(--neon);
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

.publication-card a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.publication-card a:hover {
  color: var(--neon);
}

.achievement-profiles h3 {
  margin-bottom: 0.8rem;
  color: var(--text);
}

.profile-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.profile-link-card {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  color: var(--text);
  transition: 0.3s ease;
}

.profile-link-card:hover {
  transform: translateY(-2px);
  border-color: var(--neon);
  box-shadow: 0 0 12px rgba(0, 217, 255, 0.16);
}

.profile-link-card img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 0.45rem;
  padding: 2px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-card {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 14px;
  overflow: hidden;
  min-height: 360px;
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-sizing: border-box;
}

.profile-photo {
  width: 100%;
  height: 100%;
  max-width: 320px;
  max-height: 360px;
  object-fit: cover;
  border-radius: 0.9rem;
  display: block;
  border: 1px solid rgba(0, 217, 255, 0.25);
}

.stat-card {
  text-decoration: none;
  color: var(--text);
  display: block;
}

.stat-card span {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--neon);
  font-size: 0.9rem;
}

.contact-info a {
  color: var(--neon);
  text-decoration: none;
}

.contact-info a:hover {
  color: #8befff;
}

.avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--neon), var(--neon-2));
  color: #03121d;
}

.profile-card ul {
  list-style: none;
  margin-top: 1rem;
  color: var(--muted);
}

.section-heading {
  margin-bottom: 1.5rem;
}

.section-heading h2 {
  font-size: 1.8rem;
}

/* Skills Section Styles */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}

.skill-category {
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.05), rgba(59, 130, 246, 0.05));
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
}

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

.skill-card {
  position: relative;
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.08), rgba(59, 130, 246, 0.1));
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.4rem;
  overflow: hidden;
  transition: 0.3s ease;
}

.skill-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transform: translateX(-100%);
  transition: 0.6s ease;
}

.skill-card:hover::before {
  transform: translateX(100%);
}

.skill-card:hover {
  transform: translateY(-4px);
  border-color: var(--neon);
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.2);
}

.skill-emoji {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0, 217, 255, 0.15);
  color: var(--neon);
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}

.skill-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

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

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skill-tag {
  display: inline-block;
  padding: 0.55rem 0.8rem;
  background: rgba(0, 217, 255, 0.1);
  border: 1px solid rgba(0, 217, 255, 0.3);
  border-radius: 999px;
  color: var(--neon);
  font-size: 0.83rem;
  font-weight: 600;
  transition: 0.3s ease;
}

.skill-tag:hover {
  background: rgba(0, 217, 255, 0.2);
  border-color: var(--neon);
  box-shadow: 0 0 12px rgba(0, 217, 255, 0.3);
  transform: translateY(-2px);
}

.skill-tag.expert {
  background: rgba(0, 217, 255, 0.15);
  border-color: var(--neon);
  color: var(--neon);
}

.skill-tag.advanced {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.5);
  color: var(--neon-2);
}

.skill-tag.intermediate {
  background: rgba(147, 112, 219, 0.1);
  border-color: rgba(147, 112, 219, 0.3);
  color: #9370db;
}

@media (max-width: 850px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
}

/* Projects Grid Styles */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: 0.3s ease;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--neon), var(--neon-2));
}

.project-card:hover {
  border-color: var(--neon);
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.2);
}

.project-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--neon);
  text-decoration: none;
  font-weight: 600;
}

.project-link:hover {
  color: #8befff;
}

.project-badge {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background: linear-gradient(90deg, var(--neon), var(--neon-2));
  color: #021018;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
}

.project-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--text);
}

.project-desc {
  color: var(--muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-tech span {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  background: rgba(0, 217, 255, 0.1);
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 0.4rem;
  color: var(--neon);
  font-size: 0.8rem;
  font-weight: 500;
}

.achievement-card span {
  display: inline-block;
  margin-top: 0.8rem;
  color: var(--neon);
  font-weight: 600;
}

.achievement-card h3 {
  margin-bottom: 0.6rem;
}

.achievement-list {
  list-style: none;
  margin-top: 0.6rem;
}

.achievement-list li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.4rem;
  color: var(--muted);
}

.achievement-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--neon);
  font-weight: bold;
}

/* Participation Grid & Cards Styles */
.participation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.participation-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: 0.3s ease;
}

.participation-card:hover {
  transform: translateY(-3px);
  border-color: var(--neon);
  box-shadow: 0 0 14px rgba(0, 217, 255, 0.14);
}

.contest-name {
  font-weight: 700;
  color: var(--text);
  font-size: 0.95rem;
}

.team-tag {
  font-size: 0.85rem;
  color: var(--muted);
}

.rank-badge {
  align-self: flex-start;
  padding: 0.2rem 0.6rem;
  background: rgba(0, 217, 255, 0.12);
  color: var(--neon);
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(0, 217, 255, 0.25);
}

.icpc-roadmap-wrap {
  position: relative;
}

.icpc-roadmap-intro {
  color: var(--muted);
  margin-bottom: 1.1rem;
}

.icpc-roadmap {
  position: relative;
  display: grid;
  gap: 1.1rem;
  padding-left: 1.1rem;
}

.icpc-roadmap::before {
  content: '';
  position: absolute;
  left: 0.32rem;
  top: 0.25rem;
  bottom: 0.25rem;
  width: 2px;
  background: linear-gradient(180deg, var(--neon), rgba(59, 130, 246, 0.7));
  box-shadow: 0 0 12px rgba(0, 217, 255, 0.35);
}

.icpc-year-group {
  position: relative;
  padding-left: 0.75rem;
}

.icpc-year-group::before {
  content: '';
  position: absolute;
  left: -0.56rem;
  top: 0.48rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid var(--neon);
  background: #071329;
  box-shadow: 0 0 10px rgba(0, 217, 255, 0.45);
}

.icpc-group-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(0, 217, 255, 0.12);
  border: 1px solid rgba(0, 217, 255, 0.28);
  color: var(--neon);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 0.7rem;
}

.icpc-year-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.icpc-node {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0.9rem;
  align-items: start;
}

.icpc-node::before {
  content: '';
  position: absolute;
  left: -0.99rem;
  top: 0.8rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--neon);
  background: #071329;
  box-shadow: 0 0 10px rgba(0, 217, 255, 0.45);
}

.icpc-year {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 72px;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(0, 217, 255, 0.12);
  border: 1px solid rgba(0, 217, 255, 0.28);
  color: var(--neon);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.icpc-node-card {
  background: linear-gradient(140deg, rgba(0, 217, 255, 0.08), rgba(59, 130, 246, 0.08));
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 0.95rem 1rem;
}

.icpc-node-card.main-round {
  border-color: rgba(16, 185, 129, 0.4);
  background: linear-gradient(140deg, rgba(16, 185, 129, 0.12), rgba(59, 130, 246, 0.09));
}

.icpc-node-card h4 {
  margin-bottom: 0.25rem;
  font-size: 0.98rem;
  color: var(--text);
}

.icpc-node-card p {
  color: var(--muted);
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
}

.icpc-status {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 217, 255, 0.24);
  background: rgba(0, 217, 255, 0.1);
  color: var(--neon);
  font-size: 0.78rem;
  font-weight: 600;
}

.icpc-status.main {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.12);
  color: #7ef0c3;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 1rem;
}

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

input,
textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 0.8rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
}

footer {
  text-align: center;
  padding: 1.5rem 5%;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

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

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

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-width: 350px;
  width: 90%;
}

.toast {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 1rem 1.25rem;
  border-radius: 0.8rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 217, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.25), opacity 0.4s ease;
  backdrop-filter: blur(10px);
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast.success {
  border-color: #10b981;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 15px rgba(16, 185, 129, 0.15);
}

.toast.error {
  border-color: #ef4444;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 15px rgba(239, 68, 68, 0.15);
}

@media (max-width: 850px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 6rem;
    padding-bottom: 2rem;
    gap: 2.5rem;
  }

  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .stats-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }

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

  .icpc-year-cards {
    grid-template-columns: 1fr;
  }

  .icpc-node {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .icpc-year {
    min-width: 64px;
  }
}

@media (max-width: 480px) {
  .profile-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .navbar {
    justify-content: space-between;
  }

  .logo-signature {
    font-size: 1.6rem;
  }

  .menu-btn {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 5%;
    flex-direction: column;
    background: var(--surface-2);
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 0.8rem;
    display: none;
  }

  .nav-links.active {
    display: flex;
  }
}