/* ================================
   Things.inc Style - lovelyyoshino
   ================================ */

/* ================================
   CSS Variables & Theme
   ================================ */
:root {
  /* 背景色 - 深蓝紫系 */
  --bg-primary: #1a1a2e;
  --bg-secondary: #16213e;
  --bg-tertiary: #0f3460;
  
  /* 主色调 - 粉色系（可爱风） */
  --primary: #FFB6C1;
  --primary-dark: #FF69B4;
  --primary-light: #FFE4E1;
  
  /* 辅助色 - 青色系（科技感） */
  --secondary: #00d9ff;
  --accent: #c9184a;
  --success: #00ff88;
  --warning: #ffbe0b;
  
  /* 文字颜色 */
  --text-primary: #ffffff;
  --text-secondary: #b8c6db;
  --text-muted: #6c757d;
  
  /* 阴影 */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
  
  /* 圆角 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* 过渡 */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme - Sky Blue */
[data-theme="light"] {
  --bg-primary: #E3F2FD;
  --bg-secondary: #BBDEFB;
  --bg-tertiary: #90CAF9;
  
  --primary: #2196F3;
  --primary-dark: #1976D2;
  --primary-light: #64B5F6;
  
  --text-primary: #1a237e;
  --text-secondary: #3949ab;
  --text-muted: #5c6bc0;
  
  --shadow-sm: 0 2px 8px rgba(33, 150, 243, 0.1);
  --shadow-md: 0 4px 16px rgba(33, 150, 243, 0.15);
  --shadow-lg: 0 8px 32px rgba(33, 150, 243, 0.2);
  --shadow-xl: 0 16px 48px rgba(33, 150, 243, 0.25);
  
  --grid-color: rgba(33, 150, 243, 0.08);
  --cloud-color: rgba(255, 255, 255, 0.6);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-base), color var(--transition-base);
  position: relative;
}

/* Grid Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

[data-theme="light"] body::before {
  background-image: 
    linear-gradient(rgba(33, 150, 243, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33, 150, 243, 0.08) 1px, transparent 1px);
}

/* Cloud Background - Atmospheric Layer */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(ellipse at 20% 25%, rgba(255, 255, 255, 0.02) 0%, transparent 40%),
    radial-gradient(ellipse at 75% 60%, rgba(255, 255, 255, 0.025) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 80%, rgba(255, 255, 255, 0.015) 0%, transparent 40%),
    radial-gradient(ellipse at 85% 20%, rgba(255, 255, 255, 0.02) 0%, transparent 38%);
  background-size: 1200px 1200px, 1000px 1000px, 1100px 1100px, 900px 900px;
  animation: cloudFloat 80s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

[data-theme="light"] body::after {
  background-image: 
    radial-gradient(ellipse at 20% 25%, rgba(255, 255, 255, 0.4) 0%, transparent 45%),
    radial-gradient(ellipse at 75% 60%, rgba(255, 255, 255, 0.35) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(255, 255, 255, 0.3) 0%, transparent 45%),
    radial-gradient(ellipse at 85% 20%, rgba(255, 255, 255, 0.38) 0%, transparent 42%);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

ul {
  list-style: none;
}

/* ================================
   BIOS Loader
   ================================ */
.bios-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.5s, visibility 0.5s;
}

.bios-loader.hide {
  opacity: 0;
  visibility: hidden;
}

