/* ============================================================
   PANDAWA PROJECT — OFFICIAL LANDING PAGE DESIGN SYSTEM
   "Your Request, Our Solution."
   ============================================================ */

:root {
  /* Color Palette */
  --bg-core: #040814;
  --bg-surface: #080f24;
  --bg-surface-elevated: #0d1738;
  --bg-card: rgba(13, 23, 56, 0.65);
  --bg-card-hover: rgba(18, 32, 77, 0.85);
  --bg-glass: rgba(8, 15, 36, 0.75);

  --border-subtle: rgba(56, 189, 248, 0.12);
  --border-glow: rgba(0, 240, 255, 0.35);
  --border-gold: rgba(245, 158, 11, 0.3);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent-cyan: #38bdf8;
  --text-accent-gold: #fbbf24;

  --primary-navy: #0a1128;
  --primary-blue: #1d4ed8;
  --electric-blue: #2563eb;
  --bright-cyan: #00f0ff;
  --cyan-glow: rgba(0, 240, 255, 0.18);
  --gold-accent: #f59e0b;
  --gold-glow: rgba(245, 158, 11, 0.2);

  --gradient-brand: linear-gradient(135deg, #00f0ff 0%, #2563eb 50%, #1d4ed8 100%);
  --gradient-gold: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  --gradient-card: linear-gradient(180deg, rgba(16, 29, 70, 0.7) 0%, rgba(8, 15, 36, 0.85) 100%);
  --gradient-hero-bg: radial-gradient(circle at 75% 25%, rgba(0, 240, 255, 0.08) 0%, transparent 50%),
                      radial-gradient(circle at 25% 65%, rgba(37, 99, 235, 0.12) 0%, transparent 60%),
                      radial-gradient(circle at 85% 80%, rgba(245, 158, 11, 0.06) 0%, transparent 40%);

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Space Grotesk', monospace;

  /* Elevations & Glows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-glow-cyan: 0 0 35px rgba(0, 240, 255, 0.15);
  --shadow-glow-gold: 0 0 30px rgba(245, 158, 11, 0.15);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --container-max: 1240px;
}

/* ============================================================
   RESET & GLOBAL RULES (MOBILE SAFE, NO HORIZONTAL SCROLL)
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  background-color: var(--bg-core);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-core);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background Subtle Grid Texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
  background: none;
}

ul, ol {
  list-style: none;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.5rem;
  position: relative;
  z-index: 1;
}

/* ============================================================
   TYPOGRAPHY & UTILITY BADGES
   ============================================================ */

h1, h2, h3, h4, .brand-title {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.2;
}

.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-gold {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.tagline-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  background: rgba(8, 25, 60, 0.8);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.825rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bright-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
  margin-bottom: 1.25rem;
}

.tagline-badge .badge-dot {
  width: 7px;
  height: 7px;
  background-color: var(--bright-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--bright-cyan);
  animation: pulse-dot 2s infinite ease-in-out;
}

.tagline-badge .badge-gold-accent {
  color: var(--text-accent-gold);
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.5; }
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-accent-cyan);
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.6;
}

/* ============================================================
   BUTTONS & CTAs
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  user-select: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-brand);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(0, 240, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 240, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.btn-secondary {
  background: rgba(13, 23, 56, 0.7);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(22, 38, 92, 0.9);
  border-color: var(--bright-cyan);
  transform: translateY(-2px);
  color: var(--bright-cyan);
}

.btn-gold {
  background: var(--gradient-gold);
  color: #040814;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
  border: 1px solid rgba(251, 191, 36, 0.5);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(245, 158, 11, 0.5);
  color: #040814;
}

.btn-portal {
  background: rgba(13, 23, 56, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--text-secondary);
  font-size: 0.85rem;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
}

.btn-portal:hover {
  color: #ffffff;
  border-color: var(--bright-cyan);
  background: rgba(18, 32, 77, 0.8);
}

/* ============================================================
   HEADER & NAVBAR (GLASSMORPHISM)
   ============================================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.85rem 0;
  transition: var(--transition-smooth);
}

.site-header.scrolled {
  background: rgba(4, 8, 20, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.65rem 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.brand-logo-img {
  width: 40px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.35));
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #ffffff;
  line-height: 1.1;
}

.brand-name span {
  color: var(--bright-cyan);
}

.brand-subtitle {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--text-accent-gold);
  text-transform: uppercase;
  font-weight: 600;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.4rem 0;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-brand);
  transition: width 0.25s ease;
  border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  padding: 0;
  z-index: 1010;
}

.mobile-toggle span {
  display: block;
  height: 2.5px;
  width: 100%;
  background-color: var(--text-primary);
  border-radius: 3px;
  transition: var(--transition-smooth);
}

.subpage-wrapper {
  padding-top: 8rem;
  padding-bottom: 5rem;
  min-height: calc(100vh - 280px);
  position: relative;
}

/* ============================================================
   HERO SECTION (THE PANDAWA SHOWCASE)
   ============================================================ */

