:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --transition-base: 0.3s ease;
  --shadow-lg: 0 30px 60px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 16px 32px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 8px 16px rgba(0, 0, 0, 0.25);
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  scroll-behavior: smooth;
  background-color: #000000;
  color: #f0f0f0;
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
  background-image: none;
  background-color: #000000;
}

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

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

button,
input,
textarea {
  font-family: inherit;
}

[data-theme='light'] body {
  background-color: #ffffff;
  color: #111111;
  background-image: none;
}

[data-theme='light'] .navbar,
[data-theme='light'] .section,
[data-theme='light'] .footer {
  color: #111111;
}

/* Color tokens */
:root {
  --bg-primary: rgba(0, 0, 0, 0.8);
  --bg-card: rgba(18, 18, 18, 0.85);
  --bg-card-solid: #0a0a0a;
  --bg-card-light: rgba(255, 255, 255, 0.95);
  --accent: #ffffff;
  --accent-strong: #ffffff;
  --accent-secondary: #999999;
  --accent-gradient: linear-gradient(135deg, #ffffff 0%, #888888 100%);
  --text-muted: rgba(255, 255, 255, 0.6);
  --border-soft: rgba(255, 255, 255, 0.1);
}

[data-theme='light'] {
  --bg-primary: rgba(255, 255, 255, 0.9);
  --bg-card: rgba(245, 245, 245, 0.9);
  --bg-card-solid: #ffffff;
  --bg-card-light: rgba(255, 255, 255, 0.98);
  --accent: #000000;
  --accent-strong: #000000;
  --accent-secondary: #555555;
  --accent-gradient: linear-gradient(135deg, #000000 0%, #444444 100%);
  --text-muted: rgba(0, 0, 0, 0.55);
  --border-soft: rgba(0, 0, 0, 0.1);
}

/* Utilities */
.highlight {
  color: #ffffff;
  font-weight: 600;
}

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

.badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
  margin-right: 12px;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
}

[data-theme='light'] .highlight {
  color: #000000;
}

[data-theme='light'] .badge-dot {
  background: #000000;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
}

.section {
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}

.container {
  width: min(1100px, 88%);
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.section-header {
  text-align: center;
  margin-bottom: 45px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
}

[data-theme='light'] .section-tag {
  background: rgba(0, 0, 0, 0.06);
  color: #333333;
}

.section-title {
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 700;
  margin: 18px 0 12px;
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Cursor glow */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  height: 320px;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease;
  z-index: 1;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10;
  backdrop-filter: blur(22px);
  background: rgba(0, 0, 0, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.4s ease, border 0.4s ease, transform 0.4s ease;
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme='light'] .navbar {
  background: rgba(255, 255, 255, 0.75);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme='light'] .navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
}

.nav-container {
  max-width: min(1120px, 90%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 20px 0;
  position: relative;
  gap: 18px;
}

.nav-logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 1px;
}

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

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  margin-left: auto;
}

.nav-link {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  position: relative;
  padding: 8px 0;
  transition: color var(--transition-base);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
}

[data-theme='light'] .nav-link:hover,
[data-theme='light'] .nav-link.active {
  color: #111111;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  padding: 10px 22px;
  border-radius: 999px;
  background: #ffffff;
  color: #000000 !important;
  font-weight: 600;
}

[data-theme='light'] .nav-cta {
  background: #000000;
  color: #ffffff !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 10px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Theme toggle */
.theme-toggle {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background var(--transition-base), transform var(--transition-base), color var(--transition-base);
}

.theme-toggle i {
  font-size: 18px;
}

.theme-toggle:hover {
  transform: translateY(-2px);
}

[data-theme='light'] .theme-toggle {
  color: #111111;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  border-radius: 999px;
  padding: 14px 26px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.btn i {
  font-size: 14px;
}

.btn-primary {
  background: #ffffff;
  color: #000000;
  box-shadow: 0 18px 32px rgba(255, 255, 255, 0.15);
}

[data-theme='light'] .btn-primary {
  background: #000000;
  color: #ffffff;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.2);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

[data-theme='light'] .btn-outline {
  color: #111111;
  border-color: rgba(0, 0, 0, 0.12);
}

.btn-primary:hover,
.btn-outline:hover {
  transform: translateY(-4px);
}

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

/* Hero */
.hero {
  min-height: 100vh;
  padding: 100px clamp(24px, 5vw, 60px) 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-grid-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20%;
  align-items: start;
  width: 100%;
  max-width: 1100px;
}

.hero-col {
  display: flex;
  flex-direction: column;
}

.hero-col-left {
  align-items: center;
  gap: 20px;
}

.hero-tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 280px;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  color: var(--text-muted);
  transition: all var(--transition-base);
}

.tech-badge i {
  font-size: 14px;
  color: var(--accent-secondary);
}

.tech-badge:hover {
  border-color: var(--accent-secondary);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.hero-col-right {
  align-items: flex-start;
  gap: 16px;
}

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

.hero-social-horizontal .social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  color: var(--text-primary);
  font-size: 16px;
  transition: all var(--transition-base);
}

.hero-social-horizontal .social-link:hover {
  background: var(--accent);
  color: var(--bg-card-solid);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.15);
}

[data-theme='light'] .hero-social-horizontal .social-link:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.hero-stats-horizontal {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 10px;
}

.hero-stats-horizontal .stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.hero-stats-horizontal .stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-soft);
}

