@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --blue-950: #051525;
  --blue-900: #0a2540;
  --blue-800: #0f3460;
  --blue-700: #1565c0;
  --blue-600: #1e88e5;
  --blue-500: #42a5f5;
  --blue-400: #64b5f6;
  --blue-200: #bbdefb;
  --blue-100: #e3f2fd;
  --cyan: #00bcd4;
  --text-primary: #f0f7ff;
  --text-secondary: #90caf9;
  --text-muted: #5c8ec9;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-hover: rgba(255, 255, 255, 0.1);
  --border: rgba(100, 181, 246, 0.18);
  --shadow: 0 8px 32px rgba(0, 20, 60, 0.35);
  --radius: 16px;
  --radius-sm: 10px;
  --max-width: 960px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(160deg, var(--blue-950) 0%, var(--blue-900) 40%, var(--blue-800) 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

body::before {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(30, 136, 229, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(0, 188, 212, 0.1) 0%, transparent 50%);
  content: '';
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: 0;
}

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

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

/* Header / Nav */
.site-header {
  backdrop-filter: blur(12px);
  background: rgba(5, 21, 37, 0.75);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max-width);
  padding: 1rem 1.5rem;
}

.nav-brand {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-brand span {
  color: var(--blue-400);
}

.nav-links {
  display: flex;
  gap: 0.5rem;
  list-style: none;
}

.nav-links a {
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

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

/* Layout */
.page {
  margin: 0 auto;
  max-width: var(--max-width);
  padding: 2rem 1.5rem 4rem;
  position: relative;
  z-index: 1;
}

/* Hero — Home */
.hero {
  align-items: center;
  display: grid;
  gap: 2.5rem;
  padding: 2rem 0 3rem;
}

@media (min-width: 640px) {
  .hero {
    grid-template-columns: auto 1fr;
  }
}

.hero-photo {
  border: 3px solid var(--border);
  border-radius: 50%;
  box-shadow: var(--shadow), 0 0 0 6px rgba(30, 136, 229, 0.12);
  height: 180px;
  margin: 0 auto;
  object-fit: cover;
  width: 180px;
}

.hero-content h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.hero-content .subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

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

.tag {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--blue-200);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.3rem 0.75rem;
}

/* Sections */
.section {
  margin-bottom: 3rem;
}

.section-header {
  margin-bottom: 1.5rem;
}

.section-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.card {
  backdrop-filter: blur(8px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
}

.card p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

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

.card strong {
  color: var(--text-primary);
}

.card a.inline-link {
  color: var(--blue-400);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(100, 181, 246, 0.4);
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.card a.inline-link:hover {
  color: var(--cyan);
}

/* CTA button */
.btn {
  align-items: center;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
  border: 1px solid rgba(100, 181, 246, 0.3);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 600;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
  box-shadow: 0 4px 20px rgba(30, 136, 229, 0.35);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--surface-hover);
  box-shadow: none;
}

/* Projects page */
.page-title {
  margin-bottom: 0.75rem;
  text-align: center;
}

.page-title h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.page-title p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin: 0 auto;
  max-width: 560px;
}

.projects-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

@media (min-width: 640px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.project-card {
  backdrop-filter: blur(8px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}

.project-card:hover {
  background: var(--surface-hover);
  border-color: rgba(100, 181, 246, 0.35);
  transform: translateY(-3px);
}

.project-card-header {
  align-items: flex-start;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.project-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.course-badge {
  background: rgba(30, 136, 229, 0.2);
  border: 1px solid rgba(100, 181, 246, 0.25);
  border-radius: 999px;
  color: var(--blue-200);
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.25rem 0.6rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.course-badge.trybe {
  background: rgba(0, 188, 212, 0.15);
  border-color: rgba(0, 188, 212, 0.3);
  color: #80deea;
}

.project-card .description {
  color: var(--text-secondary);
  flex: 1;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.tech-tag {
  background: rgba(5, 21, 37, 0.5);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.2rem 0.5rem;
}

.project-card .btn {
  align-self: flex-start;
  font-size: 0.82rem;
  margin-top: auto;
  padding: 0.5rem 1rem;
}

/* Footer */
.site-footer {
  backdrop-filter: blur(8px);
  background: rgba(5, 21, 37, 0.6);
  border-top: 1px solid var(--border);
  margin-top: auto;
  position: relative;
  z-index: 1;
}

.footer-inner {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 0 auto;
  max-width: var(--max-width);
  padding: 1.25rem 1.5rem;
}

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

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  height: 32px;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  width: 32px;
}

.footer-social a:hover {
  background: var(--surface-hover);
  border-color: rgba(100, 181, 246, 0.35);
}

.footer-social img {
  height: 16px;
  width: 16px;
  filter: brightness(0) invert(0.7);
}

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

/* Experience timeline */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.experience-item {
  backdrop-filter: blur(8px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue-600);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.experience-header {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.experience-item h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.2rem;
}

.experience-company {
  color: var(--blue-400);
  font-size: 0.875rem;
  font-weight: 500;
}

.experience-period {
  background: rgba(5, 21, 37, 0.5);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.65rem;
  white-space: nowrap;
}

.experience-description {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.experience-projects-title {
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.experience-projects {
  color: var(--text-secondary);
  font-size: 0.875rem;
  list-style: none;
  margin-bottom: 1rem;
  padding-left: 0;
}

.experience-projects li {
  padding: 0.35rem 0 0.35rem 1.1rem;
  position: relative;
}

.experience-projects li::before {
  color: var(--blue-400);
  content: '▸';
  left: 0;
  position: absolute;
}

.experience-projects a {
  color: var(--blue-400);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(100, 181, 246, 0.35);
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.experience-projects a:hover {
  color: var(--cyan);
}
