/* ===================================================
   PT GOXPAY DIGITAL SOLUTIONS - Main Stylesheet
   Premium Dark Glassmorphism Design
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --primary: #0066ff;
  --accent: #00d4ff;
  --bg: #050a18;
  --bg2: #080f22;
  --text: #e0e6f0;
  --text-muted: #7a8aab;
  --glass: rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.08);
  --radius: 16px;
  --transition: 0.3s ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* ===================================================
   NAVBAR
   =================================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 5%;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(5, 10, 24, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background var(--transition);
}
.navbar.scrolled {
  background: rgba(5, 10, 24, 0.98);
  box-shadow: 0 4px 32px rgba(0,0,0,0.5);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo {
  width: 40px; height: 40px;
  border-radius: 10px;
  object-fit: contain;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
  color: #fff;
  flex-shrink: 0;
}
.nav-logo img { width: 40px; height: 40px; object-fit: contain; border-radius: 10px; }
.nav-brand-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.nav-brand-sub {
  font-size: 0.65rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.nav-links a {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
}
.nav-links a:hover { color: #fff; background: var(--glass); }
.nav-cta {
  background: var(--primary) !important;
  color: #fff !important;
  padding: 8px 20px !important;
  box-shadow: 0 4px 16px rgba(0,102,255,0.3);
}
.nav-cta:hover { background: #0055dd !important; transform: translateY(-1px); box-shadow: 0 6px 24px rgba(0,102,255,0.5) !important; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-mobile {
  display: none;
  position: fixed;
  top: 70px; left: 0; right: 0;
  background: rgba(5,10,24,0.98);
  backdrop-filter: blur(20px);
  padding: 20px;
  border-bottom: 1px solid var(--glass-border);
  flex-direction: column;
  gap: 8px;
  z-index: 999;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
  border: 1px solid transparent;
}
.nav-mobile a:hover { color: #fff; background: var(--glass); border-color: var(--glass-border); }
.nav-mobile .nav-cta { background: var(--primary) !important; color: #fff !important; text-align: center; }

/* ===================================================
   HERO SLIDER
   =================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-slides-container {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-slide.active { opacity: 1; }
.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.hero-slide.active .hero-slide-bg { transform: scale(1); }
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(5,10,24,0.85) 0%, rgba(5,10,24,0.6) 60%, rgba(0,102,255,0.1) 100%);
}
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 140px 20px 80px;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(0,102,255,0.15);
  border: 1px solid rgba(0,102,255,0.3);
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}
.hero-title {
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 20px;
  text-shadow: 0 2px 40px rgba(0,0,0,0.5);
}
.hero-title .highlight {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(224,230,240,0.8);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0,102,255,0.4);
}
.btn-primary:hover { background: #0055dd; transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,102,255,0.6); }
.btn-glass {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
}
.btn-glass:hover { background: rgba(255,255,255,0.14); transform: translateY(-2px); }
.hero-indicators {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 20;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}
.hero-dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--primary);
}
.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  right: 5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.4);
  font-size: 0.7rem;
  z-index: 20;
}
.scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, var(--primary), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine { 0%,100%{opacity:0;transform:scaleY(0)} 50%{opacity:1;transform:scaleY(1)} }

/* ===================================================
   PARTICLES
   =================================================== */
#particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }
.particle {
  position: absolute;
  width: 2px; height: 2px;
  background: var(--accent);
  border-radius: 50%;
  animation: float linear infinite;
  opacity: 0;
}
@keyframes float { 0%{transform:translateY(100vh) translateX(0);opacity:0} 10%{opacity:0.6} 90%{opacity:0.2} 100%{transform:translateY(-10vh) translateX(40px);opacity:0} }

/* ===================================================
   SECTION COMMONS
   =================================================== */
