/* 
    Satyam Dubey - Portfolio Design System 
    Premium, Modern, Simplistic, Vibrant
*/

:root {
  /* Dark Theme (Default) */
  --bg-body: #050505;
  --bg-surface: #121212;
  --bg-surface-hover: #1e1e1e;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;

  /* Vibrant Gradients */
  --gradient-primary: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-accent: linear-gradient(135deg, #00f260 0%, #0575e6 100%);
  --gradient-dark: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);

  --accent-color: #00c6ff;
  --border-color: #2a2a2a;
  --glass-bg: rgba(5, 5, 5, 0.8);
  --glass-border: rgba(255, 255, 255, 0.1);

  /* Spacing & Layout */
  --container-width: 1100px;
  --header-height: 80px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

[data-theme="light"] {
  --bg-body: #ffffff;
  --bg-surface: #f8f9fa;
  --bg-surface-hover: #e9ecef;
  --text-primary: #1a1a1a;
  --text-secondary: #5a5a5a;

  --gradient-primary: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  --gradient-secondary: linear-gradient(135deg, #d946ef 0%, #c026d3 100%);

  --accent-color: #2563eb;
  --border-color: #e5e5e5;
  --glass-bg: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(0, 0, 0, 0.05);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: transparent;
  /* Changed to transparent to show fixed bg */
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  position: relative;
  background-image: none;
}

.hero-quote {
  grid-column: 1 / -1;
  font-family: 'Dancing Script', cursive;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 40px;
  display: block;
  width: 100%;
  background: linear-gradient(90deg, rgba(0, 198, 255, 0.05), rgba(151, 71, 255, 0.05));
  padding: 24px 32px;
  border-radius: 16px;
  border-left: 4px solid var(--accent-color);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
}

.hero-quote::before {
  content: '"';
  font-size: 4rem;
  position: absolute;
  top: -10px;
  left: 10px;
  color: var(--accent-color);
  opacity: 0.3;
  font-family: serif;
  line-height: 1;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

ul {
  list-style: none;
}

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

/* Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

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

.text-gradient-secondary {
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 198, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 198, 255, 0.4);
}

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

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

/* Navigation */
/* Navigation */
.glass-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

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

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

.nav-menu {
  display: flex;
  gap: 32px;
}

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

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

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

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

/* Theme Toggle */
.theme-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.theme-btn:hover {
  background: var(--bg-surface-hover);
  border-color: var(--accent-color);
  transform: rotate(15deg);
}

.theme-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

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

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

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  color: var(--text-primary);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  position: relative;
  overflow: hidden;
  background: transparent;
  /* Removed background */
}

[data-theme="dark"] .hero {
  background: transparent;
  /* Removed background */
}

/* Background Effects Container */
.hero-bg-effects {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(-45deg, #ffffff, #f0f9ff, #e6f7ff, #f0f4ff);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
}

[data-theme="dark"] .hero-bg-effects {
  background: linear-gradient(-45deg, #0f172a, #1e293b, #0f172a, #020617);
  background-size: 400% 400%;
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Dark Mode: Moon Animation */
.moon-container {
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  opacity: 0.8;
  animation: moonMove 20s ease-in-out infinite alternate;
  z-index: 1;
}

/* Ensure on top of gradient */

/* Light Mode: Sun Animation */
.sun-container {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 600px;
  height: 600px;
  opacity: 0.8;
  animation: sunMove 20s ease-in-out infinite alternate;
  z-index: 1;
  /* Ensure on top of gradient */
}

.sun {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 213, 0, 0.3) 0%, rgba(255, 165, 0, 0.1) 40%, transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  position: relative;
}

.sun::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 2px solid #000000;
  /* Black outline */
  box-shadow: 0 0 40px rgba(255, 165, 0, 0.4);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 213, 0, 0.6) 100%);
}

@keyframes sunMove {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(-50px, 50px) scale(1.05);
  }
}

.moon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 180px;
  height: 180px;
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(200, 200, 255, 0.2);
  background: radial-gradient(circle, #e0e0e0 0%, #b0b0b0 100%);
}

/* Moon Craters */
.moon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background-image:
    radial-gradient(circle at 30% 40%, rgba(0, 0, 0, 0.1) 0%, transparent 10%),
    radial-gradient(circle at 70% 60%, rgba(0, 0, 0, 0.1) 0%, transparent 15%),
    radial-gradient(circle at 40% 70%, rgba(0, 0, 0, 0.1) 0%, transparent 8%);
  z-index: 2;
}

@keyframes moonMove {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(-50px, 50px) scale(1.05);
  }
}

