/* =========================================
   Kristian Hoffmann Portfolio
   Modern Design System – 2026 Edition
   ========================================= */

/* === CSS Custom Properties === */
:root {
  /* Colors - Refined Dark with Warm Undertones */
  --bg-primary: #0c0c0c;
  --bg-secondary: #141414;
  --bg-tertiary: #1c1c1c;
  --bg-glass: rgba(255, 255, 255, 0.02);
  --bg-glass-hover: rgba(255, 255, 255, 0.04);

  /* Accent Colors - Warm & Sophisticated */
  --accent-primary: #d4a574;
  --accent-secondary: #c49a6c;
  --accent-tertiary: #b08d60;
  --accent-muted: #8b7355;
  --accent-emerald: #7ab892;

  /* Gradients - Subtle & Intentional */
  --gradient-primary: linear-gradient(135deg, #d4a574 0%, #c49a6c 100%);
  --gradient-mesh:
    radial-gradient(at 30% 20%, rgba(212, 165, 116, 0.06) 0%, transparent 60%),
    radial-gradient(at 70% 80%, rgba(212, 165, 116, 0.04) 0%, transparent 60%);

  /* Text Colors - Warm Whites */
  --text-primary: rgba(250, 248, 246, 0.95);
  --text-secondary: rgba(250, 248, 246, 0.55);
  --text-tertiary: rgba(250, 248, 246, 0.35);

  /* Glass Effect - Subtle */
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Fluid Typography */
  --fs-hero: clamp(2.5rem, 8vw, 5rem);
  --fs-h1: clamp(2rem, 5vw, 3.5rem);
  --fs-h2: clamp(1.5rem, 3vw, 2rem);
  --fs-h3: clamp(1.1rem, 2vw, 1.5rem);
  --fs-body: clamp(0.95rem, 1.5vw, 1.1rem);
  --fs-small: clamp(0.8rem, 1vw, 0.9rem);

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 5rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

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

/* === Light Mode Override === */
[data-theme="light"] {
  --bg-primary: #faf9f7;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f3f1ed;
  --bg-glass: rgba(0, 0, 0, 0.02);
  --bg-glass-hover: rgba(0, 0, 0, 0.04);
  --text-primary: rgba(28, 25, 23, 0.95);
  --text-secondary: rgba(28, 25, 23, 0.60);
  --text-tertiary: rgba(28, 25, 23, 0.40);
  --glass-border: rgba(0, 0, 0, 0.06);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --accent-primary: #b5895a;
  --gradient-mesh:
    radial-gradient(at 30% 20%, rgba(181, 137, 90, 0.08) 0%, transparent 60%),
    radial-gradient(at 70% 80%, rgba(181, 137, 90, 0.05) 0%, transparent 60%);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* === Animated Background === */
.mesh-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  z-index: -2;
}

.mesh-background::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  animation: meshFloat 20s ease-in-out infinite;
}

@keyframes meshFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  25% {
    transform: translate(-5%, 5%) scale(1.05);
  }

  50% {
    transform: translate(5%, -5%) scale(1.02);
  }

  75% {
    transform: translate(-3%, -3%) scale(1.08);
  }
}

/* Noise texture overlay */
.mesh-background::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
}

/* === Layout Container === */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* === Navigation === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-md) var(--space-lg);
  transition: var(--transition-normal);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-sm) var(--space-lg);
  background: rgba(20, 20, 20, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 100px;
  border: 1px solid rgba(212, 165, 116, 0.15);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 0 40px rgba(212, 165, 116, 0.05);
}

[data-theme="light"] .nav-inner {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(181, 137, 90, 0.2);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.02) inset;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  text-decoration: none;
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--text-primary);
  transition: var(--transition-fast);
}

.nav-logo:hover {
  transform: translateY(-1px);
}

.nav-logo .logo-accent {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: var(--transition-fast);
  position: relative;
  padding: var(--space-xs) 0;
}

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

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

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

