/* =========================================================================
   STYLE.CSS - Premium Light Portfolio for Navaneethakrishnan Malaiyappan
   ========================================================================= */

/* --- CSS Variables & Theme --- */
:root {
  --font-primary: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;

  /* Premium Light Palette */
  --c-bg-deep: #f0f4f8;
  --c-bg: #ffffff;
  --c-bg-card: #ffffff;
  --c-bg-card-hover: #f8fafc;
  --c-bg-light: #f8f9fb;

  --c-text: #2c3e50;
  --c-text-secondary: #5d6d7e;
  --c-text-muted: #85929e;

  /* Accent Gradients */
  --gradient-primary: linear-gradient(135deg, #6366f1, #06b6d4);
  --gradient-accent: linear-gradient(135deg, #6366f1, #8b5cf6, #06b6d4);
  --gradient-warm: linear-gradient(135deg, #f59e0b, #ef4444, #ec4899);
  --gradient-glow: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(6, 182, 212, 0.08));

  --c-accent: #6366f1;
  --c-accent-2: #06b6d4;
  --c-accent-3: #8b5cf6;

  --c-border: rgba(99, 102, 241, 0.12);
  --c-border-subtle: rgba(0, 0, 0, 0.06);

  /* Utils */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.12);
  --shadow-glow-cyan: 0 0 30px rgba(6, 182, 212, 0.12);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-full: 9999px;
}

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

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: #1a202c;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: var(--c-accent);
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--c-accent-3);
}

ul {
  list-style: none;
}

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

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

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

.bg-light {
  background-color: var(--c-bg-light);
}

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

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

/* --- Typography & Utilities --- */
.section-header {
  margin-bottom: 4rem;
}

.section-eyebrow {
  display: inline-block;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.75rem;
  font-weight: 800;
  color: #1a202c;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 70px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
}

.text-center .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.lead-text {
  font-size: 1.2rem;
  color: var(--c-text);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

/* --- Glass Panels --- */
.glass-panel, .glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
}

.glass-panel:hover {
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: var(--shadow-glow), var(--shadow-md);
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  transition: all var(--transition-normal);
  padding: 1.25rem 0;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  padding: 0.75rem 0;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--c-border-subtle);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

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

.nav-link {
  color: var(--c-text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover, .nav-link.active {
  color: var(--c-accent);
}

.btn-contact {
  background: var(--gradient-primary);
  color: white !important;
  padding: 0.55rem 1.4rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  border: none;
  -webkit-text-fill-color: white;
}

.btn-contact::after {
  display: none;
}

.btn-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 1001;
}

.menu-toggle .bar {
  width: 25px;
  height: 3px;
  background: var(--c-text);
  transition: var(--transition-normal);
  border-radius: 3px;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  background: linear-gradient(135deg, #f0f4f8 0%, #e8edf5 50%, #eef2ff 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 120%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, transparent 70%);
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -15%;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.05) 0%, transparent 70%);
  z-index: 0;
}

#particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 70%, var(--c-bg) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 2;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 0.45rem 1.25rem;
  background: rgba(99, 102, 241, 0.08);
  color: var(--c-accent);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.75rem;
  border: 1px solid rgba(99, 102, 241, 0.18);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 1rem;
  color: #1a202c;
}

.hero-title .highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 500;
  color: var(--c-text-secondary);
  margin-bottom: 1.5rem;
  min-height: 2em;
}

.hero-subtitle .typing-text {
  color: var(--c-accent);
  border-right: 2px solid var(--c-accent);
  animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: var(--c-accent); }
}

.hero-tagline {
  font-size: 1.1rem;
  color: var(--c-text-muted);
  max-width: 540px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition-normal);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25);
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.5s;
}
.btn-primary:hover::before {
  left: 100%;
}
.btn-primary:hover {
  transform: translateY(-3px);
  color: white;
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--c-accent);
  border: 2px solid var(--c-accent);
}
.btn-outline:hover {
  background: rgba(99, 102, 241, 0.06);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
  color: var(--c-accent);
}

.btn-text {
  background: transparent;
  color: var(--c-text-secondary);
  padding: 0.85rem 1rem;
}
.btn-text:hover {
  color: var(--c-accent);
  background: rgba(99, 102, 241, 0.05);
}

