/* ═══════════════════════════════════════════════════════════
   DN.IMMO — Charlotte's Locks Edition
   Accent: #dd5f24 (Farrow & Ball Charlotte's Locks)
   ═══════════════════════════════════════════════════════════ */

:root {
  --accent: #dd5f24;
  --accent-light: #e8854f;
  --accent-dark: #b84d1a;
  --bg-dark: #0f0f0f;
  --bg-section: #141414;
  --bg-alt: #1a1a1a;
  --bg-card: #1e1e1e;
  --text-primary: #f0ede8;
  --text-secondary: #a09a90;
  --text-muted: #6b665e;
  --border: #2a2724;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--accent);
  color: var(--bg-dark);
}

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ═══════════════════ HERO ═══════════════════ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(221, 95, 36, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 720px;
}

.hero-greeting {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.hero-name {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.hero-role {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero-accent-bar {
  width: 80px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

.hero-blurb {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.hero-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-nav a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-primary);
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.hero-nav a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(221, 95, 36, 0.06);
}

.hero-nav a:last-child {
  background: var(--accent);
  color: var(--bg-dark);
  border-color: var(--accent);
  font-weight: 600;
}

.hero-nav a:last-child:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: var(--bg-dark);
}

/* ═══════════════════ SECTIONS ═══════════════════ */

.section {
  padding: 6rem 0;
}

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

.section-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 2px;
  margin-right: 0.75rem;
  vertical-align: middle;
  position: relative;
  top: -2px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin-bottom: 3rem;
  line-height: 1.7;
}

/* ═══════════════════ ABOUT ═══════════════════ */

.about-content {
  margin-bottom: 3rem;
}

.about-content p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  line-height: 1.75;
}

.about-content p:last-child {
  margin-bottom: 0;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.skill-group h3 {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.skill-group ul {
  list-style: none;
}

.skill-group li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 0.25rem 0;
}

/* ═══════════════════ PROJECTS ═══════════════════ */

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

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(221, 95, 36, 0.08);
}

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

.project-header h3 {
  font-size: 1.3rem;
  font-weight: 700;
}

.project-arrow {
  font-size: 1.4rem;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.project-card:hover .project-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

.project-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.5rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-tech span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  background: rgba(221, 95, 36, 0.1);
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
}

/* ═══════════════════ TIMELINE ═══════════════════ */

.timeline {
  position: relative;
  padding-left: 2.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

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

.timeline-marker {
  position: absolute;
  left: -2.5rem;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 3px solid var(--accent);
}

.timeline-item:first-child .timeline-marker {
  background: var(--accent);
}

.timeline-header {
  margin-bottom: 0.75rem;
}

.timeline-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}

.timeline-detail {
  font-weight: 400;
  color: var(--text-secondary);
}

.timeline-role {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  margin-top: 0.2rem;
}

.timeline-date {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.timeline-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ═══════════════════ CONTACT ═══════════════════ */

.contact-container {
  text-align: center;
}

.contact-container .section-title::before {
  display: none;
}

.contact-blurb {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.contact-aside {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.contact-aside a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.contact-aside a:hover {
  border-bottom-color: var(--accent);
}

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

.contact-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  padding: 1.5rem 2.5rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all 0.2s ease;
  min-width: 200px;
}

.contact-link:hover {
  border-color: var(--accent);
  background: rgba(221, 95, 36, 0.04);
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.contact-value {
  color: var(--text-primary);
  font-size: 0.95rem;
}

/* ═══════════════════ FOOTER ═══════════════════ */

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

.footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ═══════════════════ RESPONSIVE ═══════════════════ */

@media (max-width: 640px) {
  .hero {
    padding: 3rem 1.5rem;
    min-height: auto;
    padding-top: 6rem;
    padding-bottom: 4rem;
  }

  .hero-name {
    font-size: 2.8rem;
  }

  .hero-nav {
    flex-direction: column;
  }

  .hero-nav a {
    text-align: center;
  }

  .section {
    padding: 4rem 0;
  }

  .container {
    padding: 0 1.5rem;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

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

  .timeline {
    padding-left: 2rem;
  }

  .timeline-marker {
    left: -2rem;
    width: 14px;
    height: 14px;
  }

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

  .contact-link {
    width: 100%;
    max-width: 300px;
  }
}