/* Theme Toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(212, 165, 116, 0.2);
  background: rgba(212, 165, 116, 0.08);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
  color: var(--accent-primary);
}

.theme-toggle:hover {
  background: rgba(212, 165, 116, 0.15);
  border-color: var(--accent-primary);
  transform: rotate(15deg);
}

[data-theme="light"] .theme-toggle {
  border: 1px solid rgba(181, 137, 90, 0.25);
  background: rgba(181, 137, 90, 0.1);
  color: var(--accent-primary);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

/* === Hero Section === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl) 0;
  position: relative;
}

.hero-content {
  text-align: center;
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-size: var(--fs-small);
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.6s ease-out;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--accent-emerald);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

.hero-title {
  font-size: var(--fs-hero);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-md);
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

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

.hero-subtitle {
  font-size: var(--fs-h3);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-xl);
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-cta {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-lg);
  font-size: var(--fs-body);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition-normal);
}

.btn-primary {
  background: var(--gradient-primary);
  color: #1c1917;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(212, 165, 116, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 165, 116, 0.35);
}

.btn-secondary {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  background: var(--bg-glass-hover);
  border-color: var(--accent-primary);
}

/* === Section Styling === */
.section {
  padding: var(--space-2xl) 0;
  scroll-margin-top: 120px;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-label {
  font-size: var(--fs-small);
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.section-title {
  font-size: var(--fs-h1);
  font-weight: 700;
}

/* === Bento Grid === */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-md);
}

.bento-card {
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  opacity: 0;
  transition: var(--transition-normal);
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--glass-shadow);
  border-color: rgba(255, 255, 255, 0.12);
}

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

/* Card Sizes */
.bento-card.large {
  grid-column: span 8;
  grid-row: span 2;
}

.bento-card.medium {
  grid-column: span 6;
}

.bento-card.small {
  grid-column: span 4;
}

.bento-card.tall {
  grid-column: span 4;
  grid-row: span 2;
}

.bento-card.full {
  grid-column: span 12;
}

/* Optional: Layout adjustments for full width card */
.bento-card.full .project-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.bento-card.full .project-header {
  margin-bottom: var(--space-md);
}

.bento-card.full .code-preview {
  margin-top: 0;
  height: 100%;
}

@media (max-width: 1024px) {
  .bento-card.full .project-card {
    display: flex;
    flex-direction: column;
  }
}

/* === Project Cards === */
.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.project-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: var(--bg-tertiary);
}

.project-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-fast);
}

.project-link:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: white;
}

.project-title {
  font-size: var(--fs-h3);
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.project-description {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.tag {
  padding: 4px 12px;
  background: var(--bg-tertiary);
  border-radius: 100px;
  font-size: var(--fs-small);
  color: var(--text-secondary);
  font-weight: 500;
}

.tag.accent {
  background: rgba(212, 165, 116, 0.15);
  color: var(--accent-primary);
}

/* === Code Preview === */
.code-preview {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: var(--space-md);
}

[data-theme="light"] .code-preview {
  background: #1e293b;
}

[data-theme="light"] .code-header {
  background: #0f172a;
}

[data-theme="light"] .code-body pre {
  color: #e2e8f0;
}

[data-theme="light"] .code-filename {
  color: #94a3b8;
}

.code-header {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--glass-border);
}

.code-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.code-dot.red {
  background: #ff5f57;
}

.code-dot.yellow {
  background: #febc2e;
}

.code-dot.green {
  background: #28c840;
}

.code-filename {
  margin-left: var(--space-sm);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--text-tertiary);
}

.code-body {
  padding: var(--space-md);
  overflow-x: auto;
}

.code-body pre {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Syntax Highlighting */
.code-keyword {
  color: #c792ea;
}

.code-function {
  color: #82aaff;
}

.code-string {
  color: #c3e88d;
}

.code-number {
  color: #f78c6c;
}

.code-comment {
  color: #546e7a;
}

.code-variable {
  color: #89ddff;
}

/* Light Mode Syntax Highlighting - Higher Contrast */
[data-theme="light"] .code-keyword {
  color: #7c3aed;
}

[data-theme="light"] .code-function {
  color: #2563eb;
}

[data-theme="light"] .code-string {
  color: #059669;
}

[data-theme="light"] .code-number {
  color: #ea580c;
}

[data-theme="light"] .code-comment {
  color: #6b7280;
}

[data-theme="light"] .code-variable {
  color: #0891b2;
}

/* === Stats Grid === */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--bg-glass);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
}

.stat {
  text-align: center;
}

.stat-value {
  font-size: var(--fs-h2);
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: var(--fs-small);
  color: var(--text-tertiary);
  margin-top: 4px;
}

/* === Footer === */
.footer {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--glass-border);
  margin-top: var(--space-2xl);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--fs-small);
  transition: var(--transition-fast);
}