.bios-content {
  font-family: 'JetBrains Mono', monospace;
  color: #00ff00;
  font-size: 14px;
  line-height: 1.4;
  text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.bios-cursor {
  display: inline-block;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* ================================
   Menu Toggle Button
   ================================ */
.menu-toggle {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 100px;
  height: 48px;
  background: var(--bg-secondary);
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 999;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
}

.menu-toggle:hover {
  background: var(--primary);
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ================================
   Theme Toggle
   ================================ */
.theme-toggle-btn {
  position: fixed;
  top: 20px;
  right: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: var(--bg-secondary);
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 8px 16px;
  z-index: 999;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
}

.theme-toggle-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.theme-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.theme-icons {
  display: flex;
  gap: 8px;
}

.sun-icon,
.moon-icon {
  font-size: 20px;
  transition: all var(--transition-base);
}

[data-theme="dark"] .sun-icon {
  opacity: 0.3;
}

[data-theme="dark"] .moon-icon {
  opacity: 1;
  color: var(--primary);
}

[data-theme="light"] .sun-icon {
  opacity: 1;
  color: var(--warning);
}

[data-theme="light"] .moon-icon {
  opacity: 0.3;
}


/* ================================
   Drawer Menu
   ================================ */
.drawer-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 100%;
  background: var(--bg-secondary);
  border-right: 2px solid var(--primary);
  z-index: 1000;
  transform: translateX(-100%);
  transition: transform var(--transition-base);
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
}

.drawer-menu.open {
  transform: translateX(0);
}

.drawer-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all var(--transition-fast);
}

.drawer-close:hover {
  background: var(--primary);
  transform: rotate(90deg);
}

.drawer-header {
  padding: 40px 30px 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.drawer-header h2 {
  font-size: 32px;
  color: var(--primary);
  font-family: 'Fredoka One', cursive;
}

.drawer-links {
  padding: 20px 0;
}

.drawer-link {
  display: block;
  padding: 16px 30px;
  color: var(--text-secondary);
  font-weight: 500;
  transition: all var(--transition-fast);
  border-left: 4px solid transparent;
}

.drawer-link:hover {
  color: var(--primary);
  background: var(--bg-tertiary);
  border-left-color: var(--primary);
  padding-left: 40px;
}

.drawer-footer {
  padding: 20px 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 18px;
  transition: all var(--transition-fast);
}

.social-links a:hover {
  background: var(--primary);
  transform: translateY(-4px);
}

/* ================================
   Clouds - Realistic Effect
   ================================ */
.clouds-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.cloud {
  position: absolute;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 255, 255, 0.7) 30%,
    rgba(255, 255, 255, 0.4) 60%,
    rgba(255, 255, 255, 0) 100%
  );
  border-radius: 200px;
  filter: blur(3px);
  opacity: 0.6;
}

.cloud::before,
.cloud::after {
  content: '';
  position: absolute;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.75) 35%,
    rgba(255, 255, 255, 0.45) 65%,
    rgba(255, 255, 255, 0) 100%
  );
  border-radius: 200px;
  filter: blur(2px);
}

/* Cloud 1 - Top Left */
.cloud-1 {
  width: 250px;
  height: 100px;
  top: 8%;
  left: 5%;
  animation: float1 35s ease-in-out infinite;
}

.cloud-1::before {
  width: 180px;
  height: 120px;
  top: -40px;
  left: 40px;
}

.cloud-1::after {
  width: 150px;
  height: 90px;
  top: -20px;
  right: 30px;
}

/* Cloud 2 - Top Right */
.cloud-2 {
  width: 200px;
  height: 80px;
  top: 25%;
  right: 10%;
  animation: float2 40s ease-in-out infinite;
}

.cloud-2::before {
  width: 140px;
  height: 100px;
  top: -35px;
  left: 35px;
}

.cloud-2::after {
  width: 120px;
  height: 75px;
  top: -15px;
  right: 25px;
}

/* Cloud 3 - Bottom Left */
.cloud-3 {
  width: 280px;
  height: 110px;
  bottom: 18%;
  left: 15%;
  animation: float3 45s ease-in-out infinite;
}

.cloud-3::before {
  width: 200px;
  height: 130px;
  top: -45px;
  left: 50px;
}

.cloud-3::after {
  width: 170px;
  height: 100px;
  top: -25px;
  right: 40px;
}

/* Cloud 4 - Bottom Right */
.cloud-4 {
  width: 220px;
  height: 90px;
  bottom: 12%;
  right: 8%;
  animation: float4 38s ease-in-out infinite;
}

.cloud-4::before {
  width: 160px;
  height: 110px;
  top: -38px;
  left: 40px;
}

.cloud-4::after {
  width: 140px;
  height: 85px;
  top: -18px;
  right: 30px;
}

/* Cloud 5 - Middle Left */
.cloud-5 {
  width: 190px;
  height: 75px;
  top: 50%;
  left: 8%;
  animation: float2 42s ease-in-out infinite 5s;
}

.cloud-5::before {
  width: 130px;
  height: 95px;
  top: -32px;
  left: 30px;
}

.cloud-5::after {
  width: 110px;
  height: 70px;
  top: -12px;
  right: 20px;
}

/* Cloud 6 - Middle Right */
.cloud-6 {
  width: 240px;
  height: 95px;
  top: 60%;
  right: 12%;
  animation: float3 50s ease-in-out infinite 8s;
}

.cloud-6::before {
  width: 170px;
  height: 115px;
  top: -40px;
  left: 45px;
}

.cloud-6::after {
  width: 145px;
  height: 88px;
  top: -20px;
  right: 35px;
}

/* Light Theme - Sky Blue Clouds */
[data-theme="light"] .cloud {
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.85) 30%,
    rgba(255, 255, 255, 0.6) 60%,
    rgba(255, 255, 255, 0) 100%
  );
  filter: blur(2px);
  opacity: 0.85;
}

