/* ============================================
   BASE & VARIABLES
   ============================================ */
*{margin:0;padding:0;box-sizing:border-box;font-family:'Poppins',sans-serif}

:root{
  --navy:    #0f172a;
  --blue:    #3b82f6;
  --blue-light: #60a5fa;
  --indigo:  #6366f1;
  --cyan:    #06b6d4;
  --bg:      #f0f4ff;
  --white:   #ffffff;
  --gray:    #64748b;
  --light:   #e2e8f0;
  --card:    #ffffff;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--navy);
  overflow-x: hidden;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #e2e8f0; }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 3px; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  background: rgba(15,23,42,0.95);
  backdrop-filter: blur(12px);
  padding: 16px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(99,102,241,0.2);
}

.logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.5px;
}

.logo span { color: var(--blue); }

nav a {
  margin-left: 28px;
  text-decoration: none;
  color: #94a3b8;
  font-weight: 500;
  font-size: 14px;
  transition: color .2s;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  border-radius: 2px;
  transition: width .25s;
}

nav a:hover { color: var(--white); }
nav a:hover::after { width: 100%; }

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: calc(100vh - 57px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 80px 80px;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0c1a3a 100%);
  position: relative;
  overflow: hidden;
  margin: 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -100px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(6,182,212,0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-text {
  max-width: 52%;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.4);
  color: var(--blue-light);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
  margin-top: -70px;
}

.hero-badge::before {
  content: '●';
  color: var(--cyan);
  font-size: 10px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.3; }
}

.hero-text h1 {
  font-size: 58px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -2px;
}

.hero-text h1 .accent {
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text h2 {
  font-size: 22px;
  margin-top: 12px;
  color: #94a3b8;
  font-weight: 400;
}

.hero-text p {
  margin-top: 20px;
  font-size: 16px;
  color: #94a3b8;
  line-height: 1.7;
  max-width: 480px;
}

.stats {
  display: flex;
  gap: 40px;
  margin-top: 32px;
}

.stat-item { text-align: center; }

.stat-item span {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: var(--white);
}

.stat-item small { color: #64748b; font-size: 13px; }

.hero-buttons {
  margin-top: 80px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--indigo));
  color: var(--white);
  padding: 14px 30px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(99,102,241,0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99,102,241,0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  padding: 14px 30px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid rgba(255,255,255,0.25);
  transition: all .2s;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.5);
}

/* ============================================
   HERO CARD
   ============================================ */
.hero-card {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 36px 28px;
  border-radius: 24px;
  width: 300px;
  min-width: 300px;
  text-align: center;
  position: relative;
  z-index: 1;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  flex-shrink: 0;
  align-self: center;
}

.profile-img-wrapper {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto 16px;
}

.profile-img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid transparent;
  background: linear-gradient(var(--navy), var(--navy)) padding-box,
              linear-gradient(135deg, var(--blue), var(--cyan)) border-box;
  box-shadow: 0 8px 24px rgba(6,182,212,0.35);
  display: block;
}

.card-circle {
  width: 110px;
  height: 110px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 50%;
  margin: 0 auto 16px;
  display: none;
  justify-content: center;
  align-items: center;
  font-size: 38px;
  font-weight: 800;
  color: var(--white);
  box-shadow: 0 8px 24px rgba(6,182,212,0.35);
}

.card-name {
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.card-title {
  color: #67e8f9;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.card-divider {
  height: 1px;
  background: rgba(255,255,255,0.15);
  margin: 20px 0;
}

.card-skills {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.card-skill-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  padding: 10px 14px;
  color: #f1f5f9;
  font-size: 13px;
  font-weight: 500;
  transition: background .2s;
}

.card-skill-item:hover {
  background: rgba(59,130,246,0.25);
  border-color: rgba(59,130,246,0.5);
}

.skill-icon { font-size: 16px; }

.card-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 500;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.tags { display: none; }

/* ============================================
   SHARED SECTION STYLES
   ============================================ */
.section { padding: 80px 60px; }

.section-label {
  display: inline-block;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section h2 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.section > p {
  color: var(--gray);
  font-size: 16px;
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 40px;
}

/* ============================================
   ABOUT
   ============================================ */
#about { background: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-top: 40px;
}

.about-card {
  background: var(--bg);
  border-radius: 20px;
  padding: 32px;
  border: 1px solid var(--light);
}

.about-card h4 { font-size: 15px; color: var(--gray); font-weight: 500; margin-bottom: 8px; }
.about-card p  { font-size: 22px; font-weight: 700; color: var(--navy); }

.skill-bars { margin-top: 30px; }

.skill { margin-bottom: 18px; }

.skill-label {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.skill-label span:last-child { color: var(--blue); }

.bar-bg {
  background: var(--light);
  border-radius: 100px;
  height: 8px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  animation: fillBar 1.5s ease forwards;
}

@keyframes fillBar { from { width: 0; } }

/* ============================================
   EXPERIENCE
   ============================================ */
#experience { background: var(--bg); }

.timeline { list-style: none; padding: 0; margin-top: 10px; }

.timeline li {
  background: var(--white);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 20px;
  border-left: 4px solid var(--blue);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transition: transform .2s;
}

.timeline li:hover { transform: translateX(4px); }

.timeline li h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.timeline li p  { color: var(--gray); font-size: 15px; line-height: 1.6; }

.role-tag {
  display: inline-block;
  background: rgba(59,130,246,0.1);
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 10px;
}

/* ============================================
   PROJECTS
   ============================================ */
#projects { background: var(--white); }

.project-gallery {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
  margin-top: 10px;
}

.project-card {
  background: var(--bg);
  border-radius: 20px;
  padding: 28px;
  border: 1px solid var(--light);
  transition: transform .25s, box-shadow .25s;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(59,130,246,0.12);
}

.project-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.project-card p  { color: var(--gray); font-size: 14px; line-height: 1.6; margin-bottom: 16px; }

.diagram-placeholder {
  width: 100%;
  height: 160px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e0e7ff 0%, #cffafe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  margin: 16px 0;
}

.details-btn {
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--blue), var(--indigo));
  color: var(--white);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  transition: opacity .2s;
}

