:root {
  --bg: #0f172a;
  --card: #111827;
  --primary: #7c3aed;
  --secondary: #06b6d4;
  --text: #f8fafc;
  --muted: #94a3b8;
  --border: rgba(255, 255, 255, 0.08);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Inter", sans-serif;
  background: linear-gradient(180deg, #0f172a, #020617);
  color: var(--text);
  line-height: 1.7;
  padding-top: 90px;
}
/* NAVBAR */
header {
  padding: 1rem 8%;
  min-height: 100vh;
}
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 8%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(16px);
  background: rgba(2, 6, 23, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 1000;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  transition: 0.3s;
}
.nav-links a:hover {
  color: white;
}

.tagline {
  color: var(--secondary);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}
.hero h1 {
  font-size: 3.2rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.hero-description {
  color: var(--muted);
  max-width: 700px;
  font-size: 1.1rem;
}
.hero-buttons {
  display: flex;
  gap: 0.4rem;
  margin-top: 2rem;
  margin-bottom: 0rem;
}
.btn {
  padding: 1rem 1.5rem;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}
.primary {
  background: var(--primary);
  color: white;
}
.primary:hover {
  transform: translateY(-3px);
}
.secondary {
  border: 1px solid var(--border);
  color: white;
}
.hero-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2rem;
  backdrop-filter: blur(12px);
}
.hero-card h3 {
  margin-bottom: 1.5rem;
}
.stack-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.stack-grid span {
  background: #1e293b;
  padding: 1rem;
  border-radius: 14px;
  text-align: center;
}
.section {
  padding: 6rem 8%;
}
.section-title p {
  color: var(--secondary);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.section-title h2 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: 22px;
  transition: 0.3s;
}
.project-card:hover {
  transform: translateY(-6px);
}
.project-card h3 {
  margin-bottom: 1rem;
}
.project-card p {
  color: var(--muted);
}
.project-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}
.project-links a {
  color: var(--secondary);
  text-decoration: none;
}
.docs-grid {
  display: grid;
  gap: 1.5rem;
}
.doc-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
}
.doc-card p {
  color: var(--muted);
}
.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
}
footer {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
}
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 2.8rem;
  }
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}
.gradient-bg {
  position: fixed;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(
      circle at top left,
      rgba(124, 58, 237, 0.25),
      transparent 30%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(6, 182, 212, 0.2),
      transparent 30%
    );
  z-index: -1;
}
.glass-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  border-radius: 24px;
  padding: 2rem;
}
.tech-stack {
  margin-top: 1rem;
  color: #06b6d4;
  font-size: 0.95rem;
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.skill-card {
  background: #111827;
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.skill-card h3 {
  margin-bottom: 1rem;
}
.project-card {
  text-decoration: none;
  color: white;
}
.project-image {
  width: 100%;
  border-radius: 24px;
  margin: 2rem 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
/* CONTACT SECTION */
.contact-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
}
.contact-info h3,
.contact-card h3 {
  margin-bottom: 1rem;
  font-size: 1.6rem;
}
.contact-description {
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.8;
}
.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 18px;
  text-decoration: none;
  color: white;
  transition: 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.contact-item:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateX(6px);
}
.contact-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 58, 237, 0.15);
  font-size: 1.3rem;
}
.contact-item h4 {
  margin-bottom: 0.2rem;
}
.contact-item p {
  color: var(--muted);
  font-size: 0.95rem;
}
/* INTEREST TAGS */
.interest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}
.interest-tags span {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.7rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
}
/* STATUS */
.availability {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}
.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 12px #22c55e;
}
/* MOBILE */
@media (max-width: 900px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
}
/* NAVBAR */
.resume-btn:hover {
  transform: translateY(-3px);
}
/* TIMELINE */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.timeline-card {
  position: relative;
}
.timeline-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.timeline-header span {
  color: #06b6d4;
}
.timeline-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
}
.timeline-date {
  color: #06b6d4;
  font-size: 0.92rem;
  font-weight: 600;
}
.timeline-cgpa {
  font-size: 0.88rem;
  color: #94a3b8;
}
.timeline-subtitle {
  margin-top: 0.3rem;
  color: #94a3b8;
  font-size: 0.95rem;
}
/* PAPERS */
.papers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.paper-card {
  text-decoration: none;
  color: white;
  transition: 0.3s ease;
}
.paper-card:hover {
  transform: translateY(-6px);
}
.paper-card h3 {
  margin-bottom: 1rem;
}
.paper-card p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.paper-card span {
  color: #06b6d4;
}
/* MOBILE */
@media (max-width: 1200px) {
  .navbar {
    flex-direction: column;
    gap: 1.5rem;
  }
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}
/* ICONS */
.nav-links a,
.resume-btn,
.contact-item,
.paper-card span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.contact-icon svg,
.skill-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}
.skill-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: rgba(124, 58, 237, 0.12);
  margin-bottom: 1rem;
}
.resume-btn svg {
  width: 18px;
  height: 18px;
}
.nav-links svg {
  width: 16px;
  height: 16px;
}
.logo {
  font-size: 1.3rem;
  font-weight: 800;
  white-space: nowrap;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  list-style: none;
}
.nav-links a {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: #cbd5e1;
  font-size: 0.92rem;
  font-weight: 500;
  transition: 0.3s ease;
}
.nav-links a:hover {
  color: white;
}
.nav-links svg {
  width: 16px;
  height: 16px;
}
.resume-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.7rem;
  border-radius: 14px;
  border-width: 1px;
  border: 1.5px solid var(--primary);
  color: white;
  text-decoration: none;
  transition: 0.3s ease;
}
.resume-btn:hover {
  transform: translateY(-3px);
}
/* HERO RIGHT */
.hero-right {
  display: flex;
  justify-content: center;
}
.profile-container {
  position: relative;
  width: 420px;
  height: 420px;
}
/* PROFILE IMAGE */
.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
/* FLOATING CARDS */
.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.2rem;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 0.92rem;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
/* CARD POSITIONS */
.card-1 {
  top: -20px;
  left: -30px;
}
.card-2 {
  bottom: 40px;
  left: -50px;
}
.card-3 {
  top: 40%;
  right: -50px;
}
/* ICONS */
.floating-card svg {
  width: 18px;
  height: 18px;
  color: #06b6d4;
}
/* RESPONSIBILITIES */
.responsibility-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}
.responsibility-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  color: #cbd5e1;
}
.responsibility-item svg {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: #06b6d4;
  flex-shrink: 0;
}
.experience-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  color: #06b6d4;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
}
.experience-link:hover {
  transform: translateX(5px);
}
.inner-page {
  padding-top: 2rem;
}
.responsibility-item i {
  font-size: 1rem;
  color: #06b6d4;
  margin-top: 3px;
  width: 18px;
}
.disabled-btn {
  opacity: 0.75;
  pointer-events: none;
  cursor: default;
}
.repo-note {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  font-size: 0.92rem;
}
.logo a {
  text-decoration: none;
  color: white;
  font-weight: 800;
  transition: 0.3s ease;
}
.logo a:hover {
  opacity: 0.9;
}
.glass-card a {
  text-decoration: none;
  color: white;
}

