/* maulanafathurrahman.my.id — v4 bold agency style (titusklein-inspired)
 * Full-screen sections, uppercase bold typography, dark theme.
 * GSAP-driven scroll animations.
 */

:root {
  --bg: #0a0a0a;
  --fg: #fafafa;
  --fg-dim: #a0a0a0;
  --accent: #ffd600;
  --accent-dim: #ffcc00;
  --border: #2a2a2a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { 
  scroll-behavior: smooth; 
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--bg); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* === Navigation === */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  gap: 32px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.nav-links a {
  transition: color 200ms;
  position: relative;
}
.nav-links a:hover,
.nav-links a:focus-visible { 
  color: var(--accent); 
}
/* Remove stuck hover on mobile after tap */
@media (hover: none) and (pointer: coarse) {
  .nav-links a:hover {
    color: inherit;
  }
}
.nav-links a.active {
  color: var(--accent);
}
.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}

/* === Section full-screen === */
.section-full {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 100px 40px;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.section-full.hero { border-bottom: none; }

/* === Hero === */
.hero {
  text-align: center;
}
.hero h1 {
  font-size: clamp(48px, 10vw, 120px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin-bottom: 30px;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line span {
  display: inline-block;
  transform: translateY(120%);
}
.hero .tagline {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--fg-dim);
  max-width: 640px;
  margin: 0 auto 60px;
  line-height: 1.5;
}
.scroll-indicator {
  display: inline-block;
  width: 32px;
  height: 56px;
  border: 2px solid var(--fg);
  border-radius: 24px;
  position: relative;
  opacity: 0.6;
  transition: opacity 300ms;
}
.scroll-indicator:hover { opacity: 1; }
.scroll-indicator::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--fg);
  border-radius: 2px;
  animation: scroll-bounce 1.5s infinite;
}
@keyframes scroll-bounce {
  0%, 100% { opacity: 0; transform: translate(-50%, 0); }
  50% { opacity: 1; transform: translate(-50%, 12px); }
}

/* === Benefit sections === */
.benefit-section {
  text-align: center;
  max-width: 900px;
}
.benefit-section .kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 20px;
}
.benefit-section h2 {
  font-size: clamp(40px, 8vw, 90px);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  margin-bottom: 30px;
}
.benefit-section p {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--fg-dim);
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto;
}

/* === CTA section === */
.cta-section {
  text-align: center;
  max-width: 800px;
}
.cta-section h2 {
  font-size: clamp(36px, 7vw, 80px);
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.cta-section .subtitle {
  font-size: clamp(14px, 1.8vw, 18px);
  color: var(--fg-dim);
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.cta-section p {
  font-size: 17px;
  color: var(--fg-dim);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 50px;
}
.btn-primary {
  display: inline-block;
  padding: 18px 48px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  background: var(--fg);
  color: var(--bg);
  border-radius: 2px;
  transition: background 250ms, transform 200ms;
}
.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

/* === Projects grid === */
.projects-section {
  padding: 120px 40px;
  border-bottom: 1px solid var(--border);
}
.projects-head {
  text-align: center;
  margin-bottom: 80px;
}
.projects-head h2 {
  font-size: clamp(40px, 8vw, 90px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 2px;
  max-width: 1400px;
  margin: 0 auto;
  background: var(--border);
}
.project-card {
  background: var(--bg);
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 420px;
  position: relative;
  overflow: hidden;
  transition: background 400ms;
}
.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,214,0,0.08), transparent);
  opacity: 0;
  transition: opacity 400ms;
}
.project-card:hover::before { opacity: 1; }
.project-card:hover { background: #0f0f0f; }
.project-card h3 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 20px;
  transition: color 300ms;
}
.project-card:hover h3 { color: var(--accent); }
.project-card .meta {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-dim);
  margin-bottom: 20px;
  font-weight: 600;
}
.project-card .desc {
  font-size: 15px;
  color: var(--fg-dim);
  line-height: 1.6;
  max-width: 360px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 400ms, transform 400ms;
}
.project-card:hover .desc {
  opacity: 1;
  transform: translateY(0);
}
.project-card .link {
  margin-top: 24px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 700;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 400ms 100ms, transform 400ms 100ms;
}
.project-card:hover .link {
  opacity: 1;
  transform: translateY(0);
}

/* === Footer === */
.site-footer {
  padding: 60px 40px 40px;
  text-align: center;
  border-top: 1px solid var(--border);
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--fg-dim);
  transition: color 200ms;
}
.footer-links a:hover { color: var(--fg); }
.copyright {
  font-size: 12px;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* === Reveal animations === */
.reveal {
  opacity: 0;
  transform: translateY(40px);
}

/* === Responsive === */
@media (max-width: 880px) {
  .site-nav { padding: 18px 24px; }
  .nav-links { gap: 20px; font-size: 11px; }
  .section-full { padding: 80px 24px; }
  .projects-section { padding: 80px 24px; }
  .projects-grid { grid-template-columns: 1fr; gap: 1px; }
  .project-card { padding: 50px 30px; min-height: 360px; }
}

@media (max-width: 480px) {
  .nav-links { gap: 16px; }
  .hero h1 { font-size: 40px; }
  .benefit-section h2 { font-size: 36px; }
  .cta-section h2 { font-size: 32px; }
  .projects-head h2 { font-size: 36px; }
  .project-card h3 { font-size: 28px; }
  .project-card { min-height: 320px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero h1 .line span { transform: none !important; }
}