/* ===================================================================
   AJMAL BADARUDEEN - PROFESSIONAL PORTFOLIO STYLESHEET
   IT Administrator & Network Engineer
   =================================================================== */

/* -------------------------------------------------------------------
   1. ROOT VARIABLES & THEMES
   ------------------------------------------------------------------- */
:root {
  /* Dark Theme (Default) */
  --bg-primary: #0a0f1d;
  --bg-secondary: #0f172a;
  --bg-card: rgba(17, 24, 39, 0.85);
  --bg-card-hover: rgba(24, 34, 53, 0.95);
  --bg-glass: rgba(15, 23, 42, 0.75);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(59, 130, 246, 0.4);
  
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --primary: #3b82f6;
  --primary-glow: rgba(59, 130, 246, 0.35);
  --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #6366f1 50%, #8b5cf6 100%);
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(59, 130, 246, 0.25);

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --header-height: 76px;
}

/* Light Theme Variables */
body[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --border-color: rgba(0, 0, 0, 0.08);
  --border-color-hover: rgba(37, 99, 235, 0.35);
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  
  --primary: #2563eb;
  --primary-glow: rgba(37, 99, 235, 0.2);
  --primary-gradient: linear-gradient(135deg, #2563eb 0%, #4f46e5 50%, #7c3aed 100%);
  
  --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 40px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 25px rgba(37, 99, 235, 0.15);
}

/* -------------------------------------------------------------------
   2. GLOBAL RESETS & BASE STYLES
   ------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* -------------------------------------------------------------------
   3. TYPOGRAPHY & UTILITIES
   ------------------------------------------------------------------- */
.gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.section {
  padding: 96px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 64px auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
  color: var(--text-main);
}

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

.mt-12 {
  margin-top: 12px;
}

/* -------------------------------------------------------------------
   4. BUTTONS & UI CONTROLS
   ------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 26px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: 0 4px 18px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--primary-glow);
  filter: brightness(1.1);
}

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

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(59, 130, 246, 0.08);
}

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

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

.btn-whatsapp {
  background: #25D366;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: #20ba59;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.icon-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: scale(1.05);
}

/* -------------------------------------------------------------------
   5. HEADER & NAVIGATION
   ------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

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

.brand-logo {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

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

.logo-dot {
  color: var(--accent-cyan);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text-muted);
  position: relative;
  padding: 8px 0;
}

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

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

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

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

/* Mobile Toggle Hamburger */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: transparent;
  cursor: pointer;
  z-index: 1001;
}

.mobile-toggle .bar {
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-toggle.active .bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.mobile-toggle.active .bar:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.active .bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* -------------------------------------------------------------------
   6. HERO SECTION
   ------------------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 50px);
  padding-bottom: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.12) 0%, transparent 60%);
}

.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.65;
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 50px;
  margin-bottom: 60px;
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--accent-emerald);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.status-pulse {
  width: 8px;
  height: 8px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(16, 185, 129, 0.5);
  animation: pulseGreen 2s infinite;
}

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

.hero-title {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 18px;
}

.hero-role-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 600;
  margin-bottom: 22px;
  color: var(--accent-cyan);
}

.role-prefix {
  color: var(--text-muted);
}

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

.hero-description strong {
  color: var(--text-main);
}

.hero-meta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* -------------------------------------------------------------------
   HERO TECH CONSOLE / TERMINAL (REPLACES PHOTO IMAGE)
   ------------------------------------------------------------------- */
.hero-card-col {
  display: flex;
  justify-content: center;
}

.tech-console-wrapper {
  position: relative;
  width: 100%;
  max-width: 460px;
}

.tech-console-glow {
  position: absolute;
  inset: -14px;
  background: var(--primary-gradient);
  filter: blur(35px);
  opacity: 0.28;
  border-radius: var(--radius-lg);
  z-index: 1;
}

.tech-console-card {
  position: relative;
  z-index: 2;
  background: rgba(13, 20, 36, 0.95);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
  overflow: hidden;
  font-family: var(--font-mono);
}

body[data-theme="light"] .tech-console-card {
  background: #ffffff;
  border-color: #cbd5e1;
}

.console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--border-color);
}

body[data-theme="light"] .console-header {
  background: #f1f5f9;
}

.console-traffic-lights {
  display: flex;
  gap: 7px;
}

.console-traffic-lights .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.console-title {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.console-status-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.5px;
}

.live-dot {
  width: 7px;
  height: 7px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  animation: pulseGreen 1.5s infinite;
}

.console-body {
  padding: 20px;
  font-size: 0.86rem;
}

.console-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.cmd-prompt {
  color: var(--accent-cyan);
  font-weight: 700;
}

.cmd-text {
  color: var(--text-main);
}

.highlight-output {
  margin: 6px 0 14px 14px;
  padding-left: 12px;
  border-left: 2px solid rgba(59, 130, 246, 0.4);
}

.info-line {
  line-height: 1.6;
  font-size: 0.82rem;
}

