/* ============================================
   DEVELOPER PORTFOLIO - MODERN DARK THEME
   ============================================ */

:root {
  /* Colors - Dark (default) */
  --bg-deep: #0a0e17;
  --bg-dark: #0d1220;
  --bg-card: rgba(15, 23, 42, 0.6);
  --accent: #00d4ff;
  --accent-dim: #00a8cc;
  --accent-glow: rgba(0, 212, 255, 0.4);
  --accent-soft: rgba(0, 212, 255, 0.15);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-subtle: rgba(148, 163, 184, 0.15);
  --border-glow: rgba(0, 212, 255, 0.3);
  --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 40px var(--accent-glow);
  --input-bg: rgba(15, 23, 42, 0.6);

  /* Typography */
  --font-main: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing & Layout */
  --nav-height: 72px;
  --section-padding: clamp(4rem, 10vw, 7rem);
  --container-max: 1200px;
  --radius: 16px;
  --radius-sm: 10px;

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 0.4s;
}

/* Dark theme only - No light theme */

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-dark) 50%, var(--bg-deep) 100%);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background var(--duration), color var(--duration);
}

/* Content sits above particle canvas */
main, .navbar, .footer, .scroll-progress, .loader {
  position: relative;
  z-index: 2;
}

/* ========== Scroll Progress Bar ========== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #7dd3fc);
  box-shadow: 0 0 12px var(--accent-glow);
  z-index: 100;
  transition: width 0.15s var(--ease-out);
}

/* ========== Loader ========== */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s var(--ease-out), visibility 0.6s, background var(--duration);
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  text-align: center;
}

.loader-logo {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  color: var(--accent);
  text-shadow: 0 0 30px var(--accent-glow);
  margin-bottom: 1rem;
  animation: pulse 1.5s ease-in-out infinite;
}

.loader-logo-img {
  width: 250px;
  height: auto;
  padding: 10px 15px;
  border-radius: 12px;
  filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.5));
}

.loader-text {
  font-size: 1rem;
  color: var(--text-secondary);
  min-height: 1.5em;
  margin-bottom: 1.5rem;
}

.loader-bar {
  width: 200px;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  overflow: hidden;
  margin: 0 auto;
}

.loader-bar-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #7dd3fc);
  border-radius: 4px;
  animation: loaderFill 2s var(--ease-out) forwards;
}

@keyframes loaderFill {
  to { width: 100%; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* ========== Particle Canvas ========== */
.particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
}

/* ========== Navbar ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  padding: 0 1.5rem;
  background: rgba(10, 14, 23, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.4s var(--ease-out), backdrop-filter 0.4s, box-shadow 0.4s;
  animation: slideDown 0.8s var(--ease-out) 0.5s both;
  z-index: 1000;
}

.navbar.scrolled {
  background: var(--nav-scrolled-bg, rgba(10, 14, 23, 0.95));
  box-shadow: var(--nav-scrolled-shadow, 0 4px 24px rgba(0,0,0,0.3));
}



.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform var(--duration);
}

.nav-logo-img {
  height: 80px;
  width: auto;
  padding: 4px 8px;
  border-radius: 8px;
  transition: filter var(--duration), transform var(--duration), box-shadow var(--duration);
  filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.4));
}

.nav-logo:hover .nav-logo-img {
  transform: scale(1.05);
  filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.6));
}

.nav-theme-wrap {
  display: flex;
  align-items: center;
  margin-left: 0.5rem;
}

.theme-toggle {
  position: relative;
  width: 48px;
  height: 26px;
  border-radius: 13px;
  border: 2px solid var(--border-subtle);
  background: var(--bg-card);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0 4px;
  transition: border-color var(--duration), background var(--duration);
}

.theme-toggle:hover {
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--accent-soft);
}

.theme-toggle-slider {
  position: absolute;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  transition: transform var(--duration), background var(--duration);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

[data-theme="light"] .theme-toggle-slider {
  transform: translateX(22px);
  background: var(--accent);
}

.theme-toggle-icon {
  position: absolute;
  font-size: 12px;
  z-index: 1;
}

.theme-toggle-icon-moon {
  right: 6px;
  opacity: 1;
}

.theme-toggle-icon-sun {
  left: 6px;
  opacity: 0.5;
}

[data-theme="light"] .theme-toggle-icon-moon {
  opacity: 0.5;
}

[data-theme="light"] .theme-toggle-icon-sun {
  opacity: 1;
}

.theme-icon {
  position: absolute;
  font-size: 1.25rem;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity var(--duration), transform var(--duration);
}

.theme-icon-moon {
  opacity: 1;
  transform: scale(1);
}

[data-theme="light"] .theme-icon-moon {
  opacity: 0;
  transform: scale(0.5);
}

[data-theme="light"] .theme-icon-sun {
  opacity: 1;
  transform: scale(1);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 0.25rem 0;
  transition: color var(--duration);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  transition: width 0.3s var(--ease-out);
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

.nav-link.active {
  font-weight: 600;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 100;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: transform var(--duration), opacity var(--duration);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ========== Glassmorphism utility ========== */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: transform 0.2s, box-shadow 0.3s, background 0.3s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: #0a0e17;
  box-shadow: 0 4px 20px var(--accent-glow);
}



