/* ============================================================
   PREMIUM DEVELOPER PORTFOLIO — DESIGN SYSTEM
   Complete production-ready CSS with dark/light theme support
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ============================================================
   1. THEME SYSTEM — CSS Custom Properties
   ============================================================ */

/* --- Dark Theme (Default) --- */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(255, 255, 255, 0.15);
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --accent-primary: #10b981;
  --accent-secondary: #047857;
  --accent-gradient: linear-gradient(135deg, #10b981, #047857);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --shadow-color: rgba(0, 0, 0, 0.3);
  --nav-bg: rgba(10, 10, 15, 0.8);
}

/* --- Light Theme --- */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.7);
  --bg-card-hover: rgba(255, 255, 255, 0.9);
  --border-color: rgba(0, 0, 0, 0.08);
  --border-color-hover: rgba(0, 0, 0, 0.15);
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  --accent-primary: #059669;
  --accent-secondary: #065f46;
  --accent-gradient: linear-gradient(135deg, #059669, #065f46);
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(0, 0, 0, 0.1);
  --shadow-color: rgba(0, 0, 0, 0.1);
  --nav-bg: rgba(248, 250, 252, 0.8);
}

/* ============================================================
   2. GLOBAL RESET & BASE STYLES
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

::selection {
  background: #10b981;
  color: #0a0a0f;
}

[data-theme="light"] ::selection {
  background: #059669;
  color: #ffffff;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

button {
  cursor: pointer;
  font-family: inherit;
}

/* --- Scrollbar Styling --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color-hover);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}

/* ============================================================
   3. UTILITY — Gradient Text
   ============================================================ */

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============================================================
   4. NAVIGATION
   ============================================================ */

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: background 0.4s ease, border-color 0.4s ease;
}

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

.nav-logo {
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  text-decoration: none;
  letter-spacing: -0.5px;
  transition: opacity 0.3s ease;
}

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

.nav-dp {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 10px;
  border: 1px solid var(--border-color);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

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

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Theme Toggle */
#theme-toggle {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-secondary);
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

#theme-toggle:hover {
  background: var(--bg-card);
  color: var(--accent-primary);
  transform: rotate(15deg);
}

/* Mobile Menu Toggle */
#mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 8px;
  border-radius: 10px;
  transition: background 0.3s ease;
}

#mobile-menu-toggle:hover {
  background: var(--bg-card);
}

#mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

#mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================
   5. HERO SECTION
   ============================================================ */

#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.hero-subtitle {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.85rem;
  color: var(--accent-primary);
  font-weight: 600;
  margin-bottom: 1rem;
  transition: color 0.4s ease;
}

.hero-name {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-weight: 400;
  transition: color 0.4s ease;
}

#typing-text {
  color: var(--accent-primary);
  font-weight: 600;
  border-right: 2px solid var(--accent-primary);
  padding-right: 4px;
  animation: blink-cursor 0.75s step-end infinite;
}

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

.hero-description {
  max-width: 600px;
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 0 auto 2rem;
  transition: color 0.4s ease;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  justify-content: center;
}

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

.hero-stat-number {
  font-size: 2rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-tertiary);
  margin-top: 0.25rem;
  transition: color 0.4s ease;
}

/* ============================================================
   6. FLOATING ORBS — Background Animation
   ============================================================ */

.floating-orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: float infinite ease-in-out;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: #10b981;
  top: -200px;
  left: -200px;
  animation-duration: 20s;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: #047857;
  bottom: -200px;
  right: -200px;
  animation-duration: 25s;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: #ec4899;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-duration: 30s;
}

@keyframes float {
  0%   { transform: translate(0, 0); }
  33%  { transform: translate(30px, -50px); }
  66%  { transform: translate(-20px, 20px); }
  100% { transform: translate(0, 0); }
}

[data-theme="light"] .orb {
  opacity: 0.08;
}

/* ============================================================
   7. BUTTONS
   ============================================================ */

.btn {
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.1);
  transform: translateY(-2px);
}

/* ============================================================
   8. SECTIONS & CONTAINERS
   ============================================================ */

.section {
  padding: 6rem 0;
  position: relative;
}

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

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-subtitle {
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent-primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
  transition: color 0.4s ease;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-line {
  width: 60px;
  height: 4px;
  background: var(--accent-gradient);
  border-radius: 2px;
  margin: 0 auto;
}

/* ============================================================
   9. GLASS CARD
   ============================================================ */

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.4s ease;
  cursor: default;
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-color-hover);
  box-shadow: 0 20px 40px var(--shadow-color);
}

/* ============================================================
   10. ABOUT SECTION
   ============================================================ */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.about-image-wrapper::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 22px;
  background: var(--accent-gradient);
  opacity: 0.4;
  filter: blur(20px);
  z-index: -1;
}

