/* ============================================================
   RIZAL AZIS — PERSONAL PORTFOLIO
   style.css
   ============================================================ */

/* ── Google Fonts ──────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600&display=swap');

/* ── CSS Custom Properties ─────────────────────────────────── */
:root {
  --bg-primary: #080810;
  --bg-secondary: #0e0e1a;
  --bg-card: #13132000;
  --surface: #1a1a2e;
  --surface-light: #22223b;
  --border: rgba(255, 255, 255, 0.07);
  --border-accent: rgba(124, 58, 237, 0.35);

  --text-primary: #f0f0fa;
  --text-secondary: #a0a0c0;
  --text-muted: #606080;

  --accent: #7c3aed;
  --accent-light: #9d5cf7;
  --accent2: #3b82f6;
  --accent2-light: #60a5fa;
  --gradient: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
  --gradient-glow: linear-gradient(135deg, rgba(124, 58, 237, .4) 0%, rgba(59, 130, 246, .4) 100%);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 2px 12px rgba(0, 0, 0, .4);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, .5);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, .6);
  --shadow-glow: 0 0 40px rgba(124, 58, 237, .25);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  --nav-height: 70px;
  --section-pad: 100px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  cursor: none;
  font-family: inherit;
}

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

/* scrollbar */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 10px;
}

/* ── Custom Cursor ─────────────────────────────────────────── */
.cursor-dot,
.cursor-ring {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: opacity .3s;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-light);
  top: 0;
  left: 0;
}

.cursor-ring {
  width: 40px;
  height: 40px;
  border: 2px solid var(--accent);
  top: 0;
  left: 0;
  transition: transform .12s ease, width .3s, height .3s, border-color .3s;
}

.cursor-ring.hovering {
  width: 60px;
  height: 60px;
  border-color: var(--accent-light);
  background: rgba(124, 58, 237, .08);
}

/* ── Utility ───────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-pad {
  padding: var(--section-pad) 0;
}

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

.badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  background: rgba(124, 58, 237, .15);
  border: 1px solid rgba(124, 58, 237, .3);
  color: var(--accent-light);
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 56px;
}

/* ── Scroll Animation ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* delay helpers */
.d1 {
  transition-delay: .1s;
}

.d2 {
  transition-delay: .2s;
}

.d3 {
  transition-delay: .3s;
}

.d4 {
  transition-delay: .4s;
}

.d5 {
  transition-delay: .5s;
}

/* ── Noise Overlay ─────────────────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9998;
  opacity: .4;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(8, 8, 16, .85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

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

.nav-logo {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  right: 50%;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
  transition: var(--transition);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  left: 14px;
  right: 14px;
}

.nav-cta {
  padding: 8px 20px;
  background: var(--gradient);
  color: white !important;
  border-radius: 50px;
  font-weight: 600 !important;
  box-shadow: 0 0 20px rgba(124, 58, 237, .3);
  transition: var(--transition) !important;
}

.nav-cta:hover {
  box-shadow: 0 0 30px rgba(124, 58, 237, .5) !important;
  transform: translateY(-1px);
}

.nav-cta::after {
  display: none !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

/* animated gradient blobs */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .3;
  animation: blobFloat 8s ease-in-out infinite;
}

.blob-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #7c3aed, transparent 70%);
  top: -200px;
  left: -200px;
  animation-delay: 0s;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #3b82f6, transparent 70%);
  top: 30%;
  right: -150px;
  animation-delay: -3s;
}

.blob-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #7c3aed, transparent 70%);
  bottom: -100px;
  left: 40%;
  animation-delay: -5s;
}

@keyframes blobFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -30px) scale(1.05);
  }

  66% {
    transform: translate(-20px, 20px) scale(.95);
  }
}

