/* ============================================================
   NawangDev Portfolio — style.css
   ============================================================ */
:root {
  --primary: #007bff;
  --primary-dark: #0056c1;
  --secondary: #1e40af;
  --accent: #3a7bff;
  --text-light: #fff;
  --text-dark: #111;
  --muted: #9cafd8;
  --bg-dark: #0a0a0a;
  --shadow: rgba(0, 0, 0, 0.15);
  --mobile-nav-h: 64px;
  --mobile-card: #161b27;
  --mobile-card-border: rgba(33, 150, 243, 0.15);
}

/* ── Reset ──────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Poppins", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  background: linear-gradient(135deg, #e6ebf5 0%, #b9c1f0 100%);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── Header ─────────────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 80px;
  background: rgba(10, 10, 10, 0.95);
  color: var(--text-light);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}
.logo {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 1px;
}
.logo span {
  color: var(--primary);
}
.navbar {
  display: flex;
  align-items: center;
}
.navbar a {
  color: var(--text-light);
  text-decoration: none;
  margin-left: 28px;
  font-weight: 500;
  transition: color 0.25s;
}
.navbar a:hover,
.navbar a.active {
  color: var(--primary);
}
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-light);
  user-select: none;
}
/* Mobile status badge — hidden on desktop */
.header-status {
  display: none;
}

@media (max-width: 850px) {
  .header {
    padding: 0 20px;
  }
  .menu-toggle {
    display: block;
  }
  .navbar {
    position: fixed;
    top: 64px;
    right: -100%;
    width: 220px;
    background: rgba(10, 10, 10, 0.97);
    flex-direction: column;
    padding: 20px;
    border-radius: 8px 0 0 8px;
    transition: right 0.3s ease;
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.3);
  }
  .navbar.active {
    right: 0;
  }
  .navbar a {
    display: block;
    margin: 12px 0;
  }
  .menu-toggle.open {
    transform: rotate(180deg);
    transition: 0.3s;
  }
}

/* ── Sections ────────────────────────────────────── */
.section {
  min-height: 100vh;
  padding: 130px 10% 80px;
  color: var(--text-light);
  background: linear-gradient(135deg, #111 0%, #1e1e1e 100%);
}
.section-title {
  font-size: 2.2rem;
  color: var(--primary);
  text-align: center;
  margin-bottom: 50px;
  letter-spacing: 2px;
  font-weight: 700;
  text-transform: uppercase;
}
.section-subtitle {
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  color: var(--text-light);
  margin-bottom: 10px;
}

/* ── Hero ────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 100px 8%;
  gap: 60px;
  background: linear-gradient(to right, #0a0a0a, #002147);
  color: #fff;
}
.hero-left {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.profile-img {
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 8px solid #2196f3;
  object-fit: cover;
  transition: transform 0.4s;
  box-shadow: 0 10px 40px rgba(33, 150, 243, 0.3);
}
.profile-img:hover {
  transform: scale(1.08);
}
.hero-right {
  flex: 1;
  max-width: 600px;
}
.intro {
  font-size: 18px;
  color: #b0b0b0;
  margin-bottom: 10px;
}
.typing-container {
  color: #2196f3;
  font-weight: 600;
}
.cursor {
  display: inline-block;
  width: 2px;
  height: 20px;
  background: #2196f3;
  margin-left: 2px;
  animation: blink 0.7s infinite;
}
@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}
.hero-name {
  font-size: 45px;
  font-weight: 800;
  color: #2196f3;
  margin: 20px 0;
  letter-spacing: 2px;
}
.hero-title {
  font-size: 1.2rem;
  color: #e0e0e0;
  margin-bottom: 15px;
}
.hero-description {
  font-size: 17px;
  line-height: 1.8;
  color: #d0d0d0;
  margin-bottom: 35px;
  text-align: justify;
}
.hero-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
}
.btn {
  display: inline-block;
  padding: 14px 35px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s;
}
.btn.primary {
  background: #2196f3;
  color: #fff;
  border: 2px solid #2196f3;
}
.btn.primary:hover {
  background: #0d47a1;
  box-shadow: 0 0 20px rgba(13, 71, 161, 0.6);
  transform: translateY(-3px);
}
.btn.outline {
  background: transparent;
  color: #fff;
  border: 2px solid #2196f3;
}
.btn.outline:hover {
  background: #102443;
  transform: translateY(-3px);
}
.social-linkss {
  display: flex;
  gap: 20px;
}
.social-linkss a {
  color: #fff;
  font-size: 22px;
  transition: all 0.3s;
}
.social-linkss a:hover {
  color: #2196f3;
  transform: scale(1.3);
}

@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 100px 5%;
    gap: 40px;
  }
  .hero-left,
  .hero-right {
    flex: unset;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .profile-img {
    width: 320px;
    height: 320px;
  }
  .hero-name {
    font-size: 48px;
    text-align: center;
  }
  .hero-description,
  .hero-title {
    text-align: center;
    max-width: 600px;
  }
  .hero-buttons {
    justify-content: center;
  }
}

/* ── About ───────────────────────────────────────── */
.about-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  background: #101010;
  padding: 50px 60px;
  border-radius: 20px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}
