/* ============================================================
   OSCAR MARIBOJOC III — Portfolio Design System
   Warm-tone, premium developer aesthetic
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ============================================================
   1. DESIGN TOKENS (CSS Custom Properties)
   ============================================================ */
:root {
  /* Colors — Light Mode */
  --bg-primary: #FAF6F1;
  --bg-secondary: #F3EDE4;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FDF9F5;
  --bg-nav: rgba(250, 246, 241, 0.85);
  --bg-code: #F0E8DC;

  --text-primary: #2D2926;
  --text-secondary: #5C534A;
  --text-muted: #8A7F74;
  --text-inverse: #FAF6F1;

  --accent: #C2703E;
  --accent-light: #D4956B;
  --accent-dark: #A85A32;
  --accent-bg: rgba(194, 112, 62, 0.08);
  --accent-bg-hover: rgba(194, 112, 62, 0.14);

  --border: #E8DFD4;
  --border-strong: #D4C8B8;

  --shadow-sm: 0 1px 3px rgba(45, 41, 38, 0.04), 0 1px 2px rgba(45, 41, 38, 0.06);
  --shadow-md: 0 4px 12px rgba(45, 41, 38, 0.06), 0 2px 4px rgba(45, 41, 38, 0.04);
  --shadow-lg: 0 12px 40px rgba(45, 41, 38, 0.08), 0 4px 12px rgba(45, 41, 38, 0.04);
  --shadow-xl: 0 24px 60px rgba(45, 41, 38, 0.10), 0 8px 20px rgba(45, 41, 38, 0.06);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 80px;
  --space-5xl: 96px;
  --space-6xl: 128px;

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

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;

  /* Layout */
  --container-max: 1200px;
  --nav-height: 72px;
}

/* ============================================================
   2. DARK MODE TOKENS
   ============================================================ */
[data-theme="dark"] {
  --bg-primary: #1A1714;
  --bg-secondary: #211E1A;
  --bg-card: #282420;
  --bg-card-hover: #302B26;
  --bg-nav: rgba(26, 23, 20, 0.9);
  --bg-code: #302B26;

  --text-primary: #F0E8DC;
  --text-secondary: #B8ADA0;
  --text-muted: #7A7168;
  --text-inverse: #1A1714;

  --accent: #D4956B;
  --accent-light: #E0AD88;
  --accent-dark: #C2703E;
  --accent-bg: rgba(212, 149, 107, 0.10);
  --accent-bg-hover: rgba(212, 149, 107, 0.18);

  --border: #3A3530;
  --border-strong: #4A443E;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.20), 0 2px 4px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.25), 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.30), 0 8px 20px rgba(0, 0, 0, 0.18);
}