section { padding: 100px 5%; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 16px;
  background: rgba(0,102,255,0.1);
  border: 1px solid rgba(0,102,255,0.25);
  border-radius: 30px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-title .highlight {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ===================================================
   ABOUT SECTION
   =================================================== */
#about { background: linear-gradient(135deg, var(--bg2) 0%, var(--bg) 100%); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.about-visual {
  position: relative;
}
.about-card-main {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 36px;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}
.about-card-main::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0,102,255,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}
.about-stat {
  text-align: center;
  padding: 20px;
  background: rgba(0,102,255,0.05);
  border: 1px solid rgba(0,102,255,0.15);
  border-radius: 12px;
}
.about-stat-num {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.about-stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.about-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 20px;
}
.about-text p { color: var(--text-muted); line-height: 1.8; margin-bottom: 16px; }
.about-features { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.about-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
}
.feature-dot {
  width: 8px; height: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  flex-shrink: 0;
}

/* ===================================================
   SERVICES
   =================================================== */
#services {
  background: var(--bg);
  position: relative;
}
#services::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(0,102,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.service-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  cursor: default;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,102,255,0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(0,102,255,0.3); box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 40px rgba(0,102,255,0.08); }
.service-card:hover::before { opacity: 1; }
.service-icon { width: 60px; height: 60px; background: linear-gradient(135deg, rgba(0,102,255,0.2), rgba(0,212,255,0.1)); border: 1px solid rgba(0,102,255,0.3); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 20px; position: relative; }
.service-icon i { font-size: 1.5rem; background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.service-title { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 12px; }
.service-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }
.service-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.service-tag {
  padding: 3px 10px;
  background: rgba(0,102,255,0.1);
  border: 1px solid rgba(0,102,255,0.2);
  border-radius: 20px;
  font-size: 0.73rem;
  color: var(--accent);
}

/* ===================================================
   PORTFOLIO
   =================================================== */
