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

:root {
  --bg-primary: #f8fafb;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.85);
  --accent: #00b894;
  --accent-2: #0984e3;
  --accent-glow: rgba(0, 184, 148, 0.08);
  --text-primary: #1a1a2e;
  --text-secondary: #555e6e;
  --text-muted: #8892a4;
  --border: rgba(0, 0, 0, 0.06);
  --gradient-1: linear-gradient(135deg, #00b894, #0984e3);
  --gradient-2: linear-gradient(135deg, #6c5ce7, #a29bfe);
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.08);
  --shadow-accent: 0 8px 25px rgba(0, 184, 148, 0.15);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

#particles-canvas {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: padding 0.3s, box-shadow 0.3s;
}
.navbar.scrolled {
  padding: 0.6rem 2rem;
  box-shadow: var(--shadow-sm);
}
.nav-container {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-size: 1.5rem; font-weight: 900; text-decoration: none;
  background: var(--gradient-1); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--text-secondary); text-decoration: none; font-size: 0.9rem;
  font-weight: 500; transition: color 0.2s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--gradient-1);
  transition: width 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 5px;
}
.hamburger span { width: 25px; height: 2px; background: var(--text-primary); transition: all 0.3s; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; z-index: 1; padding: 6rem 2rem 4rem;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f9ff 0%, #f8fafb 40%, #f0fdf4 100%);
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0.08;
  background-image:
    linear-gradient(rgba(0,184,148,0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,184,148,0.4) 1px, transparent 1px);
  background-size: 100px 100px;
}
.hero-topo {
  position: absolute; inset: 0; z-index: -1; overflow: hidden; opacity: 0.08;
}
.hero-topo svg { width: 100%; height: 100%; }
.topo-line { fill: none; stroke: var(--accent); stroke-width: 1.2; }
.hero-coords {
  position: absolute; z-index: 0; font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem; color: rgba(0,184,148,0.2); letter-spacing: 1px;
}
.hero-coords.c1 { top: 15%; left: 5%; }
.hero-coords.c2 { bottom: 10%; right: 8%; }
.hero-container {
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.hero-content { animation: fadeInUp 0.8s ease; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 1.2rem; border-radius: 50px;
  background: rgba(0,184,148,0.08); border: 1px solid rgba(0,184,148,0.15);
  font-size: 0.8rem; color: var(--accent); margin-bottom: 1.5rem; font-weight: 600;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); animation: pulse 2s infinite;
}
.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 900;
  line-height: 1.1; margin-bottom: 0.5rem; color: var(--text-primary);
}
.gradient-text {
  background: var(--gradient-1); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-subtitle { font-size: 1.2rem; color: var(--accent); font-weight: 600; margin-bottom: 1rem; }
.typing-cursor { color: var(--accent); animation: pulse 1s infinite; margin-left: 2px; }
.hero-desc {
  font-size: 1.05rem; color: var(--text-secondary);
  max-width: 520px; margin-bottom: 2rem; line-height: 1.8;
}
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
  padding: 0.8rem 1.8rem; border-radius: 14px; font-weight: 600;
  font-size: 0.95rem; text-decoration: none; display: inline-flex;
  align-items: center; gap: 0.5rem; transition: all 0.25s; cursor: pointer;
  border: none; font-family: inherit;
}
.btn-primary {
  background: var(--gradient-1); color: #fff;
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,184,148,0.25); }
.btn-outline {
  background: var(--bg-secondary); color: var(--text-primary);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* Profile Picture */
.hero-image-wrapper {
  display: flex; justify-content: center; align-items: center;
  animation: fadeInRight 0.8s ease 0.2s both;
}
.profile-frame { position: relative; width: 340px; height: 400px; }
.profile-frame-border {
  position: absolute; inset: -8px; border-radius: 24px;
  background: var(--gradient-1); opacity: 0.4; transform: rotate(3deg);
}
.profile-frame-bg {
  position: absolute; inset: -4px; border-radius: 22px;
  background: var(--bg-primary); transform: rotate(3deg);
}
.profile-pic {
  position: relative; z-index: 2;
  width: 100%; height: 100%; object-fit: cover; object-position: top;
  border-radius: 20px; border: 4px solid #fff;
  box-shadow: var(--shadow-lg);
  transition: transform 0.4s, box-shadow 0.4s;
}
.profile-frame:hover .profile-pic {
  transform: scale(1.02);
  box-shadow: 0 25px 60px rgba(0,0,0,0.1), 0 0 0 4px rgba(0,184,148,0.15);
}
.profile-accent-line {
  position: absolute; z-index: 3;
  width: 50px; height: 3px; background: var(--gradient-1); border-radius: 2px;
}
.profile-accent-line.top { top: -12px; right: 30px; }
.profile-accent-line.bottom { bottom: -12px; left: 30px; }
.hero-stats {
  display: flex; gap: 2rem; margin-top: 2.5rem;
  padding-top: 2rem; border-top: 1px solid var(--border);
}
.stat { text-align: center; }
.stat-number {
  font-size: 1.8rem; font-weight: 800;
  background: var(--gradient-1); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* ===== SECTIONS ===== */
section { position: relative; z-index: 1; padding: 5rem 2rem; }
section:nth-child(odd) { background: var(--bg-primary); }
section:nth-child(even) { background: var(--bg-secondary); }
.section-container { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-tag {
  display: inline-block; padding: 0.35rem 1.2rem; border-radius: 50px;
  background: var(--accent-glow); border: 1px solid rgba(0,184,148,0.15);
  font-size: 0.78rem; color: var(--accent); font-weight: 600;
  margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 1.5px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 1rem;
  color: var(--text-primary);
}
.section-desc { color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

/* ===== ABOUT ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.about-text p { color: var(--text-secondary); margin-bottom: 1rem; font-size: 1.05rem; }
.about-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.highlight-card {
  padding: 1.3rem; border-radius: 16px;
  background: var(--bg-secondary); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); transition: all 0.25s;
}
.highlight-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(0,184,148,0.2); }
.highlight-icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--accent-glow); display: flex; align-items: center;
  justify-content: center; margin-bottom: 0.7rem; color: var(--accent); font-size: 1.1rem;
}
.highlight-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.2rem; color: var(--text-primary); }
.highlight-desc { font-size: 0.8rem; color: var(--text-muted); }

/* ===== SKILLS ===== */
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.skill-category {
  padding: 1.8rem; border-radius: 20px;
  background: var(--bg-card); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); transition: all 0.25s;
}
.skill-category:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(0,184,148,0.2); }
.skill-cat-icon {
  width: 50px; height: 50px; border-radius: 14px;
  background: var(--gradient-1); display: flex; align-items: center;
  justify-content: center; margin-bottom: 1rem; color: #fff; font-size: 1.3rem;
  box-shadow: var(--shadow-accent);
}
.skill-cat-title { font-weight: 700; font-size: 1.1rem; margin-bottom: 1rem; color: var(--text-primary); }
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.skill-tag {
  padding: 0.3rem 0.8rem; border-radius: 8px; font-size: 0.78rem;
  background: var(--accent-glow); border: 1px solid rgba(0,184,148,0.1);
  color: var(--text-secondary); transition: all 0.2s;
}
.skill-tag:hover { background: rgba(0,184,148,0.12); color: var(--accent); border-color: rgba(0,184,148,0.2); }

/* ===== EXPERIENCE ===== */
.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline::before {
  content: ''; position: absolute; left: 30px; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(to bottom, var(--accent), var(--accent-2), transparent);
}
.timeline-item { position: relative; padding-left: 70px; margin-bottom: 2.5rem; }
.timeline-dot {
  position: absolute; left: 22px; top: 8px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg-primary); border: 3px solid var(--accent); z-index: 2;
  transition: all 0.25s;
}
.timeline-item:hover .timeline-dot { background: var(--accent); box-shadow: 0 0 12px rgba(0,184,148,0.3); }
.timeline-card {
  padding: 1.5rem; border-radius: 16px;
  background: var(--bg-secondary); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); transition: all 0.25s;
}
.timeline-card:hover { transform: translateX(5px); box-shadow: var(--shadow-md); border-color: rgba(0,184,148,0.2); }
.timeline-date { font-size: 0.8rem; color: var(--accent); font-weight: 600; margin-bottom: 0.3rem; }
.timeline-role { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.2rem; color: var(--text-primary); }
.timeline-company { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.8rem; }
.timeline-desc { font-size: 0.88rem; color: var(--text-secondary); }
.timeline-desc li { margin-bottom: 0.3rem; margin-left: 1rem; }