/* ============================================================
   3. RESET & BASE
   ============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.7;
  transition: background-color var(--duration-normal) var(--ease-out),
              color var(--duration-normal) var(--ease-out);
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
  color: var(--accent-dark);
}

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

button {
  cursor: pointer;
  font-family: var(--font-body);
  border: none;
  background: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

::selection {
  background-color: var(--accent);
  color: var(--text-inverse);
}

/* ============================================================
   4. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
  max-width: 65ch;
}

.mono {
  font-family: var(--font-mono);
}

/* ============================================================
   5. LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

section {
  padding: var(--space-5xl) 0;
  position: relative;
}

section:nth-child(even) {
  background-color: var(--bg-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-header h2 {
  margin-bottom: var(--space-md);
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: var(--radius-full);
}

.section-header p {
  color: var(--text-muted);
  margin: var(--space-md) auto 0;
  font-size: 1.05rem;
}

/* ============================================================
   6. NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}

.navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  transition: color var(--duration-fast) var(--ease-out);
}

.nav-logo span {
  color: var(--accent);
}

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

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding: var(--space-xs) 0;
  transition: color var(--duration-fast) var(--ease-out);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: var(--radius-full);
  transition: width var(--duration-normal) var(--ease-out);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

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

/* Theme Toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--duration-fast) var(--ease-out);
  font-size: 1.15rem;
}

.theme-toggle:hover {
  background: var(--accent-bg);
  color: var(--accent);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  padding: 10px;
  transition: background var(--duration-fast) var(--ease-out);
}

.nav-hamburger:hover {
  background: var(--accent-bg);
}

.nav-hamburger span {
  display: block;
  height: 2px;
  background: var(--text-primary);
  border-radius: var(--radius-full);
  transition: all var(--duration-normal) var(--ease-out);
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: var(--space-lg);
  flex-direction: column;
  gap: var(--space-sm);
  z-index: 999;
  transform: translateY(-10px);
  opacity: 0;
  transition: all var(--duration-normal) var(--ease-out);
}

.mobile-nav.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav a {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--ease-out);
}

.mobile-nav a:hover,
.mobile-nav a.active {
  background: var(--accent-bg);
  color: var(--accent);
}

/* ============================================================
   7. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px 28px;
  font-size: 0.925rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--duration-normal) var(--ease-out);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--text-inverse);
  box-shadow: 0 2px 8px rgba(194, 112, 62, 0.25);
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: var(--text-inverse);
  box-shadow: 0 4px 16px rgba(194, 112, 62, 0.35);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--accent);
  padding: 12px 20px;
}

.btn-ghost:hover {
  background: var(--accent-bg);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.825rem;
}

.btn-nav {
  padding: 8px 20px;
  font-size: 0.85rem;
}

/* ============================================================
   8. HERO SECTION
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--accent-bg);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 600;
  margin-bottom: var(--space-lg);
  border: 1px solid rgba(194, 112, 62, 0.15);
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero h1 {
  margin-bottom: var(--space-md);
  letter-spacing: -0.03em;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  line-height: 1.8;
  max-width: 540px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.hero-stats {
  display: flex;
  gap: var(--space-2xl);
}

.hero-stat {
  text-align: left;
}

.hero-stat .stat-value {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.hero-stat .stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-code-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  width: 100%;
  max-width: 480px;
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  transition: transform var(--duration-slow) var(--ease-out);
}

.hero-code-block:hover {
  transform: perspective(1000px) rotateY(-2deg) rotateX(1deg);
}

.code-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 14px 18px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.code-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.code-dot.red { background: #E5716F; }
.code-dot.yellow { background: #E5C06F; }
.code-dot.green { background: #6FBF73; }

.code-filename {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: auto;
}

.code-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.9;
  color: var(--text-secondary);
}

.code-line {
  display: flex;
  gap: var(--space-md);
}

.code-line-number {
  color: var(--text-muted);
  opacity: 0.5;
  user-select: none;
  min-width: 20px;
  text-align: right;
}

.code-keyword { color: var(--accent); font-weight: 600; }
.code-string { color: #7BAF6E; }
.code-property { color: var(--accent-light); }
.code-comment { color: var(--text-muted); font-style: italic; }
.code-bracket { color: var(--text-muted); }

[data-theme="dark"] .code-string { color: #A8D89D; }

/* Floating shapes */
.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  pointer-events: none;
}

.hero-shape-1 {
  width: 400px;
  height: 400px;
  background: var(--accent);
  top: -100px;
  right: -100px;
}

.hero-shape-2 {
  width: 300px;
  height: 300px;
  background: var(--accent-light);
  bottom: -50px;
  left: -80px;
}

/* ============================================================
   9. ABOUT SECTION
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.about-text {
  font-size: 1.05rem;
  line-height: 1.85;
}

.about-text p {
  margin-bottom: var(--space-lg);
  max-width: none;
}

.about-text .highlight {
  color: var(--accent);
  font-weight: 600;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.about-highlight-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--duration-normal) var(--ease-out);
}

.about-highlight-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.about-highlight-card .card-icon {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.about-highlight-card h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.about-highlight-card p {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================================
   10. SKILLS SECTION
   ============================================================ */
.skills-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
}

.skill-category-btn {
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  transition: all var(--duration-fast) var(--ease-out);
}

.skill-category-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.skill-category-btn.active {
  background: var(--accent);
  color: var(--text-inverse);
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(194, 112, 62, 0.25);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-md);
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  transition: all var(--duration-normal) var(--ease-out);
  cursor: default;
}

.skill-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.skill-card .skill-icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
  display: block;
}

.skill-card .skill-name {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-primary);
}

.skill-card .skill-level {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.skill-card[data-visible="false"] {
  display: none;
}

/* ============================================================
   11. EXPERIENCE SECTION
   ============================================================ */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: var(--space-2xl);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-light), var(--border));
  border-radius: var(--radius-full);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-2xl);
}

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

.timeline-dot {
  position: absolute;
  left: calc(-1 * var(--space-2xl) - 6px);
  top: 6px;
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 0 3px var(--accent-bg);
}

[data-theme="dark"] .timeline-dot {
  border-color: var(--bg-secondary);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--duration-normal) var(--ease-out);
}