.details-btn:hover { opacity: 0.85; }

.details {
  display: none;
  margin-top: 16px;
  background: linear-gradient(135deg, rgba(59,130,246,0.05), rgba(6,182,212,0.05));
  border: 1px solid rgba(59,130,246,0.15);
  padding: 16px;
  border-radius: 12px;
}

.details p  { font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--navy); }
.details ul { padding-left: 18px; }
.details ul li { font-size: 13px; color: var(--gray); margin-bottom: 5px; }

/* ============================================
   BLOG
   ============================================ */
#blog { background: var(--bg); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
  margin-top: 10px;
}

.blog-card {
  background: var(--white);
  border-radius: 20px;
  padding: 28px;
  border: 1px solid var(--light);
  transition: transform .25s, box-shadow .25s;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}

.blog-tag {
  display: inline-block;
  background: rgba(99,102,241,0.1);
  color: var(--indigo);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.blog-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; line-height: 1.4; }
.blog-card p  { color: var(--gray); font-size: 14px; line-height: 1.6; margin-bottom: 18px; }

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: gap .2s;
}

.read-more::after { content: '→'; }
.read-more:hover  { gap: 10px; }

/* ============================================
   CERTIFICATIONS
   ============================================ */
#certifications { background: var(--white); }

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
  margin-top: 10px;
}

.cert-card {
  background: linear-gradient(135deg, var(--navy), #1e1b4b);
  color: var(--white);
  border-radius: 18px;
  padding: 28px;
  text-align: center;
  transition: transform .25s;
}

.cert-card:hover { transform: scale(1.03); }

.cert-icon { font-size: 36px; margin-bottom: 12px; }
.cert-card p { font-size: 15px; font-weight: 600; line-height: 1.4; }
.cert-card small { color: #94a3b8; font-size: 12px; }

/* ============================================
   CONTACT
   ============================================ */
#contact {
  background: linear-gradient(135deg, var(--navy), #1e1b4b);
  color: var(--white);
  text-align: center;
}

#contact .section-label { color: var(--cyan); }
#contact h2 { color: var(--white); }

.contact-sub {
  color: #94a3b8;
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.6;
}

.contact-wrap { max-width: 640px; margin: 0 auto; }

.contact-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 40px 0 32px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 20px 24px;
  text-align: left;
  transition: background .2s, border-color .2s;
}

.contact-item:hover {
  background: rgba(59,130,246,0.12);
  border-color: rgba(59,130,246,0.35);
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

.contact-item-text small {
  display: block;
  color: #94a3b8;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 4px;
}

.contact-item-text p {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  margin: 0;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all .2s;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--white);
}

.social-btn:hover {
  background: var(--blue);
  border-color: var(--blue);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(59,130,246,0.3);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: #050d1a;
  color: #475569;
  text-align: center;
  padding: 24px 20px;
  font-size: 14px;
}

footer span { color: var(--blue); }
.footer-sub { margin-top: 6px; }

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .hero { flex-direction: column; padding: 60px 30px; gap: 40px; }
  .hero-text { max-width: 100%; }
  .hero-text h1 { font-size: 40px; }
  .about-grid,
  .project-gallery,
  .blog-grid,
  .cert-grid,
  .contact-info { grid-template-columns: 1fr; }
  .section, .navbar { padding-left: 24px; padding-right: 24px; }
  nav { display: none; }
}