/* ==========================================================================
   FALGUNI TIMANDE PORTFOLIO — STYLING SYSTEM
   ========================================================================== */

/* DESIGN TOKENS & VARIABLES */
:root {
  /* Colors */
  --color-bg-light: #f3f3f3;
  --color-bg-dark: #121212;
  --color-bg-dark-card: #1e1e1e;
  --color-text-dark: #1a1a1a;
  --color-text-light: #f5f5f5;
  --color-text-muted: #757575;
  --color-text-muted-dark: #8c8c8c;
  --color-border-light: rgba(0, 0, 0, 0.08);
  --color-border-dark: rgba(255, 255, 255, 0.1);
  --color-accent-green: #37d37a;
  --color-accent-green-bg: rgba(55, 211, 122, 0.1);
  
  /* Fonts */
  --font-family-body: 'Plus Jakarta Sans', sans-serif;
  --font-family-display: 'Syne', sans-serif;
  --font-family-mono: 'Space Grotesque', sans-serif;

  /* Layout */
  --container-max-width: 1400px;
  --transition-smooth: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: all 0.25s ease;
}

/* RESET & BASE STYLES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--color-bg-light);
  color: var(--color-text-dark);
  font-family: var(--font-family-body);
  font-weight: 400;
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

/* CUSTOM TRAILING CURSOR */
.custom-cursor {
  width: 10px;
  height: 10px;
  background-color: var(--color-accent-green);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease;
  box-shadow: 0 0 12px var(--color-accent-green);
}

.custom-cursor-follower {
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(55, 211, 122, 0.5);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.custom-cursor.hovered {
  width: 18px;
  height: 18px;
  background-color: var(--color-bg-dark);
}

.custom-cursor-follower.hovered {
  width: 58px;
  height: 58px;
  background: rgba(55, 211, 122, 0.12);
  border-color: var(--color-accent-green);
}

@media (max-width: 991px) {
  .custom-cursor, .custom-cursor-follower {
    display: none !important;
  }
}

/* ORGANIC MOVING CLOUD BACKGROUND & CANVAS */
.cloud-bg-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, #ffffff 0%, #ebebeb 100%);
  pointer-events: none;
}

#bg-particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.6;
}

.cloud {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.6;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.cloud-1 {
  top: -10%;
  left: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(220,220,220,0.8) 0%, rgba(240,240,240,0) 70%);
  animation: moveCloud1 45s infinite alternate ease-in-out;
}

.cloud-2 {
  bottom: -20%;
  right: -10%;
  width: 70vw;
  height: 70vw;
  background: radial-gradient(circle, rgba(210,210,210,0.8) 0%, rgba(245,245,245,0) 70%);
  animation: moveCloud2 55s infinite alternate ease-in-out;
}

.cloud-3 {
  top: 30%;
  left: 20%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(230,230,230,0.7) 0%, rgba(250,250,250,0) 70%);
  animation: moveCloud3 35s infinite alternate ease-in-out;
}

/* Texture overlay for visual creativity */
.noise-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.02'/%3E%3C/svg%3E");
  pointer-events: none;
}

@keyframes moveCloud1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(10vw, 15vh) scale(1.15); }
}

@keyframes moveCloud2 {
  0% { transform: translate(0, 0) scale(1.1); }
  100% { transform: translate(-15vw, -10vh) scale(0.9); }
}

@keyframes moveCloud3 {
  0% { transform: translate(0, 0) scale(0.85); }
  100% { transform: translate(8vw, -12vh) scale(1.1); }
}

/* APP CONTAINER */
.app-container {
  max-width: var(--container-max-width);
  width: calc(100% - 80px);
  margin: 40px auto;
  background-color: #ffffff;
  border-radius: 32px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 45px 120px rgba(0, 0, 0, 0.07);
  position: relative;
  overflow: hidden;
}

@media (max-width: 991px) {
  .app-container {
    width: calc(100% - 40px);
    margin: 20px auto;
    border-radius: 24px;
  }
}

/* ==========================================================================
   NAVIGATION / MAIN HEADER
   ========================================================================== */
.main-header {
  position: absolute;
  top: 32px;
  left: 0;
  width: 100%;
  padding: 0 45px;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 28px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 100px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
}

.availability-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-family-mono);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  background-color: var(--color-bg-light);
  border-radius: 50px;
  border: 1px solid var(--color-border-light);
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-accent-green);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px var(--color-accent-green);
  animation: pulseGreen 2s infinite alternate;
}

@keyframes pulseGreen {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 15px var(--color-accent-green); }
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-dark);
  text-decoration: none;
  transition: var(--transition-fast);
  padding: 6px 0;
  position: relative;
}

.nav-count {
  font-family: var(--font-family-mono);
  font-size: 11px;
  color: var(--color-text-muted);
  vertical-align: super;
  margin-left: 2px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background-color: var(--color-text-dark);
  transition: var(--transition-fast);
}

