/* ==========================================================================
   CV WEB PWA - Tomás Pérez Guerrero | Project Manager - Renewable Energy
   Design System: Deep Dark Obsidian + Emerald & Cyan Clean Tech Accents
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Variables & Design Tokens
   -------------------------------------------------------------------------- */
:root {
  --bg-dark: #0b0f17;
  --bg-card: #131b2e;
  --bg-card-hover: #1c2740;
  --bg-card-glass: rgba(19, 27, 46, 0.75);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(16, 185, 129, 0.3);

  --accent-green: #10b981;
  --accent-cyan: #06b6d4;
  --accent-blue: #3b82f6;
  --accent-amber: #f59e0b;

  --gradient-primary: linear-gradient(135deg, #10b981 0%, #06b6d4 50%, #3b82f6 100%);
  --gradient-text: linear-gradient(135deg, #34d399 0%, #38bdf8 100%);
  --gradient-glow: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, rgba(6, 182, 212, 0) 70%);

  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;

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

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(16, 185, 129, 0.25);

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: #1f293d;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-green);
}

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

section {
  padding: 5rem 0;
  position: relative;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Ambient Background Orbs */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
}

.bg-orb-1 {
  top: -10%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(16, 185, 129, 0.15);
}

.bg-orb-2 {
  top: 40%;
  left: -15%;
  width: 600px;
  height: 600px;
  background: rgba(6, 182, 212, 0.12);
}

.bg-orb-3 {
  bottom: 10%;
  right: -5%;
  width: 450px;
  height: 450px;
  background: rgba(59, 130, 246, 0.1);
}

/* Grid Pattern Overlay */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
}

/* --------------------------------------------------------------------------
   3. Header & Navigation
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: var(--transition-normal);
  background: transparent;
}

.navbar.scrolled {
  padding: 0.75rem 0;
  background: rgba(11, 15, 23, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0b0f17;
  font-weight: 800;
  box-shadow: var(--shadow-glow);
}

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

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

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: 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: 1rem;
}

/* PWA Install Header Badge Button */
.btn-pwa-install {
  display: none; /* Dynamic display via JS when installable */
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--accent-green);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.btn-pwa-install:hover {
  background: var(--accent-green);
  color: #0b0f17;
  box-shadow: var(--shadow-glow);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition-normal);
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   4. Hero Section & Profile Card
   -------------------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 7rem;
  padding-bottom: 4rem;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-dark);
}

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

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-text-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.badge-experience {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-full);
  color: var(--accent-green);
  font-size: 0.875rem;
  font-weight: 600;
  width: fit-content;
  backdrop-filter: blur(8px);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--accent-green);
  opacity: 0.6;
  animation: pulse-ring 1.8s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

.hero-name {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.hero-title {
  font-size: clamp(1.25rem, 2.5vw, 1.85rem);
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.hero-subtitle {
  font-size: 1.125rem;
  color: #d1d5db;
  max-width: 600px;
  line-height: 1.7;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

/* Primary Button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 1.8rem;
  background: var(--gradient-primary);
  color: #0b0f17;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-md);
  transition: var(--transition-bounce);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 35px rgba(16, 185, 129, 0.4);
}

/* Secondary Button */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 1.8rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

/* Hero Profile Card with Small Format Video Avatar */
.hero-card-container {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-profile-card {
  width: 100%;
  max-width: 360px;
  background: rgba(19, 27, 46, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

/* Circular Video Avatar Container with Gradient Glow Outer Ring */
.avatar-wrapper {
  width: 140px;
  height: 140px;
  min-width: 140px;
  min-height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  padding: 3px;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.45);
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  isolation: isolate;
  transform: translateZ(0);
  transition: var(--transition-normal);
}

.avatar-wrapper:hover {
  transform: scale(1.05);
  box-shadow: 0 0 45px rgba(6, 182, 212, 0.6);
}

/* Hard Cropped Circular Inner Video Container */
.avatar-video-crop {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background: #0b0f17;
}

.avatar-video {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.hero-quick-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  width: 100%;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

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

.stat-val {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent-green);
}

.stat-lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   5. Section Headers
   -------------------------------------------------------------------------- */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-green);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0.5rem auto 0;
}

/* --------------------------------------------------------------------------
   6. Interactive Experience Timeline
   -------------------------------------------------------------------------- */
.timeline-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-green) 0%, var(--accent-cyan) 50%, rgba(255, 255, 255, 0.05) 100%);
  border-radius: 2px;
}