.hero-floating-cards {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}

.hero-floating-cards .floating-card {
  position: relative;
  animation: none;
}

.hero-location {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 15px;
}

.hero-location i {
  color: var(--accent-secondary);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-gradient {
  position: absolute;
  top: -30%;
  right: -18%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 65%);
  filter: blur(2px);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.2;
}

.floating-shapes .shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0.04;
}

.shape-1 {
  width: 140px;
  height: 140px;
  top: 18%;
  left: 12%;
  animation: float 14s ease-in-out infinite;
}

.shape-2 {
  width: 90px;
  height: 90px;
  bottom: 18%;
  right: 18%;
  animation: float 16s ease-in-out infinite;
}

.shape-3 {
  width: 60px;
  height: 60px;
  top: 42%;
  right: 32%;
  animation: float 12s ease-in-out infinite;
}

.shape-4 {
  width: 120px;
  height: 120px;
  bottom: 8%;
  left: 24%;
  animation: float 18s ease-in-out infinite;
}

.hero-image {
  position: relative;
}

.hero-image-mobile {
  display: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

[data-theme='light'] .hero-badge {
  background: rgba(0, 0, 0, 0.06);
  color: rgba(0, 0, 0, 0.7);
}

.hero-title {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  margin: 0 0 12px;
  font-weight: 800;
}

.name {
  display: block;
}

.title-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 500;
  color: var(--text-muted);
  min-height: 32px;
}

.cursor {
  color: var(--accent-secondary);
}

.hero-description {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.7;
  margin: 0;
  max-width: 520px;
}

.hero-tagline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin: 0;
  max-width: 520px;
  padding: 10px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 26px;
  border-radius: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  margin-bottom: 40px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.stat-number {
  font-size: 38px;
  font-weight: 700;
}

.stat-plus {
  color: var(--accent-secondary);
  font-weight: 700;
}

.stat-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
}

[data-theme='light'] .stat-divider {
  background: rgba(0, 0, 0, 0.1);
}

.hero-social {
  display: flex;
  align-items: center;
  gap: 14px;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  transition: transform var(--transition-base), border var(--transition-base), color var(--transition-base);
}

.social-link:hover {
  transform: translateY(-4px);
  color: var(--accent);
  border-color: var(--accent);
}

.image-container {
  position: relative;
  width: 280px;
  margin: 0 auto;
}

.image-border {
  position: absolute;
  inset: -18px;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 0;
  filter: drop-shadow(0 25px 45px rgba(0, 0, 0, 0.5));
}

[data-theme='light'] .image-border {
  border-color: rgba(0, 0, 0, 0.15);
  filter: drop-shadow(0 25px 45px rgba(0, 0, 0, 0.15));
}

.image-glow {
  position: absolute;
  inset: -24px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
  filter: blur(30px);
  z-index: 0;
}

[data-theme='light'] .image-glow {
  background: radial-gradient(circle, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
}

.image-container img {
  position: relative;
  z-index: 1;
  border-radius: 26px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}

.image-badge {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 24px;
  border-radius: 999px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

[data-theme='light'] .image-badge {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.1);
  color: #000000;
}

.floating-card {
  position: absolute;
  padding: 12px 18px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px);
}

