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

:root {
  /* Color Palette - Professional Dark Mode (Linear/Vercel style) */
  --bg-main: #000000;
  --bg-surface: #0a0a0a;
  
  --primary: #ededed;
  --primary-hover: #ffffff;
  --accent: #3b82f6; /* Subtle professional blue */
  
  --text-main: #ededed;
  --text-muted: #a1a1aa; /* zinc-400 */
  --text-light: #52525b; /* zinc-600 */
  
  --border-color: #27272a; /* zinc-800 */
  --border-hover: #3f3f46; /* zinc-700 */
  
  /* Shadows/Glows (very subtle for professional dark mode) */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 0 0 1px var(--border-hover), 0 10px 15px -3px rgba(0, 0, 0, 0.8);
  
  /* Typography */
  --font-main: 'Inter', sans-serif;
  
  /* Utilities */
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-md: 8px;
  --radius-lg: 12px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: none; /* Hide default cursor */
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: var(--accent);
  transition: var(--transition);
}

a:hover {
  color: var(--primary-hover);
}

ul {
  list-style: none;
}

/* Layout Utilities */
.container {
  max-width: 1100px; /* Slightly tighter for a cleaner look */
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 100px 0;
  position: relative;
  border-bottom: 1px solid var(--border-color);
}

section:last-of-type {
  border-bottom: none;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  position: relative;
  font-weight: 600;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin-bottom: 3.5rem;
  max-width: 600px;
}

/* Navigation */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  transition: var(--transition);
  padding: 24px 0;
  background-color: transparent;
}

header.scrolled {
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

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

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
  outline: none;
}

.btn-primary {
  background-color: var(--text-main);
  color: var(--bg-main);
}

.btn-primary:hover {
  background-color: #d4d4d8;
  color: var(--bg-main);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--border-color);
  color: var(--text-main);
}

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

/* Hero Section */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background: radial-gradient(circle at top center, rgba(39, 39, 42, 0.4) 0%, transparent 60%);
}

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

.hero-subtitle {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 20px;
  display: block;
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.hero-title span {
  display: block;
  color: var(--text-light);
  font-size: 3.5rem;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 600px;
}

.hero-btns {
  display: flex;
  gap: 16px;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.about-text p {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 800px;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.contact-card {
  background: var(--bg-surface);
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}

.contact-card:hover {
  border-color: var(--border-hover);
  background-color: #121212;
}

.contact-card-icon {
  width: 40px;
  height: 40px;
  background-color: var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-card-info h4 {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2px;
  font-weight: 500;
}

.contact-card-info p, .contact-card-info a {
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 500;
}

/* Skills Section */
.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skill-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-main);
  transition: var(--transition);
}

.skill-tag i {
  color: var(--accent);
  font-size: 1.1rem;
}

.skill-tag:hover {
  border-color: var(--border-hover);
  background-color: #121212;
  transform: translateY(-2px);
}

/* Experience Section */
.timeline {
  position: relative;
  max-width: 800px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  background: var(--border-color);
  margin-left: 11px; /* Align to center of icon */
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 40px;
}

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

.timeline-icon {
  position: absolute;
  top: 4px;
  left: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-main);
  border: 2px solid var(--border-color);
  z-index: 2;
  transition: var(--transition);
}

.timeline-item:hover .timeline-icon {
  border-color: var(--text-main);
}

.timeline-content {
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
}

.timeline-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 8px;
  display: block;
}

.timeline-title {
  font-size: 1.25rem;
  margin-bottom: 4px;
  font-weight: 600;
}

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

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--bg-surface);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: var(--border-hover);
  background: #121212;
  transform: translateY(-4px);
}

.project-icon {
  width: 40px;
  height: 40px;
  background-color: var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--text-main);
  font-size: 1.1rem;
}

.project-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
  font-weight: 600;
}

.project-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tech span {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 10px;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-muted);
}

/* Education Section */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.edu-card {
  background: var(--bg-surface);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.edu-card:hover {
  border-color: var(--border-hover);
  background: #121212;
}

.edu-year {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 12px;
}

.edu-degree {
  font-size: 1.15rem;
  margin-bottom: 4px;
  font-weight: 600;
}

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

/* Footer */
footer {
  text-align: center;
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-main);
}

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

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

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-title span {
    font-size: 2.25rem;
  }
  
  .timeline-item {
    padding-left: 32px;
  }
  
  .timeline-icon {
    width: 16px;
    height: 16px;
    left: 3px;
  }
  
  .timeline::before {
    margin-left: 10px;
  }
}

/* ── Custom Cursor Effect ── */
#cursor {
  position: fixed;
  width: 8px; height: 8px;
  background: #fff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000; /* Extremely high to stay on top */
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: transform 0.08s ease, width 0.2s ease, height 0.2s ease;
}

body:active #cursor {
  width: 14px; height: 14px;
}

/* ── Canvas Background ── */
canvas#c {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1; /* Behind all content */
}