.about-image-wrapper img {
  width: 300px;
  height: 300px;
  border-radius: 20px;
  object-fit: cover;
  border: 2px solid var(--border-color);
  transition: border-color 0.4s ease;
}

.about-text h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.about-text p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  transition: color 0.4s ease;
}

.about-highlights {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.highlight-tag {
  padding: 0.4rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--accent-primary);
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: default;
  user-select: none;
}

.highlight-tag:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-primary);
}

/* ============================================================
   11. STATS ROW
   ============================================================ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.stat-card {
  text-align: center;
  padding: 1.5rem;
}

.stat-card .stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-card .stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.5rem;
  transition: color 0.4s ease;
}

/* ============================================================
   12. SKILLS SECTION
   ============================================================ */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.skill-category {
  transition: all 0.4s ease;
}

.skill-category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.skill-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  color: #ffffff;
}

.skill-category h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

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

.skill-tag {
  padding: 0.35rem 0.8rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  cursor: default;
  user-select: none;
}

.skill-tag:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: rgba(16, 185, 129, 0.05);
}

[data-theme="light"] .skill-tag:hover {
  background: rgba(5, 150, 105, 0.06);
}

/* ============================================================
   13. EXPERIENCE — TIMELINE
   ============================================================ */

.timeline {
  position: relative;
  padding-left: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
  transition: background 0.4s ease;
}

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

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -3rem;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-gradient);
  border: 3px solid var(--bg-primary);
  z-index: 1;
  transition: border-color 0.4s ease;
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: calc(-3rem + 3px);
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-primary);
  opacity: 0.15;
  filter: blur(6px);
  z-index: 0;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  gap: 0.5rem;
}

.timeline-role {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: color 0.4s ease;
}

.timeline-company {
  color: var(--accent-primary);
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.4s ease;
}

.timeline-date {
  color: var(--text-tertiary);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  white-space: nowrap;
  transition: all 0.4s ease;
}

.timeline-description {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
  transition: color 0.4s ease;
}

.timeline-achievements {
  list-style: none;
}

.timeline-achievements li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
  transition: color 0.4s ease;
}

.timeline-achievements li:last-child {
  margin-bottom: 0;
}

.timeline-achievements li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: 700;
  transition: color 0.4s ease;
}

.timeline-achievements .highlight {
  color: var(--accent-primary);
  font-weight: 600;
  transition: color 0.4s ease;
}

/* ============================================================
   14. EDUCATION SECTION
   ============================================================ */

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

.education-card {
  position: relative;
  overflow: hidden;
}

.education-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-gradient);
}

.education-card .degree {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.education-card .institution {
  color: var(--accent-primary);
  font-weight: 500;
  margin-bottom: 0.25rem;
  transition: color 0.4s ease;
}

.education-card .year {
  color: var(--text-tertiary);
  font-size: 0.85rem;
  transition: color 0.4s ease;
}

.education-card .honours {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-primary);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.5rem;
  transition: all 0.4s ease;
}

[data-theme="light"] .education-card .honours {
  background: rgba(16, 185, 129, 0.1);
}

.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.certification-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
}

.certification-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-primary);
  flex-shrink: 0;
  transition: border-color 0.4s ease, color 0.4s ease;
}

.certification-info h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.certification-info p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ============================================================
   15. PROJECTS SECTION
   ============================================================ */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
}

.project-card {
  position: relative;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.project-header .project-link {
  display: flex;
  gap: 0.75rem;
}

.project-header .project-link {
  color: var(--text-tertiary);
  font-size: 1.2rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.project-header .project-link:hover {
  color: var(--accent-primary);
  transform: translateY(-2px);
}

.project-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-primary);
  margin-bottom: 1.25rem;
  flex-shrink: 0;
  transition: border-color 0.4s ease, color 0.4s ease;
}

.project-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.project-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
  transition: color 0.4s ease;
}

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

.tech-tag {
  padding: 0.35rem 0.8rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}

a.tech-tag {
  cursor: pointer;
}

.tech-tag:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.contact-tag {
  text-transform: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* ============================================================
   16. AWARDS SECTION
   ============================================================ */

.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.award-card {
  text-align: center;
  position: relative;
}

.award-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.award-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.award-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  transition: color 0.4s ease;
}

.award-card.featured {
  border-color: var(--accent-primary);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.1);
}

[data-theme="light"] .award-card.featured {
  box-shadow: 0 0 30px rgba(2, 132, 199, 0.1);
}

/* ============================================================
   17. CONTACT & FOOTER
   ============================================================ */

.contact-content {
  text-align: center;
}

