/* ==========================================================================
   MARCIN WADAS - PERSONAL PORTFOLIO & R&D LEADERSHIP DESIGN SYSTEM
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  /* Color Palette */
  --bg-main: #090d16;
  --bg-card: rgba(16, 23, 38, 0.7);
  --bg-card-hover: rgba(22, 32, 54, 0.85);
  --bg-card-solid: #0f172a;
  --bg-glass: rgba(255, 255, 255, 0.03);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(56, 189, 248, 0.4);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: #38bdf8;
  
  /* Brand Accents */
  --cyan-glow: #0284c7;
  --cyan-bright: #38bdf8;
  --emerald-accent: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.2);
  --amber-accent: #f59e0b;
  --purple-accent: #818cf8;
  
  /* Gradients */
  --gradient-tech: linear-gradient(135deg, #38bdf8 0%, #3b82f6 50%, #10b981 100%);
  --gradient-ocean: linear-gradient(135deg, #0ea5e9 0%, #1e40af 100%);
  --gradient-dark: linear-gradient(180deg, rgba(9, 13, 22, 0) 0%, #090d16 100%);
  --gradient-glow: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.15), transparent 70%);

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

  /* Elevations & Transitions */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 35px -5px rgba(56, 189, 248, 0.3);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Background Atmospheric Canvas & Mesh */
.bg-mesh {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: 
    radial-gradient(circle at 15% 15%, rgba(14, 165, 233, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(16, 185, 129, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
    #090d16;
}

.bg-grid-pattern {
  position: fixed;
  inset: 0;
  background-size: 40px 40px;
  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);
  pointer-events: none;
  z-index: -1;
}

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

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

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

a:hover {
  color: #7dd3fc;
}

.gradient-text {
  background: var(--gradient-tech);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.font-mono {
  font-family: var(--font-mono);
}

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

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

/* Section Header */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-full);
  color: var(--cyan-bright);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

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

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

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: all var(--transition-smooth);
}

.navbar.scrolled {
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.75rem 0;
  box-shadow: var(--shadow-sm);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-monogram {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--cyan-bright);
  font-size: 1.15rem;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

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

.brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.brand-role {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

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

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

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

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

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  border: 1px solid transparent;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--gradient-tech);
  color: #04101e;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(56, 189, 248, 0.4);
  color: #04101e;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-subtle);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  border-color: var(--border-active);
  background: rgba(56, 189, 248, 0.08);
  color: var(--cyan-bright);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-md);
}

/* Hero Section */
.hero-section {
  min-height: 90vh;
  padding-top: 8rem;
  padding-bottom: 4rem;
  display: flex;
  align-items: center;
}

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

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

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--emerald-accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--emerald-accent);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: 1.18rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* Persona Switcher Tabs in Hero */
.persona-switcher {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(12px);
}

.persona-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
  overflow-x: auto;
}

.persona-tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.persona-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.persona-tab-btn.active {
  color: var(--cyan-bright);
  background: rgba(56, 189, 248, 0.12);
}

.persona-content {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  min-height: 70px;
}

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

.hero-socials {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.social-link:hover {
  color: var(--cyan-bright);
}

/* Hero Portrait Card */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.portrait-wrapper {
  position: relative;
  width: 100%;
  max-width: 390px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.5), rgba(15, 23, 42, 0.9));
  box-shadow: var(--shadow-lg), 0 0 40px rgba(56, 189, 248, 0.15);
}

.portrait-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.6s ease;
}

.portrait-wrapper:hover .portrait-img {
  transform: scale(1.03);
}

.portrait-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(9, 13, 22, 0.95) 100%);
  pointer-events: none;
}

.portrait-footer {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.portrait-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

.portrait-caption {
  font-size: 0.82rem;
  color: var(--cyan-bright);
  font-family: var(--font-mono);
}

/* Floating Badges on Portrait */
.floating-badge {
  position: absolute;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-active);
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 2;
  animation: floatAnim 4s ease-in-out infinite alternate;
}

.floating-badge.badge-top-left {
  top: 1.5rem;
  left: -1.5rem;
}

.floating-badge.badge-bottom-right {
  bottom: 4.5rem;
  right: -1.5rem;
  animation-delay: 2s;
}

@keyframes floatAnim {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

.badge-icon {
  font-size: 1.2rem;
}

.badge-text-primary {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

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

/* Stats Counter Grid */
.stats-section {
  padding: 2.5rem 0 4rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.25rem;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-tech);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-glow);
}

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

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--cyan-bright);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
  line-height: 1.3;
}

/* Core Expertise Pillars */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(12px);
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
}

.pillar-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: var(--shadow-lg);
}

.pillar-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--cyan-bright);
}

.pillar-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.pillar-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.pillar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}

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

