:root {
  --bg-dark: #fafafa;
  --bg-card: #ffffff;
  --bg-hover: #f1f5f9;
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(225, 29, 72, 0.3);
  --text-main: #171717;
  --text-muted: #525252;
  --primary: #e11d48;
  --primary-glow: rgba(225, 29, 72, 0.1);
  --secondary: #f97316;
  --overlay: rgba(0, 0, 0, 0.04);
  --nav-bg: rgba(255, 255, 255, 0.7);
  
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

html.dark {
  --bg-dark: #0a0a0a;
  --bg-card: #121212;
  --bg-hover: #1a1a1a;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(225, 29, 72, 0.3);
  --text-main: #f5f5f5;
  --text-muted: #a3a3a3;
  --primary: #e11d48;
  --primary-glow: rgba(225, 29, 72, 0.15);
  --secondary: #f97316;
  --overlay: rgba(255, 255, 255, 0.03);
  --nav-bg: rgba(10, 10, 10, 0.7);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
}

body {
  position: relative;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

.mono-text {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: -0.02em;
}

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

/* Layout */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 8rem 0;
  position: relative;
  z-index: 10;
}

/* Ambient Background Glows */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 1;
  pointer-events: none;
}
.glow-1 {
  width: 600px;
  height: 600px;
  background: var(--primary-glow);
  top: -100px;
  right: -200px;
}
.glow-2 {
  width: 500px;
  height: 500px;
  background: rgba(249, 115, 22, 0.08);
  bottom: 20%;
  left: -200px;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-main);
}
.logo i {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.nav-links a:hover {
  color: var(--primary);
}
.btn-nav {
  padding: 0.5rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-main) !important;
}
.btn-nav:hover {
  border-color: var(--primary);
}
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.75rem;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  font-family: var(--font-display);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px var(--primary-glow);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.75rem;
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 600;
  font-family: var(--font-display);
  transition: border-color 0.2s;
}
.btn-secondary:hover {
  border-color: var(--text-muted);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px; /* offset navbar */
}
.hero-content {
  max-width: 800px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--overlay);
  margin-bottom: 2rem;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(225, 29, 72, 0); }
  100% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0); }
}
.hero-title {
  font-size: clamp(3rem, 6vw, 5rem);
  margin-bottom: 1.5rem;
}
.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-desc {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 650px;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Shared Section Styles */
.section-header {
  margin-bottom: 4rem;
}
.section-label {
  font-family: var(--font-mono);
  color: var(--primary);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.5rem;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 1.5rem;
}
.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: border-color 0.3s, transform 0.3s;
  display: flex;
  flex-direction: column;
}
.bento-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.col-span-2 { grid-column: span 2; }
.row-span-2 { grid-row: span 2; }

.bento-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.bento-card p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.bento-card p:last-child {
  margin-bottom: 0;
}
.card-icon {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
}
.card-icon.highlight {
  color: var(--primary);
}
.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: auto;
}
.tech-list span {
  padding: 0.4rem 0.8rem;
  background: var(--overlay);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}
.flex-center {
  align-items: center;
  justify-content: center;
  text-align: center;
}
.gradient-card {
  background: linear-gradient(135deg, rgba(225,29,72,0.1), rgba(249,115,22,0.1));
  border-color: rgba(225, 29, 72, 0.2);
}
.gradient-card h2 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* Timeline */
.experience-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.timeline {
  max-width: 800px;
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}
.timeline-item:last-child {
  margin-bottom: 0;
}
.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 0.25rem;
  width: 12px;
  height: 12px;
  background: var(--bg-dark);
  border: 2px solid var(--primary);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 10px var(--primary-glow);
}
.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.5rem;
}
.timeline-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}
.accent-text {
  color: var(--primary);
}
.timeline-content p {
  color: var(--text-muted);
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.project-card {
  display: block;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: transform 0.3s, border-color 0.3s;
}
.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
}
.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.project-icon {
  color: var(--primary);
  width: 28px;
  height: 28px;
}
.project-year {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--overlay);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
}
.project-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.project-card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.project-tags span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--primary);
}

/* Contact */
.contact-box {
  background: linear-gradient(135deg, var(--bg-card), rgba(225,29,72,0.05));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.contact-text p {
  color: var(--text-muted);
  font-size: 1.1rem;
}
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--overlay);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: var(--font-mono);
  transition: background 0.2s, border-color 0.2s;
}
.contact-link:hover {
  background: rgba(225,29,72,0.05);
  border-color: var(--primary);
}
.contact-link i {
  color: var(--primary);
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: 4rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-inner p {
  color: var(--text-muted);
}
.scroll-top {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  transition: color 0.2s, border-color 0.2s;
}
.scroll-top:hover {
  color: var(--primary);
  border-color: var(--primary);
}

/* Responsive */
@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .col-span-2 {
    grid-column: span 1;
  }
  .contact-box {
    grid-template-columns: 1fr;
    padding: 2rem;
    gap: 2rem;
  }
  .hero-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
  }
}
@media (max-width: 768px) {
  .nav-links {
    display: none; /* simple mobile hide for now */
  }
  .mobile-menu-btn {
    display: block;
  }
}

.theme-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}
.theme-btn:hover {
  color: var(--primary);
}