/* grid overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  align-items: center;
  width: 100%;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(124, 58, 237, .12);
  border: 1px solid rgba(124, 58, 237, .3);
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--accent-light);
  margin-bottom: 28px;
}

.hero-badge span {
  animation: pulse 2s ease infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .5;
  }
}

.hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-title .typed-text {
  display: inline-block;
  min-width: 10px;
}

.hero-title .cursor-blink {
  display: inline-block;
  width: 3px;
  height: .9em;
  background: var(--accent-light);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink .8s step-end infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 560px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.hero-tag {
  padding: 6px 14px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: .8rem;
  color: var(--text-secondary);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: .95rem;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  outline: none;
  position: relative;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: white;
  opacity: 0;
  transition: var(--transition);
}

.btn:hover::before {
  opacity: .08;
}

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 25px rgba(124, 58, 237, .35);
}

.btn-primary:hover {
  box-shadow: 0 8px 35px rgba(124, 58, 237, .55);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid rgba(255, 255, 255, .2);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  transform: translateY(-2px);
}

/* hero profile visual */
.hero-visual {
  position: relative;
  flex-shrink: 0;
}

.hero-photo-wrap {
  width: 340px;
  height: 340px;
  position: relative;
}

.hero-photo-ring {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: var(--gradient);
  animation: rotateRing 6s linear infinite;
  opacity: .7;
}

.hero-photo-ring::before {
  content: '';
  position: absolute;
  inset: 4px;
  background: var(--bg-primary);
  border-radius: 50%;
}

@keyframes rotateRing {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.hero-photo {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-photo-placeholder {
  font-size: 5rem;
  opacity: .3;
}

.hero-float-badge {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  font-size: .8rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  z-index: 2;
}

.hero-float-badge .icon {
  font-size: 1.1rem;
  margin-right: 6px;
}

.hfb-1 {
  bottom: 20px;
  left: -30px;
  animation: floatBadge 3s ease-in-out infinite;
}

.hfb-2 {
  top: 20px;
  right: -20px;
  animation: floatBadge 3s ease-in-out infinite .8s;
}

.hfb-3 {
  bottom: 90px;
  right: -30px;
  animation: floatBadge 3s ease-in-out infinite 1.6s;
}

@keyframes floatBadge {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: .8rem;
  animation: scrollBounce 2s ease infinite;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* hero stats */
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}



.stat-number {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  background: var(--bg-secondary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.9;
}

.about-text p strong {
  color: var(--accent-light);
  font-weight: 600;
}

.about-info {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 600;
}

.info-value {
  font-size: .95rem;
  font-weight: 500;
  color: var(--text-primary);
}



.skills-section h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 28px;
}

.skill-item {
  margin-bottom: 20px;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.skill-name {
  font-size: .9rem;
  font-weight: 500;
}

.skill-pct {
  font-size: .8rem;
  color: var(--text-muted);
}

.skill-bar {
  height: 6px;
  background: rgba(255, 255, 255, .07);
  border-radius: 6px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  border-radius: 6px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-fill.animated {
  transform: scaleX(1);
}

.soft-skills {
  margin-top: 36px;
}

.soft-skills h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  padding: 8px 18px;
  background: rgba(124, 58, 237, .1);
  border: 1px solid rgba(124, 58, 237, .2);
  border-radius: 50px;
  font-size: .85rem;
  color: var(--accent-light);
  transition: var(--transition);
}

.skill-tag:hover {
  background: rgba(124, 58, 237, .25);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ============================================================
   PORTFOLIO
   ============================================================ */
.portfolio-header {
  text-align: center;
}

.portfolio-header .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.filter-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 10px 24px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: .9rem;
  font-weight: 500;
  transition: var(--transition);
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--gradient);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 20px rgba(124, 58, 237, .3);
}

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

.portfolio-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--surface);
  cursor: none;
  transition: var(--transition);
}

.portfolio-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.portfolio-item.hidden {
  display: none;
}

.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--surface);
  transition: var(--transition-slow);
}

