/* ===== Colours: change these to restyle the whole site ===== */
:root {
  --accent-1: #7c5cff;     /* purple */
  --accent-2: #00d4ff;     /* cyan */
  --accent-3: #ff4ecd;     /* pink */
  --gradient: linear-gradient(120deg, var(--accent-1), var(--accent-2));
  --bg: #07070d;
  --surface: rgba(255, 255, 255, .04);
  --border: rgba(255, 255, 255, .09);
  --text: #f1f1f7;
  --muted: #9a9ab0;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent-1); color: #fff; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3, .logo { font-family: "Space Grotesk", "Inter", sans-serif; letter-spacing: -.02em; }
h1 { font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.05; font-weight: 700; }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.1; margin-bottom: 28px; }
h3 { font-size: 1.2rem; margin-bottom: 6px; }
p  { color: var(--muted); margin-bottom: 14px; }

.gradient-text {
  background: linear-gradient(120deg, var(--accent-1), var(--accent-2), var(--accent-3), var(--accent-1));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 8s linear infinite;
}
@keyframes shimmer { to { background-position: 300% 0; } }

.eyebrow {
  font-family: "Space Grotesk", sans-serif;
  color: var(--accent-2);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* ===== Background effects ===== */
.glow {
  position: fixed; z-index: -1;
  width: 520px; height: 520px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .35;
  pointer-events: none;
  animation: float 18s ease-in-out infinite alternate;
}
.glow-1 { background: var(--accent-1); top: -160px; left: -120px; }
.glow-2 { background: var(--accent-2); bottom: -200px; right: -160px; opacity: .22; animation-delay: -9s; }
@keyframes float { to { transform: translate(80px, 60px) scale(1.15); } }

.grid-bg {
  position: fixed; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gradient);
  color: #fff;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  box-shadow: 0 8px 30px rgba(124, 92, 255, .35);
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0, 212, 255, .4); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-ghost { background: var(--surface); border-color: var(--border); box-shadow: none; }
.btn-ghost:hover { border-color: rgba(255,255,255,.3); box-shadow: none; }
.btn-small { padding: 8px 18px; font-size: .9rem; }
.btn-big { font-size: clamp(.95rem, 3vw, 1.3rem); padding: 16px 34px; margin-top: 12px; max-width: 100%; overflow-wrap: anywhere; justify-content: center; }

/* ===== Navigation ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.nav.scrolled {
  background: rgba(7, 7, 13, .75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-weight: 700; font-size: 1.5rem; color: var(--text); text-decoration: none; }
.logo .dot { color: var(--accent-2); }
.nav nav { display: flex; align-items: center; gap: 28px; }
.nav nav a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; transition: color .2s; }
.nav nav a:not(.btn):hover { color: var(--text); }

/* ===== Hero ===== */
.hero { isolation: isolate; min-height: 100vh; display: flex; align-items: center; padding: 120px 0 80px; position: relative; }
.hero-inner { display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 56px; }
.lead { font-size: 1.2rem; max-width: 52ch; margin: 24px 0 36px; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: .9rem;
  color: var(--text);
  margin-bottom: 24px;
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22e58b;
  box-shadow: 0 0 0 0 rgba(34, 229, 139, .7);
  animation: pulse 2s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(34, 229, 139, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 229, 139, 0); } }

