/* ==========================================================================
   PORTFOLIO STYLESHEET - ANYA (SYAFA NAIYA AZ ZAHRA)
   Focus: Software Engineering & Modern Web Development
   Features: 3D Visuals, Certificates Gallery, Supabase Rating, Glassmorphism
   ========================================================================== */

:root {
  --bg: #070A12;
  --bg-secondary: #0D1220;
  --surface: #13192B;
  --surface-hover: #1A233D;
  --surface-card: rgba(19, 25, 43, 0.75);
  
  --border: rgba(0, 210, 255, 0.14);
  --border-strong: rgba(0, 210, 255, 0.32);
  --border-glass: rgba(255, 255, 255, 0.08);

  --text: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;

  /* Cyber Cyan / Tech Accent */
  --accent: #00D2FF;
  --accent-glow: rgba(0, 210, 255, 0.4);
  --accent-soft: rgba(0, 210, 255, 0.12);
  --accent-gradient: linear-gradient(135deg, #00D2FF 0%, #3A86FF 100%);
  
  --secondary: #6366F1;
  --secondary-glow: rgba(99, 102, 241, 0.3);
  --emerald: #10B981;
  --amber: #F59E0B;
  --purple: #A855F7;
  --rose: #F43F5E;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --maxw: 1160px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 12px 35px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 30px var(--accent-glow);
}

/* Secondary Mode: Midnight Gold Studio */
body[data-mode="gold"] {
  --accent: #E2B774;
  --accent-glow: rgba(226, 183, 116, 0.4);
  --accent-soft: rgba(226, 183, 116, 0.14);
  --accent-gradient: linear-gradient(135deg, #FAD99F 0%, #C89950 100%);
  --secondary: #E07A5F;
  --border: rgba(226, 183, 116, 0.16);
  --border-strong: rgba(226, 183, 116, 0.35);
}

/* Base & Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.4s ease, color 0.4s ease;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Scroll Progress Bar */
#progressBar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--accent-gradient);
  z-index: 1000;
  width: 0%;
  box-shadow: 0 0 12px var(--accent);
  transition: width 0.1s ease-out;
}

/* Ambient Glows */
.ambient-glow-1 {
  position: fixed;
  top: -12%;
  right: -8%;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  filter: blur(90px);
  z-index: -2;
  pointer-events: none;
}

.ambient-glow-2 {
  position: fixed;
  bottom: -12%;
  left: -8%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--secondary-glow) 0%, transparent 70%);
  filter: blur(90px);
  z-index: -2;
  pointer-events: none;
}

/* Container */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

@media (max-width: 640px) {
  .container {
    padding: 0 18px;
  }
}

/* Typography Helpers */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
  box-shadow: 0 0 8px var(--accent);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

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

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
header.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 74px;
  z-index: 500;
  background: rgba(7, 10, 18, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  transition: all 0.3s ease;
}

header.navbar.scrolled {
  height: 66px;
  background: rgba(7, 10, 18, 0.94);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

nav.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

nav.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
}

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

nav.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  transition: width 0.25s ease;
}

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

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

/* GitHub Quick Icon */
.nav-github-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 1.1rem;
  transition: all 0.25s ease;
}

.nav-github-btn:hover {
  background: #24292e;
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 14px var(--accent-glow);
  transform: scale(1.08);
}

/* Theme Toggle Button */
.theme-switch {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.theme-switch:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 15px var(--accent-soft);
}

.theme-switch .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

/* Mobile Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

@media (max-width: 960px) {
  nav.nav-links {
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 24px 20px;
    gap: 18px;
    transform: translateY(-150%);
    transition: transform 0.35s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  }

  nav.nav-links.open {
    transform: translateY(0);
  }

  .hamburger {
    display: flex;
  }
}

/* ==========================================================================
   HERO SECTION & 3D INTERACTIVE CANVAS
   ========================================================================== */
section.hero {
  min-height: 100vh;
  padding-top: 130px;
  padding-bottom: 70px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent);
  margin-bottom: 20px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
  animation: pulseAnimation 2s infinite;
}

@keyframes pulseAnimation {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-size: clamp(2.4rem, 4.8vw, 4.1rem);
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -1.5px;
}

.hero-typewriter-wrap {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--accent);
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.typewriter-cursor {
  display: inline-block;
  width: 8px;
  height: 20px;
  background: var(--accent);
  animation: blink 0.9s infinite;
}

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