.card-1 {
  top: 16%;
  right: 12%;
  animation: float 8s ease-in-out infinite;
}

.card-2 {
  bottom: 36%;
  right: -6%;
  animation: float 10s ease-in-out infinite;
}

.card-3 {
  bottom: 8%;
  left: -10%;
  animation: float 9s ease-in-out infinite;
}

.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  opacity: 0.6;
  transition: opacity var(--transition-base);
}

.scroll-indicator:hover {
  opacity: 1;
}

.mouse {
  width: 28px;
  height: 46px;
  border: 2px solid currentColor;
  border-radius: 16px;
  display: flex;
  justify-content: center;
  padding: 6px 0;
}

.wheel {
  width: 4px;
  height: 10px;
  background: currentColor;
  border-radius: 999px;
  animation: scrollWheel 1.6s ease-in-out infinite;
}

/* About */
.about {
  padding-top: 60px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  align-items: center;
}

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

.lead {
  font-size: 20px;
  color: #fff;
}

[data-theme='light'] .lead {
  color: #111111;
}

.about-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 36px 0;
}

.info-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
}

.info-item i {
  color: var(--accent-secondary);
  font-size: 20px;
}

.info-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.info-value {
  font-weight: 600;
}

.available {
  color: #ffffff;
}

[data-theme='light'] .available {
  color: #000000;
}

.about-actions {
  display: flex;
  gap: 16px;
}

.code-window {
  border-radius: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.window-header {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-soft);
}

.window-dots {
  display: flex;
  gap: 8px;
}

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

.dot.red {
  background: #666666;
}

.dot.yellow {
  background: #999999;
}

.dot.green {
  background: #cccccc;
}

.window-title {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 13px;
}

.window-content {
  padding: 28px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  color: #cccccc;
}

[data-theme='light'] .window-content {
  color: #333333;
}

.window-content .keyword {
  color: #e0e0e0;
}

.window-content .variable {
  color: #b0b0b0;
}

.window-content .property {
  color: #d0d0d0;
}

.window-content .string {
  color: #ffffff;
}

.window-content .number {
  color: #aaaaaa;
}

.window-content .function {
  color: #e8e8e8;
}

[data-theme='light'] .window-content .keyword {
  color: #222222;
}

[data-theme='light'] .window-content .variable {
  color: #444444;
}

[data-theme='light'] .window-content .property {
  color: #333333;
}

[data-theme='light'] .window-content .string {
  color: #000000;
}

[data-theme='light'] .window-content .number {
  color: #555555;
}

[data-theme='light'] .window-content .function {
  color: #111111;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.service-card {
  position: relative;
  padding: 32px;
  border-radius: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), border var(--transition-base), box-shadow var(--transition-base);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-md);
}

[data-theme='light'] .service-card:hover {
  border-color: rgba(0, 0, 0, 0.15);
}

.service-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 24px;
}

[data-theme='light'] .service-icon {
  background: rgba(0, 0, 0, 0.06);
  color: #000000;
}

.service-title {
  font-size: 20px;
  font-weight: 600;
}

.service-description {
  color: var(--text-muted);
  line-height: 1.7;
}

.service-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.service-features li {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--text-muted);
}

.service-features i {
  color: #ffffff;
}

[data-theme='light'] .service-features i {
  color: #000000;
}

.featured {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme='light'] .featured {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.15);
}

