:root {
  --primary: #2563eb;
  --dark: #0f172a;
  --muted: #475569;
  --light: #f8fafc;
  --border: #e2e8f0;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #ffffff;
  color: var(--dark);
  line-height: 1.6;
}

/* TYPOGRAPHY */
h1 {
  font-size: 52px;
  font-weight: 800;
}

h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 24px;
}

h3 {
  font-size: 20px;
  font-weight: 600;
}

/* LAYOUT */
.section {
  padding: 20px 8%;
}


.section.light {
  background: var(--light);
}

.section-text {
  max-width: 720px;
  color: var(--muted);
}

/* NAVBAR */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  z-index: 1000;
}

.nav-container {
  padding: 18px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
}

nav a {
  margin-left: 18px;
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
}

.btn-nav {
  background: var(--primary);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 8px;
}

/* HERO */
.hero {
  min-height: auto;
  padding: 90px 8% 64px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  align-items: center; /* 🔥 THIS IS THE KEY FIX */
}


.pill {
  display: inline-block;
  background: #e0ecff;
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 13px;
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  margin: 20px 0;
  color: var(--muted);
  max-width: 560px;
}

/* CTA */
.cta-group {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 24px;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e0ecff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  text-decoration: none;
}

/* HERO RIGHT CARD */
.expertise-card {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: #ffffff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(37, 99, 235, 0.4);
}

.expertise-card ul {
  list-style: none;
  margin-top: 20px;
}

.expertise-card li {
  margin-bottom: 12px;
}

/* ABOUT */
.about-text {
  max-width: 100%;
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
}

/* CARDS (ABOUT, SKILLS, CERTS) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.info-card {
  background: #ffffff;
  padding: 24px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  font-weight: 600;
}

/* EXPERIENCE */
.timeline {
  margin-top: 20px;
}

.timeline-item {
  background: #ffffff;
  padding: 24px;
  border-radius: 14px;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.timeline-item span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 14px;
}

/* PROJECTS */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.project-card {
  background: #ffffff;
  padding: 28px;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.project-card p {
  color: var(--muted);
}

.project-tags {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-tags span {
  background: #e0ecff;
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

/* CONTACT */
.contact-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.contact-card {
  background: #ffffff;
  padding: 24px;
  border-radius: 16px;
  display: flex;
  gap: 16px;
  align-items: center;
  text-decoration: none;
  color: var(--dark);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
}

.contact-card span {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e0ecff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}

.contact-card p {
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted);
}

/* FOOTER */
footer {
  background: var(--dark);
  color: #ffffff;
  text-align: center;
  padding: 30px;
  font-size: 14px;
}

/* ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cta-group {
    justify-content: center;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
  }
  /* ABOUT TEXT ENHANCEMENTS */
.about-text {
  border-left: 4px solid var(--primary);
  padding-left: 20px;
}

.about-text strong {
  color: var(--dark);
  font-weight: 700;
}

.about-text .highlight {
  color: var(--primary);
  font-weight: 600;
}
/* Smooth professional feel */
a {
  transition: all 0.25s ease;
}

a:hover {
  opacity: 0.85;
}

.btn-primary:hover,
.btn-nav:hover {
  transform: translateY(-2px);
}

/* Better scroll */
html {
  scroll-padding-top: 90px;
}
/* ======================
   MOBILE RESPONSIVE FIX
   ====================== */
   @media (max-width: 768px) {

    /* NAVBAR */
    .nav-container {
      flex-direction: column;
      gap: 12px;
      padding: 14px 6%;
    }
  
    nav {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 12px;
    }
  
    nav a {
      margin: 0;
      font-size: 14px;
    }
  
    .btn-nav {
      padding: 8px 14px;
      font-size: 14px;
    }
  
    /* HERO */
    .hero {
      padding-top: 100px;
      grid-template-columns: 1fr;
      text-align: center;
    }
  
    h1 {
      font-size: 36px;
    }
  
    h2 {
      font-size: 22px;
    }
  
    .hero p {
      font-size: 15px;
      line-height: 1.6;
      padding: 0 6px;
    }
  
    .pill {
      font-size: 12px;
      margin-bottom: 10px;
    }
  
    /* BUTTONS */
    .btn-primary {
      width: 100%;
      text-align: center;
    }
  
    .cta-group {
      flex-direction: column;
    }
  
    .icon-btn {
      width: 40px;
      height: 40px;
    }
  
    /* EXPERTISE CARD */
    .expertise-card {
      margin-top: 30px;
      padding: 26px;
    }
  
    /* SECTIONS */
    .section {
      padding: 40px 6%;
    }
  
    /* PROJECTS */
    .projects-grid {
      grid-template-columns: 1fr;
    }
  
    /* CONTACT */
    .contact-layout {
      grid-template-columns: 1fr;
    }
  }
  
}