.btn-primary:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 28px var(--accent-glow), 0 0 40px var(--accent-soft);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent-soft);
  transform: scale(1.03);
  box-shadow: 0 0 24px var(--accent-soft);
}

/* ========== Hero ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--nav-height) 1.5rem 4rem;
  max-width: var(--container-max);
  margin: 0 auto;
  gap: 3rem;
}

.hero-content {
  flex: 1;
  animation: fadeUp 1s var(--ease-out) 0.6s both;
}

.hero-greeting {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.hero-name {
  color: var(--accent);
  font-weight: 700;
  text-shadow: 0 0 30px var(--accent-glow);
}

.hero-typing-wrap {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 1rem;
  min-height: 1.2em;
}

.hero-cursor {
  color: var(--accent);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-desc {
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 2rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-social {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  transition: color var(--duration), border-color var(--duration), box-shadow var(--duration), transform 0.2s;
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.social-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
  transform: translateY(-3px);
}

.hero-visual {
  flex: 0 0 clamp(280px, 40%, 400px);
  animation: fadeUp 1s var(--ease-out) 0.8s both;
}

.hero-image-wrap {
  position: relative;
  animation: float 6s ease-in-out infinite;
}

.hero-image-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(145deg, var(--accent-soft), rgba(0, 212, 255, 0.05));
  border: 1px solid var(--border-glow);
  box-shadow: 0 0 60px var(--accent-soft), inset 0 0 60px rgba(0, 212, 255, 0.05);
}

.hero-image-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(10, 14, 23, 0.25) 0%, rgba(10, 14, 23, 0.5) 100%);
  pointer-events: none;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 24px;
  display: block;
}

.hero-image-icon {
  font-family: var(--font-mono);
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.8;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== Section common ========== */
section {
  padding: var(--section-padding) 1.5rem;
  max-width: var(--container-max);
  margin: 0 auto;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 3rem;
  text-align: center;
  background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal].reveal-left { transform: translateX(-40px); }
[data-reveal].reveal-left.revealed { transform: translateX(0); }
[data-reveal].reveal-right { transform: translateX(40px); }
[data-reveal].reveal-right.revealed { transform: translateX(0); }

/* ========== About ========== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: start;
}

.about-card {
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 2rem;
  align-items: start;
}

.about-image-wrap {
  position: relative;
}

.about-image {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-glow);
  box-shadow: 0 0 30px var(--accent-soft);
  transition: transform var(--duration), box-shadow var(--duration);
}

.about-image:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px var(--accent-glow);
}

.about-content p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.about-content strong {
  color: var(--accent);
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 200px;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: border-color var(--duration), box-shadow var(--duration);
}

.stat-item:hover {
  border-color: var(--border-glow);
  box-shadow: 0 0 24px var(--accent-soft);
}

.stat-value {
  display: block;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent-glow);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ========== Skills ========== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.skill-card {
  padding: 1.75rem;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s;
}

.skill-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 30px var(--accent-soft);
  border-color: var(--border-glow);
}

.skill-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.skill-card h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.skill-item {
  margin-bottom: 0.75rem;
}

.skill-item span {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 0.35rem;
}

.skill-bar {
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
  overflow: hidden;
}

.skill-fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), #7dd3fc);
  border-radius: 6px;
  box-shadow: 0 0 12px var(--accent-glow);
  transition: width 1s var(--ease-out);
}

/* Skill fill width is set in JS on reveal for animated progress */