.nav-link:hover::after {
  width: 100%;
}

.btn-talk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-light);
  background-color: var(--color-bg-dark);
  padding: 10px 22px;
  border-radius: 100px;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.btn-talk:hover {
  background-color: #333333;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.btn-talk:hover .arrow-up-right {
  transform: translate(2px, -2px);
}

.arrow-up-right {
  transition: transform 0.3s ease;
  font-family: Arial, sans-serif;
}

@media (max-width: 991px) {
  .nav-links {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .main-header {
    width: 100%;
    padding: 0 20px;
    top: 20px;
  }
  .header-inner {
    padding: 10px 16px;
  }
  .nav-links {
    display: none; /* simple responsive: hide nav links, talk button keeps CTA */
  }
  .availability-badge {
    font-size: 11px;
    padding: 4px 10px;
  }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  position: relative;
  padding-top: 180px;
  padding-bottom: 0;
  overflow: hidden;
  background-color: #ffffff;
}

/* Huge background outline name positioned absolutely behind the portrait */
.hero-bg-text {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
  z-index: 1;
  pointer-events: none;
  font-family: var(--font-family-display);
  font-size: clamp(3.5rem, 10.5vw, 13.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -3px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-bg-text .outline-text {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--color-text-dark);
  animation: outlinePulse 4s ease-in-out infinite alternate;
}

.hero-bg-text .solid-text {
  background: linear-gradient(135deg, #1a1a1a 0%, #444444 50%, #1a1a1a 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerText 6s linear infinite;
}

@keyframes shimmerText {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

@keyframes outlinePulse {
  0% { opacity: 0.85; }
  100% { opacity: 1; -webkit-text-stroke: 1.8px var(--color-accent-green); }
}

.hero-layout-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 1.1fr;
  align-items: end;
  gap: 20px;
  width: 100%;
  padding: 0 45px;
  position: relative;
  z-index: 2;
}

.hero-left-col {
  padding-bottom: 70px;
}

.hero-right-col {
  padding-bottom: 70px;
  display: flex;
  justify-content: flex-end;
}

.hero-center-col {
  display: flex;
  justify-content: center;
  align-items: end;
}

.hero-portrait-wrapper {
  width: 100%;
  max-width: 520px;
  position: relative;
  z-index: 3;
  bottom: 0;
  transform: translateY(40px);
  opacity: 0;
  animation: portraitEntrance 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* HERO FLOATING TECH BADGES */
.hero-floating-badges {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.floating-badge {
  position: absolute;
  font-family: var(--font-family-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-dark);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 8px 16px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  pointer-events: auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: floatBounce 4s ease-in-out infinite alternate;
}

.floating-badge:hover {
  transform: scale(1.15) translateY(-5px) !important;
  box-shadow: 0 15px 35px rgba(55, 211, 122, 0.25);
  border-color: var(--color-accent-green);
}

.badge-1 { top: 15%; left: -8%; animation-delay: 0s; }
.badge-2 { top: 35%; right: -10%; animation-delay: 0.8s; }
.badge-3 { bottom: 25%; left: -6%; animation-delay: 1.6s; }
.badge-4 { top: 60%; right: -8%; animation-delay: 2.4s; }
.badge-5 { top: 5%; right: 10%; animation-delay: 1.2s; }

@keyframes floatBounce {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-14px) rotate(3deg); }
}

.hero-portrait-img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(1) contrast(1.08) brightness(1.02);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-portrait-wrapper:hover .hero-portrait-img {
  transform: scale(1.04);
}

@keyframes portraitEntrance {
  0% { transform: translateY(100px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.hero-headline {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

@keyframes fadeUp {
  to { transform: translateY(0); opacity: 1; }
}

.hero-headline h2 {
  font-family: var(--font-family-mono);
  font-size: clamp(2rem, 3.2vw, 4rem);
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-headline p {
  font-size: clamp(0.95rem, 1.1vw, 1.25rem);
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 380px;
  margin-bottom: 35px;
}

.btn-collaborate {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-light);
  background-color: var(--color-bg-dark);
  padding: 14px 28px;
  border-radius: 100px;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.btn-collaborate:hover {
  background-color: #222;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.btn-arrow {
  transition: transform 0.3s ease;
}

.btn-collaborate:hover .btn-arrow {
  transform: translate(3px, -3px);
}

/* Social pills styled as light round cards with border */
.hero-social-pills {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

.social-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 100px;
  background-color: #ffffff;
  color: var(--color-text-dark);
  font-family: var(--font-family-mono);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition-smooth);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.005);
}

.social-pill:hover {
  border-color: var(--color-text-dark);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.03);
}

.social-icon {
  stroke: var(--color-text-dark);
}

@media (max-width: 991px) {
  .hero-section {
    padding-top: 140px;
    align-items: center;
  }
  .hero-layout-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-portrait-container {
    justify-content: center;
  }
  .hero-portrait-frame {
    max-width: 360px;
  }
  .hero-headline p {
    margin: 0 auto 30px auto;
  }
  .social-links {
    justify-content: center;
    margin-top: 40px;
  }
}

/* ==========================================================================
   SELECTED WORK SECTION
   ========================================================================== */
.work-section {
  position: relative;
  padding: 60px 0;
  perspective: 1200px;
}

.section-bg-text {
  position: absolute;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-family-display);
  font-size: clamp(3rem, 8vw, 10rem);
  font-weight: 800;
  line-height: 1;
  color: var(--color-text-dark);
  opacity: 0.03;
  pointer-events: none;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--color-border-light);
  padding-bottom: 16px;
  position: relative;
  z-index: 2;
}

.section-title {
  font-family: var(--font-family-mono);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.work-filters {
  display: flex;
  gap: 10px;
}

.filter-btn {
  background: #ffffff;
  border: 1px solid var(--color-border-light);
  border-radius: 100px;
  padding: 6px 16px;
  font-family: var(--font-family-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.filter-count {
  font-family: var(--font-family-mono);
  font-size: 10.5px;
  background: rgba(0, 0, 0, 0.06);
  padding: 2px 7px;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
  background-color: var(--color-bg-dark);
  border-color: var(--color-bg-dark);
  color: var(--color-text-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.filter-btn:hover .filter-count, .filter-btn.active .filter-count {
  background: rgba(255, 255, 255, 0.2);
  color: var(--color-text-light);
}

.view-all-link {
  font-family: var(--font-family-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-dark);
  text-decoration: none;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.view-all-link:hover {
  transform: translateX(4px);
  color: var(--color-accent-green);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 2;
  perspective: 1000px;
}

/* 3D TILT WORK CARD (COMPACT SIZE) */
.work-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
  position: relative;
  background: #ffffff;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
  transform-style: preserve-3d;
  will-change: transform;
}

/* Mouse Spotlight Glow */
.spotlight-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(55, 211, 122, 0.12), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.work-card:hover .spotlight-glow {
  opacity: 1;
}

.work-card.hidden {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  pointer-events: none;
  position: absolute;
  visibility: hidden;
}

.work-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  background-color: #f5f5f5;
  transform: translateZ(15px);
}

.work-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}

.work-num-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--font-family-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--color-text-dark);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 4px 10px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  z-index: 3;
}

.work-card-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 18, 18, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

.hover-btn-view {
  color: var(--color-text-light);
  background: var(--color-bg-dark);
  padding: 10px 20px;
  border-radius: 50px;
  font-family: var(--font-family-mono);
  font-size: 12px;
  font-weight: 600;
  transform: translateY(10px) scale(0.9);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.hover-btn-view .arrow-icon {
  transition: transform 0.3s ease;
}

.work-card:hover {
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(55, 211, 122, 0.3);
}

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

.work-card:hover .work-card-hover-overlay {
  opacity: 1;
}

.work-card:hover .hover-btn-view {
  transform: translateY(0) scale(1);
}

.work-card:hover .hover-btn-view .arrow-icon {
  transform: translate(3px, -3px);
}

.work-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  z-index: 2;
  transform: translateZ(10px);
}

.work-meta {
  display: flex;
  gap: 10px;
  align-items: center;
}

.work-tag {
  font-family: var(--font-family-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--color-bg-dark);
  background-color: var(--color-accent-green-bg);
  border: 1px solid rgba(55, 211, 122, 0.3);
  padding: 3px 10px;
  border-radius: 100px;
}

.work-client {
  font-family: var(--font-family-body);
  font-size: 12px;
  color: var(--color-text-muted);
  font-weight: 500;
}

.work-title {
  font-family: var(--font-family-mono);
  font-size: clamp(1.05rem, 1.3vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.4px;
  line-height: 1.3;
  color: var(--color-text-dark);
  transition: color 0.3s ease;
}

.work-card:hover .work-title {
  color: #000000;
}

/* TECH STACK GLASS PILLS */
.tech-stack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.tech-pill {
  font-family: var(--font-family-mono);
  font-size: 10.5px;
  font-weight: 500;
  color: #444444;
  background: rgba(0, 0, 0, 0.04);
  padding: 3px 9px;
  border-radius: 50px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.work-card:hover .tech-pill {
  background: rgba(0, 0, 0, 0.07);
  border-color: rgba(0, 0, 0, 0.12);
  color: var(--color-text-dark);
}

@media (max-width: 1024px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .work-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .work-filters {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 8px;
  }
  .view-all-link {
    display: none;
  }
}

/* ==========================================================================
   SERVICES SECTION (ACCORDION)
   ========================================================================== */
.services-section {
  position: relative;
  padding: 120px 0;
}

.services-accordion {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--color-border-light);
  margin-top: 20px;
}

.accordion-item {
  border-bottom: 1px solid var(--color-border-light);
  padding: 32px 0;
  cursor: pointer;
  transition: var(--transition-smooth);
}

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

.service-name {
  font-family: var(--font-family-mono);
  font-size: clamp(1.8rem, 3.5vw, 4rem);
  font-weight: 500;
  letter-spacing: -1px;
  color: var(--color-text-muted);
  transition: var(--transition-smooth);
}

.accordion-icon {
  font-size: clamp(1.5rem, 2.5vw, 3rem);
  color: var(--color-text-muted);
  transition: var(--transition-smooth);
}

/* Accordion open logic via max-height grid animation */
.accordion-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.accordion-content-inner {
  min-height: 0;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0;
  gap: 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease, padding-top 0.4s ease;
}

.service-desc {
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 600px;
}

.service-preview-img-container {
  width: 240px;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.service-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Accordion Active/Hover States */
.accordion-item:hover .service-name,
.accordion-item.active .service-name {
  color: var(--color-text-dark);
  transform: translateX(10px);
}

.accordion-item:hover .accordion-icon,
.accordion-item.active .accordion-icon {
  color: var(--color-text-dark);
  transform: rotate(45deg);
}

.accordion-item.active .accordion-content {
  grid-template-rows: 1fr;
}

.accordion-item.active .accordion-content-inner {
  padding-top: 24px;
  opacity: 1;
  visibility: visible;
}

.accordion-item.active .service-preview-img-container {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .accordion-content-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .service-preview-img-container {
    width: 100%;
    aspect-ratio: 16/9;
  }
  .accordion-item {
    padding: 24px 0;
  }
}

/* ==========================================================================
   CERTIFICATIONS SECTION
   ========================================================================== */
.certifications-section {
  position: relative;
  padding: 120px 0;
  perspective: 1200px;
}

.cert-count {
  font-family: var(--font-family-mono);
  font-size: 14px;
  color: var(--color-text-muted);
  font-weight: 500;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
  z-index: 2;
  margin-top: 20px;
  perspective: 1000px;
}

/* HOLOGRAPHIC 3D CERTIFICATE CARD */
.cert-card {
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
  cursor: pointer;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  transform-style: preserve-3d;
  will-change: transform;
}

/* Holographic Sheen Line */
.cert-sheen {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    115deg,
    transparent 20%,
    rgba(255, 255, 255, 0.4) 40%,
    rgba(55, 211, 122, 0.15) 50%,
    rgba(255, 255, 255, 0.4) 60%,
    transparent 80%
  );
  transform: rotate(-25deg) translateY(-100%);
  transition: transform 0.8s ease;
  pointer-events: none;
  z-index: 3;
}

.cert-card:hover .cert-sheen {
  transform: rotate(-25deg) translateY(100%);
}

.cert-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: rgba(245, 245, 245, 0.7);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transform: translateZ(10px);
}

.cert-verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-family-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #1b8a47;
  background: rgba(55, 211, 122, 0.15);
  padding: 4px 10px;
  border-radius: 50px;
  border: 1px solid rgba(55, 211, 122, 0.3);
}

.verified-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-accent-green);
  box-shadow: 0 0 8px var(--color-accent-green);
}

.cert-brand-icon {
  font-family: var(--font-family-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--color-text-muted);
  background: #ffffff;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.cert-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #f0f0f0;
  transform: translateZ(15px);
}

.cert-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

.cert-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 18, 18, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cert-inspect-btn {
  color: var(--color-text-light);
  background: var(--color-bg-dark);
  padding: 10px 20px;
  border-radius: 50px;
  font-family: var(--font-family-mono);
  font-size: 13px;
  font-weight: 600;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.cert-card:hover {
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(55, 211, 122, 0.3);
}

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

.cert-card:hover .cert-hover-overlay {
  opacity: 1;
}

.cert-card:hover .cert-inspect-btn {
  transform: scale(1);
}

.cert-info {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateZ(20px);
}

.cert-issuer {
  font-family: var(--font-family-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-accent-green);
}

.cert-name {
  font-family: var(--font-family-mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.3px;
  line-height: 1.35;
  color: var(--color-text-dark);
}

.cert-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
}

.cert-date {
  font-family: var(--font-family-body);
  font-size: 12px;
  color: var(--color-text-muted);
}

.cert-id-tag {
  font-family: var(--font-family-mono);
  font-size: 11px;
  color: #777777;
  background: rgba(0, 0, 0, 0.04);
  padding: 2px 8px;
  border-radius: 4px;
}
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.3px;
  line-height: 1.3;
  color: var(--color-text-dark);
}

.cert-date {
  font-family: var(--font-family-body);
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 4px;
}

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

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

/* ==========================================================================
   EXPERIENCE SECTION (DARK THEMED)
   ========================================================================== */
.experience-section {
  position: relative;
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
  padding: 120px 40px;
  overflow: hidden;
}

.experience-inner {
  max-width: var(--container-max-width);
  margin: 0 auto;
  position: relative;
}

.text-light {
  color: var(--color-text-light);
}

.dark-header {
  border-bottom: 1px solid var(--color-border-dark);
}

.experience-subtitle {
  font-family: var(--font-family-mono);
  font-size: 14px;
  color: var(--color-text-muted-dark);
}

.experience-list {
  display: flex;
  flex-direction: column;
  margin-top: 40px;
  position: relative;
}

.experience-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 36px 0 36px 36px;
  border-bottom: 1px solid var(--color-border-dark);
  cursor: none; /* custom image tracking */
  position: relative;
  z-index: 10;
  transition: var(--transition-smooth);
}