#portfolio { background: linear-gradient(135deg, var(--bg2) 0%, var(--bg) 100%); }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.portfolio-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
}
.portfolio-card:hover { transform: translateY(-6px); border-color: rgba(0,102,255,0.3); box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.portfolio-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(0,102,255,0.1), rgba(0,212,255,0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
}
.portfolio-img img { width: 100%; height: 100%; object-fit: cover; }
.portfolio-img-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0,30,80,0.8), rgba(0,10,30,0.9));
  font-size: 3.5rem;
}
.portfolio-status {
  position: absolute;
  top: 12px; right: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
}
.status-online { background: rgba(0,200,100,0.2); border: 1px solid rgba(0,200,100,0.4); color: #00c864; }
.status-offline { background: rgba(255,71,87,0.2); border: 1px solid rgba(255,71,87,0.4); color: #ff4757; }
.status-development { background: rgba(255,165,2,0.2); border: 1px solid rgba(255,165,2,0.4); color: #ffb300; }
.portfolio-body { padding: 24px; }
.portfolio-name { font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.portfolio-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.portfolio-actions { display: flex; gap: 10px; position: relative; z-index: 10; }
.btn-port {
  flex: 1;
  text-align: center;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition);
}
.btn-detail {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--glass-border);
  color: var(--text);
}
.btn-detail:hover { background: rgba(255,255,255,0.1); }
.btn-live {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,102,255,0.3);
}
.btn-live:hover { background: #0055dd; }

/* ===================================================
   STATS COUNTER
   =================================================== */
#stats {
  background: linear-gradient(135deg, rgba(0,30,100,0.3) 0%, rgba(0,10,40,0.5) 100%);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  padding: 80px 5%;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.stat-item { text-align: center; }
.stat-count {
  font-size: 3.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat-suffix { font-size: 2rem; }
.stat-name { font-size: 0.9rem; color: var(--text-muted); margin-top: 8px; font-weight: 500; }

/* ===================================================
   CONTACT / CTA
   =================================================== */
#contact {
  background: var(--bg);
  padding: 100px 5%;
}
.cta-box {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding: 60px 40px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 400px; height: 200px;
  background: radial-gradient(ellipse, rgba(0,102,255,0.15) 0%, transparent 70%);
}
.cta-box h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: #fff; margin-bottom: 16px; position: relative; }
.cta-box p { color: var(--text-muted); line-height: 1.7; margin-bottom: 32px; position: relative; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ===================================================
   FOOTER
   =================================================== */
footer {
  background: linear-gradient(180deg, var(--bg2) 0%, #030710 100%);
  border-top: 1px solid var(--glass-border);
  padding: 60px 5% 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(auto-fit, minmax(160px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand { min-width: 0; }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-logo-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1rem;
  color: #fff;
}
.footer-logo-img { width: 36px; height: 36px; object-fit: contain; border-radius: 8px; }
.footer-brand-name { font-size: 0.9rem; font-weight: 700; color: #fff; }
.footer-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; }
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.footer-contact-item span:first-child { font-size: 0.9rem; }
.footer-col-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-col ul a::before {
  content: '›';
  color: var(--primary);
  font-weight: 700;
}
.footer-col ul a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: 0.8rem; color: var(--text-muted); }
.footer-copy a { color: var(--primary); }

/* ===================================================
   ANIMATIONS
   =================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ===================================================
   RESPONSIVE – TABLET (≤ 992px)
   =================================================== */
@media (max-width: 992px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-visual { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

/* ===================================================
   RESPONSIVE – MOBILE (≤ 768px)
   =================================================== */
@media (max-width: 768px) {
  /* Global */
  html { overflow-x: hidden; }
  body { overflow-x: hidden; }
  section { padding: 64px 4%; }

  /* Navbar */
  .navbar { padding: 0 4%; height: 60px; }
  .nav-brand-name { font-size: 0.78rem; max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nav-brand-sub { font-size: 0.6rem; }
  .nav-logo { width: 34px; height: 34px; font-size: 0.9rem; border-radius: 8px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-mobile { top: 60px; padding: 16px; gap: 6px; }
  .nav-mobile a { padding: 10px 14px; font-size: 0.9rem; }

  /* Hero */
  .hero-content { padding: 110px 16px 80px; }
  .hero-badge { font-size: 0.72rem; padding: 5px 14px; letter-spacing: 0.04em; }
  .hero-title { font-size: clamp(1.9rem, 8vw, 2.8rem); margin-bottom: 14px; }
  .hero-subtitle { font-size: 0.9rem; margin-bottom: 28px; padding: 0 8px; }
  .hero-buttons { flex-direction: column; align-items: center; gap: 12px; }
  .hero-buttons .btn { width: 100%; max-width: 320px; justify-content: center; padding: 13px 24px; font-size: 0.95rem; }
  .hero-indicators { bottom: 28px; }
  .hero-scroll-hint { display: none; }

  /* About */
  .about-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .about-stat { padding: 14px 10px; }
  .about-stat-num { font-size: 1.6rem; }
  .about-stat-label { font-size: 0.75rem; }
  .about-card-main { padding: 24px 18px; }
  .about-text h2 { font-size: clamp(1.6rem, 6vw, 2rem); }

  /* Services – 2 kolom di HP */
  .services-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .service-card { padding: 18px 14px; }
  .service-icon { width: 48px; height: 48px; font-size: 1.3rem; margin-bottom: 12px; border-radius: 12px; }
  .service-title { font-size: 0.9rem; }
  .service-desc { font-size: 0.8rem; }

  /* Portfolio – 2 kolom di HP */
  .portfolio-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .portfolio-img { height: 130px; }
  .portfolio-body { padding: 12px; }
  .portfolio-name { font-size: 0.88rem; }
  .portfolio-desc { font-size: 0.78rem; margin-bottom: 12px; }
  .portfolio-actions { gap: 6px; }
  .btn-port { padding: 8px 6px; font-size: 0.75rem; }

  /* Stats */
  #stats { padding: 56px 4%; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .stat-count { font-size: 2.8rem; }
  .stat-name { font-size: 0.8rem; }

  /* CTA / Contact */
  #contact { padding: 64px 4%; }
  .cta-box { padding: 36px 20px; border-radius: 18px; }
  .cta-box h2 { font-size: clamp(1.3rem, 5vw, 1.8rem); margin-bottom: 12px; }
  .cta-box p { font-size: 0.9rem; margin-bottom: 24px; padding: 0 4px; }
  .cta-buttons { flex-direction: column; align-items: center; gap: 12px; }
  .cta-buttons .btn { width: 100%; max-width: 320px; justify-content: center; }
  .cta-box > div:last-child { flex-direction: column; gap: 8px; }

  /* Footer */
  footer { padding: 48px 4% 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; margin-bottom: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }
  .footer-desc { font-size: 0.82rem; }

  /* Section headers */
  .section-title { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  .section-desc { font-size: 0.88rem; }
  .section-header { margin-bottom: 40px; }

  /* Prevent glow overflow */
  #services::before { width: 100vw; max-width: 100%; overflow: hidden; }
}

/* ===================================================
   RESPONSIVE – SMALL PHONE (≤ 420px)
   =================================================== */
@media (max-width: 420px) {
  section { padding: 56px 3.5%; }
  .nav-brand-name { max-width: 160px; font-size: 0.72rem; }
  .hero-title { font-size: clamp(1.7rem, 9vw, 2.2rem); }
  .about-stat-num { font-size: 1.4rem; }
  .stat-count { font-size: 2.4rem; }
  .portfolio-img { height: 160px; }
  .service-card { padding: 20px 16px; }
  .cta-box { padding: 28px 14px; }
}

/* ===================================================
   SCROLLBAR
   =================================================== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 2px; }

/* Prevent horizontal overflow on content elements */
img, video, canvas, table { max-width: 100%; }
.hero-badge, .section-badge { max-width: 100%; }

/* ===================================================
   TIMELINE MODAL
   =================================================== */
.rundown-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(5,10,24,0.9); backdrop-filter: blur(8px);
    z-index: 10000; opacity: 0; visibility: hidden;
    transition: all 0.3s; display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.rundown-modal-overlay.show { opacity: 1; visibility: visible; }
.rundown-modal {
    background: var(--bg2); border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    border-radius: 16px; width: 100%; max-width: 600px;
    max-height: 85vh; overflow-y: auto; padding: 30px;
    transform: translateY(30px); transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.rundown-modal-overlay.show .rundown-modal { transform: translateY(0); }
.rundown-modal-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border-color);
}
.rundown-modal-title { font-size: 1.25rem; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 10px; }
.rundown-modal-close {
    background: none; border: none; color: var(--text-muted);
    font-size: 1.5rem; cursor: pointer; padding: 5px; line-height: 1; transition: color 0.2s;
}
.rundown-modal-close:hover { color: var(--danger); }

/* The Timeline */
.timeline {
    position: relative; margin: 20px 0; padding-left: 30px;
}
.timeline::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0;
    width: 2px; background: linear-gradient(to bottom, var(--primary), rgba(0,212,255,0.2) 80%, transparent);
}
.timeline-item {
    position: relative; margin-bottom: 24px;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item::before {
    content: ''; position: absolute; left: -34px; top: 4px;
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--primary); border: 2px solid var(--card-bg);
    box-shadow: 0 0 0 3px rgba(0,102,255,0.2); z-index: 2;
}
.timeline-date {
    display: inline-block; font-size: 0.8rem; font-weight: 600;
    color: var(--accent); margin-bottom: 4px; background: rgba(0,212,255,0.1);
    padding: 2px 8px; border-radius: 12px;
}
.timeline-title { font-size: 1.05rem; font-weight: 600; color: #fff; margin-bottom: 6px; }
.timeline-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; white-space: pre-line; margin: 0; }
.timeline-empty { text-align: center; color: var(--text-muted); padding: 30px 0; font-style: italic; }
