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

:root {
  --primary: #2563EB;
  --primary-dark: #1E3A5F;
  --secondary: #14B8A6;
  --accent: #3B82F6;
  --bg: #0F172A;
  --surface: #1E293B;
  --surface-light: #334155;
  --text: #F8FAFC;
  --text-muted: #94A3B8;
  --gradient-1: linear-gradient(135deg, #2563EB, #14B8A6);
  --gradient-2: linear-gradient(135deg, #1E3A5F, #0F172A);
  --glass: rgba(30, 41, 59, 0.6);
  --glass-border: rgba(59, 130, 246, 0.15);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --radius: 16px;
  --radius-sm: 8px;
}

*, *::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);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── Scroll Progress ── */
#scroll-progress {
  position: fixed; top:0; left:0; height:3px; z-index:1001;
  background: var(--gradient-1); width:0; transition: width 0.1s;
}

/* ── Navbar ── */
.navbar {
  position: fixed; top:0; width:100%; z-index:1000;
  background: rgba(15,23,42,0.85); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s;
}
.navbar.scrolled { background: rgba(15,23,42,0.95); }
.nav-container {
  max-width: 1200px; margin:0 auto; padding:0 24px;
  display:flex; align-items:center; justify-content:space-between; height:70px;
}
.nav-logo {
  font-size:1.3rem; font-weight:700; background: var(--gradient-1);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent;
  text-decoration:none;
}
.nav-links { display:flex; gap:32px; list-style:none; }
.nav-links a {
  color: var(--text-muted); text-decoration:none; font-size:0.9rem;
  font-weight:500; transition:color 0.3s; position:relative;
}
.nav-links a::after {
  content:''; position:absolute; bottom:-4px; left:0; width:0; height:2px;
  background: var(--gradient-1); transition:width 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.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:4px;
}
.hamburger span {
  width:24px; height:2px; background: var(--text); transition:0.3s;
}