/* Birds Animation */
.birds-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  /* Ensure on top of sun and gradient */
}

.bird {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--text-primary);
  border-radius: 50%;
  box-shadow: 4px 4px 0 var(--text-primary);
  opacity: 0.6;
}

.bird::before,
.bird::after {
  content: '';
  position: absolute;
  bottom: 0;
  width: 12px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  animation: wingFlap 0.4s ease-in-out infinite alternate;
}

.bird::before {
  right: 100%;
  transform-origin: right bottom;
}

.bird::after {
  left: 100%;
  transform-origin: left bottom;
}

.bird-1 {
  top: 20%;
  left: -50px;
  animation: flyAcross 15s linear infinite;
  animation-delay: 0s;
}

.bird-2 {
  top: 25%;
  left: -50px;
  animation: flyAcross 18s linear infinite;
  animation-delay: 5s;
  scale: 0.8;
}

.bird-3 {
  top: 15%;
  left: -50px;
  animation: flyAcross 20s linear infinite;
  animation-delay: 2s;
  scale: 0.6;
}

.bird-4 {
  top: 30%;
  left: -50px;
  animation: flyAcross 22s linear infinite;
  animation-delay: 8s;
  scale: 0.7;
}

.bird-5 {
  top: 10%;
  left: -50px;
  animation: flyAcross 25s linear infinite;
  animation-delay: 12s;
  scale: 0.5;
}

.bird-6 {
  top: 40%;
  left: -50px;
  animation: flyAcross 19s linear infinite;
  animation-delay: 15s;
  scale: 0.9;
}

@keyframes wingFlap {
  0% {
    transform: rotate(15deg);
  }

  100% {
    transform: rotate(-15deg);
  }
}

@keyframes flyAcross {
  0% {
    transform: translateX(-100px) translateY(0);
  }

  25% {
    transform: translateX(25vw) translateY(-20px);
  }

  50% {
    transform: translateX(50vw) translateY(0);
  }

  75% {
    transform: translateX(75vw) translateY(20px);
  }

  100% {
    transform: translateX(110vw) translateY(0);
  }
}

/* Dark Mode: Stars Animation */
.stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(2px 2px at 20px 30px, #ffffff, rgba(0, 0, 0, 0)),
    radial-gradient(2px 2px at 40px 70px, #ffffff, rgba(0, 0, 0, 0)),
    radial-gradient(2px 2px at 50px 160px, #ffffff, rgba(0, 0, 0, 0)),
    radial-gradient(2px 2px at 90px 40px, #ffffff, rgba(0, 0, 0, 0)),
    radial-gradient(2px 2px at 130px 80px, #ffffff, rgba(0, 0, 0, 0)),
    radial-gradient(2px 2px at 160px 120px, #ffffff, rgba(0, 0, 0, 0));
  background-repeat: repeat;
  background-size: 200px 200px;
  opacity: 0;
  animation: starsMove 60s linear infinite;
}

@keyframes starsMove {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 1000px 1000px;
  }
}

/* Theme Visibility Logic */
[data-theme="dark"] .sun-container,
[data-theme="dark"] .birds-container {
  display: none;
}

[data-theme="light"] .moon-container {
  display: none;
}

[data-theme="dark"] .stars {
  opacity: 0.4;
}

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

[data-theme="dark"] .hero {
  background: transparent;
  /* Removed background */
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Tech Sphere Animation (CSS Replacement) */
.tech-sphere-container {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.tech-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--accent-color);
  border-bottom-color: var(--accent-color);
  box-shadow: 0 0 15px rgba(0, 198, 255, 0.2);
}

.ring-1 {
  width: 100%;
  height: 100%;
  animation: rotateSphere 10s linear infinite;
}

.ring-2 {
  width: 80%;
  height: 80%;
  border-left-color: var(--text-primary);
  border-right-color: var(--text-primary);
  animation: rotateSphere 15s linear infinite reverse;
}

.ring-3 {
  width: 60%;
  height: 60%;
  border: 2px dashed var(--accent-color);
  animation: rotateSphere 20s linear infinite;
}

.tech-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: var(--accent-color);
  border-radius: 50%;
  box-shadow: 0 0 30px var(--accent-color);
  animation: pulseCore 2s ease-in-out infinite;
}

@keyframes rotateSphere {
  0% {
    transform: translate(-50%, -50%) rotate(0deg) rotateX(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg) rotateX(360deg);
  }
}

@keyframes pulseCore {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
  }
}

/* Entrance Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

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

/* Animated Background Gradient */
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(0, 198, 255, 0.03) 0%, transparent 50%);
  animation: rotate 20s linear infinite;
  z-index: 0;
  pointer-events: none;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(0, 198, 255, 0.1);
  border: 1px solid rgba(0, 198, 255, 0.2);
  border-radius: 100px;
  font-size: 0.875rem;
  color: var(--accent-color);
  margin-bottom: 24px;
  font-weight: 500;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #00c6ff;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(0, 198, 255, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 198, 255, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(0, 198, 255, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 198, 255, 0);
  }
}

