:root {
  --bg-color: #0f172a;
  --card-bg: #1e293b;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --accent: #38bdf8;
  --accent-glow: rgba(56, 189, 248, 0.3);
  --font-main: "Inter", system-ui, -apple-system, sans-serif;
  --transition: all 0.3s ease;
}

/* Reset & Basics */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}
a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}
ul {
  list-style: none;
}

/* Utilities */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  padding: 80px 0;
}
.text-center {
  text-align: center;
}
.highlight {
  color: var(--accent);
}

/* Buttons */
.btn-primary {
  display: inline-block;
  padding: 12px 24px;
  background: var(--accent);
  color: var(--bg-color);
  font-weight: 600;
  border-radius: 6px;
  border: 2px solid var(--accent);
}
.btn-primary:hover {
  background: transparent;
  color: var(--accent);
  box-shadow: 0 0 15px var(--accent-glow);
}

.btn-secondary {
  display: inline-block;
  padding: 12px 24px;
  border: 2px solid var(--text-secondary);
  color: var(--text-secondary);
  border-radius: 6px;
  font-weight: 600;
  margin-left: 10px;
}
.btn-secondary:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 1.5rem;
  font-weight: 700;
}
.logo .dot {
  color: var(--accent);
}
.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.nav-links a:hover {
  color: var(--accent);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: radial-gradient(circle at top right, #1e293b 0%, transparent 40%);
}
.hero h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 15px;
}
.hero h2 {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-weight: 400;
}
.hero p {
  max-width: 600px;
  color: var(--text-secondary);
  margin-bottom: 30px;
  font-size: 1.1rem;
}
.tech-marquee span {
  display: inline-block;
  margin-right: 15px;
  font-family: monospace;
  color: var(--accent);
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.skill-card {
  background: var(--card-bg);
  padding: 25px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}
.skill-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}
.skill-card h3 {
  color: var(--accent);
  margin-bottom: 10px;
  font-size: 1.1rem;
}
.skill-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}
.project-card {
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.project-card h3 {
  font-size: 1.4rem;
  margin-bottom: 5px;
}
.project-card .tag {
  font-size: 0.75rem;
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 15px;
}
.project-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 20px;
}
.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.tech-list li {
  font-size: 0.8rem;
  font-family: monospace;
  color: var(--text-secondary);
}
.project-card .links a {
  margin-right: 15px;
  font-size: 0.9rem;
  font-weight: 600;
  border-bottom: 1px solid var(--accent);
}

/* Timeline */
.timeline {
  margin-top: 40px;
  border-left: 2px solid var(--card-bg);
  margin-left: 10px;
}
.timeline-item {
  padding-left: 30px;
  position: relative;
  margin-bottom: 40px;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 5px;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
}
.timeline-date {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 5px;
  font-family: monospace;
}

/* Footer */
footer {
  padding: 80px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.socials {
  margin: 30px 0;
  display: flex;
  justify-content: center;
  gap: 20px;
}
.copyright {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards;
}
.delay-1 {
  animation-delay: 0.2s;
}
.delay-2 {
  animation-delay: 0.4s;
}
.delay-3 {
  animation-delay: 0.6s;
}

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

/* Scroll Reveal Class (controlled by JS) */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: 0.6s ease-out;
}
.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .nav-links {
    display: none;
  } /* Add hamburger logic in JS */
}