.about-img {
  flex-shrink: 0;
}
.about-img img {
  width: 260px;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(33, 150, 243, 0.25);
  transition: 0.4s;
  border: 3px solid rgba(33, 150, 243, 0.3);
}
.about-img img:hover {
  transform: scale(1.04);
  box-shadow: 0 12px 40px rgba(33, 150, 243, 0.4);
}
.about-text {
  flex: 1 1 55%;
}
.about-text h3 {
  color: var(--primary);
  margin-bottom: 14px;
  font-size: 1.35rem;
  font-weight: 700;
}
.about-text p {
  color: #d3d3d3;
  margin-bottom: 14px;
  line-height: 1.75;
}
.about-tagline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(33, 150, 243, 0.12);
  color: #64b5f6;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(33, 150, 243, 0.3);
}
.about-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.stat-item {
  text-align: center;
  min-width: 70px;
}
.stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: #2196f3;
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.7rem;
  color: #9cafd8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
@media (max-width: 1024px) {
  .about-container {
    flex-direction: column;
    align-items: center;
    padding: 40px 30px;
    text-align: center;
  }
  .about-tagline,
  .about-stats {
    justify-content: center;
  }
  .about-img img {
    width: 220px;
  }
}

/* ── Projects ────────────────────────────────────── */
.projects-section-header {
  text-align: center;
  margin-bottom: 40px;
}
.projects-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #9cafd8;
  margin-bottom: 10px;
}
.projects-eyebrow::before,
.projects-eyebrow::after {
  content: "";
  width: 32px;
  height: 1px;
  background: rgba(33, 150, 243, 0.4);
}

/* Carousel */
.carousel-outer {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0 52px;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(calc(-50% - 26px));
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(33, 150, 243, 0.5);
  background: rgba(10, 15, 30, 0.9);
  color: #2196f3;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
  transition: all 0.22s;
}
.carousel-btn.prev {
  left: -24px;
}
.carousel-btn.next {
  right: -24px;
}
.carousel-btn:hover {
  background: #2196f3;
  color: #fff;
  border-color: #2196f3;
  box-shadow: 0 6px 22px rgba(33, 150, 243, 0.45);
  transform: translateY(calc(-50% - 26px)) scale(1.08);
}
.carousel-viewport {
  overflow: hidden;
  margin: 0 12px;
}
.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.37, 0, 0.15, 1);
  will-change: transform;
}
.carousel-slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  padding: 6px 4px 10px;
  align-items: stretch;
}
.carousel-dots {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.28s;
}
.dot.active {
  background: #2196f3;
  width: 26px;
  border-radius: 4px;
}

/* Mobile projects wrap — hidden on desktop */
.mobile-projects-wrap {
  display: none;
}

/* Project card */
.project-card {
  background: #0f1421;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.38s,
    box-shadow 0.38s,
    border-color 0.38s;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}
