/* =============================================
   MAHESHWARAN D — PORTFOLIO CSS
   Design System: Dark Tech Premium
   ============================================= */

/* ===== CSS VARIABLES ===== */
:root {
  /* Colors */
  --bg-primary: #080d1a;
  --bg-secondary: #0d1528;
  --bg-card: #111827;
  --bg-card-hover: #1a2540;
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-border: rgba(255, 255, 255, 0.08);

  --accent-blue: #00d4ff;
  --accent-violet: #7c3aed;
  --accent-cyan: #06b6d4;
  --accent-green: #10b981;
  --accent-orange: #f59e0b;
  --accent-pink: #ec4899;

  --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
  --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  --gradient-hero: linear-gradient(135deg, #080d1a 0%, #0d1528 50%, #111827 100%);

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Typography */
  --font-primary: 'Inter', -apple-system, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --section-padding: 100px 0;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow-blue: 0 0 40px rgba(0, 212, 255, 0.15);
  --shadow-glow-violet: 0 0 40px rgba(124, 58, 237, 0.2);

  /* Transitions */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: var(--section-padding); }

/* ===== GRADIENT TEXT ===== */
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-primary);
  cursor: pointer;
  border: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}
.btn:hover::before { transform: translateX(0); }

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--bg-glass-border);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.15);
}

.btn-full { width: 100%; justify-content: center; }

/* ===== SECTION HEADER ===== */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-blue);
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(8, 13, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--bg-glass-border);
  padding: 14px 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: var(--transition);
}
.nav-logo:hover { color: var(--accent-blue); }

.logo-bracket {
  color: var(--accent-blue);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  transition: var(--transition);
}
.nav-link:hover { color: var(--text-primary); background: var(--bg-glass); }

.nav-cta {
  background: var(--gradient-primary) !important;
  color: white !important;
  font-weight: 600;
  padding: 9px 22px;
  box-shadow: 0 2px 12px rgba(0,212,255,0.25);
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0,212,255,0.35) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}
.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #00d4ff, transparent);
  top: -200px; left: -150px;
}
.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #7c3aed, transparent);
  bottom: -200px; right: -100px;
}
.orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #06b6d4, transparent);
  top: 50%; right: 20%;
  opacity: 0.15;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #10b981;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 28px;
  animation: fadeInDown 0.6s ease forwards;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.hero-title {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
  animation: fadeInDown 0.6s ease 0.1s forwards;
  opacity: 0;
}

.hero-role {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 20px;
  animation: fadeInDown 0.6s ease 0.2s forwards;
  opacity: 0;
}

.role-rotator {
  color: var(--accent-blue);
  font-weight: 600;
  border-right: 2px solid var(--accent-blue);
  padding-right: 4px;
  animation: blink 0.8s step-end infinite;
}

@keyframes blink {
  0%, 100% { border-color: var(--accent-blue); }
  50% { border-color: transparent; }
}

.hero-tagline {
  display: none;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin-bottom: 40px;
  animation: fadeInDown 0.6s ease 0.3s forwards;
  opacity: 0;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
  animation: fadeInDown 0.6s ease 0.4s forwards;
  opacity: 0;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  animation: fadeInDown 0.6s ease 0.5s forwards;
  opacity: 0;
}

.stat-item { text-align: center; }

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
  display: block;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--bg-glass-border);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  justify-content: center;
  animation: fadeIn 1s ease 1s forwards;
  opacity: 0;
}

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.scroll-mouse {
  width: 24px;
  height: 36px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background: var(--accent-blue);
  border-radius: 2px;
  animation: scrollAnim 1.5s ease-in-out infinite;
}

@keyframes scrollAnim {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

/* ===== ABOUT ===== */
.about {
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}
.about::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--gradient-primary);
  opacity: 0.3;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  display: flex;
  justify-content: center;
}

.avatar-wrapper {
  position: relative;
  width: 280px;
  height: 280px;
}

.avatar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  animation: rotateSlow linear infinite;
}

.ring-1 {
  background: linear-gradient(var(--bg-secondary), var(--bg-secondary)) padding-box,
              var(--gradient-primary) border-box;
  animation-duration: 8s;
}