/* ── Hero ── */
.hero {
  min-height:100vh; display:flex; align-items:center; justify-content:center;
  position:relative; overflow:hidden; padding: 100px 24px 60px;
}
.hero-bg {
  position:absolute; inset:0; z-index:0;
  background: radial-gradient(ellipse at 30% 50%, rgba(37,99,235,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(20,184,166,0.1) 0%, transparent 60%);
}
.particles { position:absolute; inset:0; z-index:0; overflow:hidden; }
.particle {
  position:absolute; border-radius:50%; opacity:0.3;
  animation: float linear infinite;
}
@keyframes float {
  0% { transform: translateY(100vh) rotate(0deg); opacity:0; }
  10% { opacity:0.3; }
  90% { opacity:0.3; }
  100% { transform: translateY(-10vh) rotate(720deg); opacity:0; }
}
.hero-content {
  max-width:1200px; width:100%; display:flex; align-items:center;
  gap:60px; z-index:1;
}
.hero-text { flex:1; }
.hero-badge {
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 16px; border-radius:50px; font-size:0.85rem; font-weight:500;
  background: rgba(20,184,166,0.1); border:1px solid rgba(20,184,166,0.3);
  color: var(--secondary); margin-bottom:20px;
}
.hero-badge .dot {
  width:8px; height:8px; border-radius:50%; background:var(--secondary);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:0.5; transform:scale(1.3); }
}
.hero-text h1 {
  font-size:clamp(2.2rem, 5vw, 3.5rem); font-weight:800;
  line-height:1.15; margin-bottom:8px;
}
.hero-text h1 .gradient {
  background: var(--gradient-1);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent;
}
.typing-wrapper { height:2.2rem; margin-bottom:20px; }
.typing-text {
  font-size:1.25rem; color:var(--secondary); font-weight:500;
  border-right:2px solid var(--secondary);
  animation: blink 0.8s infinite;
  white-space:nowrap; overflow:hidden; display:inline;
}
@keyframes blink { 50% { border-color:transparent; } }
.hero-text p {
  font-size:1.05rem; color:var(--text-muted); max-width:520px; margin-bottom:32px;
}
.hero-ctas { display:flex; gap:16px; flex-wrap:wrap; }
.btn {
  display:inline-flex; align-items:center; gap:8px;
  padding:14px 28px; border-radius:50px; font-weight:600;
  font-size:0.95rem; text-decoration:none; transition:all 0.3s;
  cursor:pointer; border:none;
}
.btn-primary {
  background: var(--gradient-1); color:#fff;
  box-shadow: 0 4px 20px rgba(37,99,235,0.4);
}
.btn-primary:hover { transform:translateY(-2px); box-shadow: 0 6px 30px rgba(37,99,235,0.5); }
.btn-outline {
  background:transparent; color:var(--text);
  border:1px solid var(--glass-border);
}
.btn-outline:hover { border-color:var(--accent); background:rgba(59,130,246,0.1); }
.hero-image { flex-shrink:0; }
.profile-ring {
  width:300px; height:300px; border-radius:50%; padding:6px;
  background: var(--gradient-1); animation: ring-rotate 6s linear infinite;
  position:relative;
}
@keyframes ring-rotate {
  0% { background: linear-gradient(0deg, #2563EB, #14B8A6); }
  50% { background: linear-gradient(180deg, #2563EB, #14B8A6); }
  100% { background: linear-gradient(360deg, #2563EB, #14B8A6); }
}
.profile-ring img {
  width:100%; height:100%; border-radius:50%; object-fit:cover;
  border:4px solid var(--bg);
}
.hero-stats {
  display:flex; gap:40px; margin-top:48px; padding-top:32px;
  border-top:1px solid var(--glass-border);
}
.stat-item .stat-number {
  font-size:1.8rem; font-weight:800; background:var(--gradient-1);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent;
}
.stat-item .stat-label { font-size:0.8rem; color:var(--text-muted); margin-top:2px; }

/* ── Sections ── */
section { padding:100px 24px; }
.section-container { max-width:1200px; margin:0 auto; }
.section-header { text-align:center; margin-bottom:60px; }
.section-header h2 {
  font-size:clamp(1.8rem, 4vw, 2.5rem); font-weight:800; margin-bottom:12px;
}
.section-header h2 .gradient {
  background:var(--gradient-1);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent;
}
.section-header p { color:var(--text-muted); max-width:600px; margin:0 auto; font-size:1.05rem; }

/* ── About ── */
.about-grid { display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:start; }
.about-text p { color:var(--text-muted); margin-bottom:16px; font-size:1rem; }
.about-cards { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.about-card {
  background: var(--glass); border:1px solid var(--glass-border);
  border-radius: var(--radius); padding:24px; text-align:center;
  backdrop-filter:blur(12px); transition:all 0.3s;
}
.about-card:hover { transform:translateY(-4px); border-color:var(--accent); }
.about-card .card-icon { font-size:2rem; margin-bottom:8px; }
.about-card .card-number {
  font-size:1.6rem; font-weight:800; background:var(--gradient-1);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent;
}
.about-card .card-label { font-size:0.8rem; color:var(--text-muted); margin-top:4px; }

/* ── Skills ── */
.skills-categories { display:grid; grid-template-columns:repeat(auto-fit, minmax(280px,1fr)); gap:24px; }
.skill-category {
  background:var(--glass); border:1px solid var(--glass-border);
  border-radius:var(--radius); padding:28px; backdrop-filter:blur(12px);
  transition:all 0.3s;
}
.skill-category:hover { transform:translateY(-4px); border-color:var(--accent); }
.skill-category h3 {
  font-size:1.1rem; font-weight:700; margin-bottom:20px;
  display:flex; align-items:center; gap:10px;
}
.skill-tags { display:flex; flex-wrap:wrap; gap:8px; }
.skill-tag {
  padding:6px 14px; border-radius:50px; font-size:0.8rem; font-weight:500;
  background:rgba(59,130,246,0.1); border:1px solid rgba(59,130,246,0.2);
  color:var(--accent); transition:all 0.3s;
}
.skill-tag:hover { background:rgba(59,130,246,0.2); transform:translateY(-1px); }

/* ── Experience Timeline ── */
.timeline { position:relative; padding-left:40px; }
.timeline::before {
  content:''; position:absolute; left:15px; top:0; bottom:0; width:2px;
  background: var(--gradient-1);
}
.timeline-item { position:relative; margin-bottom:48px; }
.timeline-item:last-child { margin-bottom:0; }
.timeline-dot {
  position:absolute; left:-33px; top:6px; width:14px; height:14px;
  border-radius:50%; background:var(--accent);
  border:3px solid var(--bg); box-shadow:0 0 10px rgba(59,130,246,0.5);
}
.timeline-card {
  background:var(--glass); border:1px solid var(--glass-border);
  border-radius:var(--radius); padding:28px; backdrop-filter:blur(12px);
  transition:all 0.3s;
}
.timeline-card:hover { transform:translateX(8px); border-color:var(--accent); }
.timeline-card h3 { font-size:1.15rem; font-weight:700; margin-bottom:4px; }
.timeline-card .company {
  font-size:0.95rem; color:var(--secondary); font-weight:600; margin-bottom:4px;
}
.timeline-card .period { font-size:0.85rem; color:var(--text-muted); margin-bottom:14px; }
.timeline-card ul { list-style:none; }
.timeline-card li {
  position:relative; padding-left:18px; margin-bottom:8px;
  color:var(--text-muted); font-size:0.9rem;
}
.timeline-card li::before {
  content:'▹'; position:absolute; left:0; color:var(--secondary);
}

/* ── Projects ── */
.projects-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(350px,1fr)); gap:24px; }
.project-card {
  background:var(--glass); border:1px solid var(--glass-border);
  border-radius:var(--radius); padding:32px; backdrop-filter:blur(12px);
  transition:all 0.4s; position:relative; overflow:hidden;
}
.project-card::before {
  content:''; position:absolute; top:0; left:0; right:0; height:3px;
  background:var(--gradient-1); opacity:0; transition:opacity 0.3s;
}
.project-card:hover { transform:translateY(-8px); border-color:var(--accent); }
.project-card:hover::before { opacity:1; }
.project-header { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:16px; }
.project-icon { font-size:2.2rem; }
.project-links { display:flex; gap:12px; }
.project-links a {
  color:var(--text-muted); text-decoration:none; font-size:0.85rem;
  transition:color 0.3s; display:flex; align-items:center; gap:4px;
}
.project-links a:hover { color:var(--secondary); }
.project-card h3 { font-size:1.15rem; font-weight:700; margin-bottom:6px; }
.project-badge {
  display:inline-block; padding:3px 10px; border-radius:50px; font-size:0.7rem;
  font-weight:600; background:rgba(20,184,166,0.15); color:var(--secondary);
  margin-bottom:12px;
}
.project-card p { color:var(--text-muted); font-size:0.9rem; margin-bottom:16px; }
.project-tech { display:flex; flex-wrap:wrap; gap:6px; }
.project-tech span {
  padding:4px 10px; border-radius:4px; font-size:0.75rem;
  background:rgba(59,130,246,0.08); color:var(--accent);
}

/* ── Education ── */
.education-grid { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.edu-card {
  background:var(--glass); border:1px solid var(--glass-border);
  border-radius:var(--radius); padding:32px; backdrop-filter:blur(12px);
  transition:all 0.3s;
}
.edu-card:hover { transform:translateY(-4px); border-color:var(--accent); }
.edu-card .edu-icon { font-size:2rem; margin-bottom:12px; }
.edu-card h3 { font-size:1.1rem; font-weight:700; margin-bottom:4px; }
.edu-card .edu-school { color:var(--secondary); font-weight:600; font-size:0.95rem; margin-bottom:4px; }
.edu-card .edu-period { color:var(--text-muted); font-size:0.85rem; margin-bottom:12px; }
.edu-card p { color:var(--text-muted); font-size:0.88rem; }

/* ── Contact ── */
#contact { background: var(--surface); border-top:1px solid var(--glass-border); }
.contact-content { display:flex; flex-direction:column; align-items:center; text-align:center; }
.contact-links { display:flex; gap:20px; flex-wrap:wrap; justify-content:center; margin-top:40px; }
.contact-link {
  display:flex; align-items:center; gap:10px; padding:16px 28px;
  background:var(--glass); border:1px solid var(--glass-border);
  border-radius:var(--radius); text-decoration:none; color:var(--text);
  backdrop-filter:blur(12px); transition:all 0.3s; font-weight:500;
}
.contact-link:hover { transform:translateY(-4px); border-color:var(--accent); background:rgba(59,130,246,0.1); }
.contact-link .link-icon { font-size:1.3rem; }

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

/* ── Scroll Reveal ── */
.reveal {
  opacity:0; transform:translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity:1; transform:translateY(0); }

/* ── Responsive ── */
@media (max-width:900px) {
  .hero-content { flex-direction:column-reverse; text-align:center; gap:40px; }
  .hero-text p { margin:0 auto 32px; }
  .hero-ctas { justify-content:center; }
  .hero-stats { justify-content:center; }
  .profile-ring { width:220px; height:220px; }
  .about-grid { grid-template-columns:1fr; }
  .education-grid { grid-template-columns:1fr; }
  .projects-grid { grid-template-columns:1fr; }
}
@media (max-width:768px) {
  .nav-links { 
    display:none; position:fixed; top:70px; left:0; right:0;
    background:rgba(15,23,42,0.98); flex-direction:column;
    padding:24px; gap:20px; border-bottom:1px solid var(--glass-border);
  }
  .nav-links.open { display:flex; }
  .hamburger { display:flex; }
  .hero-stats { gap:24px; flex-wrap:wrap; }
  section { padding:60px 16px; }
}
@media (max-width:480px) {
  .profile-ring { width:180px; height:180px; }
  .about-cards { grid-template-columns:1fr; }
  .hero-stats { flex-direction:column; align-items:center; }
  .contact-links { flex-direction:column; align-items:stretch; }
}