.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(33, 150, 243, 0.5);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(33, 150, 243, 0.2);
}
.project-image {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16/9;
  flex-shrink: 0;
}
.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s;
}
.project-card:hover .project-image img {
  transform: scale(1.08);
}
.project-image::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom, transparent 0%, #0f1421 100%);
  pointer-events: none;
}
.project-content {
  padding: 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 0;
}
.project-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22px;
  width: 36px;
  height: 3px;
  background: linear-gradient(to right, #2196f3, transparent);
  border-radius: 2px;
}
.project-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #e8eaf6;
  margin-bottom: 8px;
  line-height: 1.35;
  transition: color 0.2s;
}
.project-card:hover .project-content h3 {
  color: #90caf9;
}
.project-content p {
  color: #9cafd8;
  font-size: 0.83rem;
  line-height: 1.6;
  margin-bottom: 14px;
  flex: 1;
}
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 14px;
}
.project-tech span {
  background: rgba(33, 150, 243, 0.08);
  color: #64b5f6;
  padding: 2px 9px;
  border-radius: 10px;
  border: 1px solid rgba(33, 150, 243, 0.2);
  font-size: 0.67rem;
  font-weight: 500;
}
.project-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #64b5f6;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.76rem;
  border: 1px solid rgba(33, 150, 243, 0.35);
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(33, 150, 243, 0.06);
  transition: all 0.22s;
}
.project-link:hover {
  background: rgba(33, 150, 243, 0.2);
  border-color: rgba(33, 150, 243, 0.7);
  color: #fff;
  transform: translateY(-1px);
}
.project-link.live {
  border-color: rgba(67, 160, 71, 0.4);
  color: #81c784;
  background: rgba(67, 160, 71, 0.06);
}
.project-link.live:hover {
  background: rgba(67, 160, 71, 0.2);
  border-color: rgba(67, 160, 71, 0.7);
  color: #fff;
}
.project-link.no-link {
  border-color: rgba(255, 255, 255, 0.1);
  color: #4b5563;
  cursor: default;
  background: transparent;
}
.project-link.no-link:hover {
  background: transparent;
  color: #4b5563;
  transform: none;
}
.project-card--placeholder {
  align-items: center;
  justify-content: center;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.018);
  min-height: 240px;
}
.project-placeholder-inner {
  text-align: center;
  color: #374151;
}
.project-placeholder-inner i {
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
  opacity: 0.45;
}
.project-placeholder-inner p {
  font-size: 0.8rem;
  opacity: 0.55;
}

/* ── Resume ──────────────────────────────────────── */
.resume-content {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  margin-top: 20px;
}
.resume-left,
.resume-right {
  flex: 1;
  min-width: 280px;
  max-width: 500px;
  padding: 20px;
}
.resume-left h3,
.resume-right h3 {
  color: var(--primary);
  margin-bottom: 16px;
  margin-top: 24px;
}
.resume-left h3:first-child,
.resume-right h3:first-child {
  margin-top: 0;
}
.education-item {
  margin-bottom: 20px;
}
.education-item h4 {
  font-size: 1.02rem;
  font-weight: 700;
  color: #e6e6e6;
  margin-bottom: 4px;
}
.education-item p {
  color: #d0d0d0;
  font-size: 0.87rem;
  line-height: 1.65;
  margin-bottom: 4px;
  text-align: justify;
}
.university {
  font-style: italic;
  font-size: 0.87rem;
  color: #b0b0b0;
}
.date {
  font-style: italic;
  font-size: 0.8rem;
  color: #9cafd8;
}
.certifications {
  list-style: disc;
  color: #cfd6e5;
  font-size: 0.9rem;
  padding-left: 22px;
  line-height: 1.8;
  text-align: left;
}
.certifications li {
  margin-bottom: 5px;
  padding-left: 3px;
}
.skill {
  margin-top: 24px;
}
.skill h3 {
  color: var(--primary);
  margin-bottom: 14px;
  font-size: 1.2rem;
}
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.skill-tag {
  background: rgba(56, 59, 255, 0.1);
  color: var(--accent);
  padding: 7px 15px;
  border-radius: 20px;
  font-size: 0.84rem;
  border: 1px solid rgba(56, 93, 255, 0.3);
  transition: all 0.28s;
}
.skill-tag:hover {
  background: var(--accent);
  color: #fff;
  transform: scale(1.05);
}
.resume-main {
  max-width: 1100px;
  margin: 40px auto 0;
  background: rgba(255, 255, 255, 0.04);
  padding: 36px 32px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.resume-main > h3 {
  text-align: center;
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 28px;
}
.exp-page {
  display: none;
}
.exp-page.active {
  display: block;
}
.experience-item {
  margin-bottom: 26px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.experience-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.exp-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}
.exp-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.exp-header h4 {
  font-size: 1.02rem;
  font-weight: 700;
  color: #e6e6e6;
  margin-bottom: 3px;
}
.company {
  font-style: italic;
  font-size: 0.83rem;
  color: #b0b0b0;
  margin-bottom: 2px;
}
.experience-item > p {
  color: #d0d0d0;
  font-size: 0.88rem;
  line-height: 1.72;
  text-align: justify;
}
.exp-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}
.exp-page-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid rgba(0, 123, 255, 0.4);
  background: rgba(0, 123, 255, 0.08);
  color: #9cafd8;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s;
}
.exp-page-btn.active {
  background: #2196f3;
  border-color: #2196f3;
  color: #fff;
}
.exp-page-btn:hover:not(.active) {
  background: rgba(33, 150, 243, 0.2);
  color: #fff;
}

