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

/* ─── RESET & VARIABLES ─── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
}

:root {
  --bg: #0d0d14;
  --bg2: #13131f;
  --bg3: #1a1a2e;
  --accent: #12f7ff;
  --accent2: #7c3aed;
  --text: #e8e8f0;
  --muted: #8888a0;
  --border: rgba(255, 255, 255, 0.08);
  --glow: 0 0 30px rgba(18, 247, 255, 0.25);
  --radius: 12px;
  --transition: 0.35s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

.accent {
  color: var(--accent);
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--accent2);
  border-radius: 3px;
}

/* ─── HEADER ─── */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 8%;
  background: rgba(13, 13, 20, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

header.scrolled {
  padding: 0.7rem 8%;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.logo {
  display: flex;
  align-items: center;
}

.sh-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 2px solid #12f7ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: #12f7ff;
  background: rgba(18, 247, 255, 0.08);
  letter-spacing: 1px;
  transition: 0.35s ease;
  text-decoration: none;
  cursor: pointer;
}

.sh-icon:hover {
  background: rgba(18, 247, 255, 0.15);
  box-shadow: 0 0 20px rgba(18, 247, 255, 0.3);
  color: #12f7ff;
}

.navlist {
  display: flex;
  gap: 0.2rem;
}

.navlist a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: var(--transition);
  position: relative;
}

.navlist a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.navlist a:hover,
.navlist a.active {
  color: var(--accent);
}

.navlist a:hover::after,
.navlist a.active::after {
  width: 60%;
}

#menu-icon {
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--accent);
  display: none;
  z-index: 10001;
}

/* ─── SECTION BASE ─── */
section {
  padding: 100px 8%;
}

.main-text {
  text-align: center;
  margin-bottom: 3.5rem;
}

.main-text span,
.section-tag {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
}

.main-text h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text);
}

/* ─── HOME ─── */
.home {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding-top: 120px;
  position: relative;
  overflow: hidden;
}

.home::before {
  content: '';
  position: absolute;
  top: 20%;
  right: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.home-content h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
}

/* ── ROTATING TEXT ── */
.change-text {
  display: flex;
  align-items: center;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  min-height: 2rem;
}

.rotating-words {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 420px;
  height: 2rem;
  overflow: hidden;
  margin-left: 8px;
  text-decoration: none;
}

.rotating-words .word {
  text-decoration: none !important;
}

.rotating-words .word {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--accent);
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.5s ease, transform 0.5s ease;
  white-space: nowrap;
}

.rotating-words .word.active {
  opacity: 1;
  transform: translateY(0);
}

.rotating-words .word.exit {
  opacity: 0;
  transform: translateY(-100%);
}

.home-content>p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1rem;
  max-width: 480px;
  margin-bottom: 1.5rem;
}

.mail {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.mail h5 {
  font-weight: 600;
  font-size: 0.9rem;
}

.mail span {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ── BUTTONS ── */
.btn-box {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.75rem;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 8px;
  border: 2px solid var(--accent);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
  z-index: -1;
}

.btn:hover {
  color: var(--accent);
  box-shadow: var(--glow);
}

.btn:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.btn-outline {
  background: transparent;
  color: var(--accent);
}

.btn-outline::before {
  background: var(--accent);
}

.btn-outline:hover {
  color: var(--bg);
}

/* ── SOCIAL ICONS ── */
.social-icons {
  display: flex;
  gap: 0.8rem;
}

.social-icons a {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-size: 1.3rem;
  transition: var(--transition);
}

.social-icons a:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--glow);
  transform: translateY(-3px);
}

/* ── HOME IMAGE ── */
.home-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.img-box img {
  width: 100%;
  max-width: 380px;
  border-radius: 20px;
  border: 3px solid var(--accent);
  box-shadow: var(--glow);
  object-fit: cover;
}

.placeholder-avatar {
  width: 320px;
  height: 380px;
  border-radius: 20px;
  border: 3px solid var(--accent);
  box-shadow: var(--glow);
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 8rem;
  position: relative;
  overflow: hidden;
}

.placeholder-avatar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(18, 247, 255, 0.07) 0%, transparent 70%);
}

/* ─── ABOUT ─── */
.about {
  background: var(--bg2);
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
  align-items: center;
  border-radius: 0;
}

.about-img-box {
  width: 280px;
  height: 320px;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent2);
  font-size: 6rem;
  margin: 0 auto;
}

.about-content h2 {
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  margin: 0.3rem 0;
}