.timeline-pulse-node {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background-color: var(--color-accent-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-accent-green);
}

.pulse-ring {
  position: absolute;
  top: -5px;
  left: -5px;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--color-accent-green);
  border-radius: 50%;
  animation: ripplePulse 2s infinite ease-out;
  pointer-events: none;
}

@keyframes ripplePulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.exp-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.company-name {
  font-family: var(--font-family-mono);
  font-size: clamp(1.5rem, 2.5vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.5px;
  color: var(--color-text-muted-dark);
  transition: var(--transition-smooth);
}

.role-name {
  font-size: 16px;
  color: var(--color-text-muted-dark);
  transition: var(--transition-smooth);
}

.timeline {
  font-family: var(--font-family-mono);
  font-size: 15px;
  color: var(--color-text-muted-dark);
}

/* Hover effects inside dark experience list */
.experience-item:hover {
  padding-left: 20px;
  border-bottom-color: rgba(255, 255, 255, 0.4);
}

.experience-item:hover .company-name {
  color: var(--color-text-light);
  transform: translateX(10px);
}

.experience-item:hover .role-name {
  color: var(--color-text-light);
}

/* Floating mouse-follower card */
.floating-preview {
  position: fixed;
  width: 280px;
  height: 180px;
  border-radius: 16px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6);
  z-index: 999;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.floating-preview.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.floating-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .experience-section {
    padding: 80px 20px;
  }
  .experience-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 0;
    cursor: default;
  }
  .floating-preview {
    display: none;
  }
}

