:root {
  color-scheme: light;
  --bg: #f9fafb;
  --surface: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --accent: #2563eb;
  --border: rgba(17, 24, 39, 0.08);
  --radius: 28px;
  --shadow: 0 30px 80px rgba(15, 23, 42, 0.08);
}

.dark {
  --bg: #333333;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
}

.page-shell {
  min-height: 100vh;
  padding: 40px 32px 64px;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto 56px;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #111827 0%, #374151 100%);
  color: white;
  font-weight: 700;
}

.eyebrow {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.tagline {
  margin: 4px 0 0;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--text);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 14px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-link:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: #ffffff;
}

.linkedin {
  background: #0077B5;
}

.twitter {
  background: #000000;
}

.github {
  background: #000000;
}

.theme-toggle {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.theme-toggle:hover {
  opacity: 0.85;
}

.theme-icon {
  width: 100%;
  height: 100%;
  display: block;
}

.clipboard-icon {
  height: 20px;
  width: auto;
  margin-right: 10px;
  display: inline-block;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 48px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}

.hero-copy {
  max-width: 600px;
}

.intro {
  margin: 0 0 16px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 4vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.highlight {
  color: #FF7F00;
}

.description {
  margin: 24px 0 0;
  max-width: 540px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  border: none;
  box-shadow: none;
  transition: transform 0.25s ease, color 0.25s ease;
}

.button.primary,
.button.secondary,
.button.outline {
  color: var(--text);
}

.button:hover {
  transform: translateY(-2px);
}


.hero-panel {
  position: relative;
  min-height: 420px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(245,247,250,0.95));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 42px 32px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.pulse {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.18), transparent 28%),
              radial-gradient(circle at 80% 70%, rgba(17, 24, 39, 0.12), transparent 24%);
}

.panel-card {
  position: relative;
  z-index: 1;
  max-width: 320px;
  padding: 32px;
  border-radius: 24px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(17, 24, 39, 0.06);
  backdrop-filter: blur(18px);
}

.panel-card span {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-card strong {
  display: block;
  font-size: 1.5rem;
  line-height: 1.4;
}

.section-block,
.portfolio-block,
.contact-block {
  max-width: 1180px;
  margin: 80px auto 0;
  padding: 0 0 40px;
}

.section-label {
  margin: 0 0 12px;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.section-block h2,
.portfolio-block h2,
.contact-block h2 {
  margin: 0;
  font-size: clamp(2.2rem, 3vw, 3rem);
  max-width: 680px;
  line-height: 1.05;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 34px;
}

.portfolio-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 30px;
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 72px rgba(15, 23, 42, 0.12);
}

.portfolio-card h3 {
  margin: 0 0 14px;
  font-size: 1.2rem;
}

.portfolio-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.portfolio-card small {
  display: inline-flex;
  margin-top: 18px;
  color: var(--accent);
  font-weight: 600;
}

.site-footer {
  max-width: 1180px;
  margin: 0 auto;
  margin-top: 84px;
  padding: 40px 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.site-footer p {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.alternate-copy {
  color: var(--muted);
  max-width: 700px;
  line-height: 1.8;
  margin-top: 18px;
}

.dark body {
  color: #ffffff;
}

.dark .site-nav a {
  color: #666666;
}

.dark .hero h1 {
  color: #ffffff;
}

.dark .description {
  color: #ffffff;
}

.dark .section-block h2,
.dark .portfolio-block h2,
.dark .contact-block h2 {
  color: #ffffff;
}

.dark .alternate-copy {
  color: #ffffff;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .page-shell {
    padding: 28px 20px 48px;
  }

  .hero-panel {
    min-height: 320px;
    padding: 28px;
  }

  .panel-card {
    padding: 24px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .button {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .hero {
    gap: 32px;
    grid-template-columns: 1fr 350px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .hero-panel {
    min-height: 380px;
  }
}