/* ===== PROJECTS ===== */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.project-card {
  padding: 1.5rem; border-radius: 20px;
  background: var(--bg-card); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); transition: all 0.25s; display: flex; flex-direction: column;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(0,184,148,0.2); }
.project-header { display: flex; justify-content: space-between; align-items: start; margin-bottom: 1rem; }
.project-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--gradient-1); display: flex; align-items: center;
  justify-content: center; color: #fff; font-size: 1.2rem;
  box-shadow: var(--shadow-accent);
}
.project-links a { color: var(--text-muted); text-decoration: none; font-size: 1.1rem; transition: color 0.2s; }
.project-links a:hover { color: var(--accent); }
.project-title { font-weight: 700; font-size: 1.05rem; margin-bottom: 0.5rem; color: var(--text-primary); }
.project-desc { font-size: 0.85rem; color: var(--text-secondary); flex: 1; margin-bottom: 1rem; }
.project-tech { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.project-tech span {
  padding: 0.25rem 0.7rem; border-radius: 6px; font-size: 0.7rem;
  background: rgba(9,132,227,0.06); border: 1px solid rgba(9,132,227,0.1);
  color: var(--accent-2); font-family: 'JetBrains Mono', monospace;
}

/* ===== EDUCATION ===== */
.edu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.edu-card {
  padding: 2rem; border-radius: 20px;
  background: var(--bg-card); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); transition: all 0.25s;
  position: relative; overflow: hidden;
}
.edu-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--gradient-1);
}
.edu-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.edu-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--gradient-1); display: flex; align-items: center;
  justify-content: center; margin-bottom: 1rem; color: #fff; font-size: 1.4rem;
  box-shadow: var(--shadow-accent);
}
.edu-degree { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.3rem; color: var(--text-primary); }
.edu-school { color: var(--accent); font-weight: 600; font-size: 0.95rem; margin-bottom: 0.3rem; }
.edu-year { color: var(--text-muted); font-size: 0.85rem; }
.edu-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 0.8rem; padding: 0.3rem 0.8rem;
  border-radius: 50px; font-size: 0.75rem; font-weight: 600;
  background: rgba(234,179,8,0.1); color: #d69e2e;
  border: 1px solid rgba(234,179,8,0.2);
}