.hero-desc {
  font-size: 1.12rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 32px;
}

.hero-desc strong {
  color: var(--text);
  font-weight: 600;
}

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

/* Button Components */
.btn {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #060913;
  box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px var(--accent-glow);
  filter: brightness(1.1);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-strong);
  color: var(--text);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: var(--surface);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--accent-soft);
}

/* 3D INTERACTIVE HERO STAGE */
.hero-3d-wrapper {
  position: relative;
  width: 100%;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#threeCanvasContainer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
}

#threeCanvasContainer:active {
  cursor: grabbing;
}

/* Floating 3D Stat Badges */
.floating-stat-badge {
  position: absolute;
  background: rgba(19, 25, 43, 0.85);
  border: 1px solid var(--border-strong);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md), 0 0 20px var(--accent-soft);
  animation: floatBadge 5s ease-in-out infinite;
  z-index: 10;
  pointer-events: none;
}

.stat-badge-1 {
  top: 25px;
  left: 10px;
  animation-delay: 0s;
}

.stat-badge-2 {
  bottom: 35px;
  right: 15px;
  animation-delay: 2.5s;
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.floating-stat-badge b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.5px;
}

.floating-stat-badge span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ==========================================================================
   SECTION COMMON
   ========================================================================== */
section {
  padding: 100px 0;
  border-bottom: 1px solid var(--border-glass);
  position: relative;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 50px;
  gap: 20px;
  flex-wrap: wrap;
}

.section-header h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  letter-spacing: -1px;
}

.section-badge {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Reveal on Scroll */
.reveal-item {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 55px;
  align-items: start;
}

@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 32px;
  position: relative;
  box-shadow: var(--shadow-md);
}

.about-card-badge {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--bg);
  padding: 2px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
}

.about-quote {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
  margin-bottom: 20px;
}

.about-bio p {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.about-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
}

.spec-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spec-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

/* ==========================================================================
   SKILLS SECTION
   ========================================================================== */
.skills-container-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .skills-container-grid {
    grid-template-columns: 1fr;
  }
}

.skill-card-group {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.skill-card-group:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md), 0 0 25px var(--accent-soft);
}

.skill-group-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-glass);
}

.skill-group-head i {
  font-size: 1.35rem;
  color: var(--accent);
}

.skill-group-head h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skill-item-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.skill-level-text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
}

.progress-track {
  width: 100%;
  height: 6px;
  background: var(--bg-secondary);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 10px;
  width: 0%;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px var(--accent);
}

/* ==========================================================================
   GITHUB LIVE INTEGRATION SECTION & BANNER
   ========================================================================== */
.github-banner {
  background: linear-gradient(135deg, rgba(24, 30, 48, 0.9) 0%, rgba(13, 18, 32, 0.95) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 32px 36px;
  margin-bottom: 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-md), 0 0 25px rgba(0, 210, 255, 0.08);
}

.github-banner-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.github-banner-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: #0D1117;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--text);
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.2);
}

.github-banner-info h3 {
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.github-banner-info p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.github-banner-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ==========================================================================
   PROJECTS SECTION
   ========================================================================== */
.project-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent);
  color: #060913;
  border-color: var(--accent);
  box-shadow: 0 4px 15px var(--accent-glow);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

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

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md), 0 0 30px var(--accent-soft);
}

.project-card:hover::before {
  opacity: 1;
}

.project-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.project-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 16px;
}

.featured-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #F59E0B;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.project-card h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.project-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.project-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--border-glass);
  padding-top: 18px;
}