.about-content h3 {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.about-content p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-stats {
  display: flex;
  gap: 2rem;
  margin: 1.5rem 0 2rem;
}

.stat h4 {
  font-family: 'Syne', sans-serif;
  font-size: 1.8rem;
  color: var(--accent);
}

.stat p {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ─── SERVICES ─── */
.services {
  background: var(--bg);
}

.section-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.service-box:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
}

.service-box:hover::before {
  transform: scaleX(1);
}

.service-icon {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 1.2rem;
  display: block;
  transition: var(--transition);
}

.service-box:hover .service-icon {
  transform: scale(1.1);
}

.service-box h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.service-box p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.service-btn {
  justify-content: center;
  width: 100%;
  margin: 0;
}

.service-btn .btn {
  width: auto;
}

/* ─── SKILLS ─── */
.skills-section {
  background: var(--bg2);
}

.skills-wrapper {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.skill-group-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-group-title i {
  color: var(--accent);
  font-size: 1.4rem;
}

/* ===== SKILLS GRID FIX — CENTER ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 140px));
  gap: 1rem;
  justify-content: center;
  justify-items: center;
}
/* ===================================== */

.skill-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: var(--transition);
  cursor: default;
  width: 140px;
}

.skill-card i {
  font-size: 2.2rem;
  color: var(--accent);
  margin-bottom: 0.6rem;
  display: block;
  transition: var(--transition);
}

.skill-card h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.skill-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--glow);
}

.skill-card:hover i {
  transform: scale(1.2);
  text-shadow: 0 0 20px var(--accent);
}

/* ─── PROJECTS ─── */
.projects {
  background: var(--bg);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: var(--glow);
}

.project-icon {
  font-size: 2.5rem;
  color: var(--accent2);
}

.project-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.project-card>p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.project-tags span {
  background: rgba(18, 247, 255, 0.1);
  border: 1px solid rgba(18, 247, 255, 0.3);
  color: var(--accent);
  font-size: 0.75rem;
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  font-weight: 600;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  margin-top: 0.3rem;
}

.project-link:hover {
  gap: 0.7rem;
}

.project-meta {
  font-size: 0.78rem;
  color: #888;
  margin: 6px 0 12px;
  font-style: italic;
}


/* ─── CONTACT ─── */
.contact {
  background: var(--bg2);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--accent);
  margin-top: 2px;
}

.contact-item h4 {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.contact-item span,
.contact-item a {
  font-size: 0.95rem;
  color: var(--text);
}

.contact-item a:hover {
  color: var(--accent);
}

.contact-socials {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
}

.contact-socials a {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-size: 1.2rem;
  transition: var(--transition);
}

.contact-socials a:hover {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: var(--glow);
}

/* ── FORM ── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: var(--transition);
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(18, 247, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted);
}

.contact-form .btn {
  width: fit-content;
}

.form-msg {
  font-size: 0.85rem;
  margin-top: 0.5rem;
  min-height: 1.2rem;
}

.form-msg.success {
  color: #4ade80;
}

.form-msg.error {
  color: #f87171;
}

/* ─── FOOTER ─── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 2rem 8%;
}

footer p {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-sub {
  font-size: 0.75rem;
  margin-top: 0.3rem;
}

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

  .home-content>p,
  .btn-box,
  .social-icons,
  .mail,
  .change-text {
    margin-left: auto;
    margin-right: auto;
  }

  .btn-box {
    justify-content: center;
  }

  .social-icons {
    justify-content: center;
  }

  .change-text {
    justify-content: center;
  }

  .home-image {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
  }

  .home-image img {
    max-width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 50%;
  }

  .about {
    grid-template-columns: 1fr;
  }

  .about-img {
    display: none;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  section {
    padding: 80px 5%;
  }

  header {
    padding: 1rem 5%;
  }

  .navlist {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg2);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    transition: right 0.4s ease;
    border-left: 1px solid var(--border);
    z-index: 9999;
  }

  .navlist.open {
    right: 0;
  }

  .navlist a {
    font-size: 1.1rem;
    padding: 0.8rem 2rem;
  }

  #menu-icon {
    display: block;
  }

  /* ===== MOBILE SKILLS FIX ===== */
  .skills-grid {
    grid-template-columns: repeat(2, 140px);
    justify-content: center;
    justify-items: center;
  }
  /* ============================= */

  .about-stats {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .rotating-words {
    width: 100%;
    max-width: 100%;
  }

  .rotating-words .word {
    white-space: nowrap;
    text-align: center;
    width: 100%;
    font-size: 0.95rem;
  }
}

.mini-stats {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.mini-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  min-width: 140px;
  text-align: center;
  transition: var(--transition);
}

.mini-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: var(--glow);
}