[data-theme="light"] .cloud::before,
[data-theme="light"] .cloud::after {
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.9) 35%,
    rgba(255, 255, 255, 0.65) 65%,
    rgba(255, 255, 255, 0) 100%
  );
  filter: blur(1.5px);
}

/* Cloud Float Animations - Natural Movement */
@keyframes float1 {
  0% { transform: translate(0, 0); }
  25% { transform: translate(15px, -12px); }
  50% { transform: translate(30px, -20px); }
  75% { transform: translate(20px, -15px); }
  100% { transform: translate(0, 0); }
}

@keyframes float2 {
  0% { transform: translate(0, 0); }
  30% { transform: translate(-20px, 10px); }
  60% { transform: translate(-35px, 18px); }
  80% { transform: translate(-15px, 8px); }
  100% { transform: translate(0, 0); }
}

@keyframes float3 {
  0% { transform: translate(0, 0); }
  20% { transform: translate(25px, 15px); }
  50% { transform: translate(40px, 25px); }
  70% { transform: translate(30px, 20px); }
  100% { transform: translate(0, 0); }
}

@keyframes float4 {
  0% { transform: translate(0, 0); }
  35% { transform: translate(-25px, -10px); }
  65% { transform: translate(-40px, -20px); }
  85% { transform: translate(-20px, -12px); }
  100% { transform: translate(0, 0); }
}

/* ================================
   Main Content
   ================================ */
.main-content {
  position: relative;
  z-index: 2;
}

/* ================================
   Hero Section
   ================================ */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px;
  position: relative;
}

.hero-container {
  text-align: center;
  max-width: 1000px;
  animation: fadeInUp 1s;
}

.hero-avatar {
  width: 200px;
  height: 200px;
  margin: 0 auto 40px;
  position: relative;
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary);
  box-shadow: var(--shadow-xl), 0 0 30px var(--primary);
}

.avatar-ring {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  animation: rotate 10s linear infinite;
  opacity: 0.3;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 3D Logo */
.hero-logo {
  font-family: 'Fredoka One', cursive;
  font-size: 120px;
  color: var(--primary);
  margin-bottom: 20px;
  text-shadow: 
    0 1px 0 #E6A5B1,
    0 2px 0 #D69CA1,
    0 3px 0 #C69391,
    0 4px 0 #B68A81,
    0 5px 0 #A68171,
    0 10px 30px rgba(0, 0, 0, 0.5);
  transform: perspective(500px) rotateX(5deg);
  animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: perspective(500px) rotateX(5deg) translateY(0); }
  50% { transform: perspective(500px) rotateX(5deg) translateY(-10px); }
}

.hero-subtitle {
  font-size: 28px;
  color: var(--secondary);
  margin-bottom: 20px;
  font-family: 'JetBrains Mono', monospace;
  min-height: 40px;
}

.cursor-blink {
  animation: blink 1s infinite;
  color: var(--secondary);
}

.hero-description {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.8;
}

/* Hero Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.stat-box {
  background: var(--bg-secondary);
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--primary);
  transition: all var(--transition-base);
}

.stat-box:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg), 0 0 20px var(--primary);
}

.stat-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Scroll Indicator */
.scroll-down {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
  animation: bounce 2s infinite;
}

.scroll-arrow {
  font-size: 24px;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ================================
   Container
   ================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-fluid {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ================================
   Section
   ================================ */
.section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.section-title {
  font-size: 48px;
  font-weight: 900;
  text-align: center;
  margin-bottom: 16px;
  color: var(--primary);
  font-family: 'Fredoka One', cursive;
}

.section-subtitle {
  text-align: center;
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 60px;
}

/* ================================
   About Section
   ================================ */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.terminal-window {
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 2px solid var(--primary);
}

.terminal-header {
  background: var(--bg-tertiary);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--primary);
}

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

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }

.terminal-title {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--text-secondary);
}

.terminal-body {
  padding: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  line-height: 1.6;
  color: #00ff00;
  text-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
}

