:root {
  /* Palette from user: #772E25, #C44536, #EDDDD4, #197278, #283D3B */
  --bg: #197278;            /* not used directly (we use gradient on body) */
  --panel: #ffffff;         /* card background */
  --accent: #C44536;        /* primary accent - red */
  --accent-2: #197278;      /* secondary accent - teal */
  --text: #1a1717;          /* main text - dark teal/gray */
  --muted: #000000;         /* subdued text */
  --chip: #F6F1EC;          /* tag chip background */
  --border: #D8CCC6;        /* soft border on light panels */
  --deep-red: #772E25;      /* dark red hover */
  --bg-teal-light: #ffffff;
  --bg-teal-dark: #EDDDD4;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, var(--bg-teal-light) 0%, var(--bg-teal-light) 60%, var(--bg-teal-dark) 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

/* Subtle animated geometric background */
.bg-shapes { position: fixed; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.shape { position: absolute; opacity: 0.15; filter: blur(2px); animation: float 22s linear infinite; }
.shape.circle { width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(closest-side, var(--accent-2), transparent); }
.shape.square { width: 180px; height: 180px; background: linear-gradient(135deg, var(--accent), transparent); transform: rotate(15deg); }
.shape.triangle { width: 0; height: 0; border-left: 90px solid transparent; border-right: 90px solid transparent; border-bottom: 160px solid rgba(40,61,59,0.18); }
.bg-shapes .s1 { top: 8%; left: 55%; }
.bg-shapes .s2 { top: 65%; left: 10%; animation-duration: 28s; }
.bg-shapes .s3 { top: 30%; left: 85%; animation-duration: 24s; }
.bg-shapes .s4 { bottom: 10%; left: 70%; animation-duration: 26s; }
.bg-shapes .s5 { bottom: 20%; left: 35%; animation-duration: 30s; }
.bg-shapes .s6 { top: 15%; left: 20%; animation-duration: 34s; }
@keyframes float { 0% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-20px) rotate(10deg); } 100% { transform: translateY(0) rotate(0); } }

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100vh;
  background: linear-gradient(180deg, #C44536 0%, #772E25 100%);
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.profile { text-align: center; }
.avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto 8px;
  border-radius: 50%;
  overflow: hidden;
  background: #197278;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.name { font-weight: 600; letter-spacing: 0.2px; }
.subtitle { color: #EDDDD4; font-size: 14px; }

.nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nav-link {
  color: #ffffff;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.nav-link:hover { background: rgba(255,255,255,0.12); }

.sidebar-footer { margin-top: auto; display: flex; gap: 10px; }
.social {
  width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px;
  background: rgba(255,255,255,0.12); color: white; text-decoration: none; font-weight: 700;
}
.social:hover { background: rgba(255,255,255,0.22); }

.content { margin-left: 260px; padding: 40px 28px; position: relative; z-index: 1; }

.section { margin: 36px auto 60px; max-width: 1000px; }
.title { font-family: Oswald, Inter, sans-serif; font-size: 64px; margin: 0 0 8px; }
.title-light { font-weight: 400; opacity: 0.7; }
.subtitle-lg { color: var(--muted); margin: 0 0 16px; }
.lead { color: #ddd8f5; font-size: 18px; line-height: 1.6; }

.hero-actions { display: flex; gap: 12px; margin-top: 18px; }
.btn {
  display: inline-block; text-decoration: none; color: #ffffff; border: 1px solid var(--accent); padding: 10px 14px; border-radius: 10px; font-weight: 600; background: var(--accent);
}
.btn:hover { background: var(--deep-red); border-color: var(--deep-red); color: #fff; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--deep-red); border-color: var(--deep-red); }
.btn.outline { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn.outline:hover { background: var(--deep-red); color: #fff; border-color: var(--deep-red); }
.btn.small { padding: 8px 10px; font-size: 14px; }

.section-title { font-family: Oswald, Inter, sans-serif; font-size: 32px; margin: 0 0 18px; }
.section-title { color: #000000; }

.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.project-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}
.project-title { margin: 0 0 6px; font-size: 20px; }
.project-desc { color: var(--muted); line-height: 1.55; }
.project-details { margin: 10px 0; }
.project-details summary { cursor: pointer; color: #c7baff; }

.tags { list-style: none; padding: 0; margin: 10px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { background: var(--chip); border: 1px solid var(--border); color: var(--text); padding: 4px 8px; border-radius: 999px; font-size: 12px; }
.actions { display: flex; gap: 8px; }

.timeline { display: grid; gap: 18px; }
.item { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.item .when { color: #bfb9de; font-size: 13px; }
.item .what { font-weight: 700; margin: 4px 0 8px; }
.item ul { margin: 0; padding-left: 18px; color: var(--muted); }

.edu { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.edu .degree { font-weight: 700; }
.edu .where, .edu .coursework { color: var(--muted); }

.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.skills-col { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.skills-col h3 { margin: 0 0 8px; font-size: 16px; }
.skills-col ul { margin: 0; padding-left: 18px; color: var(--muted); }

.contact { margin: 8px 0 0; padding-left: 18px; }

.footer { color: #6f6a67; text-align: center; margin: 40px 0; }

/* Hero text on teal background for contrast */
.hero .title, .hero .subtitle-lg, .hero .lead { color: #000000; }

/* Scroll reveal animations */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 500ms ease, transform 500ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 880px) {
  .sidebar { position: static; width: auto; height: auto; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
  .content { margin: 0; padding: 20px; }
  .title { font-size: 48px; }
}


