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

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #141414;
  --bg-card: #1a1a1a;
  --bg-elevated: #222222;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-tertiary: #6b6b6b;
  --text-muted: #525252;
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --accent-light: rgba(99, 102, 241, 0.1);
  --accent-glow: rgba(99, 102, 241, 0.5);
  --border: #27272a;
  --border-light: #3f3f46;
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --gradient-secondary: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
  --gradient-tertiary: linear-gradient(135deg, #14b8a6 0%, #22d3ee 100%);
  --gradient-quaternary: linear-gradient(135deg, #f59e0b 0%, #fb923c 100%);
  --gradient-success: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 16px 50px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
}

[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-card: #ffffff;
  --bg-elevated: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  --text-muted: #cbd5e1;
  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --accent-light: rgba(99, 102, 241, 0.08);
  --accent-glow: rgba(99, 102, 241, 0.2);
  --border: #e2e8f0;
  --border-light: #cbd5e1;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 16px 50px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

html.lenis {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

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

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  width: 100%;
}

/* Navigation */
nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: rgba(26, 26, 26, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 8px 12px;
  transition: all 0.3s ease;
}

[data-theme="light"] nav {
  background: rgba(255, 255, 255, 0.9);
}

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

.nav-logo {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  padding: 8px 16px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: transform 0.3s ease;
}

.nav-logo:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 10px 16px;
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.nav-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.theme-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 10px;
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  background: var(--bg-elevated);
  transform: rotate(15deg);
}

.language-toggle {
  display: flex;
  gap: 4px;
  background: var(--bg-elevated);
  padding: 4px;
  border-radius: var(--radius-lg);
  margin-right: 8px;
}

.language-toggle-fixed {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 2px;
  background: rgba(26, 26, 26, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  padding: 4px;
  border-radius: var(--radius-md);
  z-index: 1001;
  box-shadow: var(--shadow-lg);
}

[data-theme="light"] .language-toggle-fixed {
  background: rgba(255, 255, 255, 0.9);
}

.lang-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-btn .flag {
  font-size: 1rem;
}

.lang-btn:hover {
  background: var(--bg-card);
}

.lang-btn.active {
  background: var(--accent);
}

.btn-primary {
  padding: 10px 20px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-secondary {
  padding: 10px 20px;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

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

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-light), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--border-light);
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  padding: 140px 0 80px;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-content {
  padding-bottom: 0;
}

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

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

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content .subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-weight: 500;
}

.hero-content .description {
  font-size: 1.125rem;
  color: var(--text-tertiary);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 48px;
}

.hero-stat {
  text-align: left;
}

.hero-stat .number {
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-stat .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}
/* Interactive Hero Right Side */
.hero-visual {
  display: grid;
  grid-template-columns: 180px 180px;
  grid-template-rows: auto auto auto;
  gap: 8px;
  transform: scale(0.9);
  transform-origin: right center;
}

.hero-card {
  position: relative;
  padding: 14px !important;
}

/* Hero Card Window Controls */
.hero-window-controls {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.hero-window-controls span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.hero-window-controls span:nth-child(1) { background: #ef4444; }
.hero-window-controls span:nth-child(2) { background: #f59e0b; }
.hero-window-controls span:nth-child(3) { background: #22c55e; }

/* Hero Card Icon Box */
.hero-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.hero-icon-box.primary { background: var(--gradient-primary); }
.hero-icon-box.secondary { background: var(--gradient-secondary); }
.hero-icon-box.tertiary { background: var(--gradient-tertiary); }
.hero-icon-box.success { background: var(--gradient-success); }
.hero-icon-box.purple { background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%); }

/* Hero Card Tag */
.hero-tag {
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 0.65rem;
  display: inline-flex;
}

.hero-tag.accent {
  background: var(--accent-light);
  color: var(--accent);
}

.hero-tag.pink {
  background: rgba(236, 72, 153, 0.1);
  color: #ec4899;
}

.hero-tag.teal {
  background: rgba(20, 184, 166, 0.1);
  color: #14b8a6;
}

.hero-tag.green {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.hero-tag.purple {
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent);
}

.hero-card-1 {
  grid-column: span 2;
}

.hero-card-1 .line {
  margin-bottom: 2px;
}

.hero-card-2 {
  margin-top: -20px;
  animation: float 8s ease-in-out infinite reverse;
}

.hero-card-3 {
  margin-top: 20px;
  margin-left: -30px;
  animation: float 7s ease-in-out infinite 1s;
}

.hero-card-4 {
  animation: float 5s ease-in-out infinite 0.5s;
}

.hero-card-5 {
  margin-top: -15px;
  margin-left: -20px;
  animation: float 6s ease-in-out infinite 1.5s;
}

.hero-card-6 {
  margin-left: -30px;
  animation: float 7s ease-in-out infinite 2s;
}

.hero-card-7 {
  animation: float 5s ease-in-out infinite 0.3s;
}

/* Hero Stack Icons */
.hero-stack-icons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 8px;
}

.hero-stack-icons span {
  font-size: 1.3rem;
}

.hero-stack-title {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-align: center;
}

/* Hero Card Text */
.hero-card-title {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.hero-card-subtitle {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.hero-card-tags {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}

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

/* Code Preview Card */
.code-preview {
  font-family: 'Fira Code', 'Monaco', monospace;
  font-size: 0.75rem;
  line-height: 1.6;
}

.code-preview .line {
  display: flex;
  gap: 12px;
}

.code-preview .line-num {
  color: var(--text-muted);
  min-width: 20px;
  text-align: right;
}

.code-preview .line-code {
  color: var(--text-secondary);
}

.code-preview .keyword {
  color: #c084fc;
}

.code-preview .string {
  color: #34d399;
}

.code-preview .function {
  color: #60a5fa;
}

.code-preview .comment {
  color: var(--text-muted);
}

/* Stats Grid */
.stats-section {
  padding: 60px 0;
}

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

.stats-card {
  grid-column: span 1;
  text-align: center;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.stats-card.highlight {
  grid-column: span 2;
  background: var(--gradient-primary);
  color: white;
  border: none;
}

.stats-card .number {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}

.stats-card.highlight .number {
  color: white;
}

.stats-card .icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.stats-card .label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.stats-card.highlight .label {
  color: rgba(255, 255, 255, 0.85);
}

.stats-card.highlight .icon {
  font-size: 2.5rem;
  margin-bottom: 4px;
  animation: bounce 2s ease-in-out infinite;
}

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

/* Projects Grid */
.projects-section {
  padding: 100px 0;
}

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

/* Section Divider */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 60px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.divider-accent {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.divider-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--accent-glow);
  animation: pulse-dot 3s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

.projects-header {
  grid-column: span 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.projects-header .section-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.projects-header .section-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s ease;
}

.projects-header .section-link:hover {
  gap: 12px;
}

.project-bento-card {
  grid-column: span 1;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
}

.project-bento-card .project-image {
  height: 200px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-card);
}

.project-bento-card .project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.project-bento-card .project-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, var(--bg-card), transparent);
}

.project-image-content {
  text-align: center;
  z-index: 1;
}

.project-image-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.project-image-text {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
}

.project-bento-card .project-content {
  padding: 24px;
}

.project-bento-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.project-bento-card p {
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

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

.project-tech-tags span {
  padding: 6px 14px;
  background: var(--accent-light);
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 500;
}

/* Project Image Gradients */
.project-gradient-iecm {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.project-gradient-woo {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.project-gradient-br {
  background: linear-gradient(135deg, #0077b6 0%, #00b4d8 100%);
}

.project-gradient-usa {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.project-gradient-rock {
  background: linear-gradient(135deg, #2d3436 0%, #636e72 50%, #b2bec3 100%);
}
  margin-bottom: 16px;
}

/* Experience Section */
.experience-section {
  padding: 100px 0;
  background: var(--bg-primary);
}

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

.experience-header {
  grid-column: span 2;
  margin-bottom: 16px;
}

.experience-bento-card {
  grid-column: span 1;
  padding: 28px;
}

.experience-bento-card .period {
  display: inline-block;
  padding: 6px 14px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.experience-bento-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.experience-bento-card p {
  color: var(--text-tertiary);
  font-size: 0.875rem;
  line-height: 1.7;
}

/* Education Section */
.education-section {
  padding: 100px 0;
  background: var(--bg-primary);
}

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

.education-header {
  grid-column: span 2;
  margin-bottom: 16px;
}

.education-bento-card {
  grid-column: span 1;
  padding: 28px;
}

.education-bento-card .period {
  display: inline-block;
  padding: 6px 14px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.education-bento-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.education-bento-card p {
  color: var(--text-tertiary);
  font-size: 0.875rem;
  line-height: 1.7;
}

/* Courses Section */
.courses-section {
  padding: 100px 0;
  background: var(--bg-primary);
}

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

.courses-header {
  grid-column: span 2;
  margin-bottom: 16px;
}

.course-bento-card {
  grid-column: span 1;
  padding: 28px;
}

.course-bento-card .period {
  display: inline-block;
  padding: 6px 14px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.course-bento-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.course-bento-card p {
  color: var(--text-tertiary);
  font-size: 0.875rem;
  line-height: 1.7;
}

/* Process Section */
.process-section {
  padding: 100px 0;
}

.process-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.process-header {
  text-align: center;
  margin-bottom: 60px;
}

.process-header .section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.process-header p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}

.process-step {
  position: relative;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.process-step::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--border);
  transition: all 0.4s ease;
}

.process-step:hover::before,
.process-step.active::before {
  background: var(--accent);
  height: 4px;
}

.process-step:hover,
.process-step.active {
  transform: translateY(-8px);
}

.step-number {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  z-index: 2;
  transition: all 0.3s ease;
}

.process-step:hover .step-number,
.process-step.active .step-number {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  box-shadow: 0 0 20px var(--accent-glow);
}

.step-icon {
  font-size: 3.5rem;
  margin: 24px 0 20px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
}

.process-step:hover .step-icon,
.process-step.active .step-icon {
  transform: scale(1.15) translateY(-4px);
}

.step-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.process-step:hover .step-content h3,
.process-step.active .step-content h3 {
  color: var(--accent);
}

.step-content p {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  line-height: 1.7;
}

.step-connector {
  position: absolute;
  top: 52px;
  right: -12px;
  width: 24px;
  height: 24px;
  background: transparent;
  border: 2px solid var(--border);
  border-left: none;
  border-bottom: none;
  transform: rotate(45deg);
  transition: all 0.3s ease;
}

.process-step:hover .step-connector,
.process-step.active .step-connector {
  border-color: var(--accent);
  box-shadow: 2px -2px 10px var(--accent-glow);
}

.process-step:last-child .step-connector {
  display: none;
}

.process-cta {
  text-align: center;
  margin-top: 60px;
}

.process-cta .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  font-size: 1rem;
  font-weight: 600;
}

/* Tools Section */
.tools-section {
  padding: 100px 0;
}

.tools-bento {
  grid-template-columns: repeat(6, 1fr);
}

.tools-header {
  grid-column: span 6;
  margin-bottom: 16px;
}

.tool-bento-card {
  grid-column: span 1;
  padding: 24px 16px;
  text-align: center;
}

.tool-bento-card .icon {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.tool-bento-card h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.tool-bento-card p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Thoughts Section */
.thoughts-section {
  padding: 100px 0;
  background: var(--bg-primary);
}

.thoughts-bento {
  grid-template-columns: repeat(4, 1fr);
}

.thoughts-header {
  grid-column: span 4;
  margin-bottom: 16px;
}

.blog-posts-grid {
  grid-column: span 4 !important;
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 20px !important;
}

.thought-bento-card {
  text-decoration: none;
  display: block;
  transition: all 0.3s ease;
}

.thought-bento-card:hover {
  transform: translateY(-4px);
}

.thought-bento-card .date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 500;
}

.thought-bento-card h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.thought-bento-card .read-time {
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

.thought-bento-card .post-cover-image {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  display: block;
}

.thought-bento-card .post-content-wrapper {
  padding: 20px;
}

.thought-bento-card.no-image .post-content-wrapper {
  padding: 24px;
}

/* Contact Section */
.contact-section {
  padding: 100px 0;
}

.contact-bento {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
}

.contact-header {
  grid-column: span 2;
  text-align: center;
  margin-bottom: 40px;
}

.contact-header .section-title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.contact-header p {
  color: var(--text-tertiary);
  font-size: 1rem;
}

.contact-form-bento {
  grid-column: span 1;
  padding: 36px;
}

.contact-info-bento {
  grid-column: span 1;
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-info-bento h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.contact-info-item {
  margin-bottom: 20px;
}

.contact-info-item h4 {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.contact-info-item a,
.contact-info-item p {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.3s ease;
}

.contact-info-item a:hover {
  color: var(--accent);
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: white;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 24px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
  background: #20bd5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn svg {
  flex-shrink: 0;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.captcha-group {
  background: var(--bg-elevated);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.captcha-group label {
  color: var(--accent);
  font-weight: 600;
}

.captcha-group input {
  margin-top: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-light);
}

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

.submit-btn {
  width: 100%;
  padding: 16px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--accent-glow);
}

/* Footer */
footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-primary);
}

footer .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer p {
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

footer .social {
  display: flex;
  gap: 24px;
}

footer .social a {
  color: var(--text-tertiary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

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

footer {
  margin-top: auto;
}

footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-primary);
  margin-top: auto;
}

footer .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer p {
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

footer .social {
  display: flex;
  gap: 24px;
}

footer .social a {
  color: var(--text-tertiary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

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

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideIn 0.3s ease, slideOut 0.3s ease 2.7s forwards;
  min-width: 280px;
}

.toast.success {
  border-left: 4px solid #10b981;
}

.toast.error {
  border-left: 4px solid #ef4444;
}

.toast-icon {
  font-size: 1.25rem;
}

.toast-message {
  flex: 1;
}

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

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

/* Responsive */
@media (max-width: 1200px) {
  .bento-grid {
    gap: 16px;
    padding: 0 20px;
  }
  
  .projects-bento,
  .tools-bento,
  .education-bento,
  .courses-bento {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .tools-header,
  .thoughts-header,
  .education-header,
  .courses-header {
    grid-column: span 2;
  }
  
  .tool-bento-card {
    grid-column: span 1;
  }
  
  .blog-posts-grid {
    grid-column: span 2 !important;
  }
}

@media (max-width: 768px) {
  /* Navigation - Fixed compact */
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }
  
  nav {
    width: calc(100% - 16px) !important;
    max-width: 100% !important;
    min-width: 0;
    top: 8px;
    left: 8px !important;
    right: auto !important;
    transform: none !important;
    padding: 6px 8px !important;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-sizing: border-box;
  }
  
  nav .container {
    justify-content: space-between;
    gap: 4px;
    padding: 0 2px;
    min-width: 0;
    width: 100%;
  }
  
  .nav-logo {
    font-size: 0.8125rem !important;
    font-weight: 700;
    padding: 4px 6px !important;
    flex-shrink: 0;
  }
  
  .nav-links {
    display: none !important;
  }
  
  .nav-actions {
    display: flex !important;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
  }
  
  .nav-actions .btn-primary {
    padding: 5px 8px !important;
    font-size: 0.625rem !important;
    border-radius: var(--radius-sm);
    white-space: nowrap;
  }
  
  .theme-toggle {
    display: none !important;
  }
  
  .language-toggle-fixed {
    position: fixed !important;
    top: auto !important;
    bottom: 60px !important;
    right: 8px !important;
    left: auto !important;
    transform: none !important;
    display: flex;
    gap: 2px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 3px;
    border-radius: var(--radius-sm);
    z-index: 9999;
    box-shadow: var(--shadow-lg);
    box-sizing: border-box;
  }
  
  .lang-btn {
    padding: 3px 5px !important;
    font-size: 0.6875rem !important;
    border-radius: 3px;
    min-width: 28px;
    min-height: 26px;
    box-sizing: border-box;
  }
  
  .lang-btn .flag {
    font-size: 0.6875rem !important;
    display: block;
  }
  
  .lang-btn.active {
    background: var(--accent);
  }
  
  /* Back to Top */
  .back-to-top {
    position: fixed !important;
    bottom: 12px !important;
    right: 8px !important;
    left: auto !important;
    top: auto !important;
    width: 32px !important;
    height: 32px !important;
    transform: none !important;
    z-index: 9998;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  .back-to-top svg {
    width: 16px !important;
    height: 16px !important;
  }
  
  /* Base Grid */
  .bento-grid {
    padding: 0 16px;
    gap: 12px;
  }
  
  /* Sections */
  .projects-section,
  .experience-section,
  .education-section,
  .courses-section,
  .process-section,
  .tools-section,
  .thoughts-section,
  .contact-section {
    padding: 60px 0;
  }
  
  /* Hero */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 16px;
  }
  
  .hero-visual {
    display: none;
  }
  
  .hero-content {
    text-align: center;
    max-width: 100%;
  }
  
  .hero-content h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 16px;
  }
  
  .hero-content .subtitle {
    font-size: 1.125rem;
    margin-bottom: 20px;
  }
  
  .hero-content .description {
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 24px;
  }
  
  .hero-cta {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
  
  .hero-cta .btn-primary,
  .hero-cta .btn-secondary {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    padding: 14px 24px;
    font-size: 0.9375rem;
  }
  
  /* Stats */
  .stats-bento {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .stats-card {
    padding: 20px 16px;
    text-align: center;
  }
  
  .stats-card .icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
  }
  
  .stats-card .number {
    font-size: 1.75rem;
    font-weight: 700;
  }
  
  .stats-card .label {
    font-size: 0.75rem;
  }
  
  .stats-card.highlight {
    grid-column: span 2;
    padding: 24px 16px;
  }
  
  .stats-card.highlight .number {
    font-size: 2rem;
  }
  
  /* Section Titles */
  .section-title {
    font-size: 1.5rem;
    margin-bottom: 24px;
  }
  
  .section-divider {
    padding: 40px 0;
  }
  
  /* Projects */
  .projects-bento,
  .experience-bento,
  .education-bento,
  .courses-bento,
  .contact-bento {
    grid-template-columns: 1fr;
  }
  
  .projects-header,
  .experience-header,
  .education-header,
  .courses-header,
  .contact-header,
  .tools-header,
  .thoughts-header {
    grid-column: span 1;
    text-align: center;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
  }
  
  .section-link {
    font-size: 0.875rem;
  }
  
  .project-bento-card,
  .experience-bento-card,
  .education-bento-card,
  .course-bento-card {
    grid-column: span 1;
  }
  
  .project-bento-card .project-image {
    height: 160px;
  }
  
  .project-bento-card .project-content {
    padding: 20px;
  }
  
  .project-bento-card h3 {
    font-size: 1.125rem;
  }
  
  .project-bento-card p {
    font-size: 0.875rem;
  }
  
  .project-bento-card .project-content > div {
    justify-content: flex-start;
  }
  
  .project-bento-card .project-content span {
    font-size: 0.6875rem;
    padding: 4px 10px;
  }
  
  /* Process Section */
  .process-steps {
    grid-template-columns: 1fr;
    max-width: 100%;
    padding: 0 16px;
    gap: 16px;
  }
  
  .process-step {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    margin-bottom: 0;
    transition: all 0.3s ease;
  }
  
  .process-step:hover,
  .process-step.active {
    transform: translateX(8px);
    border-color: var(--accent);
  }
  
  .process-step::before {
    display: none;
  }
  
  .step-number {
    position: static;
    transform: none;
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
    flex-shrink: 0;
  }
  
  .step-icon {
    font-size: 2rem;
    margin: 0;
    order: 0;
    flex-shrink: 0;
  }
  
  .step-content {
    text-align: left;
    flex: 1;
    min-width: 0;
  }
  
  .step-content h3 {
    font-size: 1rem;
    margin-bottom: 4px;
  }
  
  .step-content p {
    font-size: 0.8125rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .step-connector {
    display: none;
  }
  
  .process-header {
    margin-bottom: 32px;
    padding: 0 16px;
  }
  
  .process-header .section-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
  }
  
  .process-header p {
    font-size: 0.9375rem;
    line-height: 1.5;
    max-width: 100%;
  }
  
  .process-cta {
    margin-top: 32px;
    padding: 0 16px;
  }
  
  .process-cta .btn-primary {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    padding: 14px 24px;
  }
  
  /* Tools */
  .tools-bento {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  
  .tool-bento-card {
    grid-column: span 1;
    padding: 16px 8px;
    text-align: center;
  }
  
  .tool-bento-card .icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
  }
  
  .tool-bento-card h4 {
    font-size: 0.75rem;
    margin-bottom: 4px;
  }
  
  .tool-bento-card p {
    font-size: 0.625rem;
  }
  
  /* Blog/Thoughts */
  .thoughts-bento {
    grid-template-columns: 1fr;
  }
  
  .thoughts-header {
    grid-column: span 1;
  }
  
  .blog-posts-grid {
    grid-column: span 1 !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  
  .blog-posts-grid .thought-bento-card {
    grid-column: span 1 !important;
    padding: 16px;
  }
  
  .thought-bento-card .date {
    font-size: 0.6875rem;
    margin-bottom: 8px;
  }
  
  .thought-bento-card h3 {
    font-size: 0.9375rem;
    line-height: 1.4;
  }
  
  .thought-bento-card .read-time {
    font-size: 0.75rem;
    margin-top: 8px;
  }
  
  /* Contact */
  .contact-bento {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .contact-header {
    grid-column: span 1;
    text-align: center;
    margin-bottom: 24px;
  }
  
  .contact-header .section-title {
    font-size: 1.5rem;
  }
  
  .contact-header p {
    font-size: 0.9375rem;
  }
  
  .contact-form-bento {
    grid-column: span 1;
    padding: 24px;
  }
  
  .contact-info-bento {
    grid-column: span 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  
  .contact-info-item h4 {
    font-size: 0.75rem;
  }
  
  .contact-info-item a {
    font-size: 0.875rem;
  }
  
  .whatsapp-btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 0.9375rem;
  }
  
  /* Footer */
  footer {
    padding: 32px 0;
  }
  
  footer .container {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  footer p {
    font-size: 0.8125rem;
  }
  
  footer .social {
    gap: 20px;
  }
  
  footer .social a {
    font-size: 0.8125rem;
  }
   
  /* Toast */
  #toast-container {
    top: 16px;
    right: 16px;
    left: 16px;
    max-width: 100%;
  }
  
  .toast {
    min-width: auto;
    width: 100%;
    padding: 14px 16px;
    font-size: 0.875rem;
  }
}

/* Responsive Modal */
@media (max-width: 768px) {
  .modal-overlay {
    padding: 16px;
    align-items: flex-end;
  }
  
  .modal-container {
    width: 100%;
    max-height: 90vh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    overflow-y: auto;
  }
  
  .modal-close {
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    font-size: 1.5rem;
  }
  
  .modal-content {
    padding: 24px 20px;
  }
  
  .modal-header {
    margin-bottom: 20px;
    padding-right: 36px;
  }
  
  .modal-badge {
    font-size: 0.6875rem;
    padding: 6px 12px;
    margin-bottom: 12px;
  }
  
  .modal-header h2 {
    font-size: 1.375rem;
    line-height: 1.3;
  }
  
  .modal-subtitle {
    font-size: 0.9375rem;
  }
  
  .modal-screenshot {
    margin-bottom: 20px;
    border-radius: var(--radius-md);
  }
  
  .modal-section {
    margin-bottom: 24px;
  }
  
  .modal-section h3 {
    font-size: 1rem;
    margin-bottom: 12px;
  }
  
  .modal-section p {
    font-size: 0.875rem;
    line-height: 1.5;
  }
  
  .modal-grid {
    gap: 16px;
  }
  
  .modal-item {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  .modal-item .modal-icon {
    font-size: 1.5rem;
  }
  
  .modal-item strong {
    font-size: 0.9375rem;
  }
  
  .modal-item p {
    font-size: 0.8125rem;
  }
  
  .modal-tags {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .modal-tags span {
    padding: 6px 12px;
    font-size: 0.75rem;
  }
  
  .modal-results,
  .modal-list {
    text-align: left;
    padding-left: 20px;
  }
  
  .modal-results span,
  .modal-list li {
    font-size: 0.8125rem;
    display: block;
    margin-bottom: 8px;
  }
  
  .modal-footer {
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
  }
  
  .modal-footer .btn-primary,
  .modal-footer .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 0.9375rem;
  }
}
.glow {
  position: relative;
}

.glow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 150%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.glow:hover::before {
  opacity: 1;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  max-width: 700px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  overflow-x: hidden;
  transform: translateY(100%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: none;
  background: var(--bg-elevated);
  border-radius: 50%;
  font-size: 1.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.modal-close:hover {
  background: var(--border);
  color: var(--text-primary);
  transform: rotate(90deg);
}

.modal-content {
  padding: 48px;
}

.modal-header {
  margin-bottom: 32px;
}

.modal-badge {
  display: inline-block;
  padding: 8px 16px;
  background: var(--accent-light);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.modal-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.modal-subtitle {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 500;
}

.modal-screenshot {
  margin-bottom: 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.modal-screenshot img {
  width: 100%;
  height: auto;
  display: block;
}

.modal-section {
  margin-bottom: 32px;
}

.modal-section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.modal-section p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.modal-grid {
  display: grid;
  gap: 20px;
}

.modal-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.modal-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.modal-item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.modal-item p {
  font-size: 0.875rem;
  margin: 0;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.modal-tags span {
  padding: 8px 16px;
  background: var(--accent-light);
  border-radius: 100px;
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 500;
}

.modal-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.modal-list li {
  padding: 12px 0;
  padding-left: 28px;
  position: relative;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.modal-list li:last-child {
  border-bottom: none;
}

.modal-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

.modal-section.highlight {
  background: var(--bg-elevated);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--accent);
}

.modal-section.highlight p {
  margin-bottom: 16px;
}

.modal-results {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-results span {
  font-size: 0.9375rem;
  color: var(--text-primary);
  font-weight: 500;
}

.modal-footer {
  margin-top: 32px;
  text-align: center;
}

.modal-footer .btn-primary {
  display: inline-flex;
}

/* Modal Image */
.modal-section-image {
  width: 100%;
  border-radius: 12px;
  margin: 20px 0;
  border: 1px solid var(--border);
}

/* Responsive Modal */
@media (max-width: 768px) {
  .modal-overlay {
    padding: 12px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
  }
  
  .modal-container {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 85vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow-y: auto;
    overflow-x: hidden;
    transform: translateY(100%);
  }
  
  .modal-overlay.active .modal-container {
    transform: translateY(0);
  }
  
  .modal-close {
    position: fixed;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 50%;
    font-size: 1.25rem;
    color: var(--text-secondary);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .modal-content {
    padding: 20px 16px;
    padding-top: 48px;
  }
  
  .modal-header {
    margin-bottom: 16px;
    padding-right: 0;
  }
  
  .modal-badge {
    font-size: 0.625rem;
    padding: 4px 10px;
    margin-bottom: 10px;
    display: inline-block;
  }
  
  .modal-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.3;
  }
  
  .modal-subtitle {
    font-size: 0.875rem;
    font-weight: 500;
  }
  
  .modal-screenshot {
    margin-bottom: 16px;
    border-radius: var(--radius-sm);
    overflow: hidden;
  }
  
  .modal-screenshot img {
    width: 100%;
    height: auto;
    display: block;
  }
  
  .modal-section {
    margin-bottom: 16px;
  }
  
  .modal-section h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
  }
  
  .modal-section p {
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--text-secondary);
  }
  
  .modal-grid {
    gap: 12px;
  }
  
  .modal-item {
    flex-direction: row !important;
    text-align: left !important;
    gap: 12px;
    padding: 12px;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
  }
  
  .modal-item .modal-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
  }
  
  .modal-item > div {
    flex: 1;
    min-width: 0;
  }
  
  .modal-item strong {
    font-size: 0.875rem;
    display: block;
    margin-bottom: 2px;
  }
  
  .modal-item p {
    font-size: 0.75rem !important;
    margin: 0;
  }
  
  .modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-start;
  }
  
  .modal-tags span {
    padding: 4px 10px;
    font-size: 0.6875rem;
    border-radius: 100px;
    background: var(--accent-light);
    color: var(--accent);
    font-weight: 500;
  }
  
  .modal-results,
  .modal-list {
    text-align: left;
    padding-left: 16px;
    margin: 0;
  }
  
  .modal-results span,
  .modal-list li {
    font-size: 0.75rem !important;
    display: block;
    margin-bottom: 8px;
    padding: 4px 0;
    line-height: 1.4;
  }
  
  .modal-section.highlight {
    background: var(--bg-elevated);
    padding: 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
  }
  
  .modal-section.highlight p {
    font-size: 0.8125rem;
  }
  
  .modal-footer {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .modal-footer .btn-primary,
  .modal-footer .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
  }
}