.avatar-wrap { position: relative; justify-self: center; width: 300px; height: 300px; }
.avatar-ring {
  position: absolute; inset: -12px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent-1), var(--accent-2), var(--accent-3), var(--accent-1));
  animation: spin 8s linear infinite;
  filter: blur(2px);
}
.avatar-ring::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--bg); }
@keyframes spin { to { transform: rotate(360deg); } }
.avatar {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: radial-gradient(circle at 30% 25%, #2a2350, #0e0e1a 70%);
  display: grid; place-items: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: 5rem; font-weight: 700;
  color: var(--text);
}

.scroll-hint {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid var(--border);
  border-radius: 999px;
}
.scroll-hint span {
  position: absolute; top: 8px; left: 50%;
  width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px;
  background: var(--accent-2);
  animation: scroll 1.8s ease-in-out infinite;
}
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ===== Sections ===== */
.section { padding: 110px 0; }
.two-col { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; }

.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.tags span {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 500;
  transition: border-color .2s, color .2s, transform .2s;
}
.tags span:hover { border-color: var(--accent-1); color: #fff; transform: translateY(-2px); }

/* Timeline */
.timeline { list-style: none; position: relative; padding-left: 36px; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(var(--accent-1), var(--accent-2), transparent);
}
.timeline li {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 20px;
  transition: border-color .3s, transform .3s;
}
.timeline li:hover { border-color: rgba(124, 92, 255, .5); transform: translateX(6px); }
.timeline li::before {
  content: "";
  position: absolute; left: -36px; top: 30px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent-2);
  box-shadow: 0 0 14px var(--accent-2);
}
.timeline p { margin-bottom: 0; }
.when { display: block; font-size: .85rem; font-weight: 600; color: var(--accent-2); margin-bottom: 4px; }

/* Project cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.card:hover {
  transform: translateY(-8px);
  border-color: rgba(124, 92, 255, .5);
  box-shadow: 0 20px 50px rgba(124, 92, 255, .2);
}
.card { display: flex; flex-direction: column; }
.card-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #111; }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.card-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(7, 7, 13, .7));
}
.card:hover .card-img img { transform: scale(1.07); }
.rep {
  position: absolute; z-index: 1; right: 10px; bottom: 10px;
  font-size: .7rem; color: rgba(255,255,255,.75);
  background: rgba(0,0,0,.5); padding: 2px 8px; border-radius: 6px;
}
.card-body { padding: 22px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin-top: 14px; }
.card .value {
  margin: auto 0 0;
  padding-top: 18px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
}
.card-tag {
  align-self: flex-start;
  font-size: .75rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.t1 { background: rgba(124, 92, 255, .18); color: #b7a6ff; }
.t2 { background: rgba(0, 212, 255, .15); color: #7fe8ff; }
.t3 { background: rgba(255, 78, 205, .15); color: #ff9be3; }

/* Hero role + stats */
.role {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 600;
  color: var(--text);
  margin: 12px 0 0;
}
.stats-section { padding: 0 0 20px; }
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
}
.stat { padding: 28px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1.1;
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { color: var(--muted); font-size: .95rem; }

/* What I do */
.checklist { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.checklist li { position: relative; padding-left: 28px; color: var(--text); }
.checklist li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--accent-2); font-weight: 700;
}
.tools-label { margin: 32px 0 0; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }

/* Contact */
.contact-box {
  text-align: center;
  padding: 72px 32px;
  border-radius: 28px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 20% 0%, rgba(124, 92, 255, .25), transparent 55%),
    radial-gradient(circle at 80% 100%, rgba(0, 212, 255, .18), transparent 55%),
    var(--surface);
}
.contact-box h2 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 16px; }
.socials { display: flex; justify-content: center; flex-wrap: wrap; gap: 28px; margin-top: 32px; }
.socials a { color: var(--muted); text-decoration: none; font-weight: 500; transition: color .2s; }
.socials a:hover { color: var(--accent-2); }

.btn-wa { background: linear-gradient(120deg, #25d366, #128c7e); box-shadow: 0 8px 30px rgba(37, 211, 102, .35); }
.btn-wa:hover { box-shadow: 0 12px 40px rgba(37, 211, 102, .5); }

/* Hero background photo */
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, var(--bg) 25%, rgba(7, 7, 13, .75) 60%, rgba(7, 7, 13, .45)),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%),
    url("images/hero-cranes.jpg") center / cover no-repeat;
}

/* Photo banner between sections */
.banner { isolation: isolate; position: relative; min-height: 420px; display: flex; align-items: center; overflow: hidden; }
.banner-img {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(0deg, var(--bg), transparent 20%, transparent 80%, var(--bg)),
    linear-gradient(90deg, rgba(7, 7, 13, .8) 20%, rgba(7, 7, 13, 0) 70%),
    url("images/banner-merdeka118.jpg") 60% 70% / cover no-repeat;
}
.banner-text { width: 100%; }
.banner-quote {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  max-width: 20ch;
}

.footer { padding: 32px 0 40px; font-size: .9rem; color: var(--muted); text-align: center; }
.credits { margin-top: 14px; font-size: .8rem; }
.credits summary { cursor: pointer; }
.credits p { font-size: .8rem; margin: 10px 0 6px; }
.credits ul { list-style: none; }
.credits a { color: var(--muted); }

/* ===== Scroll fade-in (only when JavaScript is on) ===== */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ===== Phones and small screens ===== */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .avatar-wrap { width: 180px; height: 180px; justify-self: start; grid-row: 1; }
  .avatar { font-size: 3rem; }
  .scroll-hint { display: none; }
  .hero-bg { background:
    linear-gradient(0deg, var(--bg) 10%, rgba(7, 7, 13, .8) 60%, rgba(7, 7, 13, .6)),
    url("images/hero-cranes-small.jpg") center / cover no-repeat; }
  .cards { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--border); }
  .checklist { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 600px) {
  .nav nav a:not(.btn) { display: none; }
  .section { padding: 72px 0; }
  .hero { padding-top: 104px; }
  .timeline li { padding: 20px; }
  .contact-box { padding: 56px 20px; }
  .btn-big { padding: 14px 20px; }
}