.footer-link:hover {
  color: var(--text-primary);
}

.footer-copyright {
  color: var(--text-tertiary);
  font-size: var(--fs-small);
}

/* === Scroll Animations === */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animations for grid items */
.bento-card:nth-child(1) {
  transition-delay: 0s;
}

.bento-card:nth-child(2) {
  transition-delay: 0.1s;
}

.bento-card:nth-child(3) {
  transition-delay: 0.2s;
}

.bento-card:nth-child(4) {
  transition-delay: 0.3s;
}

/* === Responsive Design === */
@media (max-width: 1024px) {

  .bento-card.large,
  .bento-card.medium,
  .bento-card.small,
  .bento-card.tall {
    grid-column: span 6;
    grid-row: span 1;
  }

  .nav-links {
    display: none;
  }

  /* Push theme toggle to the right */
  .theme-toggle {
    margin-left: auto;
    margin-right: var(--space-sm);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-md);
  }

  .bento-card.large,
  .bento-card.medium,
  .bento-card.small,
  .bento-card.tall {
    grid-column: span 12;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

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

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* === Impressum Page === */
.page-simple {
  padding-top: 140px;
  min-height: 100vh;
}

.legal-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--space-xl);
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.legal-content h1 {
  font-size: var(--fs-h1);
  margin-bottom: var(--space-lg);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.legal-content h2 {
  font-size: var(--fs-h3);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.legal-content p {
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.legal-content a {
  color: var(--accent-primary);
  text-decoration: none;
}

.legal-content a:hover {
  text-decoration: underline;
}

/* === About Page === */
.about-wrapper {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: var(--space-2xl);
  align-items: start;
  margin-bottom: var(--space-2xl);
}

/* Profile Section */
.about-profile {
  position: sticky;
  top: 120px;
  text-align: center;
}

.profile-image-wrapper {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 0 auto var(--space-lg);
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-xl);
  border: 2px solid var(--glass-border);
  position: relative;
  z-index: 1;
  filter: grayscale(20%);
  transition: var(--transition-normal);
}

.profile-image:hover {
  filter: grayscale(0%);
  transform: scale(1.02);
}

.profile-image-glow {
  position: absolute;
  top: 10%;
  left: 10%;
  width: 80%;
  height: 80%;
  background: var(--gradient-primary);
  filter: blur(40px);
  opacity: 0.3;
  z-index: 0;
  border-radius: 50%;
}

.profile-status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-size: var(--fs-small);
  color: var(--text-secondary);
}

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

/* Bio Section */
.about-content {
  padding-top: var(--space-md);
}

.about-title {
  font-size: var(--fs-h1);
  font-weight: 800;
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.about-intro {
  font-size: var(--fs-h3);
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.about-text {
  margin-bottom: var(--space-xl);
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

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

/* Skills Grid */
.about-skills {
  margin-bottom: var(--space-xl);
}

.skills-title {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.skill-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
}

.skill-item:hover {
  background: var(--bg-glass-hover);
  transform: translateY(-2px);
}

.skill-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.skill-text h4 {
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.skill-text p {
  font-size: var(--fs-small);
  color: var(--text-tertiary);
}

/* About CTA */
.about-cta {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* Journey / Timeline */
.about-journey {
  padding: var(--space-xl);
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.journey-title {
  font-size: var(--fs-h2);
  margin-bottom: var(--space-xl);
  text-align: center;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  position: relative;
  padding-left: var(--space-xl);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-primary), transparent);
}

.timeline-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.timeline-marker {
  position: absolute;
  left: calc(-1 * var(--space-xl) + 2px);
  top: 4px;
  width: 12px;
  height: 12px;
  background: var(--bg-secondary);
  border: 2px solid var(--accent-muted);
  border-radius: 50%;
  z-index: 1;
}

.timeline-marker.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  box-shadow: 0 0 12px rgba(212, 165, 116, 0.4);
}

.timeline-content {
  flex: 1;
}

.timeline-date {
  font-size: var(--fs-small);
  color: var(--accent-primary);
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

.timeline-content h4 {
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.timeline-content p {
  font-size: var(--fs-small);
  color: var(--text-secondary);
}

/* Responsive About Page */
@media (max-width: 1024px) {
  .about-wrapper {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .about-profile {
    position: static;
  }

  .profile-image-wrapper {
    width: 220px;
    height: 220px;
  }
}

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

  .about-cta {
    flex-direction: column;
  }

  .about-cta .btn {
    width: 100%;
    justify-content: center;
  }
}

/* === Project Logo Image Support === */
.project-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.project-icon.logo-only {
  background: transparent;
  overflow: hidden;
}

/* Logo theme switching */
.logo-light {
  display: block;
}

.logo-dark {
  display: none;
}

[data-theme="dark"] .logo-light {
  display: none;
}

[data-theme="dark"] .logo-dark {
  display: block;
}

/* === Pricing Section === */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.pricing-card {
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: var(--transition-normal);
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--glass-shadow);
  border-color: rgba(255, 255, 255, 0.12);
}

.pricing-card.featured {
  background: rgba(212, 165, 116, 0.03);
  border-color: rgba(212, 165, 116, 0.3);
}

.featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: #1c1917;
  font-size: var(--fs-small);
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(212, 165, 116, 0.3);
}

.pricing-header {
  text-align: center;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--glass-border);
}

.pricing-title {
  font-size: var(--fs-h3);
  font-weight: 700;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.pricing-subtitle {
  font-size: var(--fs-small);
  color: var(--text-secondary);
}

.pricing-price-wrapper {
  margin: var(--space-md) 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.pricing-currency {
  font-size: var(--fs-h3);
  color: var(--text-secondary);
  font-weight: 500;
}

.pricing-price {
  font-size: 3.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.pricing-period {
  color: var(--text-secondary);
  font-size: var(--fs-small);
}

.pricing-features {
  list-style: none;
  margin-bottom: var(--space-xl);
  flex-grow: 1;
}

.pricing-feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.feature-icon {
  color: var(--accent-emerald);
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-cta {
  margin-top: auto;
  width: 100%;
  justify-content: center;
}

/* =========================================
   Project Detail Pages
   ========================================= */

/* Back Link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--fs-small);
  margin-bottom: var(--space-lg);
  transition: var(--transition-fast);
}

.back-link:hover {
  color: var(--accent-primary);
}

/* Project Detail Header */
.project-detail-header {
  text-align: center;
  padding: var(--space-xl) 0;
}

.project-detail-icon {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin: 0 auto var(--space-lg);
  box-shadow: var(--glass-shadow);
}

.project-detail-icon img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.project-detail-icon.logo-only {
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
}

.project-detail-title {
  font-size: var(--fs-h1);
  font-weight: 800;
  margin-bottom: var(--space-sm);
}

.project-detail-subtitle {
  font-size: var(--fs-h3);
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.project-detail-cta {
  margin-top: var(--space-xl);
}

/* Project Sections */
.project-section {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--glass-border);
}

.project-section .section-title {
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-md);
}

.feature-card {
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 165, 116, 0.2);
  box-shadow: var(--glass-shadow);
}

.feature-card .feature-icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
  display: block;
  color: inherit;
}

.feature-card h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: var(--fs-body);
}

/* Code Showcase */
.code-showcase {
  margin-top: var(--space-lg);
}

.code-preview.large {
  margin-top: 0;
}

.code-preview.large .code-body {
  padding: var(--space-lg);
}

.code-preview.large .code-body pre {
  font-size: 0.9rem;
  line-height: 1.8;
}

/* Tech Stack Grid */
.tech-stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
}

.tech-item {
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.tech-item strong {
  color: var(--accent-primary);
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tech-item span {
  color: var(--text-secondary);
}

/* Responsive for Project Details */
@media (max-width: 768px) {
  .project-detail-icon {
    width: 80px;
    height: 80px;
    font-size: 2.5rem;
  }

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

  .tech-stack-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* === Mobile Hamburger Menu === */
.mobile-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(212, 165, 116, 0.2);
  background: rgba(212, 165, 116, 0.08);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
  color: var(--accent-primary);
  position: relative;
  z-index: 101;
}

.mobile-menu-toggle:hover {
  background: rgba(212, 165, 116, 0.15);
  border-color: var(--accent-primary);
}

[data-theme="light"] .mobile-menu-toggle {
  border: 1px solid rgba(181, 137, 90, 0.25);
  background: rgba(181, 137, 90, 0.1);
}

.hamburger {
  width: 18px;
  height: 14px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--accent-primary);
  border-radius: 2px;
  transition: var(--transition-normal);
  transform-origin: center;
}

/* Hamburger animation to X */
.mobile-menu-toggle.active .hamburger span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-toggle.active .hamburger span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Navigation Overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: rgba(12, 12, 12, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

[data-theme="light"] .mobile-nav {
  background: rgba(250, 249, 247, 0.98);
}

.mobile-nav.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: var(--space-lg);
  padding: var(--space-2xl);
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.mobile-nav-link {
  font-size: var(--fs-h2);
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-fast);
  opacity: 0;
  transform: translateY(20px);
}

.mobile-nav.open .mobile-nav-link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav.open .mobile-nav-link:nth-child(1) {
  transition-delay: 0.1s;
}

.mobile-nav.open .mobile-nav-link:nth-child(2) {
  transition-delay: 0.15s;
}

.mobile-nav.open .mobile-nav-link:nth-child(3) {
  transition-delay: 0.2s;
}

.mobile-nav.open .mobile-nav-link:nth-child(4) {
  transition-delay: 0.25s;
}

.mobile-nav-link:hover {
  color: var(--accent-primary);
}

.mobile-nav-cta {
  margin-top: var(--space-lg);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease 0.3s, transform 0.3s ease 0.3s;
}

.mobile-nav.open .mobile-nav-cta {
  opacity: 1;
  transform: translateY(0);
}

/* Show hamburger on mobile */
@media (max-width: 1024px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-nav {
    display: block;
  }

  .nav-links {
    display: none !important;
  }
}

/* Prevent body scroll when menu is open */
body.menu-open {
  overflow: hidden;
}

/* === Cookie Consent Banner === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
}

.cookie-content {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  max-width: 1200px;
  flex-wrap: wrap;
  justify-content: center;
}

.cookie-content p {
  color: var(--text-secondary);
  margin: 0;
}

.cookie-content a {
  color: var(--accent-primary);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: var(--space-sm);
}

.cookie-buttons .btn {
  padding: var(--space-xs) var(--space-md);
  font-size: var(--fs-small);
}

@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-buttons {
    width: 100%;
  }

  .cookie-buttons .btn {
    flex: 1;
  }
}

/* === About Page Enhancements === */

.about-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.about-image-container {
  display: inline-block;
  position: relative;
  margin-bottom: var(--space-lg);
}

.about-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: transform 0.3s ease;
}

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

.status-badge {
  position: absolute;
  bottom: 0;
  right: -10px;
  background: var(--bg-tertiary);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.about-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: var(--space-md);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-subtitle {
  font-size: var(--fs-h3);
  color: var(--text-secondary);
  line-height: 1.6;
}

.about-cta-container {
  margin-top: var(--space-lg);
}

/* === Timeline === */
.timeline {
  position: relative;
  padding-left: 30px;
  border-left: 2px solid var(--glass-border);
  margin: var(--space-xl) 0;
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-xl);
}

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

.timeline-marker {
  position: absolute;
  left: -37px;
  top: 5px;
  width: 12px;
  height: 12px;
  background: var(--bg-primary);
  border: 2px solid var(--text-tertiary);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.timeline-marker.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px rgba(212, 165, 116, 0.5);
}

.timeline-item:hover .timeline-marker {
  border-color: var(--accent-primary);
  transform: scale(1.2);
}

.timeline-content {
  background: var(--bg-glass);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  transition: var(--transition-normal);
}

.timeline-item:hover .timeline-content {
  transform: translateX(5px);
  border-color: rgba(212, 165, 116, 0.3);
}

.timeline-date {
  font-size: var(--fs-small);
  color: var(--accent-primary);
  font-weight: 600;
  display: block;
  margin-bottom: var(--space-xs);
}

.timeline-title {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

/* === Skills Grid === */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.skill-card {
  background: var(--bg-glass);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.skill-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 165, 116, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.skill-icon {
  font-size: 2rem;
  background: var(--bg-secondary);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.tag {
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  font-size: 12px;
  color: var(--text-secondary);
  border: 1px solid transparent;
}

.tag.accent {
  background: rgba(212, 165, 116, 0.1);
  color: var(--accent-primary);
  border-color: rgba(212, 165, 116, 0.2);
}

@media (max-width: 768px) {
  .timeline {
    padding-left: 20px;
  }

  .timeline-marker {
    left: -27px;
  }
}