.featured .service-icon {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

[data-theme='light'] .featured .service-icon {
  background: rgba(0, 0, 0, 0.08);
  color: #000000;
}

.featured-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

[data-theme='light'] .featured-badge {
  background: rgba(0, 0, 0, 0.08);
  color: #000000;
}

/* Skills */
.skills-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.skills-category {
  padding: 30px;
  border-radius: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.category-title {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 19px;
  font-weight: 600;
}

.category-title i {
  color: var(--accent-secondary);
  font-size: 22px;
}

.skills-list {
  display: grid;
  gap: 14px;
}

.skill-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme='light'] .skill-item {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
}

.skill-item i {
  font-size: 18px;
  color: var(--accent-secondary);
}

.skill-level {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.expert {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.advanced {
  background: rgba(255, 255, 255, 0.08);
  color: #cccccc;
}

.intermediate {
  background: rgba(255, 255, 255, 0.05);
  color: #999999;
}

[data-theme='light'] .expert {
  background: rgba(0, 0, 0, 0.1);
  color: #000000;
}

[data-theme='light'] .advanced {
  background: rgba(0, 0, 0, 0.06);
  color: #333333;
}

[data-theme='light'] .intermediate {
  background: rgba(0, 0, 0, 0.04);
  color: #666666;
}

/* Timeline */
.timeline {
  display: grid;
  gap: 32px;
  position: relative;
  padding-left: 28px;
  margin-bottom: 80px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 3px;
  width: 2px;
  background: rgba(255, 255, 255, 0.12);
}

[data-theme='light'] .timeline::before {
  background: rgba(0, 0, 0, 0.1);
}

.timeline-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 24px;
  align-items: start;
}

.timeline-marker {
  position: relative;
  height: 100%;
}

.marker-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 3px solid rgba(255, 255, 255, 0.3);
  position: absolute;
  top: 6px;
  left: -6px;
}

.marker-dot.current {
  width: 20px;
  height: 20px;
  top: 4px;
  border: 4px solid rgba(255, 255, 255, 0.6);
}

[data-theme='light'] .marker-dot {
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(0, 0, 0, 0.2);
}

[data-theme='light'] .marker-dot.current {
  border-color: rgba(0, 0, 0, 0.5);
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.timeline-date {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--text-muted);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.timeline-badge {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.timeline-badge.teaching {
  background: rgba(255, 255, 255, 0.06);
  color: #cccccc;
}

[data-theme='light'] .timeline-badge {
  background: rgba(0, 0, 0, 0.08);
  color: #000000;
}

[data-theme='light'] .timeline-badge.teaching {
  background: rgba(0, 0, 0, 0.05);
  color: #333333;
}

.timeline-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  margin: 4px 0 12px 0;
  opacity: 0.85;
}

.timeline-title {
  font-size: 22px;
  font-weight: 600;
}

.timeline-company {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
}

.timeline-description {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--text-muted);
  line-height: 1.7;
}

.timeline-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.timeline-tech span {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #cccccc;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

[data-theme='light'] .timeline-tech span {
  background: rgba(0, 0, 0, 0.06);
  color: #333333;
}

/* Timeline Credits (Startup Programs) */
.timeline-credits {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0 8px;
}

.timeline-credits .credit-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.timeline-credits .credit-item:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.08);
}

.timeline-credits .credit-item i {
  font-size: 16px;
  color: var(--accent);
}

.timeline-credits .credit-item strong {
  color: var(--accent);
  font-weight: 700;
}

[data-theme='light'] .timeline-credits .credit-item {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme='light'] .timeline-credits .credit-item:hover {
  border-color: rgba(0, 0, 0, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

/* Education */
.education-section {
  border-top: 1px solid var(--border-soft);
  padding-top: 60px;
}

.subsection-title {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  font-size: 22px;
  margin-bottom: 32px;
}

.education-grid {
  display: grid;
  gap: 24px;
}

.education-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border-radius: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
}

.education-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 24px;
}

[data-theme='light'] .education-icon {
  background: rgba(0, 0, 0, 0.06);
  color: #000000;
}

.education-content h4 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.education-school {
  margin: 8px 0;
  color: var(--text-muted);
}

.education-year {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.about-text a.highlight {
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  transition: color var(--transition-base), border-color var(--transition-base);
}

.about-text a.highlight:hover {
  color: #fff;
  border-color: #fff;
}

[data-theme='light'] .about-text a.highlight:hover {
  color: #111111;
  border-color: #111111;
}

.timeline-company a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-base);
}

.timeline-company a:hover {
  color: #cccccc;
}

[data-theme='light'] .timeline-company a:hover {
  color: #333333;
}

.featured-project {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.featured-project .project-placeholder.startup {
  background: rgba(255, 255, 255, 0.15);
}

.featured-project .project-category {
  color: #ffffff;
}

[data-theme='light'] .featured-project {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.12);
}