/* ===== CERTIFICATIONS ===== */
.certs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.cert-card {
  padding: 1.2rem; border-radius: 14px;
  background: var(--bg-card); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); transition: all 0.2s;
}
.cert-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(0,184,148,0.15); }
.cert-issuer { font-size: 0.7rem; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.3rem; }
.cert-name { font-size: 0.85rem; font-weight: 600; line-height: 1.4; color: var(--text-primary); }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-card {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.2rem; border-radius: 16px;
  background: var(--bg-card); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); transition: all 0.2s; text-decoration: none; color: inherit;
}
.contact-card:hover { transform: translateX(5px); box-shadow: var(--shadow-md); border-color: rgba(0,184,148,0.2); }
.contact-icon {
  width: 50px; height: 50px; border-radius: 14px;
  background: var(--gradient-1); display: flex; align-items: center;
  justify-content: center; font-size: 1.3rem; flex-shrink: 0; color: #fff;
  box-shadow: var(--shadow-accent);
}
.contact-label { font-size: 0.8rem; color: var(--text-muted); }
.contact-value { font-weight: 600; font-size: 0.95rem; color: var(--text-primary); }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-group input, .form-group textarea {
  width: 100%; padding: 1rem; border-radius: 14px;
  background: var(--bg-primary); border: 1px solid var(--border);
  color: var(--text-primary); font-family: 'Inter', sans-serif;
  font-size: 0.95rem; transition: border-color 0.2s; outline: none;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,184,148,0.1); }
.form-group textarea { min-height: 120px; resize: vertical; }

/* ===== FOOTER ===== */
.footer {
  padding: 2.5rem; text-align: center;
  border-top: 1px solid var(--border); background: var(--bg-secondary);
  position: relative; z-index: 1;
}
.footer-links { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 1rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 1.3rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.footer p { color: var(--text-muted); font-size: 0.85rem; }

/* ===== SCROLL REVEAL ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal:nth-child(2) { transition-delay: 0.06s; }
.reveal:nth-child(3) { transition-delay: 0.12s; }
.reveal:nth-child(4) { transition-delay: 0.18s; }
.reveal:nth-child(5) { transition-delay: 0.24s; }
.reveal:nth-child(6) { transition-delay: 0.3s; }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .skills-grid, .projects-grid, .certs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
    flex-direction: column; background: var(--bg-secondary);
    padding: 5rem 2rem; gap: 1.5rem;
    transition: right 0.3s; border-left: 1px solid var(--border);
    box-shadow: -10px 0 30px rgba(0,0,0,0.08);
  }
  .nav-links.active { right: 0; }
  .hero-container { grid-template-columns: 1fr; text-align: center; }
  .hero-desc { margin: 0 auto 2rem; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-image-wrapper { order: -1; }
  .profile-frame { width: 260px; height: 320px; }
  .about-grid, .contact-grid, .edu-grid { grid-template-columns: 1fr; }
  .skills-grid, .projects-grid, .certs-grid { grid-template-columns: 1fr; }
}
