/* ============================================================
   Mrudula Gharat — AI/ML Developer Portfolio
   Aesthetic: Clean, Professional, Minimalist, Engineering-Focused
   ============================================================ */

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

:root {
  --bg: #09090b; /* Zinc 950 */
  --bg-secondary: #18181b; /* Zinc 900 */
  --bg-tertiary: #27272a; /* Zinc 800 */
  
  --border: #27272a;
  --border-hover: #3f3f46;
  
  --text-main: #fafafa;
  --text-muted: #a1a1aa;
  
  --accent: #3b82f6; 
  --accent-glow: rgba(59, 130, 246, 0.15);
  
  --font-sans: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --nav-h: 80px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
}

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

::selection {
  background: var(--text-muted);
  color: var(--bg);
}

/* Custom Cursor */
.cursor-dot {
  width: 8px; height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}
.cursor-outline {
  width: 40px; height: 40px;
  border: 2px solid rgba(59, 130, 246, 0.5);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, border-color 0.2s;
}
.cursor-outline.hover {
  width: 60px; height: 60px;
  border-color: #ec4899; /* Neon Pink */
  background: rgba(236, 72, 153, 0.1);
}

/* Backgrounds */
#neural-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -3;
  pointer-events: none;
}

.bg-grid {
  position: fixed;
  inset: -5%;
  z-index: -2;
  background-size: 50px 50px;
  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);
  pointer-events: none;
  mask-image: radial-gradient(circle at top, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at top, black 40%, transparent 80%);
}

.bg-glow {
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.15), transparent 70%); /* Deep Purple glow */
  z-index: -1;
  pointer-events: none;
}

/* Typography */
h1, h2, h3, h4, h5 {
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

p { color: var(--text-muted); }

/* Navbar */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  background: transparent;
  z-index: 100;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.logo-accent {
  color: #ec4899;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
}

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

.hover-underline {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s, text-shadow 0.2s;
}

.hover-underline:hover {
  color: #3b82f6;
  text-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

.btn-resume {
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-main);
  padding: 8px 16px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 6px;
  background: rgba(59, 130, 246, 0.05);
  transition: all 0.2s;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.1);
}

.btn-resume:hover {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.2);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

/* Layout */
.content-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 5%;
}

.section {
  padding: 100px 0;
}

.section-header {
  display: flex;
  align-items: center;
  margin-bottom: 48px;
  gap: 20px;
}

.section-header.center {
  justify-content: center;
}

.section-number {
  font-family: var(--font-mono);
  font-size: 14px;
  color: #ec4899;
}

.section-title {
  font-size: 24px;
  font-weight: 600;
}

.section-line {
  flex-grow: 1;
  height: 1px;
  background: linear-gradient(90deg, #ec4899, transparent);
  margin-left: 10px;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-top: var(--nav-h);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-main);
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 30px;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #8b5cf6;
  border-radius: 50%;
  box-shadow: 0 0 8px #8b5cf6;
}