.ring-2 {
  inset: 16px;
  background: linear-gradient(var(--bg-secondary), var(--bg-secondary)) padding-box,
              linear-gradient(135deg, #7c3aed, #00d4ff) border-box;
  animation-duration: 12s;
  animation-direction: reverse;
}

@keyframes rotateSlow {
  to { transform: rotate(360deg); }
}

.avatar-core {
  position: absolute;
  inset: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #111827, #1a2540);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bg-glass-border);
  overflow: hidden;
}

.avatar-icon {
  color: var(--accent-blue);
  opacity: 0.7;
}

.floating-badge {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--bg-glass-border);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
  animation: float 3s ease-in-out infinite;
}

.badge-python { top: 10px; right: -10px; animation-delay: 0s; }
.badge-django { bottom: 20px; right: -20px; animation-delay: 1s; }
.badge-git { bottom: 10px; left: -10px; animation-delay: 2s; }

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

.about-intro {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.about-body {
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.8;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.highlight-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  transition: var(--transition);
}
.highlight-card:hover {
  border-color: rgba(0, 212, 255, 0.2);
  background: rgba(0, 212, 255, 0.04);
}

.highlight-icon { font-size: 1.3rem; }

.highlight-card strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
}
.highlight-card span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.about-socials {
  display: flex;
  gap: 12px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  color: var(--text-secondary);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}
.social-btn:hover {
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

.social-linkedin:hover {
  border-color: #0077b5;
  color: #0077b5;
}

/* ===== SKILLS ===== */
.skills { background: var(--bg-primary); }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.skill-category::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: left;
}
.skill-category:hover::before { transform: scaleX(1); }
.skill-category:hover {
  border-color: rgba(0, 212, 255, 0.15);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow-blue);
}

.skill-cat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.skill-cat-icon { font-size: 1.3rem; }
.skill-cat-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--bg-glass-border);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  transition: var(--transition);
}
.skill-pill:hover { color: var(--text-primary); border-color: rgba(255,255,255,0.12); }

.skill-primary {
  background: rgba(0, 212, 255, 0.06);
  border-color: rgba(0, 212, 255, 0.2);
  color: var(--accent-blue);
  font-weight: 600;
}

/* ===== PROJECTS ===== */
.projects { background: var(--bg-secondary); }

.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.project-card {
  display: grid;
  grid-template-columns: 1fr 160px;
  background: var(--bg-card);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

.project-card:hover {
  border-color: rgba(0, 212, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), var(--shadow-glow-blue);
}

.project-featured {
  border-color: rgba(0, 212, 255, 0.15);
  background: linear-gradient(135deg, #111827, #0d1a2e);
}

.project-number {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 900;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  pointer-events: none;
}

.project-content {
  padding: 36px;
  flex: 1;
}

.project-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.tag-ai { background: rgba(124, 58, 237, 0.15); color: #a78bfa; border: 1px solid rgba(124,58,237,0.25); }
.tag-cv { background: rgba(0, 212, 255, 0.1); color: var(--accent-blue); border: 1px solid rgba(0,212,255,0.2); }
.tag-fullstack { background: rgba(16, 185, 129, 0.1); color: #34d399; border: 1px solid rgba(16,185,129,0.2); }
.tag-docker { background: rgba(6, 182, 212, 0.1); color: #67e8f9; border: 1px solid rgba(6,182,212,0.2); }
.tag-django { background: rgba(52, 211, 153, 0.1); color: #6ee7b7; border: 1px solid rgba(52,211,153,0.2); }
.tag-web { background: rgba(245, 158, 11, 0.1); color: #fbbf24; border: 1px solid rgba(245,158,11,0.2); }

.project-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.project-desc {
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.7;
}

.project-impact {
  list-style: none;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.project-impact li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding-left: 4px;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tech-chip {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--bg-glass-border);
  color: var(--text-muted);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
}

.project-links { display: flex; gap: 12px; }

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-blue);
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  transition: var(--transition);
}
.project-link:hover {
  background: rgba(0, 212, 255, 0.15);
  transform: translateY(-1px);
}

.project-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  background: linear-gradient(135deg, rgba(0,0,0,0.2), rgba(0,0,0,0.1));
  position: relative;
  overflow: hidden;
}

.pv-ai {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(0, 212, 255, 0.1));
}
.pv-fullstack {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(6, 182, 212, 0.1));
}
.pv-quiz {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(124, 58, 237, 0.1));
}

.pv-icon {
  font-size: 4rem;
  animation: float 3s ease-in-out infinite;
}

/* ===== EXPERIENCE / TIMELINE ===== */
.experience { background: var(--bg-primary); }

.timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-blue), var(--accent-violet), transparent);
}

