/* ==========================================================================
   NXDOM — Official Website
   Theme: Professional Corporate Light (Clean, Trustworthy, Sponsor-Ready)
   ========================================================================== */

:root {
  /* Clean Light Palette */
  --bg-main: #FFFFFF;
  --bg-alt: #F8FAFC;       /* Soft slate 50 */
  --bg-card: #FFFFFF;
  
  --border: #E2E8F0;       /* Slate 200 */
  --border-hover: #CBD5E1; /* Slate 300 */
  
  /* Text Colors */
  --text-heading: #0F172A; /* Slate 900 - very dark blue/gray */
  --text-main: #334155;    /* Slate 700 - highly readable body */
  --text-muted: #64748B;   /* Slate 500 */
  
  /* Brand Accents */
  --brand-primary: #2563EB;   /* Trustworthy Corporate Blue */
  --brand-hover: #1D4ED8;
  --brand-accent: #EA580C;    /* Energetic Orange for "Nusantara" spark */
  --brand-sponsor: #DB2777;   /* Pink for sponsor heart */
  
  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  
  /* Structure */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-main);
}

body {
  margin: 0;
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: 0.2s ease;
}

a:hover {
  color: var(--brand-hover);
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Background Effects */
.glow-bg {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -2;
  background: 
    radial-gradient(circle at 15% 0%, rgba(37, 99, 235, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 85% 100%, rgba(234, 88, 12, 0.03) 0%, transparent 50%);
}

.grid-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -1;
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.5;
  pointer-events: none;
}

/* Header */
.navbar {
  position: fixed;
  top: 0; width: 100%;
  background: transparent;
  border-bottom: 1px solid transparent;
  z-index: 100;
  transition: background 0.3s ease, border-bottom 0.3s ease, backdrop-filter 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-heading);
}

.brand-logo {
  display: block;
  width: 32px;
  height: auto;
  object-fit: contain;
  border-radius: 8px; /* Optional, in case the logo is sharp */
}

.footer-brand .brand-logo {
  width: 28px;
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.5px;
  font-size: 1.25rem;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--text-heading);
}