/* ── Services ────────────────────────────────────── */
.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 10px;
}
.service-card {
  background: #fff;
  padding: 40px 30px;
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  position: relative;
  transition: 0.4s;
}
.service-card img {
  width: 80px;
  margin-bottom: 15px;
  position: relative;
  z-index: 2;
}
.service-card h3 {
  color: var(--secondary);
  margin-bottom: 10px;
  font-size: 1.1rem;
  position: relative;
  z-index: 2;
}
.service-card p {
  color: #555;
  font-size: 0.9rem;
  position: relative;
  z-index: 2;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--primary-dark);
  transition: 0.5s;
  z-index: 0;
}
.service-card:hover::before {
  left: 0;
}
.service-card:hover h3,
.service-card:hover p {
  color: #fff;
}

/* ── Contact ─────────────────────────────────────── */
.contact {
  background: linear-gradient(to right, #0a0a0a, #001d3d);
  text-align: center;
  padding: 100px 8%;
  position: relative;
}
.contact .section-title {
  font-size: 2rem;
  margin-bottom: 8px;
}
.contact .section-subtitle {
  font-size: 2.2rem;
  margin-bottom: 40px;
}
.contact-content {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 60px;
}
.contact-info {
  flex: 1;
  min-width: 280px;
  max-width: 520px;
  background: rgba(255, 255, 255, 0.05);
  padding: 40px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.contact-text {
  color: #d0d0d0;
  font-size: 1.05rem;
  margin-bottom: 28px;
  line-height: 1.6;
}
.contact-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 28px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 14px;
}
.contact-item i {
  font-size: 20px;
  color: #2079c2;
}
.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 24px;
}
.social-links a {
  color: #fff;
  font-size: 22px;
  transition: all 0.3s;
}
.social-links a:hover {
  color: #186db3;
  transform: scale(1.3);
}
.contact-btn {
  background: #1a7fd1;
  color: #fff;
  border: none;
  padding: 12px 35px;
  border-radius: 30px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
}
.contact-btn:hover {
  background: #0d47a1;
  box-shadow: 0 0 20px rgba(33, 150, 243, 0.6);
  transform: translateY(-3px);
}

/* ── Footer ──────────────────────────────────────── */
.footer {
  background: #000;
  color: #fff;
  padding: 40px 20px;
  text-align: center;
}
.footer-container {
  max-width: 1200px;
  margin: auto;
}
.footer-logo {
  font-family: "Montserrat", sans-serif;
  font-size: 28px;
  margin-bottom: 20px;
  cursor: pointer;
}
.footer-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.footer-links li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}
.footer-links li a:hover {
  color: #474af0;
}
.footer-social {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 15px;
}
.footer-social a {
  color: #fff;
  font-size: 18px;
  transition: color 0.3s;
}
.footer-social a:hover {
  color: #474af0;
}
.footer-copy {
  font-size: 12px;
  color: #aaa;
}