.mini-card h3 {
  color: var(--accent);
  font-size: 1.5rem;
}

.mini-card p {
  color: var(--muted);
  font-size: 0.85rem;
}

/* ─── CERTIFICATIONS ─── */
.certifications {
  background: var(--bg);
}

.cert-filter {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.cert-tab {
  padding: 0.5rem 1.4rem;
  border-radius: 30px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.5px;
}

.cert-tab:hover,
.cert-tab.active {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  box-shadow: var(--glow);
}

.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.cert-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.8rem 1.5rem 1.5rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  overflow: hidden;
}

.cert-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.cert-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: var(--glow);
}

.cert-card:hover::before {
  transform: scaleX(1);
}

.cert-card.featured {
  border-color: rgba(18, 247, 255, 0.35);
  background: linear-gradient(135deg, var(--bg2) 80%, rgba(18, 247, 255, 0.04));
}

.cert-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}

.featured-badge {
  background: rgba(18, 247, 255, 0.12);
  color: var(--accent);
  border: 1px solid rgba(18, 247, 255, 0.3);
}

.cert-category-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.25rem 0.8rem;
  border-radius: 20px;
  margin-bottom: 0.5rem;
}

.cert-category-tag.cyber {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.cert-category-tag.webdev {
  background: rgba(18, 247, 255, 0.1);
  color: var(--accent);
  border: 1px solid rgba(18, 247, 255, 0.25);
}

.cert-category-tag.ai {
  background: rgba(124, 58, 237, 0.12);
  color: #a78bfa;
  border: 1px solid rgba(124, 58, 237, 0.25);
}

.cert-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(18, 247, 255, 0.07);
  border: 1.5px solid rgba(18, 247, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.5rem 0 0.8rem;
  transition: var(--transition);
}

.cert-icon-wrap i {
  font-size: 1.8rem;
  color: var(--accent);
  transition: var(--transition);
}

.cert-card:hover .cert-icon-wrap {
  background: rgba(18, 247, 255, 0.14);
  box-shadow: 0 0 20px rgba(18, 247, 255, 0.2);
}

.cert-card:hover .cert-icon-wrap i {
  transform: scale(1.15);
}

.cert-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

.cert-card h4 {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent2);
  min-height: 1rem;
}

.cert-issuer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 0.2rem;
}

.cert-issuer i {
  font-size: 0.9rem;
}

.cert-year {
  display: inline-block;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-top: 0.2rem;
}

.cert-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  padding: 0.55rem 1.2rem;
  border-radius: 8px;
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}

.cert-btn:hover {
  background: var(--accent);
  color: var(--bg);
  box-shadow: var(--glow);
  transform: translateY(-2px);
}

.cert-card.hidden {
  display: none;
}

/* ─── POPPINS — All Headings ─── */
h1,
h2,
h3,
h4,
.main-text h2,
.home-content h1,
.about-content h2,
.skill-group-title,
.service-box h3,
.project-card h3,
.cert-card h3,
.stat h4 {
  font-family: 'Poppins', sans-serif !important;
}

/* ─── INTER — All Body Text ─── */
p,
span,
a,
li,
input,
textarea,
button {
  font-family: 'Inter', sans-serif;
}

footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 2rem 8%;
}

footer p {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-icons {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 0.8rem;
}

.footer-icons a {
  color: var(--muted);
  font-size: 1.4rem;
  transition: var(--transition);
}

.footer-icons a:hover {
  color: var(--accent);
}


/* Projects 4-up Carousel */
.projects { padding: 80px 5%; }

.pj-progress {
  height: 2px;
  background: rgba(0,212,255,0.12);
  border-radius: 2px;
  margin-bottom: 12px;
  overflow: hidden;
}
.pj-progress-bar {
  height: 100%;
  background: #00d4ff;
  border-radius: 2px;
  width: 0;
}

.projects-carousel-outer {
  overflow: hidden;
}

.projects-carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.55s cubic-bezier(0.4,0,0.2,1);
}

/* 4 cards visible at once */
.project-card {
  flex: 0 0 calc(25% - 15px);
  background: #0d1420;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  border-color: rgba(0,212,255,0.4);
  transform: translateY(-5px);
  box-shadow: 0 14px 40px rgba(0,212,255,0.08);
}

/* Thumb: dark box with centred icon */
.project-card-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: #0a0f1a;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.project-card-thumb .thumb-icon {
  font-size: 48px;
  color: rgba(0,212,255,0.25);
  transition: transform 0.3s;
}
.project-card:hover .thumb-icon { transform: scale(1.1); }

