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

:root {
  /* Color Palette */
  --bg-primary: #0a0a0d;
  --bg-secondary: #121217;
  --bg-tertiary: rgba(255, 255, 255, 0.03);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;

  --accent-primary: #3b82f6;
  /* Electric Blue */
  --accent-secondary: #8b5cf6;
  /* Vibrant Purple */
  --accent-gradient: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  --accent-gradient-hover: linear-gradient(135deg, #60a5fa, #a78bfa);

  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.2);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Layout */
  --max-width: 1100px;
  --section-padding: 100px 24px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

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

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

ul {
  list-style: none;
}

/* Utilities */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.glass-panel {
  background: var(--bg-tertiary);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
}

.glass-panel:hover {
  border-color: var(--border-hover);
  /* transform: translateY(-4px); */
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* Layout Elements */
section {
  padding: var(--section-padding);
  position: relative;
}

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

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--accent-primary);
  font-family: var(--font-heading);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--transition-slow);
}

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

.delay-100 {
  transition-delay: 100ms;
}

.delay-200 {
  transition-delay: 200ms;
}

.delay-300 {
  transition-delay: 300ms;
}

.delay-400 {
  transition-delay: 400ms;
}

/* Grid Background */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.glow-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 1;
  pointer-events: none;
  opacity: 0.4;
}

.glow-1 {
  background: var(--accent-primary);
  width: 40vw;
  height: 40vw;
  top: -20vw;
  right: -10vw;
}

.glow-2 {
  background: var(--accent-secondary);
  width: 30vw;
  height: 30vw;
  bottom: -10vw;
  left: -10vw;
}

/* Component Styles will be added here */

/* ====== COMPONENT STYLES ====== */

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 100;
  transition: all var(--transition-normal);
}

nav.scrolled {
  background: rgba(10, 10, 13, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 15px 0;
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -1px;
}

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

.nav-links {
  display: none;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
    gap: 24px;
  }

  .nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
  }

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

  .nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--accent-gradient);
    transition: width var(--transition-normal);
  }

  .nav-links a:hover::after {
    width: 100%;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-normal);
  cursor: pointer;
  font-family: var(--font-heading);
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  background: var(--accent-gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
  color: white;
  /* ensure color stays white */
}

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

.btn-outline:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: rgba(59, 130, 246, 0.05);
}

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

@media (min-width: 992px) {
  .hero {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-full);
  color: var(--accent-primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  font-family: var(--font-heading);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 1.1rem;
  margin-bottom: 40px;
  max-width: 500px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: all var(--transition-normal);
}

.social-links a:hover {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
  transform: translateY(-3px);
}

.quick-stats {
  display: flex;
  gap: 32px;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  margin-top: 24px;
}

.stat-item {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  font-weight: 500;
  display: flex;
  flex-direction: column;
}

.stat-item .highlight {
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-heading);
  margin-bottom: 4px;
}

/* Hero Visual */
.hero-visual {
  flex: 1;
  position: relative;
  display: none;
  min-height: 400px;
}

@media (min-width: 992px) {
  .hero-visual {
    display: block;
  }
}

.shape-1 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  opacity: 0.2;
  filter: blur(20px);
  animation: morph 8s ease-in-out infinite alternate;
}

.shape-2 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 350px;
  height: auto;
  padding: 24px;
  z-index: 2;
  background: rgba(18, 18, 23, 0.7);
}

.code-snippet {
  font-family: 'Fira Code', monospace;
  /* fallback if not loaded */
  font-size: 0.9rem;
  line-height: 1.5;
  color: #abb2bf;
}

.code-snippet .keyword {
  color: #c678dd;
}

.code-snippet .string {
  color: #98c379;
}

@keyframes morph {
  0% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }

  100% {
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
  }
}

/* ====== TIMELINE (EXPERIENCE) ====== */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  height: 100%;
  width: 2px;
  background: var(--border-color);
}

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

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

@media (min-width: 768px) {
  .timeline-item {
    padding-left: 100px;
  }
}

.timeline-dot {
  position: absolute;
  left: 15px;
  top: 24px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 0 4px var(--bg-primary), 0 0 0 6px rgba(59, 130, 246, 0.3);
}

@media (min-width: 768px) {
  .timeline-dot {
    left: 45px;
  }
}

.timeline-content {
  padding: 32px;
}

.job-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.85rem;
  color: var(--accent-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.job-title {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.company {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 16px;
}

.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.job-desc {
  list-style-type: none;
}

.job-desc li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.job-desc li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: bold;
}

.job-desc strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ====== PROJECTS ====== */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
}

.project-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-icon {
  font-size: 2rem;
  color: var(--accent-primary);
  margin-bottom: 24px;
}

.project-title {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.project-desc {
  font-size: 0.95rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

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

.tech-tag {
  font-size: 0.75rem;
  font-family: var(--font-heading);
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent-primary);
}

.project-link:hover {
  color: var(--accent-secondary);
  text-decoration: underline;
}

/* ====== SKILLS ====== */
.skills-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

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

.skill-category {
  padding: 32px;
}

.skill-category h3 {
  font-size: 1.2rem;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.skill-category h3 i {
  color: var(--accent-primary);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skill-tag {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.skill-tag:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.skill-tag.primary {
  background: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.3);
}

.skill-tag.primary:hover {
  background: var(--accent-primary);
  color: white;
}

/* ====== FOOTER ====== */
footer {
  text-align: center;
  padding: 60px 24px;
  border-top: 1px solid var(--border-color);
  margin-top: 100px;
  background: rgba(0, 0, 0, 0.2);
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
}

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

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 32px 0;
}

.footer-socials a {
  font-size: 1.5rem;
  color: var(--text-secondary);
}

.footer-socials a:hover {
  color: var(--accent-primary);
  transform: translateY(-3px);
}

.copyright {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

/* ====== CUSTOM CURSOR ====== */

/* Hide default cursor on interactive elements and body */
body,
a,
button,
.btn {
  cursor: none;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-primary);
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 10000;
  pointer-events: none;
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(59, 130, 246, 0.5);
  /* using an accent-primary matching rgba */
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 9999;
  pointer-events: none;
  transition: transform var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast);
}

.cursor-outline.hover {
  transform: translate(-50%, -50%) scale(1.5);
  background: rgba(59, 130, 246, 0.1);
  border-color: transparent;
}