/* Bottom nav — hidden on desktop */
.mobile-bottom-nav {
  display: none;
}

/* ── Global responsive ───────────────────────────── */
@media (max-width: 1024px) {
  .header {
    padding: 0 40px;
  }
  .resume-content {
    gap: 40px;
  }
}
@media (max-width: 900px) {
  .section {
    padding: 100px 6% 60px;
  }
  .about-stats {
    gap: 14px;
  }
  .resume-content {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .resume-left,
  .resume-right {
    width: 100%;
    max-width: 100%;
    padding: 10px 5px;
  }
  .skills-grid {
    justify-content: center;
  }
  .resume-main {
    padding: 24px 16px;
  }
  .exp-header {
    flex-direction: column;
    gap: 8px;
  }
  .exp-icon {
    width: 36px;
    height: 36px;
  }
  .service-card {
    padding: 30px 20px;
  }
  .contact-content {
    flex-direction: column;
    align-items: center;
  }
  .contact-info {
    width: 100%;
    max-width: 500px;
  }
}
@media (max-width: 480px) {
  .section {
    padding: 90px 5% 60px;
  }
  .stat-number {
    font-size: 1.5rem;
  }
}

/* ╔══════════════════════════════════════════════════════════╗
   ║   MOBILE LAYOUT ≤ 900px  — semua override ada di sini   ║
   ╚══════════════════════════════════════════════════════════╝ */
@media (max-width: 900px) {
  /* ───── Hide/show desktop vs mobile elements ─── */
  .carousel-outer {
    display: none !important;
  }
  .menu-toggle {
    display: none !important;
  }
  .navbar {
    display: none !important;
  }
  .mobile-projects-wrap {
    display: block !important;
  }
  .mobile-bottom-nav {
    display: flex !important;
  }
  .header-status {
    display: flex !important;
  }

  /* ───── Bottom Nav ──────────────────────────── */
  .mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 64px;
    background: rgba(10, 12, 20, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(33, 150, 243, 0.15);
    justify-content: space-around;
    align-items: center;
    padding: 0 4px;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.5);
  }
  .mobile-bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.54rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    padding: 8px 2px;
    transition: color 0.2s;
    position: relative;
  }
  .mobile-bottom-nav a i {
    font-size: 1.1rem;
    transition: transform 0.2s;
  }
  .mobile-bottom-nav a.active,
  .mobile-bottom-nav a:hover {
    color: #2196f3;
  }
  .mobile-bottom-nav a.active i,
  .mobile-bottom-nav a:hover i {
    transform: translateY(-2px);
  }
  .mobile-bottom-nav a.active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 2.5px;
    border-radius: 0 0 3px 3px;
    background: #2196f3;
    box-shadow: 0 0 8px rgba(33, 150, 243, 0.8);
  }

  /* ───── Header mobile ───────────────────────── */
  body {
    padding-bottom: 64px;
  }
  .header {
    padding: 0 16px;
    height: 54px;
  }
  .logo {
    font-size: 1.25rem;
  }
  .header-status {
    align-items: center;
    gap: 6px;
    background: rgba(33, 150, 243, 0.1);
    border: 1px solid rgba(33, 150, 243, 0.25);
    padding: 5px 11px;
    border-radius: 20px;
    font-size: 0.68rem;
    color: #64b5f6;
    font-weight: 600;
  }
  .header-status .dot-live {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #43e97b;
    box-shadow: 0 0 6px #43e97b;
    animation: pulse-green 1.6s ease-in-out infinite;
  }
  @keyframes pulse-green {
    0%,
    100% {
      opacity: 1;
      transform: scale(1);
    }
    50% {
      opacity: 0.5;
      transform: scale(0.75);
    }
  }

  /* ───── Hero mobile ─────────────────────────── */
  .hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 70px 5% 36px;
    gap: 14px;
    background: linear-gradient(170deg, #060d1a 0%, #0a1628 55%, #001640 100%);
    min-height: 100vh;
    min-height: 100dvh;
    justify-content: center;
    position: relative;
    overflow: hidden;
  }
  .hero::before {
    content: "";
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    height: 280px;
    background: radial-gradient(
      circle,
      rgba(33, 150, 243, 0.14) 0%,
      transparent 70%
    );
    border-radius: 50%;
    pointer-events: none;
  }
  .hero-left,
  .hero-right {
    flex: unset;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .profile-img {
    width: 110px;
    height: 110px;
    border-width: 3px;
    box-shadow:
      0 0 0 5px rgba(33, 150, 243, 0.12),
      0 6px 24px rgba(33, 150, 243, 0.28);
  }
  .intro {
    font-size: 0.82rem;
    margin-bottom: 2px;
  }
  .hero-name {
    font-size: 1.6rem;
    letter-spacing: 0.5px;
    margin: 6px 0 10px;
    line-height: 1.2;
  }
  .hero-title {
    font-size: 0.72rem;
    color: #9cafd8;
    margin-bottom: 10px;
    background: rgba(33, 150, 243, 0.08);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(33, 150, 243, 0.2);
    display: inline-block;
  }
  .hero-description {
    font-size: 0.78rem;
    line-height: 1.65;
    color: #9cafd8;
    margin-bottom: 18px;
    text-align: center;
    max-width: 320px;
  }
  .hero-buttons {
    flex-direction: row;
    gap: 10px;
    margin-bottom: 18px;
    width: auto;
  }
  .btn {
    padding: 9px 18px;
    font-size: 0.8rem;
    border-radius: 8px;
    width: auto;
    max-width: none;
  }
  .social-linkss {
    gap: 16px;
  }
  .social-linkss a {
    font-size: 1rem;
  }

  /* ───── About mobile ────────────────────────── */
  .about-container {
    flex-direction: column;
    align-items: center;
    padding: 22px 18px;
    gap: 16px;
    border-radius: 18px;
    background: #161b27;
    border: 1px solid rgba(33, 150, 243, 0.15);
    box-shadow: none;
  }
  .about-img img {
    width: 160px;
    border-radius: 14px;
    border: 3px solid rgba(33, 150, 243, 0.35);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.2);
  }
  .about-text {
    text-align: center;
  }
  .about-text h3 {
    font-size: 1rem;
    margin-bottom: 10px;
  }
  .about-text p {
    font-size: 0.78rem;
  }
  .about-tagline {
    justify-content: center;
  }
  .tag-badge {
    font-size: 0.7rem;
    padding: 4px 10px;
  }
  .about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding-top: 14px;
    width: 100%;
  }
  .stat-item {
    min-width: unset;
  }
  .stat-number {
    font-size: 1.3rem;
  }
  .stat-label {
    font-size: 0.58rem;
  }
  .section-title {
    font-size: 1.25rem;
    margin-bottom: 18px;
    letter-spacing: 1px;
  }
  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 6px;
  }

  /* ───── Mobile Projects ─────────────────────── */
  .mobile-projects-wrap {
    display: block;
  }

  /* counter text */
  .mobile-proj-count {
    text-align: center;
    font-size: 0.7rem;
    color: #9cafd8;
    margin-bottom: 14px;
    background: rgba(255, 255, 255, 0.04);
    padding: 6px 0;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
  }
  .mobile-proj-count span {
    color: #2196f3;
    font-weight: 700;
  }

  /* Grid of cards */
  .mobile-proj-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }
  /* hide all cards, JS shows only current page */
  .mobile-proj-card {
    display: none;
  }
  .mobile-proj-card.visible {
    display: flex;
    flex-direction: column;
  }

  /* card style (same visual language as desktop) */
  .mobile-proj-card {
    background: #0f1421;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    overflow: hidden;
    transition:
      transform 0.25s,
      border-color 0.25s;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-proj-card:active {
    transform: scale(0.978);
  }
  .mobile-proj-img {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
  }
  .mobile-proj-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .mobile-proj-img::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to bottom, transparent, #0f1421);
    pointer-events: none;
  }
  .mobile-proj-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .mobile-proj-body h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #e8eaf6;
    line-height: 1.3;
  }
  .mobile-proj-body p {
    font-size: 0.75rem;
    color: #9cafd8;
    line-height: 1.55;
  }
  .mobile-proj-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 2px;
  }
  .mobile-proj-tags span {
    font-size: 0.62rem;
    font-weight: 600;
    color: #64b5f6;
    background: rgba(33, 150, 243, 0.1);
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid rgba(33, 150, 243, 0.2);
  }
  .mobile-proj-links {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-top: 6px;
  }
  .mobile-proj-link {
    font-size: 0.72rem;
    font-weight: 600;
    color: #64b5f6;
    text-decoration: none;
    border: 1px solid rgba(33, 150, 243, 0.3);
    padding: 5px 12px;
    border-radius: 7px;
    background: rgba(33, 150, 243, 0.07);
    transition: background 0.2s;
  }
  .mobile-proj-link:active {
    background: rgba(33, 150, 243, 0.2);
  }
  .mobile-proj-link.live {
    border-color: rgba(67, 160, 71, 0.35);
    color: #81c784;
    background: rgba(67, 160, 71, 0.07);
  }
  .mobile-proj-link.locked {
    border-color: rgba(255, 255, 255, 0.1);
    color: #4b5563;
    cursor: default;
    background: transparent;
  }

  /* Pagination */
  .mobile-proj-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
  }
  .mobile-proj-pgbtn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid rgba(33, 150, 243, 0.35);
    background: rgba(33, 150, 243, 0.06);
    color: #9cafd8;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.22s;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .mobile-proj-pgbtn.active {
    background: #2196f3;
    border-color: #2196f3;
    color: #fff;
    box-shadow: 0 2px 12px rgba(33, 150, 243, 0.4);
  }
  .mobile-proj-pgbtn:hover:not(.active) {
    background: rgba(33, 150, 243, 0.18);
    color: #fff;
  }
  /* Prev / Next arrow buttons */
  .mobile-proj-pgbtn.arrow {
    font-size: 0.75rem;
  }

  /* ───── Services mobile — 1 kolom, tampilan sama seperti desktop ── */
  .services-container {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .service-card {
    padding: 30px 24px;
    border-radius: 18px;
    display: block;
    text-align: center;
  }
  .service-card img {
    width: 70px;
    margin-bottom: 12px;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
  .service-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
  }
  .service-card p {
    font-size: 0.85rem;
    line-height: 1.55;
  }

  /* ───── Contact mobile ──────────────────────── */
  .contact {
    padding: 80px 5% 36px;
  }
  .contact .section-subtitle {
    font-size: 1.15rem;
  }
  .contact-info {
    padding: 22px 18px;
    border-radius: 18px;
  }
  .contact-text {
    font-size: 0.82rem;
  }
  .contact-item {
    font-size: 0.82rem;
  }
  .contact-btn {
    padding: 11px 26px;
    font-size: 0.85rem;
  }

  /* ───── Footer mobile ───────────────────────── */
  .footer {
    padding: 26px 16px 18px;
  }
  .footer-logo {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }
  .footer-links {
    gap: 12px;
    font-size: 0.78rem;
    margin-bottom: 12px;
  }
  .footer-social {
    display: none;
  }
  .footer-copy {
    font-size: 0.68rem;
  }
}

/* ── Tiny screens ≤ 390px ───────────────────────── */
@media (max-width: 390px) {
  .hero-name {
    font-size: 1.38rem;
  }
  .services-container {
    grid-template-columns: 1fr;
  }
  .about-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

/* ╔══════════════════════════════════════════════════════════╗
   ║   SCROLL ANIMATIONS                                      ║
   ╚══════════════════════════════════════════════════════════╝ */

/* Base hidden state */
.anim-hidden {
  opacity: 0;
  will-change: opacity, transform;
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Direction variants */
.anim-hidden.anim-from-bottom {
  transform: translateY(40px);
}
.anim-hidden.anim-from-left {
  transform: translateX(-50px);
}
.anim-hidden.anim-from-right {
  transform: translateX(50px);
}

/* Visible state — added by JS */
.anim-visible {
  opacity: 1 !important;
  transform: none !important;
}

/* Stagger helper — service cards & project cards get delay via JS inline style */