.portfolio-item:hover .portfolio-img {
  transform: scale(1.04);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .9) 0%, rgba(124, 58, 237, .3) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.portfolio-overlay p {
  font-size: .8rem;
  color: rgba(255, 255, 255, .7);
  margin-bottom: 16px;
}

.overlay-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, .15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  font-size: 1.1rem;
  align-self: flex-start;
  border: 1px solid rgba(255, 255, 255, .2);
}

/* portfolio placeholder colors */
.port-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
}

.port-ph-1 {
  background: linear-gradient(135deg, #1a0a2e, #4a1a8e);
}

.port-ph-2 {
  background: linear-gradient(135deg, #0a1a3e, #1a5a8e);
}

.port-ph-3 {
  background: linear-gradient(135deg, #1e0a2e, #6a2a8e);
}

.port-ph-4 {
  background: linear-gradient(135deg, #0a1e3e, #1a4a7e);
}

.port-ph-5 {
  background: linear-gradient(135deg, #1a0e38, #5a1a7e);
}

.port-ph-6 {
  background: linear-gradient(135deg, #0a1830, #1a3a6e);
}

.port-ph-7 {
  background: linear-gradient(135deg, #1e0a2e, #7a1a5e);
}

.port-ph-8 {
  background: linear-gradient(135deg, #0a2020, #0a6e5e);
}

.port-ph-9 {
  background: linear-gradient(135deg, #20100a, #6e3a1a);
}

/* ============================================================
   CERTIFICATES
   ============================================================ */
.certificates {
  background: var(--bg-secondary);
}



.cert-track-wrap {
  position: relative;
  overflow: hidden;
}

.cert-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 16px;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

.cert-track::-webkit-scrollbar {
  height: 4px;
}

.cert-track::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

.cert-track.dragging {
  cursor: grabbing;
  user-select: none;
}

.cert-card {
  flex: 0 0 300px;
  width: 300px;
  height: 430px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  scroll-snap-align: start;
  transition: var(--transition);
  cursor: none;
  display: flex;
  flex-direction: column;
}

.cert-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

/* Zoom hint overlay on cert image */
.cert-zoom-hint {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .85) 0%, rgba(124, 58, 237, .35) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  font-weight: 600;
  color: white;
  letter-spacing: .5px;
  opacity: 0;
  transition: var(--transition);
  border-radius: 0;
}

.cert-card:hover .cert-zoom-hint {
  opacity: 1;
}

/* ── Multi-Certificate Card (stacked look) ──────────────── */
.cert-card-multi {
  position: relative;
  z-index: 1;
  margin-top: 10px;
}

/* Back paper 2 */
.cert-card-multi::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 8px;
  right: -8px;
  bottom: -2px;
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  z-index: -2;
  transform: rotate(1.5deg);
  transition: var(--transition);
}

/* Back paper 1 */
.cert-card-multi::after {
  content: '';
  position: absolute;
  top: -4px;
  left: 4px;
  right: -4px;
  bottom: -1px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  z-index: -1;
  transform: rotate(0.75deg);
  transition: var(--transition);
}

.cert-card-multi:hover::before {
  transform: rotate(2.5deg) translateX(3px);
}

.cert-card-multi:hover::after {
  transform: rotate(1.5deg) translateX(1.5px);
}

.cert-badge-multi {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  font-size: .72rem;
}

/* Multi indicator row at bottom of cert-body */
.cert-multi-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.cert-doc-icon {
  font-size: .9rem;
}

.cert-doc-label {
  font-size: .72rem;
  color: var(--text-muted);
  margin-left: 4px;
  font-style: italic;
}

/* Lightbox counter badge */
.lb-counter {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: .8rem;
  color: rgba(255, 255, 255, .8);
  font-weight: 500;
  white-space: nowrap;
}

.cert-img-wrap {
  height: 190px;
  flex-shrink: 0;
  background: var(--surface-light);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.cert-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
  transition: var(--transition-slow);
}

.cert-card:hover .cert-img-wrap img {
  transform: scale(1.03);
}

.cert-img-placeholder {
  font-size: 3.5rem;
  opacity: .2;
}

.cert-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  background: var(--gradient);
  border-radius: 50px;
  font-size: .7rem;
  font-weight: 600;
  color: white;
}

.cert-body {
  padding: 18px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cert-body h4 {
  font-family: 'Poppins', sans-serif;
  font-size: .93rem;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cert-issuer {
  font-size: .78rem;
  color: var(--accent-light);
  font-weight: 500;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cert-body p {
  font-size: .78rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 12px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cert-date {
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: auto;
}


.cert-nav {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  justify-content: center;
}

.cert-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.cert-btn:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  background: rgba(124, 58, 237, .1);
}

/* Add cert/portfolio hint box */
.add-hint {
  margin-top: 48px;
  padding: 20px 28px;
  background: rgba(124, 58, 237, .05);
  border: 1px dashed rgba(124, 58, 237, .3);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
  font-size: .85rem;
}

.add-hint .icon {
  font-size: 1.5rem;
}

/* ============================================================
   PENGALAMAN MAGANG
   ============================================================ */
.internship-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.intern-card {
  display: flex;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.intern-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
}

.intern-card-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 0 28px 28px;
  gap: 8px;
}

.intern-logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--surface-light);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  overflow: hidden;
}

.intern-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.intern-timeline-line {
  flex: 1;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  border-radius: 2px;
  margin-top: 8px;
  min-height: 20px;
}

.intern-card-body {
  flex: 1;
  padding: 28px 28px 28px 20px;
}

.intern-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.intern-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.intern-company {
  font-size: .85rem;
  color: var(--accent-light);
  font-weight: 500;
}

.intern-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.intern-period {
  font-size: .78rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.intern-type {
  padding: 3px 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: 50px;
  font-size: .7rem;
  font-weight: 600;
  color: white;
}

.intern-desc {
  font-size: .85rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 16px;
}

.intern-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.intern-chip {
  padding: 4px 12px;
  background: rgba(124, 58, 237, .12);
  border: 1px solid rgba(124, 58, 237, .25);
  border-radius: 50px;
  font-size: .75rem;
  color: var(--accent-light);
  font-weight: 500;
}

/* ============================================================
   PROJEK
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

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

.project-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.project-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--surface-light);
}

.project-img-wrap .project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .6) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.project-status {
  padding: 4px 12px;
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 700;
  backdrop-filter: blur(6px);
}

.status-done {
  background: rgba(16, 185, 129, .2);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, .4);
}

.status-progress {
  background: rgba(251, 191, 36, .2);
  color: #fde68a;
  border: 1px solid rgba(251, 191, 36, .4);
}

.status-plan {
  background: rgba(99, 102, 241, .2);
  color: #c7d2fe;
  border: 1px solid rgba(99, 102, 241, .4);
}

.project-body {
  padding: 20px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.project-tag {
  padding: 3px 10px;
  background: rgba(124, 58, 237, .1);
  border: 1px solid rgba(124, 58, 237, .2);
  border-radius: 50px;
  font-size: .7rem;
  color: var(--accent-light);
  font-weight: 500;
}

.project-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}

.project-desc {
  font-size: .82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}

.project-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stack-chip {
  padding: 3px 10px;
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: .7rem;
  color: var(--text-muted);
  font-weight: 500;
}

.project-links {
  display: flex;
  gap: 8px;
}

.project-link-btn {
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  background: transparent;
  transition: var(--transition);
  text-decoration: none;
}

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

/* ============================================================
   SERTIFIKAT LAINNYA (Online Courses & Achievement)
   ============================================================ */
/* Collection Gallery (Google Images Style) */
.ocert-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
}

.ocert-img-card {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--surface-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: none;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.ocert-img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.ocert-img-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
  z-index: 5;
}

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

.ocert-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ocert-img-card:hover .ocert-img-overlay {
  opacity: 1;
}

.ocert-overlay-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: white;
  margin-bottom: 3px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
}

.ocert-overlay-badge {
  font-size: 0.6rem;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}

/* ============================================================
   EXPERIENCE — ORGANISASI (LinkedIn-style)
   ============================================================ */
.exp-container {
  max-width: 860px;
  margin: 0 auto;
}


.exp-section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.exp-section-label h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
}

.exp-section-label .line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* LinkedIn-style card group */
.exp-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
  transition: var(--transition);
}

.exp-group:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md);
}

.exp-org-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
}