/* Projects */
.projects {
  padding-top: 120px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.project-card {
  border-radius: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), border var(--transition-base), box-shadow var(--transition-base);
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-md);
}

[data-theme='light'] .project-card:hover {
  border-color: rgba(0, 0, 0, 0.15);
}

.project-image {
  position: relative;
  padding: 80px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
}

[data-theme='light'] .project-image {
  background: rgba(0, 0, 0, 0.03);
}

.project-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transition: opacity var(--transition-base);
}

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

.project-link {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 18px;
  transition: transform var(--transition-base), background var(--transition-base);
}

.project-link:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.25);
}

.project-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-category {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.project-title {
  font-size: 22px;
  margin: 0;
}

.project-description {
  color: var(--text-muted);
  line-height: 1.7;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.project-tech span {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

[data-theme='light'] .project-tech span {
  background: rgba(0, 0, 0, 0.08);
}

.projects-cta {
  text-align: center;
  margin-top: 48px;
}

/* Testimonials */
.testimonials {
  padding-top: 120px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.testimonial-card {
  padding: 32px;
  border-radius: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.testimonial-quote {
  font-size: 32px;
  color: rgba(255, 255, 255, 0.3);
}

.testimonial-text {
  color: var(--text-muted);
  line-height: 1.8;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-info h4 {
  margin: 0;
  font-size: 18px;
}

.author-info span {
  color: var(--text-muted);
  font-size: 14px;
}

.testimonial-rating {
  display: flex;
  gap: 6px;
  color: #ffffff;
}

/* Contact */
.contact {
  padding-top: 120px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
}

.contact-info {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  box-shadow: var(--shadow-sm);
}

.contact-intro h3 {
  margin: 0 0 16px;
  font-size: 26px;
}

.contact-intro p {
  color: var(--text-muted);
  line-height: 1.8;
}

.contact-methods {
  display: grid;
  gap: 16px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: inherit;
  transition: transform var(--transition-base), border var(--transition-base);
}

[data-theme='light'] .contact-method {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.08);
}

.contact-method:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
}

[data-theme='light'] .contact-method:hover {
  border-color: rgba(0, 0, 0, 0.15);
}

.method-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 20px;
}

[data-theme='light'] .method-icon {
  background: rgba(0, 0, 0, 0.06);
  color: #000000;
}

.method-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.method-value {
  font-weight: 600;
}

.contact-availability {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--text-muted);
}

.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

[data-theme='light'] .availability-badge {
  background: rgba(0, 0, 0, 0.08);
  color: #000000;
}

.pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  position: relative;
}

.pulse::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid currentColor;
  animation: pulse 2s infinite;
  opacity: 0.6;
}

.contact-form-container {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.contact-form {
  display: grid;
  gap: 22px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.4);
  color: inherit;
  transition: border var(--transition-base), background var(--transition-base);
}

[data-theme='light'] .form-group input,
[data-theme='light'] .form-group textarea {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(0, 0, 0, 0.12);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.6);
}

[data-theme='light'] .form-group input:focus,
[data-theme='light'] .form-group textarea:focus {
  background: rgba(255, 255, 255, 0.95);
}

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

.form-status {
  margin-top: 14px;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.form-status:empty {
  display: none;
}

.form-status.success {
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.form-status.error {
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cccccc;
}

[data-theme='light'] .form-status.success {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.15);
  color: #000000;
}

[data-theme='light'] .form-status.error {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.1);
  color: #333333;
}

/* Footer */
.footer {
  padding: 50px 0 30px;
  background: rgba(0, 0, 0, 0.9);
  margin-top: 60px;
}

[data-theme='light'] .footer {
  background: rgba(0, 0, 0, 0.03);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 30px;
}

.footer-logo {
  font-size: 26px;
  font-weight: 700;
}

.footer-tagline {
  color: var(--text-muted);
  margin-top: 18px;
  max-width: 320px;
  line-height: 1.6;
}

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

.footer-nav h4,
.footer-social h4 {
  margin: 0 0 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.footer-nav a {
  color: inherit;
  transition: color var(--transition-base);
}

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

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  color: var(--text-muted);
  font-size: 14px;
}