.hero-section {
  position: relative;
  min-height: calc(100vh - 60px);
  min-height: calc(100dvh - 60px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 8rem;
  padding-bottom: 4.5rem;
  overflow: hidden;
}

.hero-bg-lights {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero-bg);
  pointer-events: none;
  z-index: 0;
}

/* Subtle digital grid pulse in hero */
.hero-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

.hero-glow-1 {
  width: 500px;
  height: 500px;
  background: rgba(0, 240, 255, 0.12);
  top: 10%;
  right: 5%;
}

.hero-glow-2 {
  width: 400px;
  height: 400px;
  background: rgba(37, 99, 235, 0.14);
  bottom: 5%;
  left: 10%;
}

.hero-glow-3 {
  width: 300px;
  height: 300px;
  background: rgba(245, 158, 11, 0.08);
  top: 35%;
  right: 25%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
  position: relative;
  z-index: 1;
  margin-top: 0;
  margin-bottom: 0;
}

.hero-content {
  max-width: 640px;
}

.hero-title {
  font-size: clamp(2.5rem, 5.2vw, 3.85rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 1.5rem;
  letter-spacing: -0.025em;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.75rem;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
}

.highlight-item {
  display: flex;
  flex-direction: column;
}

.highlight-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}

.highlight-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Hero Visual Showcase */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mascot-frame {
  position: relative;
  width: 100%;
  max-width: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Holographic Cyber Pedestal */
.mascot-pedestal {
  position: absolute;
  bottom: 0;
  width: 90%;
  height: 50px;
  background: radial-gradient(ellipse at center, rgba(0, 240, 255, 0.4) 0%, rgba(37, 99, 235, 0.2) 40%, transparent 75%);
  border-radius: 50%;
  filter: blur(10px);
  z-index: 1;
}

.mascot-halo-ring {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 1px dashed rgba(0, 240, 255, 0.25);
  box-shadow: 0 0 45px rgba(0, 240, 255, 0.12), inset 0 0 35px rgba(245, 158, 11, 0.08);
  animation: rotate-halo 30s linear infinite;
  z-index: 0;
}

@keyframes rotate-halo {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.mascot-img-wrapper {
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 25px rgba(0, 240, 255, 0.2));
  animation: float-mascot 6s ease-in-out infinite;
}

@keyframes float-mascot {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

.mascot-img {
  width: 100%;
  max-width: 440px;
  height: auto;
  object-fit: contain;
  transform: translate(var(--hero-x, 0px), var(--hero-y, 0px)) scale(var(--hero-scale, 1));
  transform-origin: center center;
  transition: transform 0.25s ease-out;
}

@media (max-width: 991px) {
  .mascot-img {
    max-width: 380px;
    transform: translate(
      clamp(-60px, var(--hero-x, 0px), 60px),
      clamp(-60px, var(--hero-y, 0px), 60px)
    ) scale(clamp(0.75, var(--hero-scale, 1), 1.25));
  }
}

@media (max-width: 767px) {
  .mascot-img {
    max-width: 300px;
    transform: translate(
      clamp(-25px, var(--hero-x, 0px), 25px),
      clamp(-30px, var(--hero-y, 0px), 30px)
    ) scale(clamp(0.7, var(--hero-scale, 1), 1.15));
  }
}

/* Floating Hologram Badges */
.floating-badge {
  position: absolute;
  background: rgba(8, 15, 36, 0.85);
  border: 1px solid var(--border-glow);
  backdrop-filter: blur(12px);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  white-space: nowrap;
  animation: float-badge 5s ease-in-out infinite alternate;
}

.badge-shield-info {
  top: 15%;
  right: -5%;
  border-color: rgba(245, 158, 11, 0.4);
}

.badge-laptop-info {
  bottom: 22%;
  left: -8%;
  border-color: rgba(0, 240, 255, 0.4);
}

.badge-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.icon-gold {
  background: rgba(245, 158, 11, 0.15);
  color: var(--text-accent-gold);
}

.icon-cyan {
  background: rgba(0, 240, 255, 0.15);
  color: var(--bright-cyan);
}

.badge-content strong {
  display: block;
  font-size: 0.85rem;
  color: #ffffff;
}

.badge-content span {
  font-size: 0.725rem;
  color: var(--text-secondary);
}

@keyframes float-badge {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

/* ============================================================
   SECTION 1: WHAT WE BUILD
   ============================================================ */

.section-what-we-build {
  padding: 0 0 6.5rem 0;
  position: relative;
  background: linear-gradient(180deg, var(--bg-core) 0%, rgba(8, 15, 36, 0.5) 50%, var(--bg-core) 100%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.service-card {
  position: relative;
  overflow: visible;
  background: transparent;
  border: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  transition: transform 380ms ease-out;
}

.service-card-inner {
  position: relative;
  z-index: 2;
  background: #080f24;
  background: linear-gradient(180deg, #101d46 0%, #080f24 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  transition: border-color 380ms ease-out, box-shadow 380ms ease-out;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.service-card-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
}

.service-card:hover .service-card-inner {
  border-color: var(--border-glow);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), var(--shadow-glow-cyan);
}

.service-card:hover .service-card-inner::before {
  opacity: 1;
}

/* Character Layering & Emergence Animation */
.service-character-wrap {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transform: translateY(25px) translateX(10px) scale(0.94);
  transition: transform 420ms ease-out, opacity 380ms ease-out;
  will-change: transform, opacity;
  line-height: 0;
  height: 320px;
  overflow: hidden;
}

.service-character-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 28px rgba(0, 240, 255, 0.4));
  user-select: none;
  -webkit-user-drag: none;
}

/* Specific Character Positioning & Sizes */
.service-card--coder .service-character-wrap {
  width: 250px;
  top: -105px;
  right: -20px;
}

.service-card--app .service-character-wrap {
  width: 240px;
  top: -115px;
  right: -25px;
}

.service-card--system .service-character-wrap {
  width: 255px;
  top: -115px;
  right: -30px;
}

@media (hover: hover) and (min-width: 992px) {
  .service-card:hover .service-character-wrap {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
  }
}

@media (hover: none), (max-width: 991px) {
  .service-character-wrap {
    display: none !important;
  }
}

.service-icon-box {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--bright-cyan);
  font-size: 1.6rem;
  transition: transform 380ms ease-out, background 380ms ease-out, box-shadow 380ms ease-out;
}

.service-card:hover .service-icon-box {
  background: var(--gradient-brand);
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

.service-card-title {
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
  color: #ffffff;
}

.service-card-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-card-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-accent-cyan);
}

.service-card-footer i,
.service-card-footer svg {
  transition: transform 0.25s ease;
}

.service-card:hover .service-card-footer i,
.service-card:hover .service-card-footer svg {
  transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
  .service-card,
  .service-card-inner,
  .service-character-wrap,
  .service-icon-box,
  .service-card-footer i,
  .service-card-footer svg {
    transition: none !important;
    transform: none !important;
  }
  .service-character-wrap {
    display: none !important;
  }
}

/* ============================================================
   SECTION 2: OUR PHILOSOPHY
   ============================================================ */

.section-philosophy {
  padding: 0 0 6.5rem 0;
  position: relative;
  overflow: hidden;
}

.philosophy-card-wrapper {
  background: radial-gradient(circle at 80% 50%, rgba(0, 240, 255, 0.08) 0%, transparent 60%),
              radial-gradient(circle at 20% 50%, rgba(245, 158, 11, 0.08) 0%, transparent 60%),
              linear-gradient(135deg, rgba(13, 23, 56, 0.8) 0%, rgba(6, 12, 28, 0.95) 100%);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 2.25rem 3.5rem 3.5rem 3.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  position: relative;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 4rem;
}

.philosophy-quote-mark {
  font-family: Georgia, serif;
  font-size: 3rem;
  line-height: 1;
  color: var(--bright-cyan);
  opacity: 0.25;
  margin-bottom: -0.5rem;
}

.philosophy-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 1.5rem;
}