/* Experience / Career Timeline */
.experience-section {
  position: relative;
}

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

.timeline::before {
  content: '';
  position: absolute;
  left: 0.75rem;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan-bright), rgba(56, 189, 248, 0.1));
}

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

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

.timeline-dot {
  position: absolute;
  left: -2.5rem;
  top: 1.25rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-main);
  border: 3px solid var(--cyan-bright);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
  z-index: 2;
  transition: transform var(--transition-fast);
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.3);
  background: var(--cyan-bright);
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(12px);
  transition: all var(--transition-smooth);
}

.timeline-item:hover .timeline-card {
  border-color: var(--border-active);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-lg);
}

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

.role-title {
  font-size: 1.3rem;
  color: var(--text-primary);
}

.company-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--cyan-bright);
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 0.2rem;
}

.timeline-period {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.timeline-bullet-list {
  list-style: none;
  margin: 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.timeline-bullet-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.timeline-bullet-list li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--cyan-bright);
  font-weight: bold;
}

.timeline-bullet-list strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Multipotentialite & Personal Projects Showcase */
.projects-filter-bar {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.filter-btn:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.filter-btn.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--cyan-bright);
  color: var(--cyan-bright);
}

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

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
}

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

.project-image-container {
  height: 250px;
  overflow: hidden;
  position: relative;
  background: #0d1322;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image {
  transform: scale(1.05);
}

.project-badge-pill {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cyan-bright);
}

.project-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-title {
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-status {
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--emerald-accent);
  margin-bottom: 1rem;
}

.project-desc {
  font-size: 0.94rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.project-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.project-highlights li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding-left: 1.2rem;
  position: relative;
}

.project-highlights li::before {
  content: '•';
  position: absolute;
  left: 0.2rem;
  color: var(--cyan-bright);
  font-size: 1.1rem;
}

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

/* Systems & Intellectual Curiosity Grid */
.intellectual-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.curiosity-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.curiosity-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--bg-card-hover);
}

.curiosity-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.curiosity-title {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.curiosity-meta {
  font-size: 0.8rem;
  color: var(--cyan-bright);
  font-family: var(--font-mono);
  margin-bottom: 0.75rem;
}

.curiosity-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.curiosity-list {
  list-style: none;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

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

.contact-card-main {
  background: linear-gradient(135deg, rgba(16, 23, 38, 0.9), rgba(15, 23, 42, 0.95));
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  padding: 3.5rem 3rem;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg), 0 0 50px rgba(56, 189, 248, 0.1);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.contact-info-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact-info-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.channel-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.channel-item:hover {
  border-color: var(--border-active);
  background: rgba(56, 189, 248, 0.06);
}

.channel-left {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.channel-icon {
  font-size: 1.25rem;
  color: var(--cyan-bright);
}

.channel-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.channel-value {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-primary);
}

.copy-btn {
  background: none;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

/* Contact Interactive Form */
.contact-form-box {
  background: rgba(9, 13, 22, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.form-input, .form-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--cyan-bright);
  background: rgba(56, 189, 248, 0.04);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

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

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2.5rem 0;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
  background: rgba(9, 13, 22, 0.9);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  background: #0f172a;
  border: 1px solid var(--cyan-bright);
  color: #ffffff;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(56, 189, 248, 0.3);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: toastSlideIn 0.3s ease forwards;
  pointer-events: auto;
}

@keyframes toastSlideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Image Modal Dialog */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 16, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.25s ease;
}

.modal-card {
  background: #0f172a;
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  font-size: 1.2rem;
}

.modal-image-preview {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  background: #040810;
  display: block;
}

.modal-content-body {
  padding: 2rem;
}

/* Print Stylesheet for Executive CV */
@media print {
  body {
    background: #ffffff !important;
    color: #111827 !important;
    font-size: 11pt;
  }

  .bg-mesh, .bg-grid-pattern, .navbar, .hero-visual, .persona-switcher, .hero-actions, .filter-btn, .contact-form-box, .footer, .toast-container, .modal-overlay {
    display: none !important;
  }

  .container {
    max-width: 100% !important;
    padding: 0 !important;
  }

  section {
    padding: 1.5rem 0 !important;
    page-break-inside: avoid;
  }

  h1, h2, h3 {
    color: #111827 !important;
  }

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

  .timeline::before {
    background: #cbd5e1 !important;
  }

  .timeline-card, .stat-card, .pillar-card, .project-card, .contact-card-main {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #1e293b !important;
    box-shadow: none !important;
  }

  .timeline-bullet-list li, .project-desc, p {
    color: #334155 !important;
  }
}

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

  .hero-visual {
    order: -1;
  }

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

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

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

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

  .contact-card-main {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.3rem;
  }

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

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

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #090d16;
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .floating-badge {
    display: none;
  }
}
