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

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

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #16161f;
  --bg-card-hover: #1c1c28;
  --border: #1e1e2e;
  --border-hover: #2e2e44;
  --text-primary: #f0f0f5;
  --text-secondary: #8888a0;
  --text-muted: #55556a;
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --accent-glow: rgba(99, 102, 241, 0.15);
  --purple: #8b5cf6;
  --pink: #ec4899;
  --amber: #f59e0b;
  --green: #10b981;
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Utility ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; position: relative; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--text-primary), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-subtitle { color: var(--text-secondary); font-size: 1.05rem; max-width: 550px; margin: 0 auto; }
.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--purple), var(--pink));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ── Animations ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulse-glow { 0%, 100% { box-shadow: 0 0 20px var(--accent-glow); } 50% { box-shadow: 0 0 40px var(--accent-glow); } }
@keyframes gradient-shift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes blob { 0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; } 50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; } }
.animate-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.animate-in.visible { opacity: 1; transform: translateY(0); }

/* ── Navbar ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 10, 15, 0.8); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent; transition: var(--transition);
}
.navbar.scrolled { border-bottom-color: var(--border); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-logo { font-size: 1.3rem; font-weight: 700; color: var(--text-primary); text-decoration: none; letter-spacing: -0.5px; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; font-weight: 500;
  transition: var(--transition); position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
  background: var(--accent); transition: var(--transition); border-radius: 1px;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  background: var(--accent); color: #fff; padding: 8px 20px; border-radius: 8px; text-decoration: none;
  font-size: 0.85rem; font-weight: 600; transition: var(--transition); border: none; cursor: pointer;
}
.nav-cta:hover { background: var(--accent-hover); transform: translateY(-1px); }
.mobile-toggle { display: none; background: none; border: none; color: var(--text-primary); cursor: pointer; font-size: 1.5rem; }

/* ── Hero ── */
.hero {
  min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden;
  padding-top: 72px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-blob {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.12; animation: blob 8s ease-in-out infinite;
}
.hero-blob-1 { width: 500px; height: 500px; background: var(--accent); top: -10%; right: -5%; }
.hero-blob-2 { width: 400px; height: 400px; background: var(--purple); bottom: -5%; left: -10%; animation-delay: -4s; }
.hero-blob-3 { width: 300px; height: 300px; background: var(--pink); top: 40%; left: 30%; animation-delay: -2s; }
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(99,102,241,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content { position: relative; z-index: 1; width: 100%; }
.hero-greeting { font-size: 1.1rem; color: var(--accent); font-weight: 500; margin-bottom: 12px; animation: fadeUp 0.6s ease both; }
.hero-name {
  font-size: clamp(2.5rem, 7vw, 4.5rem); font-weight: 800; line-height: 1.1; margin-bottom: 8px;
  animation: fadeUp 0.6s ease 0.1s both; letter-spacing: -2px;
}
.hero-title {
  font-size: clamp(1.2rem, 3vw, 1.8rem); color: var(--text-secondary); font-weight: 300;
  margin-bottom: 20px; animation: fadeUp 0.6s ease 0.2s both;
}
.hero-tagline {
  font-size: 1.1rem; color: var(--text-secondary); max-width: 560px; margin-bottom: 36px;
  animation: fadeUp 0.6s ease 0.3s both; line-height: 1.8;
}
.hero-buttons { display: flex; gap: 16px; margin-bottom: 50px; animation: fadeUp 0.6s ease 0.4s both; flex-wrap: wrap; }
.btn-primary {
  background: var(--accent); color: #fff; padding: 14px 32px; border-radius: 10px; text-decoration: none;
  font-weight: 600; font-size: 0.95rem; transition: var(--transition); border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 8px 30px var(--accent-glow); }
.btn-secondary {
  background: transparent; color: var(--text-primary); padding: 14px 32px; border-radius: 10px;
  text-decoration: none; font-weight: 600; font-size: 0.95rem; border: 1px solid var(--border);
  transition: var(--transition); cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.hero-stats { display: flex; gap: 48px; animation: fadeUp 0.6s ease 0.5s both; }
.stat-item { text-align: left; }
.stat-value { font-size: 1.8rem; font-weight: 700; color: var(--text-primary); }
.stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.5px; font-weight: 500; }

/* ── About ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text p { color: var(--text-secondary); margin-bottom: 16px; font-size: 1.02rem; }
.about-highlights { display: flex; flex-direction: column; gap: 20px; }
.highlight-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
  transition: var(--transition); display: flex; gap: 16px; align-items: flex-start;
}
.highlight-card:hover { border-color: var(--border-hover); transform: translateX(4px); background: var(--bg-card-hover); }
.highlight-icon {
  width: 44px; height: 44px; border-radius: 10px; background: var(--accent-glow);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.2rem;
}
.highlight-card h4 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.highlight-card p { color: var(--text-secondary); font-size: 0.88rem; margin: 0; line-height: 1.6; }

/* ── Skills ── */
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.skill-category {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px;
  transition: var(--transition);
}
.skill-category:hover { border-color: var(--border-hover); transform: translateY(-4px); background: var(--bg-card-hover); }
.skill-category-header { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.skill-category-icon { font-size: 1.2rem; }
.skill-category-name { font-weight: 600; font-size: 0.95rem; }
.skill-item { margin-bottom: 14px; }
.skill-item:last-child { margin-bottom: 0; }
.skill-info { display: flex; justify-content: space-between; margin-bottom: 6px; }
.skill-name { font-size: 0.85rem; color: var(--text-secondary); }
.skill-level { font-size: 0.75rem; color: var(--text-muted); }
.skill-bar { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.skill-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--purple)); border-radius: 2px; transition: width 1s ease; width: 0; }

/* ── Projects ── */
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.project-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; transition: var(--transition); cursor: pointer; position: relative;
}
.project-card:hover { border-color: var(--border-hover); transform: translateY(-6px); box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.project-visual {
  height: 180px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.project-visual-bg {
  position: absolute; inset: 0; opacity: 0.1;
  background: linear-gradient(135deg, var(--accent), var(--purple));
}
.project-visual svg { position: relative; z-index: 1; opacity: 0.5; }
.project-body { padding: 28px; }
.project-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; }
.project-subtitle { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 12px; }
.project-desc { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 16px; line-height: 1.7; }
.project-metric {
  display: inline-flex; align-items: center; gap: 6px; background: var(--accent-glow);
  color: var(--accent-hover); padding: 6px 14px; border-radius: 20px; font-size: 0.82rem;
  font-weight: 600; margin-bottom: 16px;
}
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.project-tag {
  padding: 4px 12px; border-radius: 6px; font-size: 0.75rem; color: var(--text-muted);
  background: var(--bg-primary); border: 1px solid var(--border);
}

/* ── Project Modal ── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
  z-index: 200; display: none; align-items: center; justify-content: center; padding: 24px;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-lg);
  max-width: 640px; width: 100%; max-height: 85vh; overflow-y: auto; padding: 40px;
  animation: fadeUp 0.3s ease;
}
.modal-close {
  float: right; background: none; border: none; color: var(--text-muted); font-size: 1.5rem;
  cursor: pointer; transition: var(--transition); padding: 4px;
}
.modal-close:hover { color: var(--text-primary); }
.modal h2 { font-size: 1.5rem; margin-bottom: 4px; margin-top: 8px; }
.modal .project-subtitle { margin-bottom: 24px; }
.modal-section { margin-bottom: 20px; }
.modal-section h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent); margin-bottom: 8px; font-weight: 600; }
.modal-section p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.8; }

/* ── Experience ── */
.timeline { position: relative; max-width: 700px; margin: 0 auto; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--purple), transparent);
}
.timeline-item { position: relative; padding-left: 36px; margin-bottom: 40px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute; left: -5px; top: 6px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--bg-primary); z-index: 1;
}
.timeline-header { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.timeline-role { font-size: 1.1rem; font-weight: 600; }
.timeline-period { font-size: 0.82rem; color: var(--text-muted); font-weight: 500; }
.timeline-company { font-size: 0.95rem; color: var(--accent); margin-bottom: 12px; }
.timeline-achievements { list-style: none; }
.timeline-achievements li {
  color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 8px; padding-left: 20px;
  position: relative; line-height: 1.7;
}
.timeline-achievements li::before { content: '▸'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.contact-info h3 { font-size: 1.3rem; margin-bottom: 16px; }
.contact-info p { color: var(--text-secondary); margin-bottom: 24px; line-height: 1.8; }
.contact-email {
  display: inline-flex; align-items: center; gap: 10px; color: var(--accent); font-size: 1.05rem;
  text-decoration: none; font-weight: 500; margin-bottom: 28px; transition: var(--transition);
}
.contact-email:hover { color: var(--accent-hover); }
.social-links { display: flex; gap: 12px; }
.social-link {
  width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--text-secondary);
  text-decoration: none; transition: var(--transition); font-size: 1.1rem;
}
.social-link:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); transform: translateY(-2px); }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.85rem; font-weight: 500; color: var(--text-secondary); }
.form-group input, .form-group textarea {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; color: var(--text-primary); font-family: var(--font); font-size: 0.95rem;
  transition: var(--transition); outline: none; resize: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.form-group textarea { min-height: 120px; }
.form-submit {
  background: var(--accent); color: #fff; padding: 14px 32px; border-radius: 10px;
  font-weight: 600; font-size: 0.95rem; border: none; cursor: pointer; transition: var(--transition);
  font-family: var(--font);
}
.form-submit:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 8px 30px var(--accent-glow); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.form-status { font-size: 0.9rem; text-align: center; padding: 8px; border-radius: 8px; }
.form-status.success { color: var(--green); background: rgba(16, 185, 129, 0.1); }
.form-status.error { color: var(--pink); background: rgba(236, 72, 153, 0.1); }

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

/* ── Responsive ── */
@media (max-width: 900px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 70px 0; }
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--bg-secondary); border-bottom: 1px solid var(--border); padding: 24px;
    gap: 20px;
  }
  .skills-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .hero-name { letter-spacing: -1px; }
  .modal { padding: 24px; }
}