.info-line .k {
  color: var(--text-muted);
  display: inline-block;
  min-width: 85px;
}

.info-line .v {
  color: var(--text-main);
  font-weight: 600;
}

.console-diagnostics {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 8px 0 14px 0;
}

.diag-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
}

body[data-theme="light"] .diag-item {
  background: #f8fafc;
}

.diag-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-main);
  font-weight: 500;
}

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

.diag-badge {
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}

.diag-badge.status-ok {
  color: var(--accent-emerald);
}

.console-tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.terminal-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-sm);
  font-size: 0.74rem;
  color: #93c5fd;
  font-weight: 600;
}

body[data-theme="light"] .terminal-tag {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
}

.console-footer {
  padding: 12px 18px;
  background: rgba(0, 0, 0, 0.35);
  border-top: 1px solid var(--border-color);
  text-align: center;
}

body[data-theme="light"] .console-footer {
  background: #f1f5f9;
}

.console-metric-footer {
  font-size: 0.8rem;
  color: var(--accent-emerald);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Metrics Grid */
.metrics-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 10px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  transition: all var(--transition-fast);
  backdrop-filter: blur(10px);
}

.metric-card:hover {
  border-color: var(--border-color-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.metric-icon {
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.metric-number {
  font-size: 1.8rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-main);
  line-height: 1.2;
}

.metric-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* -------------------------------------------------------------------
   7. ABOUT ME SECTION
   ------------------------------------------------------------------- */
.about-section {
  background: var(--bg-secondary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: start;
}

.about-heading {
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.35;
}

.about-para {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 20px;
}

.about-para strong {
  color: var(--text-main);
}

.personal-highlights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 28px 0;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
}

.highlight-item i {
  color: var(--accent-emerald);
  font-size: 1.1rem;
}

.languages-box {
  margin-top: 24px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.languages-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
}

.language-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lang-tag {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  color: var(--text-main);
}

/* About Strengths Cards */
.about-strengths-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.strength-card:hover {
  border-color: var(--border-color-hover);
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
}

.strength-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--primary);
}

.strength-body h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.strength-body p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* -------------------------------------------------------------------
   8. SKILLS SECTION
   ------------------------------------------------------------------- */
.skills-categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.skill-category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: all var(--transition-fast);
}

.skill-category-card:hover {
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-md);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-color);
}

.category-icon {
  width: 48px;
  height: 48px;
  background: rgba(59, 130, 246, 0.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--primary);
}

.category-title {
  font-size: 1.3rem;
  font-weight: 700;
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.skill-name-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.94rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.skill-pct {
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.skill-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
}

body[data-theme="light"] .skill-bar {
  background: rgba(0, 0, 0, 0.06);
}

.skill-progress {
  height: 100%;
  background: var(--primary-gradient);
  border-radius: 4px;
  transition: width 1s ease-in-out;
}

/* -------------------------------------------------------------------
   9. EXPERIENCE TIMELINE SECTION
   ------------------------------------------------------------------- */
.experience-section {
  background: var(--bg-secondary);
}

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

.timeline::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 11px;
  width: 2px;
  background: linear-gradient(180deg, var(--primary) 0%, rgba(59, 130, 246, 0.2) 100%);
}

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

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

.timeline-dot {
  position: absolute;
  left: -40px;
  top: 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 4px solid var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
  z-index: 2;
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px;
  transition: all var(--transition-fast);
}

.timeline-card:hover {
  border-color: var(--border-color-hover);
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
}

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

.timeline-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.timeline-badge.current {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.timeline-badge.event {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.timeline-role {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
}

.timeline-company {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 4px;
}

.timeline-period {
  font-size: 0.88rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.timeline-desc {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.timeline-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.timeline-bullets li {
  position: relative;
  padding-left: 22px;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.timeline-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 1rem;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.timeline-tags span {
  font-size: 0.8rem;
  padding: 4px 10px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-sm);
  color: var(--text-main);
}

.timeline-license-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-md);
  padding: 22px 28px;
  margin-top: 30px;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.08);
  transition: all var(--transition-fast);
}

.timeline-license-card:hover {
  border-color: var(--accent-emerald);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
}

.tl-license-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--accent-emerald);
}

.tl-license-info {
  flex-grow: 1;
}

.tl-license-info h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

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

.tl-license-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-full);
  color: var(--accent-emerald);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

/* -------------------------------------------------------------------
   10. PROJECTS & PORTFOLIO SHOWCASE
   ------------------------------------------------------------------- */
.project-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 9px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 14px var(--primary-glow);
}

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

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
  backdrop-filter: blur(10px);
}

.project-card:hover {
  border-color: var(--border-color-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.project-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-year {
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
}

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.35;
}

.project-company {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 14px;
}

.project-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}

.project-highlights {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.ph-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.ph-item i {
  color: var(--accent-emerald);
  margin-top: 3px;
  font-size: 0.8rem;
}

.project-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-tech-stack span {
  font-size: 0.75rem;
  padding: 4px 8px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-sm);
  color: var(--text-main);
}