/* --- Hero Visual --- */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.abstract-shape {
  width: 400px;
  height: 400px;
  background: var(--gradient-accent);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: morph 8s ease-in-out infinite alternate;
  position: relative;
  box-shadow: 0 0 60px rgba(99, 102, 241, 0.15), 0 0 120px rgba(6, 182, 212, 0.08);
  opacity: 0.85;
}

@keyframes morph {
  0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  25% { border-radius: 58% 42% 38% 62% / 52% 44% 56% 48%; }
  50% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  75% { border-radius: 42% 58% 62% 38% / 44% 52% 48% 56%; }
  100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

.tech-stats {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 82%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(99, 102, 241, 0.15);
  animation: float 6s ease-in-out infinite;
}

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

.stat {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
  color: var(--c-text);
  font-size: 1.05rem;
}

.icon-blue {
  color: var(--c-accent);
  font-size: 1.4rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.08);
  border-radius: var(--radius-sm);
}

/* --- About Section --- */
.about {
  background: var(--c-bg);
}

.about-content p {
  margin-bottom: 1.25rem;
  color: var(--c-text-secondary);
  line-height: 1.8;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.highlight-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--c-bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--c-border-subtle);
  transition: all var(--transition-normal);
}

.highlight-card:hover {
  transform: translateX(10px);
  border-color: var(--c-border);
  box-shadow: var(--shadow-glow), var(--shadow-md);
  background: var(--c-bg-card-hover);
}

.highlight-card .icon-wrapper {
  background: rgba(99, 102, 241, 0.08);
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-accent);
  font-size: 1.25rem;
  flex-shrink: 0;
  border: 1px solid rgba(99, 102, 241, 0.1);
}

.highlight-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  color: #1a202c;
}

.highlight-card p {
  margin-bottom: 0;
  font-size: 0.9rem;
  color: var(--c-text-muted);
}

/* --- Skills Section --- */
.skills {
  background: var(--c-bg-light);
}

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

.skill-category {
  padding: 2.5rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.skill-category::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.skill-category:hover::before {
  opacity: 1;
}

.skill-category:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow), var(--shadow-lg);
  border-color: rgba(99, 102, 241, 0.2);
}

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

.category-icon {
  font-size: 2rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.skill-category h3 {
  font-size: 1.25rem;
  color: #1a202c;
}

.chip-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.chip {
  background: rgba(99, 102, 241, 0.06);
  color: var(--c-text-secondary);
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid var(--c-border-subtle);
  transition: all var(--transition-fast);
  cursor: default;
}

.chip:hover {
  background: var(--c-accent);
  color: white;
  border-color: var(--c-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

/* --- Experience Timeline --- */
.experience {
  background: var(--c-bg);
}

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

.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 2px;
  background: linear-gradient(180deg, var(--c-accent), var(--c-accent-2), var(--c-accent-3));
  opacity: 0.3;
}

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

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

.timeline-dot {
  position: absolute;
  left: 11px;
  top: 0;
  width: 20px;
  height: 20px;
  background: var(--c-bg);
  border: 3px solid var(--c-accent);
  border-radius: 50%;
  z-index: 1;
  transition: all var(--transition-normal);
}

.timeline-item:hover .timeline-dot {
  background: var(--c-accent);
  box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.1), 0 0 20px rgba(99, 102, 241, 0.15);
}

.timeline-content {
  padding: 2rem;
  transition: all var(--transition-normal);
}

.timeline-item:hover .timeline-content {
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow: var(--shadow-glow), var(--shadow-md);
  transform: translateX(6px);
}

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

.job-title {
  font-size: 1.35rem;
  color: #1a202c;
}

.job-company {
  font-size: 1.05rem;
  color: var(--c-text-secondary);
  font-weight: 500;
}

.job-date {
  background: rgba(99, 102, 241, 0.08);
  color: var(--c-accent);
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(99, 102, 241, 0.15);
  white-space: nowrap;
}

.job-details {
  list-style-type: none;
}

.job-details li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.7rem;
  color: var(--c-text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.job-details li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--c-accent);
  font-weight: bold;
}