.contact-content h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.contact-content p {
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 2rem;
  line-height: 1.7;
  transition: color 0.4s ease;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.social-link {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
  font-size: 1.5rem;
  color: var(--text-secondary);
}

.social-link:hover {
  transform: translateY(-4px);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.2);
}

[data-theme="light"] .social-link:hover {
  box-shadow: 0 10px 30px rgba(2, 132, 199, 0.15);
}

footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.85rem;
  transition: color 0.4s ease, border-color 0.4s ease;
}

footer a {
  color: var(--accent-primary);
  font-weight: 500;
  transition: color 0.3s ease;
}

footer a:hover {
  text-decoration: underline;
}

/* ============================================================
   18. SCROLL ANIMATIONS
   ============================================================ */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered delays */
.fade-in:nth-child(1) { transition-delay: 0s; }
.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.2s; }
.fade-in:nth-child(4) { transition-delay: 0.3s; }
.fade-in:nth-child(5) { transition-delay: 0.4s; }
.fade-in:nth-child(6) { transition-delay: 0.5s; }

/* ============================================================
   19. RESPONSIVE — Tablet (max-width: 1024px)
   ============================================================ */

@media (max-width: 1024px) {
  .section {
    padding: 4.5rem 0;
  }

  .section-header {
    margin-bottom: 3rem;
  }

  .about-grid {
    gap: 3rem;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .stats-grid {
    gap: 1rem;
  }
}

/* ============================================================
   20. RESPONSIVE — Mobile (max-width: 768px)
   ============================================================ */

@media (max-width: 768px) {
  /* Navigation */
  #mobile-menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    right: 0;
    width: 280px;
    height: calc(100vh - 72px);
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    flex-direction: column;
    padding: 2rem;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 999;
    overflow-y: auto;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.8rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-links a::after {
    display: none;
  }

  /* Hero */
  #hero {
    min-height: calc(100vh - 72px);
    padding-top: 72px;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .hero-stat-number {
    font-size: 1.6rem;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .about-image-wrapper {
    justify-content: center;
    order: -1;
  }

  .about-image-wrapper img {
    width: 240px;
    height: 240px;
  }

  .about-highlights {
    justify-content: center;
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-card .stat-number {
    font-size: 2rem;
  }

  /* Skills */
  .skills-grid {
    grid-template-columns: 1fr;
  }

  /* Timeline */
  .timeline {
    padding-left: 2rem;
  }

  .timeline-item {
    padding-left: 1.5rem;
  }

  .timeline-item::before {
    left: -2rem;
    width: 12px;
    height: 12px;
  }

  .timeline-item::after {
    left: calc(-2rem + 2px);
    width: 18px;
    height: 18px;
  }

  .timeline-role {
    font-size: 1.15rem;
  }

  /* Projects */
  .projects-grid {
    grid-template-columns: 1fr;
  }

  /* Section spacing */
  .section {
    padding: 3.5rem 0;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .container {
    padding: 0 1.25rem;
  }
}

/* ============================================================
   21. RESPONSIVE — Small Mobile (max-width: 480px)
   ============================================================ */

@media (max-width: 480px) {
  .nav-container {
    padding: 0 1rem;
  }

  .nav-logo {
    font-size: 1.25rem;
  }

  .hero-subtitle {
    font-size: 0.75rem;
    letter-spacing: 2px;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

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

  .hero-stats {
    gap: 1rem;
  }

  .hero-stat-number {
    font-size: 1.4rem;
  }

  .hero-stat-label {
    font-size: 0.7rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .stat-card .stat-number {
    font-size: 1.75rem;
  }

  .section {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .contact-content h3 {
    font-size: 1.5rem;
  }

  .social-link {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    font-size: 1.25rem;
  }

  .glass-card {
    padding: 1.5rem;
    border-radius: 16px;
  }

  .education-grid {
    grid-template-columns: 1fr;
  }

  .awards-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   22. THEME TRANSITION — Smooth Property Transitions
   ============================================================ */

#navbar,
.glass-card,
.btn-secondary,
.skill-tag,
.tech-tag,
.highlight-tag,
.timeline-date,
.social-link,
footer,
.education-card .honours,
.stat-card,
.about-image-wrapper img {
  transition: background-color 0.4s ease,
              color 0.4s ease,
              border-color 0.4s ease,
              box-shadow 0.4s ease;
}

/* ============================================================
   23. PRINT STYLES
   ============================================================ */

@media print {
  #navbar,
  .floating-orbs,
  #theme-toggle,
  #mobile-menu-toggle {
    display: none !important;
  }

  .section {
    padding: 1.5rem 0;
    break-inside: avoid;
  }

  body {
    background: #fff;
    color: #1e293b;
  }

  .glass-card {
    background: #f8fafc;
    backdrop-filter: none;
    border: 1px solid #e2e8f0;
  }
}


