/* =========================================================
   Azmi Adi Parira — Landing Page
   Theme: Glassmorphism + Aurora
   ========================================================= */

:root{
  /* --- color tokens --- */
  --bg-base: #0a0e1a;
  --bg-base-2: #121a2e;
  --violet: #8b7cf8;
  --teal: #45e0c4;
  --pink: #f77fb3;

  --text-primary: #f3f5fa;
  --text-muted: #9aa5b8;

  --glass-surface: rgba(255, 255, 255, 0.06);
  --glass-surface-strong: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.16);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
}

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

html{
  scroll-behavior: smooth;
}

body{
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at top, var(--bg-base-2) 0%, var(--bg-base) 60%);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  position: relative;
}

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

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

/* focus visibility for accessibility */
a:focus-visible,
button:focus-visible{
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}

/* =========================================================
   AURORA BACKGROUND
   ========================================================= */
.aurora{
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.blob{
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
}

.blob-1{
  width: 480px; height: 480px;
  background: var(--violet);
  top: -120px; left: -100px;
}

.blob-2{
  width: 420px; height: 420px;
  background: var(--teal);
  bottom: -140px; right: -80px;
}

.blob-3{
  width: 320px; height: 320px;
  background: var(--pink);
  top: 40%; left: 55%;
  opacity: 0.28;
}

.grain{
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* floating particles */
.particles{
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.particle{
  position: absolute;
  bottom: -10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--teal);
  opacity: 0.5;
  animation: floatUp linear infinite;
}

@keyframes floatUp{
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.4; }
  100% { transform: translateY(-110vh) translateX(var(--drift, 40px)); opacity: 0; }
}

/* =========================================================
   NAVBAR
   ========================================================= */
.navbar{
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px clamp(20px, 5vw, 48px) 0;
}

.nav-logo{
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.logo-dot{
  width: 9px; height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--teal));
  box-shadow: 0 0 12px var(--violet);
}