/* if screenshot image exists, show it */
.project-card-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.project-card:hover .project-card-thumb img { transform: scale(1.06); }

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,212,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 2;
}
.project-card:hover .project-card-overlay { opacity: 1; }
.project-card-overlay span {
  background: rgba(0,212,255,0.92);
  color: #000;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.project-card-body {
  padding: 16px 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.project-card-type {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #00d4ff;
  display: flex;
  align-items: center;
  gap: 5px;
}
.project-card-body h3 {
  font-size: 15px;
  font-weight: 600;
  color: #e4e9f2;
  margin: 0;
  line-height: 1.35;
}
.project-card-body p {
  font-size: 12.5px;
  color: #7a8399;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.project-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: auto;
}
.project-card-tags span {
  font-size: 10.5px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #9aa5be;
  padding: 3px 8px;
  border-radius: 5px;
}

/* Carousel controls */
.projects-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
}
.pj-carousel-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.3);
  color: #00d4ff;
  font-size: 20px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s;
}
.pj-carousel-btn:hover { background: rgba(0,212,255,0.2); }
.pj-carousel-dots { display: flex; gap: 7px; }
.pj-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  border: none; cursor: pointer; padding: 0;
  transition: all 0.3s;
}
.pj-dot.active { background: #00d4ff; width: 22px; border-radius: 4px; }

/* Modal */
.project-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.project-modal-backdrop.active { opacity: 1; pointer-events: all; }
.project-modal {
  background: #0d1117;
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 18px;
  max-width: 680px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  transform: scale(0.94) translateY(16px);
  transition: transform 0.32s;
}
.project-modal-backdrop.active .project-modal { transform: scale(1) translateY(0); }
.project-modal-img {
  width: 100%; aspect-ratio: 16/9;
  background: #0a0f1a;
  border-radius: 17px 17px 0 0;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.project-modal-img img { width:100%; height:100%; object-fit:cover; display:block; }
.project-modal-img .modal-icon { font-size: 72px; color: rgba(0,212,255,0.22); }
.modal-close-btn {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(0,0,0,0.65);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff; font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; z-index: 10;
}
.modal-close-btn:hover { background: rgba(0,212,255,0.2); border-color: #00d4ff; }
.project-modal-body { padding: 24px 28px 28px; }
.modal-type-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(0,212,255,0.1);
  border: 1px solid rgba(0,212,255,0.25);
  color: #00d4ff; font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 4px 12px; border-radius: 50px; margin-bottom: 12px;
}
.project-modal-body h2 { font-size: 22px; font-weight: 700; color: #fff; margin: 0 0 10px; }
.project-modal-body .modal-desc { font-size: 14px; color: #a0a9bc; line-height: 1.8; margin: 0 0 18px; }
.modal-tech-stack {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; padding: 13px 16px; margin-bottom: 18px;
}
.modal-tech-stack > p { font-size: 11px; color: #7a8399; margin: 0 0 8px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.modal-tech-stack .tech-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.modal-tech-stack .tech-tags span { font-size: 12px; color: #00d4ff; background: rgba(0,212,255,0.1); border: 1px solid rgba(0,212,255,0.22); padding: 4px 11px; border-radius: 6px; }
.modal-actions { display: flex; gap: 11px; flex-wrap: wrap; }
.modal-actions a { display: inline-flex; align-items: center; gap: 7px; padding: 9px 20px; border-radius: 8px; font-size: 13px; font-weight: 600; text-decoration: none; transition: all 0.3s; }
.modal-actions a.btn-primary { background: #00d4ff; color: #000; }
.modal-actions a.btn-primary:hover { background: #00b8e0; }
.modal-actions a.btn-ghost { border: 1px solid rgba(0,212,255,0.4); color: #00d4ff; }
.modal-actions a.btn-ghost:hover { background: rgba(0,212,255,0.1); }

/* Responsive */
@media (max-width: 1100px) { .project-card { flex: 0 0 calc(50% - 10px); } }
@media (max-width: 580px)  { .project-card { flex: 0 0 100%; } }


/* ── Modal image full fix ── */
.project-modal-img {
  position: relative;
  width: 100%;
  aspect-ratio: unset;
  height: auto;
  min-height: 200px;
  background: #0a0f1a;
  border-radius: 17px 17px 0 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-modal-img img.mprev {
  position: relative;
  inset: unset;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  display: block;
  z-index: 1;
  background: #0a0f1a;
}

.project-modal-img .modal-icon {
  position: relative;
  z-index: 0;
}

.modal-close-btn {
  z-index: 2 !important;
}