.timeline-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.timeline-card h3 {
  margin-bottom: 4px;
}

.timeline-card .company {
  color: var(--accent);
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
}

.timeline-card ul {
  list-style: none;
  padding: 0;
}

.timeline-card li {
  position: relative;
  padding-left: var(--space-lg);
  margin-bottom: var(--space-sm);
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.timeline-card li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.timeline-tech {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}

.tech-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  background: var(--accent-bg);
  color: var(--accent);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.725rem;
  font-weight: 500;
}

/* ============================================================
   12. PROJECTS SECTION
   ============================================================ */
.projects-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
}

.filter-btn {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  transition: all var(--duration-fast) var(--ease-out);
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-btn.active {
  background: var(--accent);
  color: var(--text-inverse);
  border-color: var(--accent);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: var(--space-xl);
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
}

.project-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.project-card-header {
  padding: var(--space-lg) var(--space-lg) 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.project-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-bg);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

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

.project-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: all var(--duration-fast) var(--ease-out);
  font-size: 1.1rem;
}

.project-link:hover {
  background: var(--accent-bg);
  color: var(--accent);
}

.project-card-body {
  padding: var(--space-md) var(--space-lg) var(--space-lg);
}

.project-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: var(--accent-bg);
  color: var(--accent);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-card-body h3 {
  margin-bottom: var(--space-sm);
  font-size: 1.2rem;
}

.project-card-body > p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  line-height: 1.7;
  max-width: none;
}

.project-features {
  margin-bottom: var(--space-md);
}

.project-features li {
  position: relative;
  padding-left: var(--space-lg);
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  line-height: 1.5;
}

.project-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
}

.project-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}

.project-card[data-visible="false"] {
  display: none;
}

/* ============================================================
   13. EDUCATION SECTION
   ============================================================ */
.education-card {
  max-width: 700px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.education-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
}

.education-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.education-card h3 {
  font-size: 1.35rem;
  margin-bottom: var(--space-xs);
}

.education-school {
  color: var(--accent);
  font-weight: 500;
  font-size: 1.05rem;
  margin-bottom: var(--space-sm);
}

.education-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.education-honor {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 8px 20px;
  background: linear-gradient(135deg, var(--accent-bg), var(--accent-bg-hover));
  border: 1px solid rgba(194, 112, 62, 0.2);
  border-radius: var(--radius-full);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
}

/* ============================================================
   14. CONTACT SECTION
   ============================================================ */
.contact-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-content > p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  max-width: none;
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.contact-link-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-xl);
  transition: all var(--duration-normal) var(--ease-out);
  color: var(--text-secondary);
  min-width: 200px;
  text-align: left;
}

.contact-link-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  color: var(--text-primary);
}

.contact-link-card .link-icon {
  font-size: 1.3rem;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-link-card .link-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.contact-link-card .link-value {
  font-size: 0.875rem;
  font-weight: 500;
}

.contact-cta {
  margin-top: var(--space-xl);
}

/* ============================================================
   15. FOOTER
   ============================================================ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: var(--space-2xl) 0;
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

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

.footer-left p span {
  color: var(--accent);
}

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

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: all var(--duration-fast) var(--ease-out);
}

.footer-social a:hover {
  background: var(--accent-bg);
  color: var(--accent);
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: var(--text-inverse);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--duration-normal) var(--ease-out);
  z-index: 100;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* ============================================================
   16. ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--accent);
  margin-left: 2px;
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ============================================================
   17. RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

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

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

  .hero-visual {
    display: none;
  }

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

@media (max-width: 768px) {
  section {
    padding: var(--space-3xl) 0;
  }

  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-md);
    align-items: center;
  }

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

  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  }

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

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

  .timeline-dot {
    left: calc(-1 * var(--space-xl) - 6px);
  }

  .contact-links {
    grid-template-columns: 1fr;
  }

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

  .footer .container {
    flex-direction: column;
    text-align: center;
  }

  .education-card {
    padding: var(--space-xl);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .skills-categories {
    gap: 6px;
  }

  .skill-category-btn {
    padding: 8px 14px;
    font-size: 0.775rem;
  }

  .projects-filter {
    gap: 6px;
  }

  .filter-btn {
    padding: 6px 14px;
    font-size: 0.775rem;
  }
}

/* ============================================================
   18. UTILITY CLASSES
   ============================================================ */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.font-mono { font-family: var(--font-mono); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
