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

:root {
  --gray-50: #fafafa;
  --gray-900: #111111;
  --gray-600: #6e6e73;
  --blue: #0071e3;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: #fff;
  color: var(--gray-900);
  overflow-x: hidden;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 22px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--gray-900);
  font-size: 12px;
  font-weight: 400;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.nav-links a:hover {
  opacity: 1;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 22px 80px;
  background: #fff;
}

.hero-title {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#hero-typed {
  min-height: 1.1em;
}

.typing-cursor {
  width: 2px;
  height: 1em;
  background: var(--gray-900);
  display: inline-block;
  animation: blink 1s steps(1) infinite;
}

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

.hero-subtitle {
  font-size: clamp(21px, 3vw, 28px);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--gray-900);
  line-height: 1.2;
  max-width: 800px;
  margin: 0 auto 40px;
}

.hero-description {
  font-size: 19px;
  line-height: 1.47;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto 48px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 22px;
  border-radius: 980px;
  font-size: 17px;
  text-decoration: none;
  transition: all 0.3s;
  font-weight: 400;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-primary:hover {
  background: #0077ed;
}

.btn-secondary {
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--blue);
}

.btn-secondary:hover {
  background: var(--blue);
  color: #fff;
}

/* Scroll Sections */
.scroll-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 22px;
  opacity: 0;
  transform: translateY(60px);
}

.scroll-section.active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.section-dark {
  background: var(--gray-900);
  color: #fff;
}

.section-light {
  background: var(--gray-50);
  color: var(--gray-900);
}

.section-content {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.section-eyebrow {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 12px;
  color: var(--blue);
}

.section-dark .section-eyebrow {
  color: #2997ff;
}

.section-headline {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.07;
  margin-bottom: 24px;
}

.section-description {
  font-size: 21px;
  line-height: 1.38;
  color: var(--gray-600);
  max-width: 700px;
  margin: 0 auto 48px;
}

.section-dark .section-description {
  color: #a1a1a6;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 60px;
}

.feature-card {
  text-align: left;
  padding: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 18px;
}

.personal-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.icon-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: linear-gradient(135deg, #6dd5ed 0%, #2193b0 100%);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 20px;
}

.icon-compact {
  width: 90px;
  height: 90px;
  border-radius: 20px;
  font-size: 26px;
}

.feature-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-text {
  font-size: 17px;
  line-height: 1.47;
  color: #a1a1a6;
}

.feature-list {
  margin-top: 18px;
  display: grid;
  gap: 10px;
  padding-left: 18px;
  color: #e5e5e7;
  line-height: 1.5;
}

/* Project Showcase */
.projects-grid {
  display: grid;
  gap: 60px;
  margin-top: 80px;
}

.project-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.project-card:nth-child(even) {
  direction: rtl;
}

.project-card:nth-child(even) > * {
  direction: ltr;
}

.project-image {
  width: 100%;
  aspect-ratio: 4/3;
  position: relative;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project-image--photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--project-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.92;
}

.project-image--calm {
  position: relative;
  background: linear-gradient(135deg, #d9e4ec, #f3f7fa);
  color: #0f172a;
  overflow: hidden;
}

.project-image--code {
  background: radial-gradient(circle at 20% 20%, rgba(0, 113, 227, 0.3), rgba(0, 113, 227, 0)),
              radial-gradient(circle at 80% 0%, rgba(118, 75, 162, 0.35), rgba(118, 75, 162, 0)),
              linear-gradient(135deg, #0f172a 0%, #111827 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.project-image--code::after {
  content: '';
  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: 18px 18px;
  opacity: 0.8;
  pointer-events: none;
}

.project-image-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 22px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 40%, rgba(15, 23, 42, 0.5) 100%);
  color: #f8fafc;
}

.project-overlay-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
}

.project-overlay-text {
  margin: 0;
  font-size: 15px;
  color: #e5e7eb;
}

.project-content {
  text-align: left;
}

.project-title {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 16px;
}

.project-description {
  font-size: 19px;
  line-height: 1.47;
  color: var(--gray-600);
  margin-bottom: 24px;
}

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

.tag {
  padding: 6px 14px;
  background: rgba(0, 113, 227, 0.1);
  color: var(--blue);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
}

.project-link {
  color: var(--blue);
  text-decoration: none;
  font-size: 17px;
  font-weight: 500;
}

.project-link:hover {
  text-decoration: underline;
}

/* Stats Section */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-top: 80px;
}

.stat-item {
  text-align: left;
  padding: 28px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stat-number {
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #ffffff;
}

.stat-label {
  font-size: 16px;
  color: #cfd2d5;
  line-height: 1.5;
}

/* Footer */
footer {
  background: var(--gray-50);
  padding: 60px 22px;
  text-align: center;
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  list-style: none;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--gray-600);
  text-decoration: none;
  font-size: 14px;
}

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

.footer-copyright {
  font-size: 12px;
  color: var(--gray-600);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .project-card {
    grid-template-columns: 1fr;
  }

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