.hero-title {
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -1.5px;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
}

.social-links {
  margin-top: 40px;
  display: flex;
  gap: 20px;
}

/* Social Icons Ripple Effect */
/* Social Icons Ripple Effect */
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social-links a::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(0, 198, 255, 0.6) 10%, transparent 10.01%);
  background-size: 0% 0%;
  background-repeat: no-repeat;
  background-position: center;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: background-size 0.5s ease-out, opacity 0.5s ease-out;
  pointer-events: none;
  border-radius: 50%;
}

.social-links a:active::after {
  background-size: 200% 200%;
  opacity: 1;
  transition: 0s;
}

.social-links a:hover {
  background: var(--bg-surface-hover);
  border-color: var(--accent-color);
  color: var(--text-primary);
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
}

.about-text p {
  margin-bottom: 24px;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.skills-title {
  font-size: 1.25rem;
  margin-bottom: 24px;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skill-tag {
  padding: 8px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.skill-tag:hover {
  border-color: var(--accent-color);
  color: var(--text-primary);
  background: rgba(0, 198, 255, 0.05);
  transform: translateY(-2px);
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
}

.project-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 40px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 198, 255, 0.3);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

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

.project-title {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

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

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tech-tag {
  font-size: 0.8rem;
  color: var(--accent-color);
  background: rgba(0, 198, 255, 0.1);
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 500;
}

.project-link {
  font-weight: 600;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

/* Experience Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 2px;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  padding-left: 48px;
  margin-bottom: 60px;
}

.timeline-marker {
  position: absolute;
  left: -5px;
  top: 8px;
  width: 12px;
  height: 12px;
  background: var(--gradient-primary);
  border-radius: 50%;
  box-shadow: 0 0 0 6px var(--bg-body);
}

.timeline-title {
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.timeline-company {
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: 4px;
}

.timeline-period {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-weight: 500;
}

/* Blog List */
.blogs-list {
  display: grid;
  gap: 24px;
}

.blog-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
}

.blog-card:hover {
  border-color: var(--accent-color);
  transform: translateX(8px);
  background: var(--bg-surface-hover);
}

.blog-title {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.blog-meta {
  display: flex;
  gap: 16px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Contact Section */
.contact-wrapper {
  background: var(--bg-surface);
  /* Changed from hardcoded gradient */
  border-radius: var(--radius-lg);
  padding: 80px;
  text-align: center;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.contact-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
}

.contact-title {
  font-size: 3rem;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.contact-text {
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.1rem;
}

/* Footer */
.footer {
  padding: 60px 0;
  border-top: 1px solid var(--border-color);
  margin-top: 80px;
  background: var(--bg-surface);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  gap: 32px;
}

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

/* Blog Reader */
.page {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.page.active {
  display: block;
  opacity: 1;
}

.blog-reader {
  padding-top: 120px;
  padding-bottom: 80px;
}

.reader-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.back-btn:hover {
  color: var(--text-primary);
  border-color: var(--accent-color);
  background: var(--bg-surface);
}

.reader-title {
  font-size: 3rem;
  margin-bottom: 24px;
  line-height: 1.2;
}

.reader-meta {
  color: var(--text-secondary);
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-color);
}

/* Markdown Styles */
.markdown-body {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1.15rem;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
  color: var(--text-primary);
  margin-top: 48px;
  margin-bottom: 24px;
}

.markdown-body p {
  margin-bottom: 28px;
}

.markdown-body code {
  background: var(--bg-surface);
  padding: 4px 8px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 0.9em;
  color: var(--accent-color);
}

.markdown-body pre {
  background: var(--bg-surface);
  padding: 24px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin-bottom: 32px;
  border: 1px solid var(--border-color);
}

.markdown-body img {
  max-width: 100%;
  border-radius: var(--radius-md);
  margin: 32px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    margin: 0 auto;
  }

  .hero-visual {
    order: -1;
    margin-bottom: 40px;
  }

  .hero-title {
    font-size: 3rem;
  }

  .nav-menu {
    display: none;
  }

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

  .contact-wrapper {
    padding: 40px 24px;
  }

  .footer-content {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
}