@media (min-width: 768px) {
  .timeline-container::before {
    left: 50%;
    transform: translateX(-50%);
  }
}

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

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

.timeline-node {
  position: absolute;
  left: 10px;
  top: 0;
  width: 22px;
  height: 22px;
  background: var(--bg-dark);
  border: 3px solid var(--accent-green);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: 0 0 15px var(--accent-green);
  transition: var(--transition-fast);
}

.timeline-item:hover .timeline-node {
  background: var(--accent-green);
  transform: translateX(-50%) scale(1.3);
}

.timeline-content {
  margin-left: 50px;
  background: var(--bg-card-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  backdrop-filter: blur(16px);
  transition: var(--transition-normal);
  position: relative;
}

.timeline-content:hover {
  border-color: rgba(16, 185, 129, 0.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
  .timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
    margin-right: calc(50% + 30px);
  }
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: calc(50% + 30px);
  }
  .timeline-node {
    left: 50%;
  }
}

.timeline-header {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.timeline-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--accent-green);
  background: rgba(16, 185, 129, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  width: fit-content;
}

.timeline-role {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
}

.timeline-company {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.timeline-body {
  color: var(--text-secondary);
  font-size: 0.975rem;
  line-height: 1.6;
}

/* Expandable Experience Card & Dropdown Text */
.expandable-experience {
  cursor: pointer;
  position: relative;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
  outline: none;
}

.expandable-experience:hover,
.expandable-experience:focus-within,
.expandable-experience.is-expanded {
  border-color: rgba(16, 185, 129, 0.6);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.25), 0 0 15px rgba(16, 185, 129, 0.15);
}

.expand-hint {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-green);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  width: fit-content;
  transition: all 0.3s ease;
}

.expand-hint .hint-icon {
  width: 14px;
  height: 14px;
  transition: transform 0.4s ease;
}

.expandable-experience:hover .expand-hint,
.expandable-experience:focus-within .expand-hint,
.expandable-experience.is-expanded .expand-hint {
  background: var(--accent-green);
  color: #0b0f17;
}

.expandable-experience:hover .expand-hint .hint-icon,
.expandable-experience:focus-within .expand-hint .hint-icon,
.expandable-experience.is-expanded .expand-hint .hint-icon {
  transform: rotate(180deg);
}

.experience-dropdown {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, margin-top 0.3s ease, padding 0.3s ease;
  margin-top: 0;
  border-top: 1px solid transparent;
}

.expandable-experience:hover .experience-dropdown,
.expandable-experience:focus-within .experience-dropdown,
.expandable-experience.is-expanded .experience-dropdown {
  max-height: 1000px;
  opacity: 1;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top-color: rgba(16, 185, 129, 0.3);
}

.dropdown-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent-green);
  margin-bottom: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dropdown-content {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.dropdown-content p {
  color: #e2e8f0;
  font-size: 0.925rem;
  line-height: 1.65;
  background: rgba(15, 23, 42, 0.6);
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--accent-green);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.dropdown-content p:hover {
  background: rgba(16, 185, 129, 0.12);
  border-left-color: var(--accent-cyan);
}

/* --------------------------------------------------------------------------
   7. Interactive Data Component (Lean & Six Sigma Projects Showcase)
   -------------------------------------------------------------------------- */
.projects-dashboard {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.projects-dashboard::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
}

.dashboard-nav {
  display: flex;
  gap: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  overflow-x: auto;
}

.dash-tab {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
}

.dash-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.07);
}

.dash-tab.active {
  color: #0b0f17;
  background: var(--gradient-primary);
  border-color: transparent;
  font-weight: 700;
  box-shadow: var(--shadow-glow);
}