/* --- Achievements / Metrics --- */
.achievements {
  background: linear-gradient(135deg, #312e81, #1e1b4b, #0f172a);
  position: relative;
  overflow: hidden;
}

.achievements::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 30% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(6, 182, 212, 0.1) 0%, transparent 60%);
  z-index: 0;
}

.achievements > .container {
  position: relative;
  z-index: 1;
}

.achievements .section-eyebrow {
  -webkit-text-fill-color: unset;
  color: var(--c-accent-2);
  background: none;
}

.achievements .section-title {
  color: #ffffff;
}

.achievements .section-title::after {
  background: var(--gradient-primary);
}

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

.metric-card {
  padding: 2.5rem 1.5rem;
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: white;
  transform: translateY(0);
  transition: all var(--transition-normal);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.metric-card:hover::before {
  opacity: 1;
}

.metric-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.2);
}

.metric-icon {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  display: inline-block;
}

.metric-value {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: white;
}

.metric-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}

/* --- Education --- */
.education {
  background: var(--c-bg-light);
}

.edu-block {
  padding: 2.5rem;
}

.block-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--c-border-subtle);
  padding-bottom: 1rem;
}

.heading-icon {
  font-size: 1.8rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cert-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.cert-item:hover {
  background: rgba(99, 102, 241, 0.04);
}

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

.cert-logo {
  font-size: 2.2rem;
  color: var(--c-accent);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(99, 102, 241, 0.06);
  border-radius: var(--radius-md);
}

.cert-logo .ms-color {
  color: #00a4ef;
}

.cert-info h4 {
  font-size: 1.05rem;
  color: #1a202c;
  margin-bottom: 0.2rem;
}

.cert-info p {
  font-size: 0.9rem;
  color: var(--c-text-muted);
}

.degree-item {
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.degree-item:hover {
  background: rgba(99, 102, 241, 0.04);
}

.degree-title {
  font-size: 1.2rem;
  color: #1a202c;
  margin-bottom: 0.3rem;
}

.degree-school {
  color: var(--c-text-muted);
  font-weight: 500;
}

/* --- Footer --- */
.footer {
  background: #1a202c;
  color: rgba(255, 255, 255, 0.7);
  padding-top: 5rem;
}

.footer-top {
  margin-bottom: 4rem;
}

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

.footer-tagline {
  margin: 1.5rem 0;
  max-width: 300px;
  color: rgba(255, 255, 255, 0.5);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
  background: var(--c-accent);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.footer-contact-details h3 {
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.contact-list i {
  color: var(--c-accent-2);
  width: 20px;
  text-align: center;
}

.contact-list a {
  color: rgba(255, 255, 255, 0.7);
}

.contact-list a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.back-to-top {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-fast);
}

.back-to-top:hover {
  background: var(--c-accent);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

/* --- Animations & Reveals --- */
.reveal-up {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger delays */
.skills-grid .skill-category:nth-child(2),
.metrics-grid .metric-card:nth-child(2) { transition-delay: 0.1s; }
.skills-grid .skill-category:nth-child(3),
.metrics-grid .metric-card:nth-child(3) { transition-delay: 0.2s; }
.metrics-grid .metric-card:nth-child(4) { transition-delay: 0.3s; }

/* --- Responsive Layout --- */
@media (max-width: 992px) {
  .hero-title {
    font-size: 3rem;
  }
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .abstract-shape {
    width: 300px;
    height: 300px;
  }
}

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

  /* Mobile Nav */
  .menu-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--c-bg);
    flex-direction: column;
    align-items: stretch;
    transition: 0.3s;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--c-border-subtle);
  }
  .nav-menu.active {
    left: 0;
  }
  .nav-links {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }
  .nav-links li { width: 100%; }
  .nav-links li a {
    display: block;
    font-size: 1.2rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--c-border-subtle);
  }
  .btn-contact {
    display: inline-block;
    text-align: center;
    width: max-content;
  }

  .timeline-container::before {
    left: 10px;
  }
  .timeline-item {
    padding-left: 40px;
  }
  .timeline-dot {
    left: 1px;
    width: 18px;
    height: 18px;
  }
  .job-header {
    flex-direction: column;
    gap: 0.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .hero-title {
    font-size: 2.2rem;
  }

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

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

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

::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.45);
}

/* --- Selection --- */
::selection {
  background: rgba(99, 102, 241, 0.2);
  color: #1a202c;
}