.nav-links{
  display: flex;
  gap: 28px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.nav-links a{
  position: relative;
  transition: color 0.25s ease;
}
.nav-links a:hover{ color: var(--text-primary); }
.nav-links a::after{
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0%;
  height: 1px;
  background: var(--teal);
  transition: width 0.25s ease;
}
.nav-links a:hover::after{ width: 100%; }

/* =========================================================
   HERO
   ========================================================= */
.hero{
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(48px, 10vh, 110px) clamp(20px, 5vw, 48px) 40px;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-inner{
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(32px, 6vw, 64px);
}

.eyebrow{
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: var(--teal);
  margin: 0 0 18px;
  text-transform: uppercase;
}

.hero-name{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.04;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

.hero-name span{
  background: linear-gradient(100deg, var(--violet) 10%, var(--teal) 60%, var(--pink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-tagline{
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 46ch;
  margin: 0 0 34px;
}

.hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.96rem;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(.2,.8,.2,1), box-shadow 0.28s ease, background 0.28s ease, border-color 0.28s ease;
  position: relative;
  overflow: hidden;
}

.btn-icon{
  width: 18px; height: 18px;
  flex-shrink: 0;
}

.btn-primary{
  background: linear-gradient(135deg, rgba(139,124,248,0.35), rgba(69,224,196,0.25));
  color: #fff;
  box-shadow: 0 4px 24px rgba(139,124,248,0.25);
}

.btn-primary:hover{
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(139,124,248,0.4);
  border-color: rgba(255,255,255,0.35);
}

.btn-secondary{
  background: var(--glass-surface);
  color: var(--text-primary);
}

.btn-secondary:hover{
  transform: translateY(-3px);
  background: var(--glass-surface-strong);
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
  border-color: rgba(255,255,255,0.3);
}

.btn:active{ transform: translateY(-1px) scale(0.98); }

.hero-meta{
  margin-top: 30px;
}

.meta-pill{
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.pulse-dot{
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse{
  0%, 100%{ opacity: 1; }
  50%{ opacity: 0.35; }
}

/* --- photo --- */
.hero-photo-wrap{
  position: relative;
  width: min(360px, 78vw);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  display: grid;
  place-items: center;
}

.orbit-ring{
  position: absolute;
  border: 1px dashed var(--glass-border);
  border-radius: 50%;
}

.ring-1{
  inset: -18px;
  animation: spin 26s linear infinite;
}
.ring-2{
  inset: -40px;
  border-style: solid;
  border-color: rgba(139,124,248,0.18);
  animation: spin 40s linear infinite reverse;
}

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

.orbit-dot{
  position: absolute;
  inset: -18px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 14px var(--teal);
  animation: spin 26s linear infinite;
}
.orbit-dot::after{
  content: '';
  position: absolute;
  top: 50%; left: -168px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: transparent;
}

.glass-photo-frame{
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 10px;
  background: linear-gradient(145deg, rgba(255,255,255,0.14), rgba(255,255,255,0.02));
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--glass-shadow), 0 0 60px rgba(139,124,248,0.25);
  transition: transform 0.15s ease-out;
  transform-style: preserve-3d;
}

.glass-photo-inner{
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.25);
  position: relative;
  aspect-ratio: 1 / 1;
}

.hero-photo{
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  display: block;
}

.frame-shine{
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(125deg, rgba(255,255,255,0.35) 0%, transparent 30%, transparent 70%, rgba(255,255,255,0.1) 100%);
  pointer-events: none;
  mix-blend-mode: overlay;
}

.scroll-cue{
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  opacity: 0.7;
}
.scroll-cue span{
  width: 4px; height: 8px;
  border-radius: 2px;
  background: var(--teal);
  animation: scrollDown 1.8s ease-in-out infinite;
}
@keyframes scrollDown{
  0%{ transform: translateY(0); opacity: 1; }
  100%{ transform: translateY(14px); opacity: 0; }
}

/* =========================================================
   GLASS CARD (shared)
   ========================================================= */
.glass-card{
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: var(--glass-shadow);
  padding: clamp(32px, 5vw, 56px);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.glass-card:hover{
  border-color: rgba(255,255,255,0.28);
  box-shadow: 0 14px 44px rgba(0,0,0,0.4);
}

/* =========================================================
   ABOUT
   ========================================================= */
.about{
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px) 100px;
}

.section-eyebrow{
  font-family: var(--font-display);
  color: var(--pink);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin: 0 0 12px;
}

.about-title{
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin: 0 0 18px;
  max-width: 20ch;
}

.about-text{
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 65ch;
  margin: 0 0 28px;
}

.chip-row{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip{
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  font-size: 0.85rem;
  color: var(--text-primary);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.chip:hover{
  transform: translateY(-2px);
  border-color: var(--teal);
}

/* =========================================================
   FOOTER
   ========================================================= */
footer{
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px) 60px;
  text-align: center;
}

.footer-card h3{
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin: 0 0 14px;
}

.footer-card p{
  color: var(--text-muted);
  max-width: 55ch;
  margin: 0 auto 28px;
  line-height: 1.65;
}

.footer-actions{
  justify-content: center;
}

.copyright{
  margin-top: 34px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.7,.2,1);
}
.reveal.visible{
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay{
  transition-delay: 0.15s;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 860px){
  .hero-inner{
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-tagline{ margin-left: auto; margin-right: auto; }
  .hero-actions{ justify-content: center; }
  .hero-photo-wrap{ order: -1; margin-bottom: 12px; }
  .nav-links{ gap: 18px; font-size: 0.85rem; }
  .chip-row{ justify-content: center; }
}

@media (max-width: 480px){
  .navbar{ padding-top: 20px; }
  .nav-logo{ font-size: 0.88rem; }
  .btn{ padding: 13px 20px; font-size: 0.9rem; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce){
  *{
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