.project-link-btn {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.project-link-btn:hover {
  color: var(--accent);
}

/* ==========================================================================
   CERTIFICATES & AWARDS SECTION (3 KATEGORI + MODAL LIGHTBOX)
   ========================================================================== */
.cert-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.cert-filter-btn {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cert-filter-btn:hover,
.cert-filter-btn.active {
  background: var(--accent-gradient);
  color: #060913;
  border-color: transparent;
  box-shadow: 0 4px 18px var(--accent-glow);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

@media (max-width: 960px) {
  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .cert-grid {
    grid-template-columns: 1fr;
  }
}

.cert-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.cert-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md), 0 0 25px var(--accent-soft);
}

.cert-preview-img {
  width: 100%;
  height: 190px;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-preview-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.cert-card:hover .cert-preview-img img {
  transform: scale(1.06);
}

.cert-category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
  z-index: 2;
}

.badge-keahlian {
  background: rgba(0, 210, 255, 0.2);
  color: #38BDF8;
  border: 1px solid rgba(0, 210, 255, 0.4);
}

.badge-lomba {
  background: rgba(245, 158, 11, 0.2);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.badge-organisasi {
  background: rgba(168, 85, 247, 0.2);
  color: #C084FC;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.cert-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cert-issuer {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--accent);
  margin-bottom: 6px;
  display: block;
}

.cert-body h4 {
  font-size: 1.15rem;
  line-height: 1.4;
  margin-bottom: 10px;
}

.cert-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 16px;
}

.cert-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-glass);
  padding-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.cert-date {
  color: var(--text-dim);
}

.cert-view-btn {
  color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.cert-view-btn:hover {
  text-decoration: underline;
}

/* Certificate Modal Lightbox */
.cert-modal {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 12, 0.88);
  backdrop-filter: blur(14px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.cert-modal.open {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.cert-modal-content {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
}

.cert-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
}

.cert-modal-close:hover {
  background: var(--rose);
  color: #fff;
}

.cert-modal-img {
  width: 100%;
  max-height: 440px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: #020307;
  margin-bottom: 20px;
  border: 1px solid var(--border-glass);
}

/* ==========================================================================
   TIMELINE (EXPERIENCE & EDUCATION)
   ========================================================================== */
.timeline-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

@media (max-width: 800px) {
  .timeline-container {
    grid-template-columns: 1fr;
  }
}

.timeline-column h3 {
  font-size: 1.35rem;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
}

.timeline-list {
  position: relative;
  padding-left: 24px;
  border-left: 2px solid var(--border-strong);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.timeline-item {
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: -31px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 10px var(--accent);
}

.timeline-time {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 4px;
}

.timeline-role {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.timeline-org {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.timeline-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   PORTFOLIO RATING SYSTEM (POWERED BY SUPABASE)
   ========================================================================== */
.rating-section-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
}

@media (max-width: 880px) {
  .rating-section-grid {
    grid-template-columns: 1fr;
  }
}

.rating-overview-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.rating-score-box {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 16px 0;
}

.rating-big-num {
  font-family: var(--font-display);
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
}

.rating-stars-display {
  display: flex;
  gap: 6px;
  font-size: 1.4rem;
  color: #F59E0B;
}

.rating-total-count {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Star Selector in Form */
.star-rating-picker {
  display: flex;
  gap: 8px;
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  margin: 12px 0 18px 0;
}

.star-rating-picker i {
  transition: all 0.2s ease;
}

.star-rating-picker i:hover,
.star-rating-picker i.active {
  color: #F59E0B;
  transform: scale(1.15);
  filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.6));
}

/* Reviews Feed */
.reviews-feed-container {
  max-height: 380px;
  overflow-y: auto;
  padding-right: 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.reviews-feed-container::-webkit-scrollbar {
  width: 5px;
}
.reviews-feed-container::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 10px;
}

.review-item-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: fadeIn 0.35s ease;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.review-stars {
  color: #F59E0B;
  font-size: 0.88rem;
}

.review-text {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.5;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 50px;
}

@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.channel-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.25s ease;
  cursor: pointer;
}

.channel-card:hover {
  border-color: var(--accent);
  background: var(--surface-hover);
  transform: translateX(4px);
}

.channel-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.channel-left i {
  font-size: 1.4rem;
  color: var(--accent);
}

.channel-details h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.channel-details span {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.copy-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  border: 1px solid var(--border-glass);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

/* Contact Form */
.contact-form-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 34px;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 15px var(--accent-soft);
}

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

/* ==========================================================================
   FOOTER & FLOATING ACTIONS
   ========================================================================== */
footer.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-glass);
  background: #04060C;
  text-align: center;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-credits {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--text-dim);
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1rem;
}

.footer-socials a:hover {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-soft);
}

/* Toast Notification */
#toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--surface);
  border: 1px solid var(--accent);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md), 0 0 20px var(--accent-glow);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Back to Top Floating Button */
#backToTop {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

#backToTop.show {
  opacity: 1;
  pointer-events: auto;
}

#backToTop:hover {
  background: var(--accent);
  color: #060913;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
