* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --bg: #0a0a1a;
  --glass: rgba(25, 25, 60, 0.5);
  --border: rgba(100, 140, 255, 0.15);
  --primary: #6d8cff;
  --primary-glow: #a78bfa;
  --accent: #f472b6;
  --gold: #fbbf24;
  --text: #eef0ff;
  --text-secondary: #a0a5c0;
  --radius: 1.8rem;
  --transition: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1.2);
}
html {
  font-family: "Urbanist", sans-serif;
}
body {
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.7;
  position: relative;
}
.bg-animated {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.25;
}
.bg-animated canvas {
  display: block;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}
.section-title {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 3rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.section-title i {
  background: none;
  -webkit-text-fill-color: var(--primary);
  margin-right: 0.8rem;
  font-size: 2.2rem;
  vertical-align: middle;
}
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.2rem 0;
  background: rgba(10, 10, 26, 0.7);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s;
  position: relative;
  padding: 0.3rem 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}
.nav-links a:hover {
  color: white;
}
.nav-links a:hover::after {
  width: 100%;
}
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
}

.hero {
  padding: 10rem 0 6rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4rem;
}
.hero-img-wrapper {
  position: relative;
  flex: 0 0 280px;
}
.hero-img {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 60px rgba(109, 140, 255, 0.5);
  position: relative;
  z-index: 2;
}
.orbit-icons {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 350px;
  height: 350px;
  transform: translate(-50%, -50%);
  animation: spin 25s linear infinite;
}
.orbit-icons i {
  position: absolute;
  font-size: 2.2rem;
  color: var(--primary-glow);
  filter: drop-shadow(0 0 6px rgba(167, 139, 250, 0.6));
}
.orbit-icons i:nth-child(1) {
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
}
.orbit-icons i:nth-child(2) {
  top: 15px;
  right: -10px;
}
.orbit-icons i:nth-child(3) {
  bottom: 20px;
  right: -5px;
}
.orbit-icons i:nth-child(4) {
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}
.orbit-icons i:nth-child(5) {
  bottom: 20px;
  left: -10px;
}
.orbit-icons i:nth-child(6) {
  top: 15px;
  left: -15px;
}
@keyframes spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
.hero-content h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.hero-content h2 {
  font-size: 1.8rem;
  background: linear-gradient(135deg, #c084fc, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
}
.hero-summary {
  color: var(--text-secondary);
  max-width: 750px;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  text-align: justify;
}
.btn {
  padding: 0.8rem 2.2rem;
  border-radius: 4rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.4s;
  border: 2px solid transparent;
}
.btn-primary {
  background: linear-gradient(135deg, #6d8cff, #a78bfa);
  color: white;
  box-shadow: 0 8px 25px rgba(109, 140, 255, 0.4);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(109, 140, 255, 0.7);
}
.btn-outline {
  border-color: rgba(255, 255, 255, 0.2);
  color: white;
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.2rem;
}
.skill-card {
  background: rgba(30, 30, 70, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 1.8rem;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  transition: all 0.35s;
}
.skill-card:hover {
  transform: translateY(-6px);
  background: rgba(109, 140, 255, 0.15);
  border-color: var(--primary);
  box-shadow: 0 15px 30px rgba(109, 140, 255, 0.2);
}
.skill-icon {
  font-size: 1.8rem;
  color: var(--primary-glow);
}
.skill-name {
  font-weight: 700;
  font-size: 1rem;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 2.8rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  border-radius: 4px;
}
.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 2.5rem;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -0.75rem;
  top: 0.5rem;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--gold);
  border-radius: 50%;
  border: 4px solid var(--bg);
  box-shadow: 0 0 18px rgba(251, 191, 36, 0.6);
}
.timeline-date {
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.timeline-title {
  font-weight: 800;
  font-size: 1.4rem;
  margin-bottom: 0.2rem;
}
.timeline-subtitle {
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 1rem;
}
.timeline-desc {
  color: var(--text-secondary);
  list-style: none;
}
.timeline-desc li {
  margin-bottom: 0.4rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.timeline-desc li i {
  color: var(--accent);
  font-size: 0.8rem;
}

/* Experience with photo */
.exp-layout {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.exp-photo-wrapper {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  backdrop-filter: blur(15px);
  box-shadow: 0 15px 35px rgba(109, 140, 255, 0.15);
  transition: transform 0.3s;
  flex: 0.8;
}
.exp-photo-wrapper:hover {
  transform: translateY(-5px);
}
.exp-photo {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 1.5rem;
  display: block;
  border: 2px solid rgba(255, 255, 255, 0.1);
}
.exp-photo-caption {
  text-align: center;
  margin-top: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.edu-card {
  padding: 2rem;
  border-radius: 2rem;
  background: rgba(30, 30, 70, 0.4);
  border: 1px solid var(--border);
  backdrop-filter: blur(15px);
  transition: all 0.3s;
}
.edu-card:hover {
  border-color: var(--primary);
  box-shadow: 0 15px 35px rgba(109, 140, 255, 0.15);
}
.edu-icon i {
  font-size: 2.6rem;
  color: var(--primary);
  margin-bottom: 1rem;
}
.award-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.3rem;
  list-style: none;
}
.award-item {
  background: rgba(30, 30, 70, 0.5);
  border: 1px solid var(--border);
  border-radius: 2rem;
  padding: 1.4rem 1.6rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  backdrop-filter: blur(10px);
  transition: 0.3s;
}
.award-item:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 25px rgba(251, 191, 36, 0.25);
}
.award-item i {
  font-size: 2rem;
  color: var(--gold);
}
.pub-item {
  padding: 1.8rem;
  margin-bottom: 1.8rem;
  border-left: 5px solid var(--primary);
  background: rgba(20, 20, 50, 0.5);
  border-radius: 0 1.5rem 1.5rem 0;
  backdrop-filter: blur(10px);
}

/* GitHub Style */
.contribution-graph {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  justify-content: center;
  margin: 2rem 0;
}
.contribution-cell {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: #0e4429;
}
.contribution-cell.level-1 {
  background: #0e4429;
}
.contribution-cell.level-2 {
  background: #006d32;
}
.contribution-cell.level-3 {
  background: #26a641;
}
.contribution-cell.level-4 {
  background: #39d353;
}
.repo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
}
.repo-card {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s;
  color: #c9d1d9;
}
.repo-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 25px rgba(109, 140, 255, 0.2);
  transform: translateY(-4px);
}
.repo-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  color: #58a6ff;
  font-weight: 600;
}
.repo-card p {
  font-size: 0.9rem;
  color: #8b949e;
  margin-bottom: 0.8rem;
}
.repo-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
}
.repo-lang {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.repo-lang-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.repo-link {
  color: #8b949e;
  text-decoration: none;
  margin-left: auto;
}
.repo-link:hover {
  color: var(--primary);
}

footer {
  text-align: center;
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  margin-top: 4rem;
}
.social-links a {
  color: var(--text-secondary);
  margin: 0 0.8rem;
  font-size: 1.6rem;
  transition: 0.3s;
}
.social-links a:hover {
  color: var(--primary);
  transform: translateY(-4px);
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 7rem;
  }
  .hero-img {
    width: 200px;
    height: 200px;
  }
  .orbit-icons {
    width: 260px;
    height: 260px;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 26, 0.95);
    flex-direction: column;
    padding: 2rem;
    backdrop-filter: blur(20px);
  }
  .nav-links.active {
    display: flex;
  }
  .mobile-menu-btn {
    display: block;
  }
  .exp-layout {
    flex-direction: column;
  }
  .exp-photo-wrapper {
    order: -1;
  }
}

/* Event Gallery */
.gallery-heading {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  opacity: 0.8;
}
.gallery-heading i {
  color: var(--primary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.gallery-item {
  position: relative;
  border-radius: 1.8rem;
  overflow: hidden;
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  transition:
    transform 0.4s,
    box-shadow 0.4s;
  cursor: pointer;
}
.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(109, 140, 255, 0.3);
  border-color: var(--primary);
}
.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
.gallery-item:hover img {
  transform: scale(1.05);
}
.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 26, 0.5);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s;
  color: white;
  gap: 0.5rem;
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}
.gallery-overlay i {
  font-size: 2rem;
  color: var(--primary-glow);
  filter: drop-shadow(0 0 8px rgba(167, 139, 250, 0.8));
}
.gallery-overlay span {
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  padding: 0 1rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 1.5rem;
  box-shadow: 0 0 40px rgba(109, 140, 255, 0.4);
  border: 3px solid var(--border);
  transform: scale(0.9);
  transition: transform 0.3s;
}
.lightbox.active .lightbox-img {
  transform: scale(1);
}
.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 2.4rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.3s;
}
.lightbox-close:hover {
  opacity: 1;
}

/* Fade-in on scroll */
.fade-in-section {
  opacity: 0;
  transform: translateY(25px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}
