/* ============================================================
   Carlos Nagovitch — Portfolio
   Dark minimal design system
   ============================================================ */

/* ---- Design Tokens ---------------------------------------- */
:root {
  /* Backgrounds */
  --bg:      #0a0a0a;
  --bg-1:    #111111;
  --bg-2:    #161616;

  /* Surfaces (glassmorphism) */
  --surface:       rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border:        rgba(255, 255, 255, 0.08);
  --border-hover:  rgba(255, 255, 255, 0.16);

  /* Accent */
  --accent:      #f97316;
  --accent-dim:  rgba(249, 115, 22, 0.12);
  --accent-glow: rgba(249, 115, 22, 0.06);

  /* Text */
  --text-1: #f1f1f1;
  --text-2: #a1a1aa;
  --text-3: #71717a;

  /* Theme-dependent helpers */
  --chip:       rgba(255, 255, 255, 0.06);
  --nav-bg:     rgba(10, 10, 10, 0.88);
  --overlay-bg: rgba(10, 10, 10, 0.98);
  --on-accent:  #000;
  --logo-ink:   #0a0a0a;

  color-scheme: dark;

  /* Typography */
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  /* Type scale */
  --text-xs:   0.75rem;    /* 12px */
  --text-sm:   0.875rem;   /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg:   1.125rem;   /* 18px */
  --text-xl:   1.25rem;    /* 20px */
  --text-2xl:  1.5rem;     /* 24px */
  --text-3xl:  1.875rem;   /* 30px */
  --text-4xl:  2.25rem;    /* 36px */
  --text-5xl:  3rem;       /* 48px */
  --text-6xl:  3.75rem;    /* 60px */
  --text-7xl:  4.5rem;     /* 72px */

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Effects */
  --blur:        blur(16px);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3);
  --transition:  0.2s ease;

  /* Layout */
  --container-max: 1100px;
  --container-pad: clamp(1.25rem, 5vw, 2.5rem);
  --nav-height:    68px;
}

/* ---- Light theme -------------------------------------------
   Follows the OS setting unless the visitor chose a theme with
   the toggle (stored as data-theme on <html>). */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg:      #fafaf9;
    --bg-1:    #f4f4f2;
    --bg-2:    #ecece9;
    --surface:       rgba(0, 0, 0, 0.03);
    --surface-hover: rgba(0, 0, 0, 0.05);
    --border:        rgba(0, 0, 0, 0.1);
    --border-hover:  rgba(0, 0, 0, 0.22);
    --accent:      #c2410c;
    --accent-dim:  rgba(194, 65, 12, 0.1);
    --accent-glow: rgba(249, 115, 22, 0.1);
    --text-1: #18181b;
    --text-2: #52525b;
    --text-3: #6b6b74;
    --chip:       rgba(0, 0, 0, 0.05);
    --nav-bg:     rgba(250, 250, 249, 0.88);
    --overlay-bg: rgba(250, 250, 249, 0.98);
    --on-accent:  #fff;
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.08);
    color-scheme: light;
  }
}

:root[data-theme="light"] {
  --bg:      #fafaf9;
  --bg-1:    #f4f4f2;
  --bg-2:    #ecece9;
  --surface:       rgba(0, 0, 0, 0.03);
  --surface-hover: rgba(0, 0, 0, 0.05);
  --border:        rgba(0, 0, 0, 0.1);
  --border-hover:  rgba(0, 0, 0, 0.22);
  --accent:      #c2410c;
  --accent-dim:  rgba(194, 65, 12, 0.1);
  --accent-glow: rgba(249, 115, 22, 0.1);
  --text-1: #18181b;
  --text-2: #52525b;
  --text-3: #6b6b74;
  --chip:       rgba(0, 0, 0, 0.05);
  --nav-bg:     rgba(250, 250, 249, 0.88);
  --overlay-bg: rgba(250, 250, 249, 0.98);
  --on-accent:  #fff;
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.08);
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

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

.section {
  padding: var(--space-24) var(--container-pad);
}

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

/* ---- Section Labels --------------------------------------- */
.section-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-3);
}

.section-title {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: var(--space-12);
  color: var(--text-1);
}

/* ---- Buttons ---------------------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  background: var(--accent);
  color: var(--on-accent);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  transition: opacity var(--transition), transform var(--transition);
  white-space: nowrap;
}

.btn-primary:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  background: transparent;
  color: var(--text-1);
  font-size: var(--text-sm);
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), color var(--transition),
              transform var(--transition);
  white-space: nowrap;
}

.btn-ghost:hover {
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

/* ---- Tags / Chip Pills ------------------------------------ */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px var(--space-3);
  background: var(--chip);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
  transition: border-color var(--transition), color var(--transition);
}

