:root {
  --font: 'Inter', sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --dur: 0.4s;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg: #09090b; --bg-1: #121214; --bg-2: #1c1c1f;
  --border: rgba(255,255,255,0.08);
  --txt: #fafafa; --txt-2: #a1a1aa; --txt-3: #52525b;
  --accent: #22c55e; /* Unified Green */
  --accent-dim: rgba(34,197,94,0.1);
}

[data-theme="light"] {
  --bg: #ffffff; --bg-1: #f8f8f9; --bg-2: #f1f1f3;
  --border: rgba(0,0,0,0.08);
  --txt: #09090b; --txt-2: #52525b; --txt-3: #a1a1aa;
  --accent: #16a34a; /* Unified Green */
  --accent-dim: rgba(22,163,74,0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body, section, div, h1, h2, h3, p, span, a, .tile-card, .btn, .hero::after {
  transition: background-color var(--dur) var(--ease), 
              color var(--dur) var(--ease), 
              border-color var(--dur) var(--ease), 
              box-shadow var(--dur) var(--ease);
}

body { font-family: var(--font); background-color: var(--bg); color: var(--txt); -webkit-font-smoothing: antialiased; }
.container { max-width: 880px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; border-top: 1px solid var(--border); }
.section-header { display: flex; align-items: baseline; gap: 0.8rem; margin-bottom: 2.5rem; }
.section-kicker { font-family: var(--mono); font-size: 0.75rem; color: var(--txt-3); }
.section-title { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; }

/* --- HERO --- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; z-index: 1; }
.hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at center, transparent 0%, var(--bg) 95%); z-index: 2; pointer-events: none; }
.hero-inner { position: relative; z-index: 3; text-align: center; }
.hero-name { font-size: clamp(3.5rem, 10vw, 6rem); font-weight: 900; letter-spacing: -0.04em; margin-bottom: 1.5rem; }
.name-last { color: var(--accent); }
.hero-sub { font-family: var(--mono); font-size: 0.85rem; color: var(--txt-3); margin-top: 1rem; }

/* --- THEME TOGGLE --- */
.theme-toggle { position: fixed; top: 1.5rem; right: 1.5rem; z-index: 100; background: var(--bg-1); border: 1px solid var(--border); padding: 0.5rem 1rem; border-radius: 30px; cursor: pointer; display: flex; align-items: center; gap: 0.5rem; font-family: var(--mono); font-size: 0.8rem; color: var(--txt-2); }
.toggle-track { width: 34px; height: 18px; background: var(--bg-2); border-radius: 10px; position: relative; }
.toggle-thumb { width: 14px; height: 14px; background: var(--accent); border-radius: 50%; position: absolute; top: 2px; left: 2px; transition: transform 0.3s var(--ease); }
[data-theme="light"] .toggle-thumb { transform: translateX(16px); }

/* --- UNIFIED GREEN TILES --- */
.card-stack { display: flex; flex-direction: column; gap: 1rem; }
.tile-card {
  display: flex; gap: 1.5rem; padding: 1.75rem; border-radius: 16px;
  background: var(--bg-1); border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  position: relative; overflow: hidden;
}
.tile-card:hover { background: var(--bg-2); border-color: var(--txt-3); }
.tile-icon { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 40px; color: var(--accent); }
.tile-content { flex: 1; }
.tile-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.25rem; }
.tile-title { font-size: 1.05rem; font-weight: 600; }
.tile-badge { font-family: var(--mono); font-size: 0.75rem; color: var(--txt-3); }
.tile-badge.verified { color: var(--accent); background: var(--accent-dim); padding: 0.2rem 0.6rem; border-radius: 4px; }
.tile-subtitle { font-family: var(--mono); font-size: 0.8rem; color: var(--accent); font-weight: 600; margin-bottom: 0.5rem; text-transform: uppercase; }
.tile-desc { font-size: 0.9rem; color: var(--txt-2); }

/* --- PROJECTS --- */
.project-card { border-left: 4px solid var(--accent); padding: 2rem; border-radius: 16px; background: var(--bg-1); border: 1px solid var(--border); }
.project-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 1rem; }
.tag { font-family: var(--mono); font-size: 0.7rem; padding: 0.3rem 0.6rem; background: var(--bg-2); border-radius: 4px; margin-right: 0.5rem; }

/* --- PROFESSIONAL FOOTER --- */
.footer { border-top: 1px solid var(--border); background-color: var(--bg); padding: 5rem 0 3rem; margin-top: 4rem; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 5rem; }
.footer-logo { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.footer-tagline { font-size: 0.85rem; color: var(--txt-3); }
.footer-label { font-family: var(--mono); font-size: 0.65rem; color: var(--txt-3); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.25rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-links a { font-size: 0.85rem; color: var(--txt-2); transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 2rem; border-top: 1px solid var(--border); }
.footer-credits { font-family: var(--mono); font-size: 0.75rem; color: var(--txt-3); }
.azure-text { color: var(--txt-2); font-weight: 600; }
.footer-site { color: var(--accent); font-weight: 500; }

.back-to-top {
  background: var(--bg-1); border: 1px solid var(--border); color: var(--txt-2);
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.back-to-top:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* BUTTONS */
.btn { display: inline-flex; padding: 0.8rem 1.8rem; border-radius: 10px; font-weight: 600; font-size: 0.9rem; margin: 0.5rem; cursor: pointer; border: none; font-family: var(--font); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--txt-2); }

@media (max-width: 768px) {
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1.5rem; }
  .tile-card { flex-direction: column; gap: 1rem; }
}