/* ============================================
   Sam Plus Plus — Profile (orange theme)
   Easy to maintain: edit colors in :root only
   ============================================ */

:root {
  /* Orange palette (your brand) */
  --orange: #e85d22;
  --orange-dark: #c94f1a;
  --orange-light: #f07a47;
  --orange-muted: rgba(232, 93, 34, 0.12);

  /* Neutrals */
  --bg: #faf9f7;
  --bg-section: #fff;
  --text: #1a1a1a;
  --text-muted: #5c5c5c;

  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  /* Spacing & layout */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --max-width: 720px;
  --radius: 8px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

/* Header */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-section);
  border-bottom: 1px solid var(--orange-muted);
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
}

.logo-accent {
  color: var(--orange);
}

.nav {
  display: flex;
  gap: var(--space-md);
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
}

.nav a:hover {
  color: var(--orange);
}

/* Hero */
.hero {
  padding: var(--space-xl) var(--space-lg);
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.hero-avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--orange-muted);
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin: 0 0 var(--space-sm);
  letter-spacing: -0.02em;
}

.hero .accent {
  color: var(--orange);
}

.hero-tagline {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin: 0 0 var(--space-xs);
}

.hero-note {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 var(--space-md);
  opacity: 0.9;
}

.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
}

.btn-primary:hover {
  background: var(--orange-dark);
  color: #fff;
}

/* Sections */
.section {
  padding: var(--space-xl) var(--space-lg);
  max-width: var(--max-width);
  margin: 0 auto;
}

.section h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 var(--space-md);
  color: var(--text);
}

.section p {
  margin: 0 0 var(--space-sm);
  color: var(--text);
}

.section p:last-child {
  margin-bottom: 0;
}

.section-lead {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: var(--space-md) !important;
}

.skills-note {
  margin-top: var(--space-md);
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* About */
.about {
  background: var(--bg-section);
  border-radius: var(--radius);
  margin-left: var(--space-lg);
  margin-right: var(--space-lg);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* Work grid */
.work-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-md);
}

.work-card {
  background: var(--bg-section);
  padding: var(--space-md);
  border-radius: var(--radius);
  border-left: 4px solid var(--orange);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.work-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 var(--space-xs);
  color: var(--text);
}

.work-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Skills */
.skills-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-xs);
}

.skills-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: var(--space-xs) 0;
  padding-left: 0;
  color: var(--text);
}

.skills-list li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 0.6em;
  background: var(--orange);
  border-radius: 50%;
}

/* Contact */
.contact {
  background: var(--orange-muted);
  border-radius: var(--radius);
  margin-left: var(--space-lg);
  margin-right: var(--space-lg);
}

.link-linkedin {
  display: inline-block;
  margin-top: var(--space-sm);
  font-weight: 600;
  color: var(--orange);
  text-decoration: none;
}

.link-linkedin:hover {
  color: var(--orange-dark);
  text-decoration: underline;
}

/* Footer */
.site-footer {
  padding: var(--space-md) var(--space-lg);
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  border-top: 1px solid var(--orange-muted);
}

.site-footer p {
  margin: 0;
}

/* Responsive */
@media (max-width: 640px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .section,
  .about,
  .contact {
    margin-left: var(--space-sm);
    margin-right: var(--space-sm);
  }

  .hero,
  .section {
    padding-left: var(--space-sm);
    padding-right: var(--space-sm);
  }
}
