@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg: hsl(220, 20%, 7%);
  --fg: hsl(210, 20%, 92%);
  --primary: hsl(187, 80%, 48%);
  --primary-fg: hsl(220, 20%, 7%);
  --muted: hsl(215, 12%, 55%);
  --border: hsl(220, 14%, 18%);
  --card-bg: linear-gradient(145deg, hsl(220, 18%, 12%), hsl(220, 18%, 8%));
  --shadow-card: 0 8px 32px -8px hsl(0 0% 0% / 0.4);
  --shadow-glow: 0 0 40px -10px hsl(187 80% 48% / 0.3);
  --gradient-primary: linear-gradient(135deg, hsl(187, 80%, 48%), hsl(200, 90%, 55%));
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-display);
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); }
code, pre { font-family: var(--font-mono); }

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Utilities */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card-glass {
  background: var(--card-bg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}

.glow { box-shadow: var(--shadow-glow); }

.section-container {
  max-width: 1152px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

@media (min-width: 768px) {
  .section-container { padding: 7rem 1.5rem; }
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: hsl(220 20% 7% / 0.8);
  backdrop-filter: blur(20px);
}

.navbar-inner {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  font-size: 1.25rem;
  font-weight: 700;
}

.navbar-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .navbar-links { display: flex; }
  .navbar-toggle { display: none !important; }
}

.navbar-links a {
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s;
}
.navbar-links a:hover { color: var(--primary); }

.navbar-toggle {
  background: none;
  border: none;
  color: var(--fg);
  cursor: pointer;
  padding: 0.25rem;
}

.navbar-mobile {
  border-top: 1px solid var(--border);
  background: hsl(220 20% 7% / 0.95);
  backdrop-filter: blur(20px);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.navbar-mobile a {
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s;
}
.navbar-mobile a:hover { color: var(--primary); }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image:
    linear-gradient(hsl(187, 80%, 48%) 1px, transparent 1px),
    linear-gradient(90deg, hsl(187, 80%, 48%) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-orb-1 {
  position: absolute;
  top: 25%;
  right: -8rem;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  background: hsl(187 80% 48% / 0.1);
  filter: blur(120px);
}

.hero-orb-2 {
  position: absolute;
  bottom: 25%;
  left: -8rem;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: hsl(187 80% 48% / 0.05);
  filter: blur(100px);
}

.hero-content {
  position: relative;
  z-index: 10;
  padding-top: 5rem;
  max-width: 48rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid hsl(187 80% 48% / 0.3);
  background: hsl(187 80% 48% / 0.05);
  color: var(--primary);
  font-size: 0.875rem;
  font-family: var(--font-mono);
  margin-bottom: 2rem;
}

.hero-badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: var(--muted);
  margin-bottom: 1rem;
  font-weight: 300;
}

.hero-subtitle span { color: var(--primary); font-weight: 500; }

.hero-desc {
  color: var(--muted);
  max-width: 36rem;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  background: var(--primary);
  color: var(--primary-fg);
  font-weight: 600;
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.9; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  color: var(--fg);
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: hsl(187 80% 48% / 0.5); color: var(--primary); }

/* Section headers */
.section-tag {
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 4rem;
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) { .skills-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .skills-grid { grid-template-columns: repeat(3, 1fr); } }

.skill-card {
  border-radius: 0.75rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}
.skill-card:hover { border-color: hsl(187 80% 48% / 0.3); }

.skill-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  background: hsl(187 80% 48% / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--primary);
  transition: background 0.2s;
}
.skill-card:hover .skill-icon { background: hsl(187 80% 48% / 0.2); }

.skill-title { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.5rem; }

.skill-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.skill-bar-bg {
  width: 100%;
  height: 6px;
  border-radius: 9999px;
  background: hsl(220, 14%, 16%);
  overflow: hidden;
}

.skill-bar {
  height: 100%;
  border-radius: 9999px;
  background: var(--primary);
}

/* Experience */
.timeline {
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: var(--border);
}

@media (min-width: 768px) {
  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }
}

.timeline-items { display: flex; flex-direction: column; gap: 3rem; }

.timeline-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .timeline-item { flex-direction: row; align-items: flex-start; }
}

.timeline-dot {
  position: absolute;
  left: 12px;
  top: 4px;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: var(--bg);
  z-index: 10;
}

@media (min-width: 768px) {
  .timeline-dot {
    left: 50%;
    transform: translateX(-50%);
  }
}

.timeline-content {
  margin-left: 3rem;
}

@media (min-width: 768px) {
  .timeline-content { margin-left: 0; width: 50%; }
  .timeline-item:nth-child(odd) .timeline-content { padding-right: 4rem; text-align: right; }
  .timeline-item:nth-child(even) .timeline-content { padding-left: 4rem; margin-left: auto; }
}

.timeline-period {
  display: inline-block;
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.timeline-role { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.25rem; }
.timeline-company { color: var(--muted); font-size: 0.875rem; margin-bottom: 0.25rem; }
.timeline-location { color: var(--muted); font-size: 0.75rem; margin-bottom: 1rem; }

.timeline-tasks { display: flex; flex-direction: column; gap: 0.5rem; }

.timeline-task {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

@media (min-width: 768px) {
  .timeline-item:nth-child(odd) .timeline-task { justify-content: flex-end; }
}

.timeline-task-icon {
  color: var(--primary);
  margin-top: 2px;
  flex-shrink: 0;
}

/* Education */
.education-card {
  border-radius: 0.75rem;
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  max-width: 32rem;
  margin-top: 5rem;
}

.education-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  background: hsl(187 80% 48% / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}

.education-period { color: var(--primary); font-family: var(--font-mono); font-size: 0.875rem; }
.education-degree { font-size: 1.125rem; font-weight: 700; margin-top: 0.25rem; }
.education-school { color: var(--muted); font-size: 0.875rem; }

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

.project-card {
  border-radius: 0.75rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  position: relative;
  transition: border-color 0.2s;
}
.project-card:hover { border-color: hsl(187 80% 48% / 0.3); }

.project-star {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: var(--primary);
}

.project-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}
.project-card:hover .project-title { color: var(--primary); }

.project-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.project-tag {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  background: hsl(187 80% 48% / 0.1);
  color: var(--primary);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
  transition: color 0.2s;
}
.project-link:hover { color: var(--primary); }

/* Contact */
.contact-header { text-align: center; margin-bottom: 4rem; }
.contact-subtitle { color: var(--muted); max-width: 28rem; margin: 0 auto; }

.contact-card {
  border-radius: 1rem;
  padding: 2rem;
  max-width: 42rem;
  margin: 0 auto;
}

@media (min-width: 768px) { .contact-card { padding: 3rem; } }

.contact-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  justify-content: center;
  margin-bottom: 2rem;
}

.contact-location svg { color: var(--primary); }

.socials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

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

.social-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  transition: border-color 0.2s, background 0.2s;
}
.social-link:hover {
  border-color: hsl(187 80% 48% / 0.3);
  background: hsl(187 80% 48% / 0.05);
}

.social-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: hsl(187 80% 48% / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: background 0.2s;
  flex-shrink: 0;
}
.social-link:hover .social-icon { background: hsl(187 80% 48% / 0.2); }

.social-label { font-weight: 600; font-size: 0.875rem; }
.social-handle { font-size: 0.75rem; color: var(--muted); }

/* Footer */
.footer {
  margin-top: 5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
  padding-bottom: 2rem;
}

.footer span { color: var(--primary); }