/* Ecosystem dropdown in navbar */
.nav-dropdown { position: relative; display: inline-flex; align-items: center; }
.nav-dropdown-toggle { display: inline-flex; align-items: center; }
.nav-dropdown-toggle::after {
  content: "\25BE";
  margin-left: 6px;
  font-size: 0.7rem;
  line-height: 1;
}
.nav-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 190px;
  display: none;
  flex-direction: column;
  gap: 2px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 8px;
  z-index: 120;
}
.nav-menu::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -10px;
  height: 10px;
}
.nav-dropdown:hover .nav-menu,
.nav-dropdown:focus-within .nav-menu { display: flex; }
.nav-menu a {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}
.nav-menu a:hover { background: var(--bg-alt); color: var(--text-heading); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Lang Switch */
.lang-switch {
  display: inline-flex;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  padding: 2px;
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-switch button.active {
  background: var(--bg-card);
  color: var(--text-heading);
  box-shadow: var(--shadow-sm);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--brand-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
  background: var(--brand-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

.btn-outline {
  border: 1px solid var(--border);
  color: var(--text-heading);
  background: #ffffff;
}

.btn-outline:hover {
  border-color: var(--text-heading);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-sponsor {
  background: #FDF2F8; /* Pink 50 */
  color: var(--brand-sponsor);
  border: 1px solid #FBCFE8; /* Pink 200 */
}

.btn-sponsor:hover {
  background: var(--brand-sponsor);
  color: #fff;
  border-color: var(--brand-sponsor);
}

/* Hero Section */
.hero {
  padding: 160px 0 100px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--brand-primary);
  border: 1px solid rgba(37, 99, 235, 0.2);
  background: rgba(37, 99, 235, 0.05);
  padding: 8px 20px;
  border-radius: 999px;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--text-heading);
  margin: 0 0 16px;
  letter-spacing: -1px;
  line-height: 1.15;
}

.nx-glitch {
  font-weight: 800;
}

.hero-subtitle {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-weight: 600;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  margin: 0 0 24px;
  letter-spacing: 0.5px;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-heading);
  margin: 0 0 24px;
}

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

.hero-desc {
  max-width: 720px;
  margin: 0 auto 40px;
  font-size: 1.15rem;
  color: var(--text-muted);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* Sections */
.section {
  padding: 100px 0;
}

.section-dark {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-bordered {
  border-top: 1px solid var(--border);
}

.section-header {
  margin-bottom: 60px;
}

.section-header.center {
  text-align: center;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-heading);
  margin: 0 0 16px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 600px;
}

.section-header.center .section-subtitle {
  margin: 0 auto;
}

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* Text Boxes (Vision/Mission) */
.text-box {
  padding: 10px 0;
}

.outline-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.section-heading {
  color: var(--brand-primary);
  font-family: var(--font-sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.85rem;
  margin: 0 0 20px;
}

.lead-text {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.5px;
}

.mission-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mission-list li {
  position: relative;
  padding-left: 28px;
  color: var(--text-main);
}

.mission-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #10B981; /* Success Green */
  font-weight: bold;
}

/* Division Cards */
.div-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 36px 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.div-card:hover {
  border-color: var(--brand-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.div-icon {
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  background: rgba(37, 99, 235, 0.08); /* Soft blue background */
  color: var(--brand-primary);
  border-radius: 14px;
}

.div-icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 2px;
}

.div-card h4 {
  font-family: var(--font-display);
  color: var(--text-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 12px;
}

.div-card p {
  margin: 0;
  font-size: 1rem;
  color: var(--text-muted);
}

/* Projects Ecosystem */
.eco-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -28px 0 32px;
}
.eco-chip {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.eco-chip:hover { color: var(--text-heading); border-color: var(--brand-primary); }
.eco-chip.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}
.project-card.eco-hidden { display: none; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  overflow: hidden; /* Mencegah gambar meluap dari sudut lengkung */
}

.project-card:hover {
  border-color: var(--brand-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.project-image {
  width: 100%;
  height: 180px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05); /* Sedikit zoom saat kursor disorot */
}

.project-content {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.project-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--bg-alt);
  padding: 6px 12px;
  border-radius: 6px;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.project-link-icon {
  color: var(--text-muted);
  font-family: var(--font-mono);
  transition: 0.2s;
}

.project-card:hover .project-link-icon {
  color: var(--brand-primary);
  transform: translateX(2px) translateY(-2px);
}

.project-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-heading);
  margin: 0 0 12px;
  letter-spacing: -0.5px;
}

.project-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Principles */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
}

.principle-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border);
}

.p-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--brand-primary);
  background: rgba(37, 99, 235, 0.08);
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.principle-item strong {
  display: block;
  font-family: var(--font-display);
  color: var(--text-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.principle-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  background: #F1F5F9; /* Slate 100 */
  padding: 60px 0;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-heading);
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--brand-primary);
}

.text-pink {
  color: var(--brand-sponsor) !important;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Stagger card animations */
.grid-3 .div-card:nth-child(1) { transition-delay: 0.05s; }
.grid-3 .div-card:nth-child(2) { transition-delay: 0.1s; }
.grid-3 .div-card:nth-child(3) { transition-delay: 0.15s; }
.grid-3 .div-card:nth-child(4) { transition-delay: 0.2s; }
.grid-3 .div-card:nth-child(5) { transition-delay: 0.25s; }
.grid-3 .div-card:nth-child(6) { transition-delay: 0.3s; }

.project-grid .project-card:nth-child(1) { transition-delay: 0.1s; }
.project-grid .project-card:nth-child(2) { transition-delay: 0.2s; }
.project-grid .project-card:nth-child(3) { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .principles-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.8rem; }
  .footer-top { flex-direction: column; text-align: center; gap: 24px; }
  .p-num { width: 40px; height: 40px; font-size: 1.2rem; }
}
