:root {
  --bg: #fafafa;
  --bg-secondary: #ffffff;
  --surface: #ffffff;
  --surface-border: #e4e4e7;
  --text: #18181b;
  --text-muted: #52525b;
  --accent: #2563eb;
  --accent-secondary: #3b82f6;
  --accent-glow: rgba(37, 99, 235, 0.08);
  --font-main: 'Inter', sans-serif;
  --font-code: 'Fira Code', monospace;
  --max-width: 1000px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout */
main {
  padding: 0 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}

.text-accent {
  color: var(--accent);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  transition: all 0.3s ease;
  padding: 1.25rem 0;
  background: rgba(250, 250, 250, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--surface-border);
}

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

.logo a {
  font-family: var(--font-code);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.5px;
  transition: color 0.3s;
}

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

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}

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

.btn-sm.btn-outline {
  border: 1px solid var(--surface-border);
  padding: 0.4rem 1rem;
  border-radius: 6px;
  color: var(--text);
  font-weight: 500;
}

.btn-sm.btn-outline:hover {
  background: var(--bg-secondary);
  border-color: var(--text-muted);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 4rem;
}

.hero-content {
  max-width: 800px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-glow);
  color: var(--accent);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(37, 99, 235, 0.2);
  margin-bottom: 2rem;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent);
  border-radius: 50%;
}

.hero h1 {
  font-size: clamp(2.5rem, 4vw, 4rem);
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero p {
  color: var(--text-muted);
  font-size: clamp(1.05rem, 2vw, 1.15rem);
  max-width: 650px;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-large {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
}

.btn-primary:hover {
  background: transparent;
  color: var(--text);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--surface-border);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--text-muted);
}

/* Sections */
.section {
  padding: 5rem 0;
  border-top: 1px solid var(--surface-border);
}

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

.section h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.skill-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  padding: 2rem;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.hover-lift:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

.skill-icon {
  width: 40px;
  height: 40px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.skill-card h3 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.skill-card ul {
  list-style: none;
}

.skill-card li {
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-card li::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--surface-border);
  border-radius: 50%;
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  border-left: 1px solid var(--surface-border);
  padding-left: 2rem;
  margin-left: 1rem;
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.35rem;
  top: 0.25rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--surface-border);
  transition: border-color 0.2s ease;
}

.timeline-item:hover::before {
  border-color: var(--accent);
}

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

.timeline-header h3 {
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}

.company {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.date {
  font-family: var(--font-code);
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}

.experience-list {
  list-style: none;
}

.experience-list li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

.experience-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: #a1a1aa;
}

/* Projects */
.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-top: 50px;
}

.project-card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.project-media {
  width: 100%;
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.project-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-tag {
  font-family: var(--font-code);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.project-details h3 {
  font-size: 1.5rem;
}

.project-description {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0.5rem 0;
}

.tech-stack li {
  font-family: var(--font-code);
  font-size: 0.75rem;
  background: var(--surface);
  color: var(--text-muted);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  border: 1px solid var(--surface-border);
}

.project-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  transition: all 0.2s ease;
}

.btn-link:hover {
  background: var(--bg);
  border-color: var(--text-muted);
}

/* Contact */
.contact-box {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  padding: 4rem 2rem;
  border-radius: 16px;
  max-width: 600px;
  margin: 0 auto;
}

.contact-box h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact-box p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.contact-actions {
  display: flex;
  justify-content: center;
}

/* Footer */
footer {
  padding: 2.5rem 0;
  margin-top: 2rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

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

/* Animations */
.reveal-hidden {
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active, .skill-card.active, .timeline-item.active {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

/* Responsive */
@media (max-width: 900px) {
  .project-card-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .hero {
    padding-top: 6rem;
  }
  
  .hero h1 {
    font-size: 2.25rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .timeline::before {
    left: -1.05rem;
  }
}