.philosophy-lead {
  font-size: 1.25rem;
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.philosophy-body {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 2.25rem;
}

.philosophy-trinity {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.trinity-card {
  background: rgba(8, 15, 36, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: var(--transition-smooth);
}

.trinity-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px);
}

.trinity-symbol {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.trinity-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.2rem;
}

.trinity-desc {
  font-size: 0.785rem;
  color: var(--text-secondary);
}

.philosophy-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.philosophy-img {
  width: 100%;
  max-width: 360px;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 20px rgba(0, 240, 255, 0.2));
  transform: translate(var(--philosophy-x, 0px), var(--philosophy-y, 0px)) scale(var(--philosophy-scale, 1));
  transform-origin: center center;
  transition: transform 0.25s ease-out;
}

@media (max-width: 991px) {
  .philosophy-img {
    max-width: 320px;
    transform: translate(
      clamp(-50px, var(--philosophy-x, 0px), 50px),
      clamp(-50px, var(--philosophy-y, 0px), 50px)
    ) scale(clamp(0.75, var(--philosophy-scale, 1), 1.25));
  }
}

@media (max-width: 767px) {
  .philosophy-img {
    max-width: 260px;
    transform: translate(
      clamp(-25px, var(--philosophy-x, 0px), 25px),
      clamp(-30px, var(--philosophy-y, 0px), 30px)
    ) scale(clamp(0.8, var(--philosophy-scale, 1), 1.15));
  }
}

