/* ============================================================
   Adrian Heider — Personal Website Styles
   ============================================================ */

/* --- Reset & Base ----------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --text: #1d1d1f;
  --text-muted: #6e6e73;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --border: #d2d2d7;
  --card-bg: #f5f5f7;
  --nav-height: 64px;
  --max-width: 1080px;
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.2s ease;
  --shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 40px rgba(0, 0, 0, 0.14);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--accent-hover); }

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

/* --- Layout ----------------------------------------------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 96px 0;
}

/* --- Navigation ------------------------------------------- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: box-shadow var(--transition);
}

nav.scrolled {
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.1);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}
.nav-logo:hover { color: var(--accent); }

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

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 980px;
  font-weight: 500;
  transition: background var(--transition), transform var(--transition) !important;
}
.nav-cta:hover {
  background: var(--accent-hover) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Hero -------------------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  background: var(--bg);
}

.hero-content {
  max-width: 680px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 20px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 560px;
}

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

/* --- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 980px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 113, 227, 0.35);
}

.btn-secondary {
  background: var(--bg-alt);
  color: var(--text);
}
.btn-secondary:hover {
  background: var(--border);
  color: var(--text);
  transform: translateY(-2px);
}

/* --- Stats bar -------------------------------------------- */
.stats-bar {
  background: var(--bg-alt);
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-number {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 8px;
}

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

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

.about-left h2 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 24px;
}

.about-left p {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

/* --- Principles ------------------------------------------- */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.principle-card {
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  padding: 20px;
}

.principle-icon {
  font-size: 22px;
  margin-bottom: 10px;
}

.principle-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.principle-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- Skills ----------------------------------------------- */
.skills-section {
  background: var(--bg-alt);
}

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

.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.section-header p {
  font-size: 18px;
  color: var(--text-muted);
  margin-top: 12px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.skill-group {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 24px;
  border: 1px solid var(--border);
}

.skill-group-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-alt);
  padding: 4px 10px;
  border-radius: 6px;
}

/* --- Experience ------------------------------------------- */
.exp-list {
  max-width: 760px;
  margin: 0 auto;
}

.exp-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 32px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}
.exp-item:first-child { padding-top: 0; }
.exp-item:last-child { border-bottom: none; }

.exp-date {
  font-size: 14px;
  color: var(--text-muted);
  padding-top: 4px;
}

.exp-role {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.exp-company {
  font-size: 15px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 14px;
}

.exp-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.exp-bullets li {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  padding-left: 18px;
  position: relative;
}
.exp-bullets li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.4;
}

/* --- Portfolio -------------------------------------------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.portfolio-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--border);
  display: block;
  color: inherit;
  text-decoration: none;
}
.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #f2f2f7;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  display: block;
}

.card-body {
  padding: 22px;
}

.card-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 16px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  background: rgba(0, 113, 227, 0.08);
  padding: 3px 9px;
  border-radius: 6px;
}

/* --- Page hero (interior pages) --------------------------- */
.page-hero {
  padding: calc(var(--nav-height) + 72px) 0 72px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 540px;
}

/* --- CTA Section ------------------------------------------ */
.cta-section {
  background: var(--text);
  color: #fff;
  text-align: center;
}

.cta-section h2 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 18px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 36px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.btn-white {
  background: #fff;
  color: var(--text);
}
.btn-white:hover {
  background: #f5f5f7;
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,255,255,0.2);
}

/* --- Contact Page ----------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: start;
}

.contact-info h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 36px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0, 113, 227, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-item-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-item-value {
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
}

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

/* --- Form ------------------------------------------------- */
.contact-form-wrap {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 40px;
  border: 1px solid var(--border);
}

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

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-submit {
  width: 100%;
  justify-content: center;
}

.form-success {
  display: none;
  background: #e8f8ee;
  border: 1.5px solid #34c759;
  color: #1a7c34;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 500;
  margin-top: 16px;
  text-align: center;
}

.form-success.visible { display: block; }

/* --- Footer ----------------------------------------------- */
footer {
  background: var(--text);
  color: rgba(255,255,255,0.6);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-name {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-links a:hover { color: #fff; }

.footer-copy {
  font-size: 13px;
  width: 100%;
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* --- Animations ------------------------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* --- Spotlight Section ------------------------------------ */
.spotlight-section {
  background: linear-gradient(135deg, #0a0a0f 0%, #0d1a2e 50%, #0a1628 100%);
  color: #fff;
  overflow: hidden;
  position: relative;
}

.spotlight-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(0, 113, 227, 0.18) 0%, transparent 65%);
  pointer-events: none;
}

.spotlight-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.spotlight-text .section-eyebrow {
  color: #64a8f5;
}

.spotlight-text h2 {
  color: #fff;
  font-size: 44px;
  margin: 12px 0 16px;
}

.spotlight-sub {
  color: rgba(255,255,255,0.72);
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 28px;
}

.spotlight-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}

.spotlight-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.85);
  font-size: 15px;
}

.spotlight-features li svg {
  flex-shrink: 0;
  color: #34c759;
}

.spotlight-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.spotlight-actions .btn-secondary {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.25);
}

.spotlight-actions .btn-secondary:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.45);
}

.spotlight-image {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.spotlight-image img {
  width: 100%;
  max-width: 480px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 32px 64px rgba(0,0,0,0.5));
  border-radius: 12px;
}

/* --- Responsive ------------------------------------------- */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .exp-item { grid-template-columns: 1fr; gap: 8px; }
  .exp-date { color: var(--accent); font-weight: 600; }
  .spotlight-inner { grid-template-columns: 1fr; gap: 40px; }
  .spotlight-image { order: -1; }
  .spotlight-image img { max-width: 360px; }
  .spotlight-text h2 { font-size: 34px; }
}

@media (max-width: 600px) {
  section { padding: 64px 0; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .form-row { grid-template-columns: 1fr; }
  .nav-links { display: none; flex-direction: column; position: fixed; top: var(--nav-height); left: 0; right: 0; background: var(--bg); padding: 20px 24px 32px; border-bottom: 1px solid var(--border); gap: 20px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .page-hero h1 { font-size: 36px; }
  .principles-grid { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 24px; }
  .hero h1 { font-size: 38px; }
}