.prompt { color: #00ff88; }
.key { color: #00d9ff; }
.string { color: #ffbe0b; }
.number { color: #ff006e; }

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

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

.highlight-card {
  background: var(--bg-secondary);
  padding: 20px;
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--success);
  margin: 24px 0;
  display: flex;
  gap: 16px;
}

.highlight-card i {
  font-size: 24px;
  color: var(--success);
  flex-shrink: 0;
}

/* ================================
   Skills Section
   ================================ */
.skills-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.skills-badges img {
  height: 32px;
  transition: all var(--transition-fast);
}

.skills-badges img:hover {
  transform: translateY(-4px) scale(1.1);
  filter: brightness(1.2);
}

/* ================================
   Work Projects Section
   ================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.project-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid rgba(255, 182, 193, 0.3);
  transition: all var(--transition-base);
}

.project-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-xl), 0 0 30px rgba(255, 182, 193, 0.3);
  transform: translateY(-8px);
}

.project-image {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: var(--bg-tertiary);
}

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

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

.project-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.project-badge.production {
  background: rgba(0, 255, 136, 0.2);
  border: 1px solid var(--success);
  color: var(--success);
}

.project-badge.ready {
  background: rgba(0, 217, 255, 0.2);
  border: 1px solid var(--secondary);
  color: var(--secondary);
}

.project-badge.dev {
  background: rgba(255, 190, 11, 0.2);
  border: 1px solid var(--warning);
  color: var(--warning);
}

.project-info {
  padding: 24px;
}

.project-info h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.project-info p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.project-tags span {
  padding: 4px 12px;
  background: rgba(255, 182, 193, 0.2);
  border: 1px solid var(--primary);
  border-radius: 12px;
  font-size: 12px;
  color: var(--primary);
}

.project-meta {
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  color: var(--text-muted);
}

/* ================================
   GitHub Projects Section
   ================================ */
.github-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.github-card {
  background: var(--bg-secondary);
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 2px solid rgba(0, 217, 255, 0.3);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.github-card:hover {
  border-color: var(--secondary);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(0, 217, 255, 0.3);
  transform: translateY(-4px);
}

.github-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.github-header i {
  font-size: 20px;
  color: var(--secondary);
}

.github-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
}

.github-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.5;
  flex: 1;
}

.github-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.github-tags span {
  padding: 2px 8px;
  background: rgba(0, 217, 255, 0.1);
  border: 1px solid var(--secondary);
  border-radius: 8px;
  font-size: 11px;
  color: var(--secondary);
}

.github-footer {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.github-footer i {
  color: var(--warning);
}

.view-more {
  text-align: center;
  margin-top: 40px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: var(--primary);
  color: var(--bg-primary);
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 16px;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ================================
   Stats Section
   ================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.stat-card {
  background: var(--bg-secondary);
  padding: 32px;
  border-radius: var(--radius-xl);
  border: 2px solid var(--primary);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-dark);
}

.stat-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}

/* ================================
   Book Section
   ================================ */
.book-showcase {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 60px;
  align-items: center;
}

.book-cover img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 4px solid var(--primary);
}

.book-details h3 {
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 20px;
}

.book-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
}

.book-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}

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

.book-desc {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
}

.book-features {
  list-style: none;
  margin-bottom: 32px;
}

.book-features li {
  padding: 8px 0;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 12px;
}

.book-features i {
  color: var(--success);
}

/* ================================
   Contact Section
   ================================ */
.contact-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
}

.contact-info h3 {
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 16px;
}

.contact-info > p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.8;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.contact-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 2px solid rgba(255, 182, 193, 0.3);
  transition: all var(--transition-base);
}

.contact-item:hover {
  border-color: var(--primary);
  transform: translateX(8px);
}

.contact-item i {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--primary);
  background: rgba(255, 182, 193, 0.1);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.contact-item .label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-item .value {
  font-weight: 600;
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
}

.qr-card {
  background: var(--bg-secondary);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--primary);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.qr-card img {
  width: 100%;
  max-width: 300px;
  margin: 0 auto 20px;
  border-radius: var(--radius-md);
}

.qr-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.qr-subtitle {
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.qr-desc {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ================================
   Footer
   ================================ */
.footer {
  background: var(--bg-secondary);
  padding: 60px 0 20px;
  border-top: 2px solid var(--primary);
  position: relative;
}

.footer-quote {
  text-align: center;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-size: 18px;
}

.footer-text {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 8px;
}

.footer-text i {
  color: var(--accent);
}

.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 56px;
  height: 56px;
  background: var(--primary);
  color: var(--bg-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: 998;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

/* ================================
   Responsive Design
   ================================ */
@media (max-width: 1200px) {
  .github-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .hero-logo {
    font-size: 80px;
  }
  
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .github-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .book-showcase {
    grid-template-columns: 1fr;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-logo {
    font-size: 60px;
  }
  
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .section-title {
    font-size: 36px;
  }
  
  .projects-grid,
  .github-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .theme-toggle-btn {
    right: 20px;
  }
  
  .stat-card.wide {
    grid-column: span 1;
  }
}

@media (max-width: 480px) {
  .hero-logo {
    font-size: 48px;
  }
  
  .menu-toggle,
  .theme-toggle-btn {
    transform: scale(0.9);
  }
}