.timeline-item {
  position: relative;
  padding-left: 76px;
  margin-bottom: 40px;
}

.timeline-dot {
  position: absolute;
  left: 14px;
  top: 28px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid;
  z-index: 1;
}

.dot-work { background: rgba(0,212,255,0.15); border-color: var(--accent-blue); box-shadow: 0 0 12px rgba(0,212,255,0.4); }
.dot-edu { background: rgba(124,58,237,0.15); border-color: var(--accent-violet); box-shadow: 0 0 12px rgba(124,58,237,0.4); }
.dot-cert { background: rgba(245,158,11,0.15); border-color: var(--accent-orange); box-shadow: 0 0 12px rgba(245,158,11,0.4); }

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  transition: var(--transition);
}
.timeline-card:hover {
  border-color: rgba(0,212,255,0.15);
  transform: translateX(4px);
}

.tc-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.tc-type {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
}

.tc-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.tc-org {
  font-size: 0.88rem;
  color: var(--accent-blue);
  font-weight: 500;
}

.tc-period {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.tc-bullets {
  list-style: none;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tc-bullets li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding-left: 16px;
  position: relative;
}
.tc-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-blue);
  font-size: 0.75rem;
}

.tc-desc { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 16px; line-height: 1.7; }

.tc-skills { display: flex; flex-wrap: wrap; gap: 8px; }
.tc-chip {
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.15);
  color: var(--accent-blue);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.tc-cgpa {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.cgpa-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }
.cgpa-value { font-size: 1.1rem; font-weight: 800; color: var(--accent-blue); }
.cgpa-bar {
  flex: 1;
  min-width: 120px;
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.cgpa-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  animation: expandBar 1.5s ease forwards;
}
@keyframes expandBar {
  from { width: 0 !important; }
}

.cert-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cert-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
}
.cert-icon { font-size: 1.5rem; }
.cert-item strong { display: block; font-size: 0.95rem; margin-bottom: 2px; }
.cert-item span { font-size: 0.8rem; color: var(--text-muted); }

/* ===== CONTACT ===== */
.contact {
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.contact-wrapper {
  position: relative;
  z-index: 1;
}

.contact-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(124,58,237,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.contact-info > p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
}

.contact-items { display: flex; flex-direction: column; gap: 12px; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  transition: var(--transition);
  cursor: pointer;
}
.contact-item:hover {
  border-color: rgba(0,212,255,0.2);
  transform: translateX(4px);
  background: var(--bg-card-hover);
}
.contact-location { cursor: default; }

.ci-icon {
  font-size: 1.2rem;
  width: 40px;
  height: 40px;
  background: rgba(0,212,255,0.08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  flex-shrink: 0;
}

.ci-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.ci-value {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ===== FORM ===== */
.contact-form-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.contact-form { display: flex; flex-direction: column; gap: 20px; }

.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.04);
  border: 1.5px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  padding: 12px 16px;
  transition: var(--transition);
  outline: none;
  resize: none;
}

.form-group select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.form-group select option { background: #111827; color: var(--text-primary); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-blue);
  background: rgba(0, 212, 255, 0.04);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}
.form-success .success-icon { font-size: 3rem; margin-bottom: 16px; }
.form-success h4 { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.form-success p { color: var(--text-secondary); }

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--bg-glass-border);
  padding: 48px 0;
}

.footer-content { text-align: center; }
.footer-logo { font-size: 1.3rem; display: inline-block; margin-bottom: 12px; }
.footer-tagline { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 24px; }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--accent-blue); }

.footer-copy {
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== SCROLL ANIMATIONS ===== */
[data-aos] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: rgba(0,212,255,0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,212,255,0.4); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { display: none; }
}

@media (max-width: 768px) {
  :root { --section-padding: 70px 0; }

  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(8, 13, 26, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-link { font-size: 1.2rem; }
  .hamburger { display: flex; z-index: 1000; }

  .skills-grid { grid-template-columns: 1fr; }
  .project-card { grid-template-columns: 1fr; }
  .project-visual { min-height: 100px; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 16px; }
  .stat-number { font-size: 1.5rem; }
  .hero-actions { flex-direction: column; }
  .btn { justify-content: center; }
  .timeline::before { left: 16px; }
  .timeline-item { padding-left: 56px; }
  .timeline-dot { left: 6px; }
  .about-socials { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-title { font-size: 2.2rem; }
  .contact-form-wrapper { padding: 24px 20px; }
  .timeline-card { padding: 22px 20px; }
}