/* ========== Projects ========== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.project-card {
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3), 0 0 40px var(--accent-soft);
  border-color: var(--border-glow);
}

.project-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.project-thumb {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s var(--ease-out);
}

.project-thumb-1 { background: linear-gradient(135deg, #1e3a5f 0%, #0d1220 100%); }
.project-thumb-2 { background: linear-gradient(135deg, #02539a 0%, #0d1220 100%); }
.project-thumb-3 { background: linear-gradient(135deg, #2d5016 0%, #0d1220 100%); }
.project-thumb-4 { background: linear-gradient(135deg, #4c1d95 0%, #0d1220 100%); }

.project-card:hover .project-thumb {
  transform: scale(1.08);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 23, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-btn {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  background: transparent;
  border: 2px solid var(--accent);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: transform 0.2s, background 0.3s, box-shadow 0.3s;
  transform: translateY(10px);
}

.project-card:hover .project-btn {
  transform: translateY(0);
}

.project-btn-live {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: 2px solid var(--accent);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: transform 0.2s, background 0.3s, box-shadow 0.3s;
  transform: translateY(10px);
}

.project-card:hover .project-btn-live {
  transform: translateY(0);
}

.project-btn-live:hover {
  background: transparent;
  box-shadow: 0 0 20px var(--accent-glow);
}

.project-btn:hover {
  background: var(--accent-soft);
  box-shadow: 0 0 20px var(--accent-glow);
}

.project-info {
  padding: 1.5rem;
}

.project-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.project-info p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-tags span {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 6px;
  border: 1px solid var(--border-glow);
}

/* ========== Section header (left-aligned + subtitle) ========== */
.section-header-left {
  margin-bottom: 3rem;
  text-align: left;
}

.section-title-left {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  background: none;
  -webkit-text-fill-color: var(--text-primary);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  font-weight: 400;
}

/* ========== Experience ========== */
.experience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.exp-card {
  position: relative;
  padding: 1.75rem 1.75rem 1.75rem 2.25rem;
  border-radius: 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.exp-card::before {
  content: '';
  position: absolute;
  left: 1.25rem;
  top: 1.9rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.exp-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft), 0 0 30px var(--accent-soft);
  border-color: var(--border-glow);
}

.exp-job-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.exp-company {
  font-size: 1rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.exp-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.exp-sep {
  opacity: 0.6;
}

.exp-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}

.exp-bullets li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.exp-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.8;
}

/* Staggered reveal for experience cards */
.experience-grid .exp-card[data-reveal]:nth-child(1) { transition-delay: 0.1s; }
.experience-grid .exp-card[data-reveal]:nth-child(2) { transition-delay: 0.2s; }
.experience-grid .exp-card[data-reveal]:nth-child(3) { transition-delay: 0.3s; }
.experience-grid .exp-card[data-reveal]:nth-child(4) { transition-delay: 0.4s; }

/* ========== Certifications & Achievements (blends with theme) ========== */
.certifications {
  font-family: var(--font-main);
}

.certifications-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.cert-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.cert-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft), 0 0 30px var(--accent-soft);
  border-color: var(--border-glow);
}

.cert-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.cert-icon {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
}

.cert-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.cert-provider {
  font-size: 0.95rem;
  color: var(--accent-dim);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s, text-decoration 0.2s;
}

.cert-provider:hover {
  color: var(--accent);
  text-decoration: underline;
}

.btn-cert {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background var(--duration), box-shadow var(--duration);
}

.btn-cert:hover {
  background: var(--accent-soft);
  box-shadow: 0 0 16px var(--accent-soft);
}

/* Staggered reveal for certification cards */
.certifications-grid .cert-card[data-reveal]:nth-child(1) { transition-delay: 0.05s; }
.certifications-grid .cert-card[data-reveal]:nth-child(2) { transition-delay: 0.1s; }
.certifications-grid .cert-card[data-reveal]:nth-child(3) { transition-delay: 0.15s; }
.certifications-grid .cert-card[data-reveal]:nth-child(4) { transition-delay: 0.2s; }
.certifications-grid .cert-card[data-reveal]:nth-child(5) { transition-delay: 0.25s; }
.certifications-grid .cert-card[data-reveal]:nth-child(6) { transition-delay: 0.3s; }

/* ========== Contact ========== */
.contact-header {
  margin-bottom: 3rem;
  text-align: center;
}

.contact-underline {
  width: 60px;
  height: 4px;
  background: var(--accent);
  margin: 1rem auto 0;
  border-radius: 2px;
}