.tag:hover {
  border-color: var(--border-hover);
  color: var(--text-1);
}

.tag--accent {
  background: var(--accent-dim);
  border-color: rgba(249, 115, 22, 0.35);
  color: var(--accent);
}

/* ---- Social Link Icons ------------------------------------ */
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  transition: color var(--transition);
}

.social-link:hover {
  color: var(--text-1);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  padding: 0 var(--container-pad);
  transition: background var(--transition), backdrop-filter var(--transition),
              border-color var(--transition);
  border-bottom: 1px solid transparent;
}

/* Background lives on a pseudo-element: backdrop-filter on #navbar itself
   would make it the containing block for the fixed mobile menu overlay. */
#navbar::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--nav-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  opacity: 0;
  transition: opacity var(--transition);
}

#navbar.scrolled {
  border-bottom-color: var(--border);
}

#navbar.scrolled::before {
  opacity: 1;
}

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

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
  color: var(--text-1);
}

.nav-logo-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fb923c, var(--accent) 55%, #ea580c);
  color: var(--logo-ink);
  font-size: var(--text-sm);
  font-weight: 800;
  letter-spacing: -0.04em;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset,
              0 4px 14px rgba(249, 115, 22, 0.25);
  transition: transform var(--transition), box-shadow var(--transition);
}

.nav-logo-name {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav-logo:hover .nav-logo-mark {
  transform: rotate(-6deg) scale(1.05);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2) inset,
              0 6px 20px rgba(249, 115, 22, 0.4);
}

@media (max-width: 380px) {
  .nav-logo-name { display: none; }
}

/* Desktop links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-2);
  transition: color var(--transition);
  position: relative;
}

.nav-links a:not(.nav-cta):hover,
.nav-links a:not(.nav-cta).active {
  color: var(--text-1);
}

.nav-links a:not(.nav-cta).active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
  border-radius: var(--radius-full);
}

.nav-cta {
  padding: var(--space-2) var(--space-4) !important;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-1) !important;
  transition: border-color var(--transition), color var(--transition) !important;
}

.nav-cta:hover {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}

/* Theme toggle */
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-2);
  transition: border-color var(--transition), color var(--transition);
}

.theme-toggle:hover {
  border-color: var(--border-hover);
  color: var(--text-1);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun,
:root:not([data-theme]) .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon,
:root:not([data-theme]) .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .theme-toggle .icon-sun { display: none; }
  :root:not([data-theme]) .theme-toggle .icon-moon { display: block; }
}
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: var(--space-2);
  cursor: pointer;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-1);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (min-width: 768px) {
  .nav-links {
    margin-left: auto;
    margin-right: var(--space-6);
  }
}

/* Mobile overlay */
@media (max-width: 767px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    top: var(--nav-height);
    background: var(--overlay-bg);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-10);
    display: none;
    z-index: 99;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--text-1);
  }

  .nav-cta {
    padding: var(--space-3) var(--space-8) !important;
    font-size: var(--text-xl) !important;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100svh;
  min-height: 100vh; /* fallback */
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-height) + var(--space-16)) var(--container-pad) var(--space-24);
  position: relative;
  overflow: hidden;
}

/* Radial glow */
.hero::before {
  content: '';
  position: absolute;
  top: -15%;
  left: 40%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
  pointer-events: none;
  user-select: none;
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-5);
}

.hero-title {
  font-size: clamp(var(--text-4xl), 7.5vw, var(--text-7xl));
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: var(--text-1);
  margin-bottom: var(--space-6);
}

.hero-title .accent {
  color: var(--accent);
}

.hero-subtitle {
  font-size: clamp(var(--text-lg), 2.5vw, var(--text-xl));
  font-weight: 400;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: var(--space-10);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
}

.hero-social {
  display: flex;
  gap: var(--space-5);
}

.hero-social .social-link svg {
  width: 20px;
  height: 20px;
}

/* Scroll hint */
.hero-scroll {
  position: absolute;
  bottom: var(--space-8);
  left: var(--container-pad);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  user-select: none;
}

.hero-scroll-line {
  width: 40px;
  height: 1px;
  background: var(--text-3);
  position: relative;
  overflow: hidden;
}

.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: scroll-slide 2s ease-in-out infinite;
}

@keyframes scroll-slide {
  0%   { left: -100%; }
  50%  { left: 0%; }
  100% { left: 100%; }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  gap: var(--space-16);
  align-items: start;
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 260px 1fr;
  }
}