/* ============================================================
   SECTION 3: HOW WE BUILD (WORKFLOW)
   ============================================================ */

.section-how-we-work {
  padding: 0 0 6.5rem 0;
  position: relative;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}

.workflow-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  position: relative;
  transition: var(--transition-smooth);
}

.workflow-card:hover {
  border-color: var(--bright-cyan);
  transform: translateY(-5px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.4), var(--shadow-glow-cyan);
}

.workflow-step-num {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(180deg, var(--bright-cyan) 0%, rgba(37, 99, 235, 0.4) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.25rem;
  display: inline-block;
}

.workflow-step-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #ffffff;
  letter-spacing: 0.05em;
}

.workflow-step-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   SECTION 4: WHY PANDAWA PROJECT
   ============================================================ */

.section-why-us {
  padding: 0 0 6.5rem 0;
  position: relative;
  background: linear-gradient(180deg, rgba(8, 15, 36, 0.4) 0%, var(--bg-core) 100%);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.value-card {
  background: rgba(13, 23, 56, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  transition: var(--transition-smooth);
  position: relative;
}

.value-card:hover {
  background: rgba(18, 32, 77, 0.7);
  border-color: rgba(245, 158, 11, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), var(--shadow-glow-gold);
}

.value-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: var(--text-accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
}

.value-title {
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 0.65rem;
}

.value-desc {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   SECTION 5: SELECTED PROJECTS (PORTFOLIO)
   ============================================================ */

.section-portfolio {
  padding: 0 0 6.5rem 0;
  position: relative;
}

.portfolio-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3.5rem;
}

.tab-btn {
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(13, 23, 56, 0.6);
  border: 1px solid var(--border-subtle);
  transition: var(--transition-smooth);
}

.tab-btn:hover {
  color: #ffffff;
  border-color: rgba(0, 240, 255, 0.3);
}

.tab-btn.active {
  background: var(--gradient-brand);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 18px rgba(0, 240, 255, 0.3);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.portfolio-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), var(--shadow-glow-cyan);
}

.portfolio-header-visual {
  height: 190px;
  background: radial-gradient(circle at 50% 50%, rgba(0, 240, 255, 0.12) 0%, rgba(13, 23, 56, 0.9) 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.portfolio-visual-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bright-cyan);
  padding: 0.35rem 0.85rem;
  background: rgba(4, 8, 20, 0.8);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: var(--radius-pill);
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
}

.portfolio-visual-icon {
  font-size: 3.5rem;
  color: rgba(255, 255, 255, 0.2);
  transition: var(--transition-smooth);
}

.portfolio-card:hover .portfolio-visual-icon {
  transform: scale(1.15);
  color: var(--bright-cyan);
  filter: drop-shadow(0 0 15px var(--bright-cyan));
}

.portfolio-visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.portfolio-card:hover .portfolio-visual-img {
  transform: scale(1.05);
}

.portfolio-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.portfolio-title {
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 0.65rem;
}

.portfolio-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.725rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.portfolio-action {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.portfolio-action-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-accent-cyan);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.portfolio-action-link:hover {
  color: #ffffff;
}

.portfolio-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  background: var(--gradient-card);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
}

.portfolio-empty-state i {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: block;
}

/* ============================================================
   SECTION 6: GRAND CTA (READY TO BUILD YOUR SOLUTION?)
   ============================================================ */

.section-cta {
  padding: 0 0 6.5rem 0;
  position: relative;
  overflow: hidden;
}

.cta-banner {
  background: radial-gradient(circle at 10% 20%, rgba(245, 158, 11, 0.12) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(0, 240, 255, 0.15) 0%, transparent 50%),
              linear-gradient(135deg, rgba(13, 23, 56, 0.95) 0%, rgba(6, 12, 28, 0.98) 100%);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 2.5rem 3.5rem 3.5rem 3.5rem;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7), var(--shadow-glow-cyan);
  position: relative;
  overflow: hidden;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 3.5rem;
  position: relative;
  z-index: 2;
}

