/* --- Variables & Theme --- */
:root {
  --bg: #030303;
  --panel: #0f0f0f;
  --border: #222222;
  --primary: #ededed;
  --secondary: #a1a1aa;
  --accent: #3b82f6; /* Modern Blue */
  
  --font-main: 'Inter', sans-serif;
  --font-display: 'Manrope', sans-serif;
  
  --radius: 12px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-main);
}

body {
  background-color: var(--bg);
  color: var(--primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.2s; }
ul { list-style: none; }

/* --- Background Effects --- */
.bg-noise {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100vh;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
  z-index: -1;
  pointer-events: none;
}

.bg-gradient {
  position: fixed;
  top: -20%; left: 20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* --- Layout --- */
main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0; left: 0; width: 100%;
  height: 70px;
  background: rgba(3, 3, 3, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav-container {
  max-width: 1000px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.5px;
}
.highlight { color: var(--accent); }

.nav-right { display: flex; align-items: center; gap: 2rem; }

.nav-links { display: flex; gap: 1.5rem; }
.nav-links a { font-size: 0.9rem; color: var(--secondary); font-weight: 500; }
.nav-links a:hover { color: var(--primary); }

.nav-btn {
  background: var(--primary);
  color: #000;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-btn:hover { background: #ccc; }

/* --- Hero Section --- */
.hero {
  padding-top: 180px;
  padding-bottom: 100px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}
.dot { width: 6px; height: 6px; background: #22c55e; border-radius: 50%; box-shadow: 0 0 8px #22c55e; }

h1 {
  font-family: var(--font-display);
  font-size: 3.8rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}

.text-gradient {
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--secondary);
  max-width: 550px;
  margin-bottom: 2.5rem;
}

.hero-actions { display: flex; gap: 1rem; }

.btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--primary);
  color: #000;
}
.btn-primary:hover { transform: translateY(-2px); background: #fff; box-shadow: 0 4px 20px rgba(255,255,255,0.2); }

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--primary);
}
.btn-secondary:hover { border-color: var(--secondary); background: rgba(255,255,255,0.1); }

/* --- Bento Grid --- */
.section { padding: 60px 0; }

.bento-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 20px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease);
}

.card:hover { border-color: #333; }

.card-inner { padding: 1.5rem; height: 100%; display: flex; flex-direction: column; justify-content: center; }

/* Spotlight Effect CSS */
.spotlight::before {
  content: '';
  position: absolute;
  top: var(--y, -150px);
  left: var(--x, -150px);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 60%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 2;
}

/* Profile Card */
.profile-card { grid-column: span 1; }
.profile-header { display: flex; align-items: center; gap: 15px; margin-bottom: 1rem; }
.avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); }
.role { font-size: 0.85rem; color: var(--secondary); display: block; }
.bio { font-size: 0.9rem; color: var(--secondary); line-height: 1.5; }

/* Stack Card */
.stack-card h4 { margin-bottom: 1rem; font-size: 0.95rem; color: var(--secondary); }
.stack-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.stack-tags span {
  font-size: 0.75rem;
  background: #1a1a1a;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid #2a2a2a;
  color: #ccc;
}


/* Experience Card */
.exp-card { text-decoration: none; transition: 0.3s; cursor: pointer; }
.exp-card:hover { background: #151515; }
.center-content { align-items: center; text-align: center; }
.icon-box { 
  width: 40px; height: 40px; 
  background: #1a1a1a; 
  border-radius: 50%; 
  display: flex; align-items: center; justify-content: center; 
  margin-bottom: 10px;
  color: var(--accent);
}
.exp-text h4 { font-size: 1rem; margin-bottom: 2px; }
.exp-text p { font-size: 0.8rem; color: var(--secondary); }

/* --- Projects --- */
.section-header { display: flex; align-items: center; gap: 20px; margin-bottom: 30px; }
.section-header h2 { font-size: 1.5rem; font-family: var(--font-display); }
.line { flex: 1; height: 1px; background: var(--border); }

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.project-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s;
}

.project-card:hover { transform: translateY(-5px); border-color: var(--secondary); }

.project-top { display: flex; justify-content: space-between; margin-bottom: 1.5rem; }
.folder-icon { font-size: 2.5rem; color: var(--accent); }
.links a { font-size: 1.2rem; color: var(--secondary); margin-left: 10px; }
.links a:hover { color: var(--primary); }

.project-card h3 { font-size: 1.3rem; margin-bottom: 0.5rem; font-family: var(--font-display); }
.project-card p { font-size: 0.9rem; color: var(--secondary); margin-bottom: 1.5rem; }

.tech-list { display: flex; gap: 10px; }
.tech-list span { font-size: 0.75rem; font-family: monospace; color: var(--secondary); }

/* --- Contact & Footer --- */
.contact-box {
  background: linear-gradient(180deg, var(--panel) 0%, #050505 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4rem 2rem;
  text-align: center;
}

.contact-box h2 { font-size: 2.5rem; margin-bottom: 1rem; letter-spacing: -1px; }
.contact-box p { color: var(--secondary); margin-bottom: 2.5rem; }


/* .email-btn, .whatsapp-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 24px;
  background: #1a1a1a;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--primary);
  font-weight: 500;
} */


footer { padding: 3rem 0; border-top: 1px solid var(--border); margin-top: 4rem; }
.footer-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--secondary);
}
.footer-links a { margin-left: 20px; }
.footer-links a:hover { color: var(--primary); }

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.5rem; }
  .nav-links { display: none; } /* Simplified mobile nav */
  .bento-grid { grid-template-columns: 1fr; }
  .profile-card { grid-column: auto; }
  .hero { padding-top: 120px; }
}
.metrics {
  display: flex;
  justify-content: center;
  gap: 60px;
  padding: 60px 20px;
}

.metric h2 {
  font-size: 2.5rem;
  color: #6366f1;
}

.spotlight {
  opacity: 0;
  transform: translateY(30px);
  transition: 0.6s;
}

.spotlight.show {
  opacity: 1;
  transform: translateY(0);
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
  justify-content: center;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 30px;
  font-weight: 500;
  text-decoration: none;
  color: white;
  transition: transform 0.2s, box-shadow 0.2s;
  background: linear-gradient(135deg, #6366f1, #a78bfa);
}

.contact-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(99,102,241,0.4);
}

.email-btn { background: #7173f2; }
.whatsapp-btn { background: #25d366; }
.linkedin-btn { background: #0077b5; }

.exp-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  padding: 40px;
}

.exp-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: 0.3s;
  cursor: pointer;
}

.exp-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.exp-card:hover {
  transform: translateY(-6px);
  border-color: var(--secondary);
}

.exp-content {
  padding: 20px;
}

.exp-content h3 {
  margin-bottom: 5px;
}

.company {
  font-weight: 600;
  color: var(--accent);
}

.duration {
  font-size: 0.9rem;
  color: var(--secondary);
}

.desc {
  font-size: 0.95rem;
}