.exp-org-logo {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: var(--surface-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
  border: 1px solid var(--border);
  overflow: hidden;
}

.exp-org-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.exp-org-info h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.exp-org-info .org-type {
  font-size: .85rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.exp-org-info .org-total {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: 8px;
  background: rgba(255, 255, 255, .05);
  padding: 3px 10px;
  border-radius: 50px;
}



.exp-role {
  display: flex;
  gap: 20px;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
}

.exp-role:last-child {
  border-bottom: none;
}

.exp-role::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient);
  opacity: 0;
  border-radius: 0 2px 2px 0;
  transition: var(--transition);
}

.exp-role:hover::before {
  opacity: 1;
}

.exp-role:hover {
  background: rgba(124, 58, 237, .03);
}

.exp-role-timeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 4px;
  flex-shrink: 0;
  width: 28px;
}

.exp-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gradient);
  flex-shrink: 0;
}

.exp-line {
  width: 2px;
  flex: 1;
  background: var(--border);
  margin-top: 4px;
  min-height: 20px;
}

.exp-role:last-child .exp-line {
  display: none;
}

.exp-role-content {
  flex: 1;
}

.exp-role-content h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.exp-role-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.exp-period {
  font-size: .8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.exp-type-badge {
  padding: 3px 10px;
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.badge-org {
  background: rgba(124, 58, 237, .15);
  color: var(--accent-light);
  border: 1px solid rgba(124, 58, 237, .25);
}

.badge-vol {
  background: rgba(59, 130, 246, .15);
  color: var(--accent2-light);
  border: 1px solid rgba(59, 130, 246, .25);
}

.badge-com {
  background: rgba(16, 185, 129, .15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, .25);
}

.exp-role-desc {
  font-size: .875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.exp-role-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.exp-skill-chip {
  padding: 4px 12px;
  border-radius: 50px;
  font-size: .75rem;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

/* Standalone card (for volunteer/committee) */
.exp-standalone {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0;
  margin-bottom: 24px;
  overflow: hidden;
  transition: var(--transition);
}

.exp-standalone:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md);
}

.exp-standalone .exp-role {
  padding: 24px 28px;
}

.exp-standalone-header {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 16px;
  align-items: start;
}

.standalone-logo {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  background: var(--surface-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  background: var(--bg-secondary);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-text h2 {
  margin-bottom: 20px;
}

.contact-text p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 32px;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.contact-card:hover {
  border-color: var(--border-accent);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-info {
  flex: 1;
}

.contact-info .label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-info .value {
  font-size: .95rem;
  font-weight: 500;
}

.contact-arrow {
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: var(--transition);
}

.contact-card:hover .contact-arrow {
  color: var(--accent-light);
  transform: translateX(4px);
}

.contact-form-area {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  transition: var(--transition);
  outline: none;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, .15);
}

.form-group textarea {
  min-height: 120px;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  text-align: center;
  padding: 40px 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: .85rem;
}

footer strong {
  color: var(--accent-light);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(0, 0, 0, .95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
  backdrop-filter: blur(10px);
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  object-fit: contain;
  transform: scale(.9);
  transition: transform .3s;
}

.lightbox.open .lightbox-img {
  transform: scale(1);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  color: white;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  cursor: none;
}

.lightbox-close {
  top: 24px;
  right: 24px;
  font-size: 1.4rem;
}

.lightbox-prev {
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.lightbox-caption {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  max-width: 400px;
}

.lightbox-caption h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.lightbox-caption p {
  font-size: .85rem;
  color: rgba(255, 255, 255, .6);
}

/* ============================================================
   INSTAGRAM PORTFOLIO (Creative Section)
   ============================================================ */
/* ============================================================
   INSTAGRAM PORTFOLIO (Creative Section - Grid Style)
   ============================================================ */
.ig-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.ig-grid-item {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--surface-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.ig-grid-item img.ig-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.ig-grid-item:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
  z-index: 5;
}

.ig-grid-item:hover img.ig-thumbnail {
  transform: scale(1.1);
}

/* Overlay for Title */
.ig-grid-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 70%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 15px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.ig-grid-item:hover .ig-grid-overlay {
  opacity: 1;
}

.ig-overlay-info h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  margin: 0;
  line-height: 1.2;
}

.ig-overlay-info p {
  font-size: 0.7rem;
  color: var(--accent-light);
  margin: 4px 0 0 0;
  font-weight: 500;
}

/* Carousel / Multi-image Indicator Icon */
.ig-multi-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.8rem;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Responsive adjustment for small screens */
@media (max-width: 480px) {
  .ig-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}


.ig-post {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.ig-post:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
}

.ig-header {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ig-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  border: 1.5px solid var(--accent);
  padding: 1px;
}

.ig-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--surface);
}

.ig-user-info {
  display: flex;
  flex-direction: column;
}

.ig-username {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.ig-location {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Media Carousel */
.ig-media-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #000;
  overflow: hidden;
}

.ig-media-wrapper {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.ig-media-wrapper::-webkit-scrollbar {
  display: none;
}

.ig-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  object-fit: cover;
}

/* Navigation Arrows */
.ig-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  border: none;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 10;
}

.ig-nav-prev {
  left: 10px;
}

.ig-nav-next {
  right: 10px;
}

.ig-media-container:hover .ig-nav-btn {
  opacity: 1;
}

/* Indicators */
.ig-indicators {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  z-index: 10;
}

.ig-dot {
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  transition: background 0.3s;
}

.ig-dot.active {
  background: var(--accent-light);
}

/* Post Actions */
.ig-actions {
  padding: 12px 14px 8px;
  display: flex;
  gap: 16px;
}

.ig-action-btn {
  font-size: 1.3rem;
  color: var(--text-primary);
  cursor: none;
  transition: transform 0.2s;
}

.ig-action-btn:hover {
  transform: scale(1.1);
}

/* Caption */
.ig-content {
  padding: 0 14px 16px;
}

.ig-likes {
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 6px;
  display: block;
}

.ig-caption {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.ig-caption strong {
  color: var(--text-primary);
  margin-right: 4px;
}

.ig-date {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 8px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-inner {
    gap: 40px;
  }

  .hero-photo-wrap {
    width: 280px;
    height: 280px;
  }
}

@media (max-width: 900px) {
  :root {
    --section-pad: 70px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-stats {
    gap: 24px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad: 56px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(8, 8, 16, .97);
    padding: 16px;
    flex-direction: column;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }

  .hero-visual {
    order: -1;
    display: flex;
    justify-content: center;
  }

  .hero-photo-wrap {
    width: 220px;
    height: 220px;
  }

  .hfb-1,
  .hfb-2,
  .hfb-3 {
    display: none;
  }

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

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

  .hero-badge {
    margin: 0 auto 28px;
  }

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

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

  .exp-org-header {
    gap: 16px;
    padding: 20px;
  }

  .exp-role {
    padding: 16px 20px;
  }

  .exp-standalone .exp-role {
    padding: 20px;
  }
}

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

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .about-info {
    grid-template-columns: 1fr;
  }

  .hero-btns {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    justify-content: center;
  }
}