/* ==========================================================================
   FOOTER / CONTACT SECTION
   ========================================================================== */
.footer-section {
  padding: 120px 0 40px 0;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-badge {
  margin-bottom: 40px;
}

.footer-cta {
  font-family: var(--font-family-display);
  font-size: clamp(2.5rem, 6vw, 7.5rem);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 24px;
  max-width: 1000px;
}

.footer-desc {
  font-size: clamp(1rem, 1.35vw, 1.45rem);
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 680px;
  margin-bottom: 50px;
}

.btn-contact-footer {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-family-mono);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-light);
  background-color: var(--color-bg-dark);
  padding: 20px 48px;
  border-radius: 100px;
  text-decoration: none;
  transition: var(--transition-smooth);
  margin-bottom: 100px;
}

.btn-contact-footer:hover {
  background-color: #222;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  transform: translateY(-4px);
}

.btn-contact-footer:hover .arrow-up-right {
  transform: translate(4px, -4px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  width: 100%;
  border-top: 1px solid var(--color-border-light);
  padding-top: 30px;
  margin-top: 20px;
}

.copyright {
  font-size: 14px;
  color: var(--color-text-muted);
}

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

.footer-socials a {
  font-family: var(--font-family-mono);
  font-size: 14px;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-socials a:hover {
  color: var(--color-text-dark);
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }
  .btn-contact-footer {
    padding: 16px 36px;
    font-size: 16px;
    margin-bottom: 60px;
  }
}

/* ==========================================================================
   SLIDING PROJECT DETAIL OVERLAY
   ========================================================================== */
.project-detail-overlay {
  position: fixed;
  top: 0;
  right: -100%; /* off-screen by default */
  width: 100%;
  height: 100vh;
  background-color: var(--color-bg-light);
  z-index: 9999; /* on top of everything */
  transition: right 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  padding: 40px;
}

.project-detail-overlay.active {
  right: 0; /* slide in */
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container-max-width);
  margin: 0 auto 60px auto;
}

