/* ==========================================================================
   Dharunkumar - Full Stack Developer Portfolio
   Core Stylesheet & Design System
   ========================================================================== */

:root {
  /* Color Palette - Cyber Emerald & Deep Slate */
  --bg-primary: #0a0d14;
  --bg-secondary: #111625;
  --bg-card: rgba(18, 24, 38, 0.75);
  --bg-card-hover: rgba(26, 35, 56, 0.85);
  --bg-glass: rgba(18, 24, 38, 0.65);
  --bg-input: rgba(13, 18, 30, 0.85);
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(16, 185, 129, 0.35);
  --border-glow: rgba(16, 185, 129, 0.2);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #0a0d14;

  --primary: #10b981;        /* Emerald 500 */
  --primary-hover: #059669;  /* Emerald 600 */
  --primary-light: #34d399;  /* Emerald 400 */
  --primary-glow: rgba(16, 185, 129, 0.35);
  --primary-soft: rgba(16, 185, 129, 0.12);

  --accent: #38bdf8;         /* Sky 400 */
  --accent-glow: rgba(56, 189, 248, 0.3);
  --accent-soft: rgba(56, 189, 248, 0.12);

  --warning: #f59e0b;        /* Amber 500 */
  --danger: #ef4444;         /* Red 500 */
  --success: #10b981;        /* Emerald 500 */

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Shadows & Glassmorphism */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px rgba(16, 185, 129, 0.2);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  --container-max: 1200px;
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --bg-glass: rgba(255, 255, 255, 0.75);
  --bg-input: #ffffff;
  
  --border-color: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(16, 185, 129, 0.5);
  --border-glow: rgba(16, 185, 129, 0.2);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 25px rgba(16, 185, 129, 0.15);
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Background Ambient Glow & Grid */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  transition: all var(--transition-slow);
}

.glow-1 {
  width: 500px;
  height: 500px;
  top: -100px;
  right: -100px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.35), transparent 70%);
}

.glow-2 {
  width: 600px;
  height: 600px;
  bottom: 10%;
  left: -150px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.25), transparent 70%);
}

.glow-3 {
  width: 400px;
  height: 400px;
  top: 50%;
  right: 15%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15), transparent 70%);
}

.bg-grid-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

[data-theme="light"] .bg-grid-pattern {
  background-image: 
    linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.section-padding {
  padding: 6rem 0;
}

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

.text-gradient {
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-warning { color: var(--warning); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.75rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p {
  color: var(--text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-fast);
}

/* Glassmorphism Classes */
.glassmorphic {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  transition: all var(--transition-normal);
}

.glassmorphic:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* Section Header Component */
.section-header {
  margin-bottom: 3.5rem;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--primary-soft);
  color: var(--primary-light);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto;
}

/* ==========================================================================
   Buttons & Interactive Elements
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #ffffff;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  color: var(--primary-light);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.btn-ghost:hover {
  background: var(--primary-soft);
  border-color: var(--primary-light);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.btn-icon {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon:hover {
  border-color: var(--primary);
  color: var(--primary-light);
  background: var(--bg-card-hover);
}

.btn-lg {
  padding: 0.9rem 1.8rem;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
  transition: all var(--transition-normal);
}

.navbar-wrapper.scrolled {
  height: 70px;
  background: rgba(10, 13, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .navbar-wrapper.scrolled {
  background: rgba(248, 250, 252, 0.9);
}

.navbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary), #0284c7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: #ffffff;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text .name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.logo-text .tagline {
  font-size: 0.75rem;
  color: var(--primary-light);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  position: relative;
  padding: 0.4rem 0;
}

.nav-link i {
  font-size: 0.85rem;
  opacity: 0.8;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-light);
}

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Theme Toggle Icons */
.theme-icon-light { display: none; }
.theme-icon-dark { display: block; }
[data-theme="light"] .theme-icon-light { display: block; }
[data-theme="light"] .theme-icon-dark { display: none; }

/* Hamburger Menu Button */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger-btn span {
  display: block;
  height: 2.5px;
  width: 100%;
  background-color: var(--text-primary);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.hamburger-btn.active span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding-top: 130px;
  padding-bottom: 5rem;
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  background: var(--primary-soft);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary);
}

.status-dot.pulse {
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.status-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-light);
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.typewriter-container {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  color: var(--text-primary);
  font-weight: 700;
  display: block;
  margin-top: 0.35rem;
}

.typewriter-text {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}

.cursor {
  display: inline-block;
  background-color: var(--primary);
  width: 3px;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 620px;
}

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

.hero-social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.social-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.social-chip:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  color: var(--primary-light);
  transform: translateY(-2px);
}

.social-chip i {
  color: var(--primary);
}

.location-chip {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.2);
}

.location-chip i {
  color: var(--accent);
}

/* Hero Visual Interactive Card */
.hero-visual {
  position: relative;
}

.visual-card-wrapper {
  perspective: 1000px;
}

.visual-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-normal);
}

.visual-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
}

.card-glow {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, var(--primary-glow), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.dev-badge-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.badge-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.badge-info {
  flex: 1;
  margin-left: 0.85rem;
  display: flex;
  flex-direction: column;
}

.badge-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.badge-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.status-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
}

.code-preview-window {
  background: #06090e;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  overflow-x: auto;
}