/* Hamburger menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background: #fff;
  border-radius: 2px;
}

/* Hide nav-links on mobile initially */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-right {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(2, 6, 23, 0.95);
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
  }

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

  .nav-links {
    flex-direction: column;
    gap: 1rem;
  }

  .resume-btn {
    margin-top: 1rem;
  }
}

/* Hero section padding */
.hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: center;
  min-height: 85vh;
  padding-top: 2rem; /* approximate navbar height */
}

/* Optional: add smoother mobile resizing */
@media (max-width: 480px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 120px; /* taller navbar on very small screens */
  }
}

.contribution-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.85rem;
  color: #aaa;
}

.box {
  width: 14px;
  height: 14px;
  border-radius: 3px;
}

.level-0 {
  background: #161b22;
}

.level-1 {
  background: #2d1155;
}

.level-2 {
  background: #5b21b6;
}

.level-3 {
  background: #a855f7;
}

.level-4 {
  background: #e9a8ff;
}
/* TIMELINE */

.timeline {
  position: relative;
  margin-top: 4rem;
  padding-left: 40px;
}

/* Vertical Line */

.timeline::before {
  content: "";
  position: absolute;

  left: 11px;
  top: 0;

  width: 2px;
  height: 100%;

  background: linear-gradient(to bottom, #a855f7, rgba(168, 85, 247, 0.08));
}

/* ITEM */

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

/* GLOW DOT */

.timeline-dot {
  position: absolute;

  left: -35px;
  top: 24px;

  width: 16px;
  height: 16px;

  border-radius: 50%;

  background: #a855f7;

  box-shadow:
    0 0 0 6px rgba(168, 85, 247, 0.12),
    0 0 20px rgba(168, 85, 247, 0.6);
}

/* CARD */

.timeline-card {
  transition: 0.35s ease;
}

.timeline-card:hover {
  transform: translateY(-6px);
  border-color: rgba(168, 85, 247, 0.3);
}

/* HEADER */

.timeline-header {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

/* TITLES */

.timeline-main h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.timeline-subtitle {
  color: #9ca3af;
  font-size: 0.95rem;
}

/* RIGHT META */

.timeline-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.8rem;
}

/* DATE */

.timeline-date {
  color: #c084fc;
  font-size: 0.9rem;
  font-weight: 600;
}

/* TAG */

.timeline-tag {
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.2);

  padding: 0.45rem 0.8rem;
  border-radius: 999px;

  font-size: 0.75rem;
  color: #d8b4fe;

  letter-spacing: 0.5px;
}

/* DESCRIPTION */

.timeline-description {
  margin-top: 1.4rem;
  color: #d1d5db;
  line-height: 1.8;
}

/* LINK */

.experience-link {
  margin-top: 1.5rem;

  display: inline-flex;
  align-items: center;
  gap: 0.5rem;

  color: #c084fc;
  text-decoration: none;

  transition: 0.3s ease;
}

.experience-link:hover {
  gap: 0.8rem;
}

/* MOBILE */

@media (max-width: 768px) {
  .timeline {
    padding-left: 30px;
  }

  .timeline-header {
    flex-direction: column;
  }

  .timeline-meta {
    align-items: flex-start;
  }
}