.tab-content {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Feature Showcase Layout */
.feature-showcase {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.showcase-info h3 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.showcase-info p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.method-tags {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.method-tag {
  padding: 0.35rem 0.85rem;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--accent-cyan);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Interactive Interactive Metric Display */
.metric-card-interactive {
  background: rgba(11, 15, 23, 0.7);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.big-counter {
  font-family: var(--font-heading);
  font-size: clamp(3.5rem, 6vw, 4.5rem);
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.metric-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

/* Comparison Bar */
.comparison-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bar-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: left;
}

.bar-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.progress-bar-bg {
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   8. Education & Certifications Grid
   -------------------------------------------------------------------------- */
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.edu-card {
  background: var(--bg-card-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  backdrop-filter: blur(16px);
  transition: var(--transition-normal);
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.edu-card:hover {
  border-color: rgba(16, 185, 129, 0.35);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.edu-icon-badge {
  width: 52px;
  height: 52px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-green);
  flex-shrink: 0;
}

.edu-content {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.edu-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
}

.edu-subtitle {
  font-size: 0.9rem;
  color: var(--accent-cyan);
  font-weight: 500;
}

.edu-tag {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.2rem 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  font-size: 0.775rem;
  color: var(--text-muted);
  width: fit-content;
}

/* --------------------------------------------------------------------------
   9. Skills & Languages Section
   -------------------------------------------------------------------------- */
.skills-languages-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
}

.skills-box, .languages-box {
  background: var(--bg-card-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(16px);
}

.box-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.skills-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

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

.skill-tag:hover {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.4);
  color: var(--accent-green);
  transform: translateY(-2px);
}

.language-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.lang-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.lang-name {
  font-weight: 700;
  font-size: 1.05rem;
}

.lang-level {
  padding: 0.3rem 0.75rem;
  background: var(--gradient-primary);
  color: #0b0f17;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   10. Contact & Footer
   -------------------------------------------------------------------------- */
.contact-section {
  padding-bottom: 6rem;
}

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

.contact-card {
  background: var(--bg-card-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: var(--transition-normal);
}

.contact-card:hover {
  border-color: var(--accent-green);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.contact-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  overflow: hidden;
}

.contact-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.contact-value {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-phone-lines {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: 0.1rem;
}

.contact-value.phone-link {
  font-size: 0.95rem;
  white-space: nowrap;
  line-height: 1.35;
  transition: color var(--transition-fast);
}

.contact-value.phone-link:hover {
  color: var(--accent-green);
}

.btn-copy {
  margin-left: auto;
  padding: 0.5rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.btn-copy:hover {
  color: var(--accent-green);
  background: rgba(255, 255, 255, 0.05);
}

/* Toast notification */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
}

.toast {
  background: #111827;
  border: 1px solid var(--accent-green);
  color: var(--text-primary);
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  font-size: 0.95rem;
  animation: slideUp 0.3s ease forwards;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Footer */
footer {
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  background: rgba(11, 15, 23, 0.9);
}

/* --------------------------------------------------------------------------
   11. Responsive Styles (Mobile-first Enhancements)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text-wrapper {
    align-items: center;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .feature-showcase {
    grid-template-columns: 1fr;
  }
  .skills-languages-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(11, 15, 23, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    transform: translateY(-150%);
    transition: var(--transition-normal);
  }
  .nav-links.open {
    transform: translateY(0);
  }
  .projects-dashboard {
    padding: 1.5rem;
  }
}

/* --------------------------------------------------------------------------
   12. Print Styles (For 1-Click PDF Generation)
   -------------------------------------------------------------------------- */
@media print {
  @page {
    margin: 1.5cm;
    size: A4;
  }
  body {
    background: #ffffff !important;
    color: #111827 !important;
  }
  .navbar, .menu-toggle, .bg-orb, .bg-grid, .btn-pwa-install, .btn-primary, .btn-secondary, .btn-copy, footer {
    display: none !important;
  }
  section {
    padding: 1.5rem 0 !important;
  }
  .hero {
    min-height: auto !important;
    padding-top: 0 !important;
  }
  .hero-content {
    grid-template-columns: 1fr !important;
  }
  .hero-name {
    font-size: 2.2rem !important;
    color: #111827 !important;
  }
  .hero-title {
    background: none !important;
    -webkit-text-fill-color: initial !important;
    color: #059669 !important;
  }
  .timeline-container::before {
    background: #e5e7eb !important;
  }
  .timeline-content, .edu-card, .skills-box, .languages-box, .contact-card, .projects-dashboard {
    background: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: none !important;
    color: #111827 !important;
  }
  .timeline-body, .showcase-info p, .edu-subtitle, .contact-value {
    color: #374151 !important;
  }
  .big-counter {
    background: none !important;
    -webkit-text-fill-color: initial !important;
    color: #059669 !important;
  }
}