.btn-back {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--color-border-light);
  padding: 12px 24px;
  border-radius: 100px;
  font-family: var(--font-family-mono);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-back:hover {
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
}

.back-arrow {
  transition: transform 0.3s ease;
}

.btn-back:hover .back-arrow {
  transform: translateX(-4px);
}

.detail-content-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
}

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

.detail-sidebar {
  position: sticky;
  top: 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.detail-tags {
  display: flex;
  gap: 12px;
}

.detail-title {
  font-family: var(--font-family-display);
  font-size: clamp(3rem, 5vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
}

.detail-project-type {
  font-family: var(--font-family-mono);
  font-size: 16px;
  color: var(--color-text-muted);
  margin-top: -10px;
}

.detail-description {
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 480px;
}

.detail-meta-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
  padding: 24px 0;
}

.detail-meta-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.meta-label {
  font-family: var(--font-family-mono);
  font-size: 14px;
  color: var(--color-text-muted);
}

.meta-value {
  font-weight: 600;
  font-size: 15px;
}

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

.btn-live-preview {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-family-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-light);
  background-color: var(--color-bg-dark);
  padding: 14px 28px;
  border-radius: 100px;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.btn-live-preview:hover {
  background-color: #222;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.btn-contact-detail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-dark);
  background-color: transparent;
  border: 1px solid var(--color-border-light);
  padding: 14px 28px;
  border-radius: 100px;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.btn-contact-detail:hover {
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
  border-color: var(--color-bg-dark);
  transform: translateY(-2px);
}

/* Right Content Showcase */
.detail-main-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.showcase-card {
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.showcase-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.showcase-desc-box {
  padding: 40px;
  background: white;
  border-radius: 24px;
  border: 1px solid var(--color-border-light);
  font-size: 18px;
  line-height: 1.8;
  color: var(--color-text-dark);
}

@media (max-width: 991px) {
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .detail-sidebar {
    position: static;
  }
  .project-detail-overlay {
    padding: 20px;
  }
  .detail-header {
    margin-bottom: 40px;
  }
}

/* ==========================================================================
   CONTACT CARD LINKS GRID (FOOTER)
   ========================================================================== */
.contact-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  width: 100%;
  max-width: 860px;
  margin: 0 auto 100px auto;
  position: relative;
  z-index: 5;
}

.contact-card-link {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 36px;
  border-radius: 24px;
  border: 1px solid var(--color-border-light);
  background: rgba(248, 248, 248, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  text-decoration: none;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

.contact-card-link:hover {
  transform: translateY(-8px);
  border-color: rgba(55, 211, 122, 0.4);
  box-shadow: 0 25px 60px rgba(55, 211, 122, 0.08);
  background: #ffffff;
}

.contact-card-icon {
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-bg-dark);
  color: var(--color-text-light);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-card-link:hover .contact-card-icon {
  background: var(--color-accent-green);
  color: var(--color-bg-dark);
  transform: scale(1.1) rotate(8deg);
}

.contact-card-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-grow: 1;
}

.contact-card-label {
  font-family: var(--font-family-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-card-value {
  font-family: var(--font-family-mono);
  font-size: 17px;
  font-weight: 500;
  color: var(--color-text-dark);
}

.contact-card-arrow {
  font-size: 20px;
  color: var(--color-text-muted);
  transition: all 0.4s ease;
}

.contact-card-link:hover .contact-card-arrow {
  color: var(--color-accent-green);
  transform: translate(4px, -4px);
}

@media (max-width: 850px) {
  .contact-links-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 24px;
  }
}

/* ==========================================================================
   CERTIFICATE LIGHTBOX MODAL
   ========================================================================== */
.cert-lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cert-lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.cert-lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(12, 12, 12, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.cert-lightbox-container {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 960px;
  background: #ffffff;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.cert-lightbox-modal.active .cert-lightbox-container {
  transform: scale(1) translateY(0);
}

.cert-lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  border: none;
  font-size: 26px;
  color: var(--color-text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.cert-lightbox-close:hover {
  background: var(--color-bg-dark);
  color: var(--color-text-light);
  transform: rotate(90deg);
}

.cert-lightbox-body {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
}

.cert-lightbox-image-box {
  background: #f4f4f4;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

.cert-modal-img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.cert-lightbox-details {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cert-lightbox-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-pill {
  font-size: 11px;
}

.cert-lightbox-issuer {
  font-family: var(--font-family-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cert-lightbox-title {
  font-family: var(--font-family-mono);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text-dark);
}

.cert-lightbox-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.cert-lightbox-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border-light);
}

.cert-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.cert-meta-label {
  font-family: var(--font-family-mono);
  color: var(--color-text-muted);
}

.cert-meta-val {
  font-family: var(--font-family-mono);
  font-weight: 600;
  color: var(--color-text-dark);
}

.active-status {
  color: var(--color-accent-green);
}

@media (max-width: 768px) {
  .cert-lightbox-body {
    grid-template-columns: 1fr;
  }
  .cert-lightbox-image-box {
    padding: 20px;
    min-height: auto;
  }
  .cert-lightbox-details {
    padding: 24px;
  }
}

/* ==========================================================================
   COMPREHENSIVE RESPONSIVE FIXES
   ========================================================================== */

/* TABLET (max-width: 1024px) */
@media (max-width: 1024px) {
  .app-container {
    width: calc(100% - 48px);
    margin: 24px auto;
    border-radius: 26px;
  }

  .main-header {
    padding: 0 32px;
    top: 24px;
  }

  .hero-layout-grid {
    padding: 0 32px;
  }

  .hero-portrait-wrapper {
    max-width: 420px;
  }

  .floating-badge {
    font-size: 11px;
    padding: 6px 12px;
  }

  .badge-1 { top: 10%; left: -4%; }
  .badge-2 { top: 30%; right: -4%; }
  .badge-3 { bottom: 22%; left: -3%; }
  .badge-4 { top: 55%; right: -3%; }
  .badge-5 { top: 3%; right: 6%; }

  .work-section,
  .services-section,
  .certifications-section,
  .footer-section {
    padding-left: 32px;
    padding-right: 32px;
  }

  .work-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .contact-links-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .project-detail-overlay {
    padding: 24px;
  }

  .detail-grid {
    gap: 50px;
  }
}

/* MOBILE (max-width: 768px) */
@media (max-width: 768px) {
  /* Base container tightening */
  .app-container {
    width: calc(100% - 24px);
    margin: 14px auto;
    border-radius: 20px;
  }

  /* Header / Navigation - hide nav links cleanly, keep CTA */
  .main-header {
    padding: 0 16px;
    top: 16px;
  }

  .header-inner {
    padding: 8px 12px;
    gap: 8px;
  }

  .availability-badge {
    font-size: 10px;
    padding: 4px 8px;
    gap: 5px;
    white-space: nowrap;
  }

  .nav-links {
    display: none;
  }

  .btn-talk {
    font-size: 12px;
    padding: 8px 14px;
    white-space: nowrap;
  }

  /* Hero section */
  .hero-section {
    padding-top: 120px;
    min-height: auto;
    padding-bottom: 40px;
  }

  .hero-bg-text {
    font-size: clamp(2.5rem, 13vw, 5rem);
    top: 22%;
    letter-spacing: -1px;
  }

  .hero-layout-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
    padding: 0 20px;
  }

  .hero-left-col {
    padding-bottom: 0;
    order: 2;
  }

  .hero-center-col {
    order: 1;
  }

  .hero-right-col {
    padding-bottom: 0;
    justify-content: center;
    order: 3;
  }

  .hero-portrait-wrapper {
    max-width: 280px;
    transform: translateY(0);
  }

  .hero-floating-badges {
    transform: scale(0.8);
    transform-origin: center;
  }

  .badge-1 { top: 10%; left: 0%; }
  .badge-2 { top: 28%; right: 0%; }
  .badge-3 { bottom: 22%; left: 2%; }
  .badge-4 { top: 55%; right: 2%; }
  .badge-5 { top: 2%; right: 12%; }

  .hero-headline h2 {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    margin-bottom: 14px;
  }

  .hero-headline p {
    font-size: 0.9rem;
    max-width: 100%;
    margin: 0 auto 24px auto;
  }

  .btn-collaborate {
    font-size: 13px;
    padding: 11px 22px;
  }

  .hero-social-pills {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .social-pill {
    font-size: 11px;
    padding: 8px 14px;
    gap: 6px;
  }

  .social-icon {
    width: 14px;
    height: 14px;
  }

  /* Work section */
  .work-section {
    padding: 40px 20px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
  }

  .section-title {
    font-size: 15px;
  }

  .work-filters {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 8px;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .filter-btn {
    font-size: 12px;
    padding: 5px 12px;
    flex-shrink: 0;
  }

  .view-all-link {
    display: none;
  }

  .work-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .work-card {
    padding: 12px;
    border-radius: 16px;
  }

  .work-info {
    gap: 6px;
  }

  .work-title {
    font-size: 1rem;
  }

  /* Services section */
  .services-section {
    padding: 60px 20px;
  }

  .accordion-item {
    padding: 20px 0;
  }

  .service-name {
    font-size: clamp(1.3rem, 5.5vw, 2rem);
  }

  .accordion-icon {
    font-size: 1.3rem;
  }

  .accordion-content-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .service-desc {
    font-size: 14px;
  }

  .service-preview-img-container {
    width: 100%;
    aspect-ratio: 16/9;
  }

  /* Certifications section */
  .certifications-section {
    padding: 60px 20px;
  }

  .cert-count {
    font-size: 12px;
  }

  .cert-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cert-card {
    border-radius: 20px;
  }

  .cert-header-bar {
    padding: 12px 16px;
  }

  .cert-info {
    padding: 16px 18px 18px;
  }

  .cert-name {
    font-size: 14px;
  }

  .cert-issuer {
    font-size: 11px;
  }

  .cert-date {
    font-size: 11px;
  }

  .cert-id-tag {
    font-size: 10px;
  }

  /* Experience section */
  .experience-section {
    padding: 60px 20px;
  }

  .section-bg-text {
    font-size: clamp(2rem, 12vw, 5rem);
  }

  .experience-subtitle {
    font-size: 12px;
  }

  .experience-list {
    margin-top: 24px;
  }

  .experience-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 20px 0 20px 28px;
    cursor: default;
  }

  .timeline-pulse-node {
    left: 6px;
    width: 8px;
    height: 8px;
  }

  .pulse-ring {
    top: -4px;
    left: -4px;
    width: 16px;
    height: 16px;
  }

  .company-name {
    font-size: clamp(1.2rem, 5vw, 1.6rem);
  }

  .role-name {
    font-size: 13px;
    line-height: 1.5;
  }

  .timeline {
    font-size: 12px;
  }

  .floating-preview {
    display: none;
  }

  /* Footer / Contact */
  .footer-section {
    padding: 60px 20px 30px 20px;
  }

  .footer-inner {
    padding: 0;
  }

  .footer-badge {
    margin-bottom: 28px;
  }

  .contact-links-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 60px;
  }

  .contact-card-link {
    padding: 20px 22px;
    gap: 16px;
    border-radius: 18px;
  }

  .contact-card-icon {
    width: 48px;
    height: 48px;
    font-size: 22px;
    flex-shrink: 0;
  }

  .contact-card-label {
    font-size: 11px;
  }

  .contact-card-value {
    font-size: 13px;
    word-break: break-all;
  }

  .contact-card-arrow {
    font-size: 16px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    align-items: center;
    text-align: center;
  }

  .copyright {
    font-size: 12px;
  }

  .footer-socials {
    gap: 16px;
  }

  /* Project detail overlay */
  .project-detail-overlay {
    padding: 16px;
  }

  .detail-header {
    margin-bottom: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .btn-back {
    padding: 9px 16px;
    font-size: 12px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .detail-sidebar {
    position: static;
    gap: 20px;
  }

  .detail-title {
    font-size: clamp(2rem, 9vw, 3rem);
    letter-spacing: -1px;
  }

  .detail-project-type {
    font-size: 13px;
  }

  .detail-description {
    font-size: 14px;
  }

  .detail-meta-list {
    padding: 18px 0;
    gap: 14px;
  }

  .meta-label {
    font-size: 12px;
  }

  .meta-value {
    font-size: 13px;
    text-align: right;
  }

  .detail-actions {
    flex-direction: column;
    gap: 12px;
  }

  .btn-live-preview,
  .btn-contact-detail {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 12px 20px;
    font-size: 13px;
  }

  .showcase-desc-box {
    padding: 22px;
    font-size: 14px;
    line-height: 1.6;
  }

  /* Cert lightbox */
  .cert-lightbox-container {
    width: 95%;
    border-radius: 22px;
  }

  .cert-lightbox-body {
    grid-template-columns: 1fr;
  }

  .cert-lightbox-image-box {
    padding: 16px;
    min-height: auto;
  }

  .cert-lightbox-details {
    padding: 22px;
  }

  .cert-lightbox-title {
    font-size: 17px;
  }

  .cert-lightbox-desc {
    font-size: 13px;
  }

  .cert-lightbox-close {
    width: 36px;
    height: 36px;
    font-size: 22px;
    top: 12px;
    right: 12px;
  }
}

/* EXTRA SMALL MOBILE (max-width: 480px) */
@media (max-width: 480px) {
  .app-container {
    width: calc(100% - 16px);
    margin: 10px auto;
    border-radius: 18px;
  }

  .main-header {
    padding: 0 12px;
  }

  .header-inner {
    padding: 7px 10px;
  }

  .availability-badge {
    font-size: 9px;
    padding: 3px 7px;
  }

  .btn-talk {
    font-size: 11px;
    padding: 7px 12px;
    gap: 5px;
  }

  .hero-bg-text {
    font-size: clamp(2.2rem, 12vw, 4rem);
  }

  .hero-portrait-wrapper {
    max-width: 240px;
  }

  .floating-badge {
    font-size: 9px;
    padding: 4px 8px;
  }

  .hero-floating-badges {
    transform: scale(0.7);
  }

  .hero-headline h2 {
    font-size: 1.4rem;
  }

  .section-bg-text {
    font-size: clamp(1.6rem, 14vw, 3.5rem);
  }

  .work-card,
  .cert-card {
    padding: 10px;
  }

  .experience-section {
    padding: 50px 16px;
  }

  .contact-card-link {
    padding: 16px 18px;
  }

  .contact-card-value {
    font-size: 12px;
  }
}

/* TOUCH SCREEN OPTIMIZATIONS - prevent hover-only states from breaking */
@media (hover: none) {
  /* Disable 3D tilt on touch devices */
  .work-card,
  .cert-card {
    transform: none !important;
  }

  /* Make sure spotlight glows don't break on touch */
  .work-card:hover .spotlight-glow,
  .cert-card:hover .cert-sheen {
    opacity: 0;
  }

  /* Tap target sizing for mobile */
  .nav-link,
  .filter-btn,
  .btn-talk,
  .btn-collaborate,
  .social-pill,
  .contact-card-link {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  /* Disable cursor on touch */
  .custom-cursor,
  .custom-cursor-follower {
    display: none !important;
  }
}