.contact-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.contact-social-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.contact-social-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--duration);
}

.contact-social-circle svg {
  width: 22px;
  height: 22px;
}

.contact-social-circle:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 0 20px var(--accent-soft);
}

.contact-support {
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.contact-support h3 {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.contact-support p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.btn-support {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--accent);
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 1rem;
  transition: all var(--duration);
}

.btn-support:hover {
  background: var(--accent-soft);
  box-shadow: 0 0 20px var(--accent-soft);
  transform: translateY(-2px);
}

.support-icon {
  font-size: 1.1rem;
}

.btn-send {
  width: 100%;
  padding: 1rem;
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--duration);
}

.btn-send:hover {
  background: var(--accent-soft);
  box-shadow: 0 0 20px var(--accent-soft);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-info-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-block {
  padding: 1.75rem;
  border-radius: var(--radius);
}

.contact-block-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.contact-details {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-details li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.contact-details li:last-child {
  margin-bottom: 0;
}

.contact-details a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--duration);
}

.contact-details a:hover {
  color: var(--accent);
}

.contact-detail-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.contact-social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.contact-social-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--input-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: border-color var(--duration), box-shadow var(--duration), color var(--duration);
}

.contact-social-btn:hover {
  border-color: var(--border-glow);
  color: var(--accent);
  box-shadow: 0 0 16px var(--accent-soft);
}

.contact-social-btn svg {
  flex-shrink: 0;
}

.contact-form-wrap {
  position: relative;
}

.contact-card {
  padding: 2rem 2.5rem;
  position: relative;
}

.contact-form-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group-icon {
  position: relative;
}

.form-group-icon .input-icon {
  position: absolute;
  left: 1rem;
  top: 2.35rem;
  font-size: 1rem;
  opacity: 0.7;
  pointer-events: none;
}

.form-group-icon .input-icon-msg {
  top: 2.5rem;
}

.form-group-icon input[name="subject"] {
  padding-left: 2.75rem;
}

.form-group-icon input,
.form-group-icon textarea {
  padding-left: 2.75rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  font-family: var(--font-main);
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--input-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: border-color 0.3s, box-shadow 0.3s, outline 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.btn-submit {
  margin-top: 0.5rem;
  align-self: flex-start;
}

.btn-submit .btn-icon {
  transition: transform 0.3s var(--ease-out);
}

.btn-submit:hover .btn-icon {
  transform: translateX(4px);
}

.form-success {
  position: absolute;
  inset: 0;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}

.form-success.visible {
  opacity: 1;
  visibility: visible;
}

.success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--accent);
  animation: scaleIn 0.5s var(--ease-out);
}

@keyframes scaleIn {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.form-success p {
  color: var(--text-primary);
  font-weight: 500;
}

/* ========== Footer ========== */
.footer {
  padding: 2.5rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  animation: fadeUp 0.8s var(--ease-out) both;
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  position: relative;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-copy {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  color: var(--accent);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 700;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, box-shadow 0.3s;
  z-index: 50;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  box-shadow: 0 0 24px var(--accent-glow);
  border-color: var(--accent);
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .experience-grid {
    grid-template-columns: 1fr;
  }

  .certifications-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-stats {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    min-width: auto;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    background: var(--nav-drawer-bg, rgba(10, 14, 23, 0.98));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    padding: calc(var(--nav-height) + 2rem) 2rem 2rem;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out);
    border-left: 1px solid var(--border-subtle);
  }

  [data-theme="light"] .nav-links {
    --nav-drawer-bg: rgba(241, 245, 249, 0.98);
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: calc(var(--nav-height) + 2rem);
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-social {
    justify-content: center;
  }

  .hero-visual {
    flex: none;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  .about-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-image-wrap {
    justify-self: center;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .certifications-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-social-grid {
    grid-template-columns: 1fr;
  }

  .about-stats {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .experience-grid,
  .certifications-grid {
    gap: 1.25rem;
  }

  .exp-card,
  .cert-card {
    padding: 1.35rem 1.35rem 1.35rem 1.85rem;
  }

  .exp-card::before {
    left: 1rem;
    top: 1.6rem;
  }

  .section-header-left {
    margin-bottom: 2rem;
  }

  .section-title-left {
    font-size: clamp(1.6rem, 5vw, 2rem);
  }

  .section-subtitle {
    font-size: 0.95rem;
  }
}