.cta-title {
  font-size: clamp(2.2rem, 4vw, 3.25rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.cta-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2.25rem;
  max-width: 540px;
}

.cta-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.cta-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.cta-mascot-img {
  width: 100%;
  max-width: 380px;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 25px rgba(245, 158, 11, 0.25));
  transform: translate(var(--contact-x, 0px), var(--contact-y, 0px)) scale(var(--contact-scale, 1));
  transform-origin: center center;
  transition: transform 0.25s ease-out;
}

@media (max-width: 991px) {
  .cta-mascot-img {
    max-width: 320px;
    transform: translate(
      clamp(-50px, var(--contact-x, 0px), 50px),
      clamp(-50px, var(--contact-y, 0px), 50px)
    ) scale(clamp(0.75, var(--contact-scale, 1), 1.25));
  }
}

@media (max-width: 767px) {
  .cta-mascot-img {
    max-width: 260px;
    transform: translate(
      clamp(-25px, var(--contact-x, 0px), 25px),
      clamp(-30px, var(--contact-y, 0px), 30px)
    ) scale(clamp(0.8, var(--contact-scale, 1), 1.15));
  }
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: #03060f;
  border-top: 1px solid var(--border-subtle);
  padding: 4.5rem 0 2rem 0;
  position: relative;
  z-index: 10;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 1.25rem 0;
  max-width: 320px;
}

.footer-brand-quote {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-accent-gold);
  letter-spacing: 0.05em;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.footer-link:hover {
  color: var(--bright-cyan);
  transform: translateX(3px);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-copy strong {
  color: var(--text-primary);
}

/* ============================================================
   PROJECT REQUEST MODAL (INTERACTIVE INQUIRY)
   ============================================================ */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-window {
  background: linear-gradient(135deg, rgba(13, 23, 56, 0.98) 0%, rgba(6, 12, 28, 0.98) 100%);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), var(--shadow-glow-cyan);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .modal-window {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-color: #ef4444;
}

.modal-header {
  margin-bottom: 1.75rem;
}

.modal-title {
  font-size: 1.65rem;
  margin-bottom: 0.5rem;
}

.modal-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.45rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: rgba(4, 8, 20, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: #ffffff;
  font-size: 0.925rem;
  transition: var(--transition-smooth);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--bright-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS (DESKTOP, TABLET, MOBILE)
   ============================================================ */

/* Tablet & Smaller Desktops */
@media (max-width: 1024px) {
  .hero-section {
    padding-top: 6.85rem;
    padding-bottom: 3.5rem;
  }

  .subpage-wrapper {
    padding-top: 6.85rem;
    padding-bottom: 3.5rem;
  }

  .philosophy-card-wrapper {
    padding: 2rem 2.25rem 2.5rem 2.25rem;
  }

  .cta-banner {
    padding: 2rem 2.25rem 2.5rem 2.25rem;
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .workflow-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .philosophy-visual {
    order: -1;
  }

  .cta-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cta-subtitle {
    margin-inline: auto;
  }

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

  .cta-visual {
    margin-top: 1rem;
  }

  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .nav-menu {
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    background: rgba(4, 8, 20, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glow);
    padding: 2rem 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    z-index: 999;
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-toggle {
    display: flex;
  }

  .nav-actions .btn-primary {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }
}

/* Mobile Devices */
@media (max-width: 768px) {
  .container {
    padding-inline: 1.25rem;
  }

  .site-header {
    padding: 0.65rem 0;
  }

  .nav-actions .btn-primary span {
    display: inline;
  }

  .hero-section {
    padding-top: 5.5rem;
    padding-bottom: 3rem;
  }

  .subpage-wrapper {
    padding-top: 5.5rem;
    padding-bottom: 3rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
  }

  .tagline-badge {
    margin-inline: auto;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-highlights {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
  }

  .hero-visual {
    order: -1; /* Display Pandawa prominently */
  }

  .mascot-frame {
    max-width: 320px;
  }

  .floating-badge {
    display: none; /* Hide decorative floating chips on mobile to prevent clipping */
  }

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

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

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

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

  .philosophy-trinity {
    grid-template-columns: 1fr;
  }

  .philosophy-card-wrapper {
    padding: 1.5rem 1.25rem;
  }

  .cta-banner {
    padding: 1.75rem 1.25rem;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