.about-image-wrap {
  position: relative;
}

.about-photo {
  width: 100%;
  max-width: 260px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  filter: grayscale(15%);
  transition: filter var(--transition);
}

.about-photo:hover {
  filter: grayscale(0%);
}

.about-content .section-title {
  margin-bottom: var(--space-6);
}

.about-bio {
  font-size: var(--text-base);
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: var(--space-4);
}

.about-bio:last-of-type {
  margin-bottom: var(--space-8);
}

.about-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-8);
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.meta-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.meta-value {
  font-size: var(--text-sm);
  color: var(--text-1);
  font-weight: 500;
}

/* ============================================================
   EXPERIENCE (TIMELINE)
   ============================================================ */
.timeline {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  position: relative;
  padding-left: var(--space-8);
}

/* Vertical line */
.timeline::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 18px;
  bottom: 18px;
  width: 1px;
  background: linear-gradient(
    to bottom,
    var(--accent) 0%,
    var(--border) 60%,
    transparent 100%
  );
}

/* Card */
.timeline-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: border-color var(--transition), transform 0.3s ease,
              box-shadow 0.3s ease;
}

.timeline-card:hover {
  border-color: rgba(249, 115, 22, 0.25);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

/* Timeline dot */
.timeline-dot {
  position: absolute;
  left: calc(-1 * var(--space-8) - 2px);
  top: var(--space-8);
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--text-3);
  border: 2px solid var(--bg);
  flex-shrink: 0;
}

.timeline-dot--current {
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim), 0 0 12px var(--accent);
}

/* Timeline header */
.timeline-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.timeline-period {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-3);
  text-transform: uppercase;
}

.timeline-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px var(--space-2);
  background: var(--accent-dim);
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.timeline-company {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-1);
}

.timeline-subsidiary {
  font-weight: 400;
  font-size: var(--text-lg);
  color: var(--text-2);
}

.timeline-role {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--accent);
  margin-bottom: var(--space-2);
}

.timeline-context {
  font-size: var(--text-sm);
  color: var(--text-3);
  margin-bottom: var(--space-5);
  font-style: italic;
}

.timeline-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.timeline-bullets li {
  display: flex;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-2);
  line-height: 1.65;
}

.timeline-bullets li::before {
  content: '▸';
  color: var(--accent);
  font-size: 10px;
  flex-shrink: 0;
  margin-top: 4px;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

/* ============================================================
   SKILLS
   ============================================================ */
.skills-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.skill-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  transition: border-color var(--transition);
}

.skill-group:hover {
  border-color: var(--border-hover);
}

.skill-group-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* ============================================================
   PROJECTS
   ============================================================ */
.projects-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), transform 0.3s ease,
              box-shadow 0.3s ease;
}

.project-card:hover {
  border-color: rgba(249, 115, 22, 0.25);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.project-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-5);
}

.project-icon {
  font-size: 2rem;
  line-height: 1;
}

.project-links {
  display: flex;
  gap: var(--space-3);
}

.project-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  transition: color var(--transition);
}

.project-link:hover {
  color: var(--text-1);
}

.project-title {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-1);
  margin-bottom: var(--space-3);
}

.project-description {
  font-size: var(--text-sm);
  color: var(--text-2);
  line-height: 1.75;
  flex: 1;
  margin-bottom: var(--space-6);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.project-status {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--text-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

.status-dot {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: var(--radius-full);
  background: var(--accent);
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.4); }
  50%       { box-shadow: 0 0 0 5px rgba(249, 115, 22, 0); }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: var(--space-8) var(--container-pad);
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-copy {
  font-size: var(--text-sm);
  color: var(--text-3);
}

.footer-social {
  display: flex;
  gap: var(--space-5);
}

.footer-social .social-link svg {
  width: 18px;
  height: 18px;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-animate].in-view {
  opacity: 1;
  transform: translateY(0);
}

[data-animate]:nth-child(2) { transition-delay: 0.1s; }
[data-animate]:nth-child(3) { transition-delay: 0.2s; }
[data-animate]:nth-child(4) { transition-delay: 0.3s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

@media (max-width: 767px) {
  :root {
    --space-24: 4rem;
    --space-16: 3rem;
    --space-12: 2.5rem;
  }

  .hero {
    padding-bottom: var(--space-16);
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .about-photo {
    max-width: 200px;
  }

  .timeline {
    padding-left: var(--space-6);
  }

  .timeline-card {
    padding: var(--space-6);
  }

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

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .about-meta {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  [data-animate] {
    opacity: 1;
    transform: none;
  }
}