.footer-credit i {
  color: #ffffff;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 26px;
  right: 22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #000000;
  border: none;
  cursor: pointer;
  box-shadow: 0 18px 32px rgba(255, 255, 255, 0.12);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base), transform var(--transition-base);
  z-index: 9;
}

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

[data-theme='light'] .back-to-top {
  background: #000000;
  color: #ffffff;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.15);
}

/* Animations */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

@keyframes scrollWheel {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(10px);
    opacity: 0;
  }
}

@keyframes pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.1;
  }
  100% {
    transform: scale(0.9);
    opacity: 0.6;
  }
}

/* Media queries */
@media (max-width: 900px) {
  .hero-grid-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-col-left {
    order: 2;
  }

  .hero-col-right {
    order: 1;
    align-items: center;
  }

  .hero-col-left .hero-image {
    display: none;
  }

  .hero-image-mobile {
    display: flex;
    justify-content: center;
    margin: 10px 0;
  }

  .hero-image-mobile .image-container {
    width: 200px;
  }

  .hero-stats-horizontal {
    justify-content: center;
  }

  .hero-description {
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }

  .image-container {
    width: 220px;
  }

  .scroll-indicator {
    display: none;
  }

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

  .skills-container {
    grid-template-columns: 1fr;
  }

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

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

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

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 820px) {
  .hero-stats-horizontal {
    flex-direction: column;
    gap: 16px;
  }

  .hero-stats-horizontal .stat {
    align-items: center;
  }

  .hero-stats-horizontal .stat-divider {
    width: 60px;
    height: 1px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-12px);
    width: calc(100% - 40px);
    max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    flex-direction: column;
    gap: 12px;
    padding: 26px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base), transform var(--transition-base);
    margin-left: 0;
    z-index: 12;
  }

  .nav-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

  .nav-link {
    font-size: 13px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .stat-divider {
    display: none;
  }

  .about-grid {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .about-content {
    width: 100%;
    max-width: 100%;
  }

  .about-visual {
    width: 100%;
    max-width: 100%;
    margin-top: 30px;
  }

  .about-text {
    width: 100%;
    max-width: 100%;
  }

  .about-text p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .about-info {
    display: block;
    width: 100%;
  }

  .info-item {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 12px;
  }

  .about-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .about-actions .btn {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
    text-align: center;
  }

  .code-window {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .window-content {
    overflow-x: auto;
    font-size: 11px;
    padding: 16px;
  }

  .window-content pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
  }

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

  .timeline {
    padding-left: 20px;
    gap: 24px;
    margin-bottom: 60px;
  }

  .timeline::before {
    left: 1px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .timeline-marker {
    display: none;
  }

  .timeline-content {
    padding: 20px;
    border-radius: 16px;
    gap: 12px;
  }

  .timeline-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .timeline-title {
    font-size: 18px;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .timeline-date {
    font-size: 12px;
  }

  .timeline-description {
    padding-left: 14px;
    font-size: 14px;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .timeline-tech {
    gap: 6px;
  }

  .timeline-tech span {
    padding: 4px 10px;
    font-size: 11px;
  }

  .timeline-credits {
    gap: 8px;
  }

  .timeline-credits .credit-item {
    padding: 6px 12px;
    font-size: 12px;
  }

  .timeline-subtitle {
    font-size: 12px;
  }

  .education-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
  }

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

  .section {
    padding: 50px 0;
  }

  .container {
    width: 100%;
    padding: 0 20px;
  }

  .about-text p,
  .about-text .lead {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .hero {
    padding: 100px clamp(20px, 8vw, 80px) 60px;
  }

  .theme-toggle {
    right: 16px;
  }

  .footer-links {
    flex-direction: column;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .hero-title {
    font-size: 42px;
  }

  .title-line {
    font-size: 20px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .section-title {
    font-size: 32px;
  }

  .timeline {
    padding-left: 0;
  }

  .timeline::before {
    display: none;
  }

  .timeline-content {
    padding: 16px;
  }

  .timeline-title {
    font-size: 16px;
  }

  .timeline-description {
    padding-left: 10px;
    font-size: 13px;
  }

  .contact-form-container,
  .contact-info {
    padding: 28px;
  }

  .theme-toggle {
    width: 42px;
    height: 42px;
  }

  .back-to-top {
    right: 16px;
    bottom: 20px;
  }
}