.window-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.window-title {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.code-body {
  line-height: 1.6;
  color: #cbd5e1;
}

.code-body .kw { color: #f43f5e; font-weight: 600; }
.code-body .cls { color: #38bdf8; font-weight: 600; }
.code-body .fn { color: #10b981; }
.code-body .str { color: #fde047; }
.code-body .bool { color: #c084fc; }

.floating-tech-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.tech-chip {
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary);
}

.chip-py { border-color: rgba(56, 189, 248, 0.3); color: #38bdf8; }
.chip-java { border-color: rgba(245, 158, 11, 0.3); color: #f59e0b; }
.chip-js { border-color: rgba(234, 179, 8, 0.3); color: #eab308; }
.chip-html { border-color: rgba(239, 68, 68, 0.3); color: #ef4444; }
.chip-db { border-color: rgba(16, 185, 129, 0.3); color: #10b981; }

.card-footer-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.stat-mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-mini .stat-val {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary-light);
}

.stat-mini .stat-lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 24px;
  background: var(--border-color);
}

/* Stats Counter Strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
}

.stat-box {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  transition: all var(--transition-fast);
}

.stat-box:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}

.stat-number-wrapper {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-plus {
  font-size: 1.4rem;
  color: var(--primary-light);
  font-weight: 700;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 2.5rem;
  align-items: start;
}

.about-card {
  padding: 2.5rem;
  margin-bottom: 2rem;
}

.about-card h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 1.6rem;
}

.about-lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.about-card p {
  margin-bottom: 1.25rem;
  line-height: 1.75;
}

.about-card p:last-child {
  margin-bottom: 0;
}

.about-highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.highlight-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  transition: all var(--transition-fast);
}

.highlight-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.highlight-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.highlight-info h4 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.highlight-info p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* About Sidebar */
.about-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-card, .languages-card {
  padding: 2rem;
}

.card-title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-color);
}

.card-title-row h3 {
  font-size: 1.25rem;
}

.info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-list li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.9rem;
}

.info-label {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.info-label i {
  color: var(--primary);
}

.info-val {
  color: var(--text-primary);
  font-weight: 500;
}

.info-link {
  color: var(--primary-light);
  font-weight: 600;
}

.info-link:hover {
  text-decoration: underline;
}

/* Language Bars */
.lang-bars {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.lang-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.lang-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.lang-name {
  font-weight: 600;
  color: var(--text-primary);
}

.lang-level {
  font-size: 0.78rem;
  color: var(--accent);
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

[data-theme="light"] .progress-bar-bg {
  background: rgba(0, 0, 0, 0.08);
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: var(--radius-full);
  transition: width 1s ease-in-out;
}

/* ==========================================================================
   Skills Section
   ========================================================================== */
.skills-filter-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.skill-tab-btn {
  padding: 0.6rem 1.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.skill-tab-btn:hover, .skill-tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 15px var(--primary-glow);
}

.skills-category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.skill-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.skill-card-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.py-icon { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.java-icon { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.js-icon { background: rgba(234, 179, 8, 0.15); color: #eab308; }
.web-icon { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.db-icon { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.soft-icon { background: rgba(168, 85, 247, 0.15); color: #a855f7; }

.skill-badge-level {
  font-size: 0.78rem;
  color: var(--primary-light);
  font-weight: 600;
}

.skill-description {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.skill-meter-wrap {
  margin-bottom: 1.25rem;
}

.meter-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
}

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

.mini-tag {
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.75rem;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.soft-skills-pills {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.soft-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.8rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.soft-pill i {
  color: var(--primary);
}

/* ==========================================================================
   Education Section
   ========================================================================== */
.education-card-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.education-card {
  padding: 3rem;
}

.edu-header {
  display: flex;
  gap: 1.75rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.edu-logo-box {
  width: 70px;
  height: 70px;
  min-width: 70px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary-soft), rgba(56, 189, 248, 0.15));
  border: 1px solid var(--border-glow);
  color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.edu-header-text {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.edu-period {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.edu-degree {
  font-size: 1.4rem;
}

.edu-institution {
  font-size: 1.05rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.edu-institution i {
  color: var(--accent);
}

.edu-desc {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.edu-highlights h5 {
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

.course-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.course-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.course-tag i {
  color: var(--primary-light);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

.contact-card:hover {
  transform: translateX(5px);
  border-color: var(--primary);
}

.contact-card-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.mail-icon { background: rgba(16, 185, 129, 0.15); color: var(--primary); }
.phone-icon { background: rgba(56, 189, 248, 0.15); color: var(--accent); }
.loc-icon { background: rgba(245, 158, 11, 0.15); color: var(--warning); }

.contact-card-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.contact-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  word-break: break-all;
}

.contact-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.contact-card-arrow {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.recruiter-box {
  padding: 1.75rem;
  margin-top: 0.5rem;
  border: 1px dashed var(--border-hover);
}

.recruiter-box-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.recruiter-box-header h4 {
  font-size: 1.05rem;
}

.recruiter-box p {
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

/* Contact Form */
.contact-form-card {
  padding: 2.5rem;
}

.form-header {
  margin-bottom: 2rem;
}

.form-header h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.form-group label i {
  color: var(--primary);
  font-size: 0.8rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 3rem 0;
  background: var(--bg-secondary);
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.75rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.footer-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
}

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

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--primary-light);
}

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

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .skills-category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-normal);
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    box-shadow: var(--shadow-lg);
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .nav-resume-btn, .nav-hire-btn {
    display: none;
  }

  .hamburger-btn {
    display: flex;
  }

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

  .about-highlights-grid {
    grid-template-columns: 1fr;
  }

  .skills-category-grid {
    grid-template-columns: 1fr;
  }

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

  .form-group-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .stats-strip {
    grid-template-columns: 1fr;
  }

  .edu-header {
    flex-direction: column;
    gap: 1rem;
  }
}