.hero-title {
  font-size: clamp(48px, 8vw, 84px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #3b82f6 0%, #ec4899 50%, #8b5cf6 100%);
  background-size: 200% auto;
  animation: shine 4s linear infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  min-height: 100px;
}

.dud {
  color: #a1a1aa;
}

@keyframes shine {
  to { background-position: 200% center; }
}

.hero-description {
  font-size: 18px;
  max-width: 600px;
  margin-bottom: 40px;
  line-height: 1.6;
}

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

.btn-primary {
  background: var(--text-main);
  color: var(--bg);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 6px;
  transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
  will-change: transform;
}

.btn-primary:hover {
  background: #e4e4e7;
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-main);
  border: 1px solid var(--border);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

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

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text p {
  margin-bottom: 20px;
  font-size: 16px;
}

.code-window {
  background: #111113;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.code-header {
  background: rgba(255,255,255,0.02);
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.code-header .dots {
  display: flex;
  gap: 6px;
}

.code-header .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.code-header .dot.red { background: #ff5f56; }
.code-header .dot.yellow { background: #ffbd2e; }
.code-header .dot.green { background: #27c93f; }

.file-name {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 16px;
  position: relative;
  display: inline-block;
}

.title-python {
  display: inline-block;
  transition: opacity 0.3s, transform 0.3s;
}

.title-terminal {
  position: absolute;
  top: 0; left: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
  color: #10b981;
  white-space: nowrap;
}

.code-window:hover .title-python {
  opacity: 0;
  transform: translateY(-10px);
}

.code-window:hover .title-terminal {
  opacity: 1;
  transform: translateY(0);
}

.code-body {
  padding: 20px;
  position: relative;
  overflow-x: auto;
  min-height: 250px;
}

.code-content {
  transition: opacity 0.3s cubic-bezier(0.25, 1, 0.5, 1), transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.code-python {
  opacity: 1;
  transform: translateY(0);
}

.ai-output {
  position: absolute;
  top: 20px; left: 20px;
  opacity: 0;
  transform: translateY(15px);
  pointer-events: none;
}

.code-window:hover .code-python {
  opacity: 0;
  transform: translateY(-15px);
  pointer-events: none;
}

.code-window:hover .ai-output {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.ai-output pre {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: #e5e7eb;
}

.term-info { color: #8b5cf6; }
.term-success { color: #10b981; font-weight: bold; }
.term-highlight { color: #ec4899; }
.term-prompt { color: #3b82f6; }

.cursor-blink {
  animation: blink 1s step-start infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.code-python pre {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: #e5e7eb;
}

.keyword { color: #c678dd; }
.class-name { color: #e5c07b; }
.function { color: #61afef; }
.string { color: #98c379; }
.comment { color: #5c6370; }
.var { color: #e06c75; }

/* Subtle Spotlight Effect Base & Glassmorphism */
.spotlight-card {
  background: rgba(24, 24, 27, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.spotlight-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 300ms;
  pointer-events: none;
  background: radial-gradient(
    600px circle at var(--mouse-x) var(--mouse-y), 
    rgba(255, 255, 255, 0.04),
    transparent 40%
  );
  z-index: 1;
}

.spotlight-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(59, 130, 246, 0.08);
}

.spotlight-card:hover::before {
  opacity: 1;
}

.spotlight-card > * {
  position: relative;
  z-index: 2;
}

/* Expertise */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.expertise-card {
  padding: 28px 24px;
}

.card-icon {
  font-size: 20px;
  color: var(--text-main);
  margin-bottom: 20px;
}

.expertise-card h3 {
  font-size: 16px;
  margin-bottom: 12px;
}

.expertise-card p {
  font-size: 14px;
  margin-bottom: 24px;
}

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

.tech-tags span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-main);
  background: var(--bg-tertiary);
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: default;
}

.tech-tags span:hover {
  transform: translateY(-2px) scale(1.05);
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  color: #fff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

/* Experience */
.experience-container {
  max-width: 800px;
  margin: 0 auto;
}

.experience-card {
  padding: 32px;
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.exp-role {
  font-size: 20px;
  color: var(--text-main);
  margin-bottom: 4px;
}

.exp-company {
  color: var(--text-muted);
  font-weight: 400;
}

.exp-date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}

.pulse-badge {
  display: inline-block;
  font-size: 11px;
  font-family: var(--font-mono);
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.exp-desc {
  font-size: 15px;
  margin-bottom: 16px;
}

.exp-project {
  background: rgba(255, 255, 255, 0.03);
  border-left: 2px solid var(--text-muted);
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 14px;
  border-radius: 0 4px 4px 0;
}

.exp-label {
  font-weight: 600;
  color: var(--text-main);
  margin-right: 4px;
}

.exp-list {
  list-style: none;
  margin-bottom: 24px;
}

.exp-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.exp-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

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

.project-card {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  text-decoration: none;
  height: 100%;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.folder-icon {
  font-size: 24px;
  color: var(--text-muted);
}

.link-icon {
  color: var(--text-muted);
  font-size: 16px;
  transition: color 0.2s;
}

.project-card:hover .link-icon {
  color: var(--text-main);
}

.status-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 4px 8px;
  border-radius: 4px;
}

.project-title {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text-main);
}

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

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

/* Contact */
.contact-container {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

.contact-text {
  font-size: 16px;
  margin-bottom: 32px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 48px;
}

.social-links a {
  color: var(--text-muted);
  font-size: 20px;
  transition: color 0.2s;
}

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

/* Footer */
.footer {
  text-align: center;
  padding: 32px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

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

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

.reveal-delay {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

/* Responsive & Touch Devices */
@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
  
  .hamburger {
    display: flex;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(9, 9, 11, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
    align-items: flex-start;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .about-grid, .expertise-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  
  .hero-actions a {
    width: 100%;
    justify-content: center;
  }
  
  .exp-header {
    flex-direction: column;
    gap: 8px;
  }
  
  .code-body {
    padding: 16px;
  }
  
  .bg-glow {
    width: 100vw;
  }
}

@media (max-width: 480px) {
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .section-line {
    width: 100%;
    margin-left: 0;
  }
  
  .project-card {
    padding: 20px 16px;
  }
  
  .experience-card {
    padding: 20px 16px;
  }
}

/* Disable Custom Cursors on Touch Devices (Mobile/Tablets) */
@media (hover: none) and (pointer: coarse) {
  .cursor-dot, .cursor-outline {
    display: none !important;
  }
  
  .spotlight-card {
    transform: none !important;
  }
  
  .spotlight-card:hover {
    transform: none !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  }
  
  .magnetic-btn {
    transform: none !important;
  }
}

/* Fix Hero Title Scaling using CSS Clamp */
.hero-title {
  font-size: clamp(36px, 8vw, 84px);
}