/* ================================================================
   schweighauser.online — Personal Landing Page
   Design: Modern, Elegant, Beautiful
   Font: Plus Jakarta Sans
   ================================================================ */

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

:root {
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  --indigo-50: #eef0f4;
  --indigo-100: #dde1ea;
  --indigo-500: #5a6478;
  --indigo-600: #3d4a5c;
  --indigo-700: #2c3545;

  --violet-100: #e4e6ed;
  --violet-500: #6b7585;
  --violet-600: #4a5468;

  --radius: 0.75rem;
  --radius-lg: 1rem;
  --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
  --shadow: 0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── GRADIENT BACKGROUND ───────────────────────────────────────── */
.gradient-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  background: linear-gradient(180deg, var(--indigo-50) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* ── TOP NAV ───────────────────────────────────────────────────── */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 2rem;
  z-index: 1000;
  display: flex;
  justify-content: flex-end;
}

#lang-toggle {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--gray-200);
  color: var(--gray-600);
  font-size: 14px;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 200ms ease;
}

#lang-toggle:hover {
  background: var(--white);
  border-color: var(--gray-300);
  box-shadow: var(--shadow);
}

/* ── HERO SECTION ──────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 2rem;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--indigo-50);
  color: var(--indigo-700);
  font-size: 14px;
  font-weight: 500;
  padding: 0.375rem 0.875rem 0.375rem 0.625rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

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

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

.h1-greeting {
  display: block;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--gray-600);
  margin-bottom: 0.25rem;
}

.h1-name {
  display: block;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--gray-900);
}

.hero-tagline {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--gray-600);
  line-height: 1.6;
  margin: 1.5rem 0 2.5rem;
  max-width: 480px;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  font-size: 16px;
  font-weight: 500;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 200ms ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--indigo-600);
  color: white;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: var(--indigo-700);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
}

.btn-ghost:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
}

.hero-visual {
  position: relative;
}

.hero-photo-wrapper {
  position: relative;
  width: 100%;
}

.hero-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
}

.hero-photo-bg {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 320px;
  background: linear-gradient(135deg, var(--indigo-100) 0%, var(--violet-100) 100%);
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
}

/* ── SECTIONS ──────────────────────────────────────────────────── */
.section {
  padding: 5rem 2rem;
}

.section-alt {
  background: var(--gray-50);
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 3rem;
}

.section-header.centered {
  text-align: center;
}

.section-label {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--indigo-600);
  margin-bottom: 0.75rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.25rem;
  line-height: 1.75;
  color: var(--gray-700);
  margin-bottom: 1.5rem;
}

/* ── ABOUT SECTION ─────────────────────────────────────────────── */
.about-content {
  max-width: 800px;
}

.about-content p {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--gray-200);
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--indigo-600);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 14px;
  color: var(--gray-600);
}

/* ── SKILLS SECTION ────────────────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.skill-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: all 200ms ease;
}

.skill-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.skill-icon {
  width: 48px;
  height: 48px;
  background: var(--indigo-50);
  color: var(--indigo-600);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.skill-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

.skill-card p {
  color: var(--gray-600);
  line-height: 1.6;
}

/* ── PROJECTS SECTION ──────────────────────────────────────────── */
.projects-group {
  margin-bottom: 3rem;
}

.projects-subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 1.5rem;
}

.project-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 2rem;
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: all 200ms ease;
  position: relative;
  overflow: hidden;
}

.project-card:hover {
  border-color: var(--indigo-200);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--indigo-500) 0%, var(--violet-500) 100%);
  transform: translateX(-100%);
  transition: transform 300ms ease;
}

.project-card:hover::before {
  transform: translateX(0);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.project-icon {
  width: 48px;
  height: 48px;
  background: var(--indigo-50);
  color: var(--indigo-600);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-arrow {
  color: var(--gray-400);
  transition: all 200ms ease;
}

.project-card:hover .project-arrow {
  color: var(--indigo-600);
  transform: translate(2px, -2px);
}

.project-badge {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
  background: var(--gray-100);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

.project-card h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.project-card p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.5;
}

.project-locked {
  opacity: 0.9;
}

/* ── TIMELINE SECTION ──────────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gray-200);
}

.timeline-item {
  position: relative;
  padding-bottom: 3rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -3.5rem;
  top: 0.25rem;
  width: 16px;
  height: 16px;
  background: var(--white);
  border: 3px solid var(--indigo-600);
  border-radius: 50%;
}

.timeline-date {
  font-size: 14px;
  font-weight: 600;
  color: var(--indigo-600);
  margin-bottom: 0.5rem;
  display: block;
}

.timeline-content h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}

.timeline-content p {
  font-size: 14px;
  color: var(--gray-600);
}

/* ── CONTACT SECTION ───────────────────────────────────────────── */
.section-contact {
  background: var(--gray-900);
  color: var(--white);
}

.contact-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-content h2 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.contact-content p {
  font-size: 1.125rem;
  color: var(--gray-300);
  margin-bottom: 2.5rem;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-300);
  text-decoration: none;
  font-weight: 500;
  transition: color 200ms ease;
}

.contact-link:hover {
  color: var(--white);
}

.footer {
  padding-top: 3rem;
  border-top: 1px solid var(--gray-800);
  text-align: center;
}

.footer p {
  font-size: 14px;
  color: var(--gray-500);
}

/* ── RESPONSIVE ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 5rem 2rem 3rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    align-items: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-photo-wrapper {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: unset;
    margin: 0 auto 1rem;
  }

  .hero-photo-bg {
    display: none;
  }

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

  .timeline {
    padding-left: 2rem;
  }

  .timeline-marker {
    left: -2.5rem;
  }

  .about-stats {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .contact-links {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 3rem 1rem;
  }

  .hero-photo-wrapper {
    width: 100%;
    max-width: 100%;
    min-height: unset;
  }

  .h1-name {
    font-size: 2.5rem;
  }

  .hero-tagline {
    font-size: 1rem;
  }

  .skills-grid,
  .project-cards {
    grid-template-columns: 1fr;
  }
}