/* -------------------------------------------------------------------
   11. EDUCATION & CREDENTIALS
   ------------------------------------------------------------------- */
.education-section {
  background: var(--bg-secondary);
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px;
  transition: all var(--transition-fast);
}

.edu-card:hover {
  border-color: var(--border-color-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.edu-icon {
  width: 52px;
  height: 52px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.edu-year {
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  display: block;
  margin-bottom: 6px;
}

.edu-degree {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.edu-institution {
  font-size: 0.95rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 12px;
}

.edu-notes {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Credentials Bar */
.credentials-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
}

.cred-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cred-item i {
  font-size: 1.8rem;
  color: var(--accent-emerald);
}

.cred-item strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.cred-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* -------------------------------------------------------------------
   12. CONTACT & CONNECT SECTION
   ------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
}

.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-info-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  transition: all var(--transition-fast);
}

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

.contact-card-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--primary);
}

.contact-card-body h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  display: block;
}

.contact-val:hover {
  color: var(--primary);
}

.copy-btn {
  background: transparent;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 3px 0;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color var(--transition-fast);
}

.copy-btn:hover {
  color: var(--accent-cyan);
}

.contact-link-action {
  color: var(--primary);
  font-size: 0.92rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.contact-link-action:hover {
  color: var(--accent-cyan);
}

.sub-text {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* Contact Form */
.form-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.form-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.form-subtitle {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

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

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

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

.required {
  color: var(--accent-rose);
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 16px;
  color: var(--text-dim);
  font-size: 0.95rem;
  pointer-events: none;
}

.textarea-icon-wrapper {
  align-items: flex-start;
}

.textarea-icon-wrapper .input-icon {
  top: 16px;
}

.form-control {
  width: 100%;
  padding: 13px 16px 13px 44px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  transition: all var(--transition-fast);
}

body[data-theme="light"] .form-control {
  background: #ffffff;
  border-color: #cbd5e1;
}

.form-control:focus {
  border-color: var(--primary);
  background: rgba(59, 130, 246, 0.04);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-control.error {
  border-color: var(--accent-rose);
}

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

select.form-control {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}

.field-error {
  font-size: 0.8rem;
  color: var(--accent-rose);
  min-height: 18px;
}

.submit-btn {
  width: 100%;
  padding: 15px;
  font-size: 1.05rem;
  margin-top: 6px;
}

/* -------------------------------------------------------------------
   13. FOOTER
   ------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.footer-socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.social-icon:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  transform: translateY(-3px);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.back-to-top {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.back-to-top:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  transform: translateY(-3px);
}

.copyright {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* -------------------------------------------------------------------
   14. TOAST NOTIFICATION
   ------------------------------------------------------------------- */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  background: rgba(17, 24, 39, 0.95);
  border: 1px solid var(--border-color-hover);
  color: #ffffff;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(12px);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast i {
  color: var(--accent-emerald);
  font-size: 1.2rem;
}

/* -------------------------------------------------------------------
   15. RESPONSIVE DESIGN (MEDIA QUERIES)
   ------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }

  .badge-status,
  .hero-role-wrapper,
  .hero-meta-badges,
  .hero-cta-group {
    justify-content: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

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

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

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

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

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

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

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

@media (max-width: 768px) {
  :root {
    --header-height: 68px;
  }

  .mobile-toggle {
    display: flex;
  }

  .cv-btn span {
    display: none;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 24px;
    transform: translateY(-150%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .nav-link {
    font-size: 1.1rem;
    width: 100%;
  }

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

  .timeline {
    padding-left: 28px;
  }

  .timeline::before {
    left: 6px;
  }

  .timeline-dot {
    left: -28px;
    width: 18px;
    height: 18px;
    top: 28px;
  }

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

  .credentials-bar {
    grid-template-columns: 1fr;
  }

  .timeline-license-card {
    flex-direction: column;
    text-align: center;
    gap: 14px;
    padding: 20px;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-right {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta-group {
    flex-direction: column;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .form-wrapper {
    padding: 24px 18px;
  }

  .tech-console-card {
    font-size: 0.8rem;
  }
}

/* -------------------------------------------------------------------
   16. PRINT STYLESHEET (CLEAN CV RESUME VIEW)
   ------------------------------------------------------------------- */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }

  .site-header,
  .hero-canvas,
  .hero-cta-group,
  .theme-toggle,
  .project-filters,
  .contact-form-col,
  .site-footer,
  .toast,
  .copy-btn,
  .back-to-top,
  .tech-console-wrapper {
    display: none !important;
  }

  .section {
    padding: 20px 0 !important;
  }

  .timeline-card,
  .skill-category-card,
  .project-card,
  .edu-card {
    border: 1px solid #cccccc !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  .gradient-text {
    background: none !important;
    -webkit-text-fill-color: #000000 !important;
    color: #000000 !important;
  }
}
