/*
Theme Name: Himel Portfolio
Theme URI: https://himelportfolio.com
Author: Himel
Author URI: mailto:mdmostakimfreelancer456@gmail.com
Description: Official Dark Black & Cream Digital Marketing Portfolio Theme for Himel — Digital Marketer, Social Media Manager & Paid Ads Specialist. Includes full-screen 7-slide deck, interactive services & reviews sliders, 3D marketing insights blog articles, and one-page PDF resume viewer.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: himel-portfolio
*/

/* ==========================================================================
   HIMEL — DIGITAL MARKETER PORTFOLIO
   Design Tokens & Modern Styling System
   ========================================================================== */

:root {
  --bg-pitch: #0f0f0f;
  --bg-deep: #141414;
  --bg-card: #181818;
  --bg-card-hover: #1f1f1f;
  
  --color-cream: #EBDDC3;
  --color-cream-light: #F6EFE3;
  --color-cream-dim: rgba(235, 221, 195, 0.72);
  --color-cream-faint: rgba(235, 221, 195, 0.12);
  --color-cream-border: rgba(235, 221, 195, 0.18);
  --color-cream-glow: rgba(235, 221, 195, 0.08);

  --text-primary: #EDE5D8;
  --text-secondary: #9E988F;
  --text-muted: #6E6860;

  --font-display: 'Bebas Neue', -apple-system, sans-serif;
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-smooth: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: #0b0b0b;
  color: var(--text-primary);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: #0b0b0b;
  color: var(--text-primary);
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  line-height: 1.6;
}

/* Custom Cursor (Desktop Pointer Only) */
.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--color-cream);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.15s ease-out, opacity 0.2s ease;
  transform: translate(-50%, -50%);
  opacity: 0;
}

.cursor-follower {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(235, 221, 195, 0.4);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transition: transform 0.25s var(--ease-out-expo), width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
  transform: translate(-50%, -50%);
  opacity: 0;
}

@media (hover: none), (pointer: coarse) {
  .cursor-dot,
  .cursor-follower {
    display: none !important;
  }
}

/* Subtle Film Grain */
.grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 100;
  opacity: 0.025;
  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)'/%3E%3C/svg%3E");
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ==========================================================================
   PAGE 1: HERO SECTION — UNCHANGED
   ========================================================================== */
.hero-viewport {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: radial-gradient(circle at 50% 45%, #181818 0%, #121212 55%, #0e0e0e 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  user-select: none;
  z-index: 30;
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition: opacity 0.65s var(--ease-out-expo), transform 0.65s var(--ease-out-expo), visibility 0.65s;
}

body.view-info .hero-viewport {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.96);
}

/* Meta Navigation Bars (Top & Bottom) */
.meta-nav {
  position: relative;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(1.25rem, 3.4vw, 3rem) clamp(1.25rem, 4.5vw, 4.2rem);
  width: 100%;
}

.meta-nav.bottom-bar {
  background: linear-gradient(to top, rgba(14, 14, 14, 0.88) 0%, rgba(14, 14, 14, 0.35) 65%, transparent 100%);
}

.meta-item {
  font-family: var(--font-heading);
  font-size: clamp(13px, 1.1vw, 17px);
  font-weight: 500;
  color: #D6CEC1;
  letter-spacing: 0.015em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: color 0.3s ease, transform 0.3s ease;
}

.top-left, .bottom-left {
  text-transform: none;
}

/* Top Right Interactive Arrow — Animated & Glowing */
.meta-item.top-right {
  position: relative;
  opacity: 1 !important;
  transform: translateY(0);
  background: radial-gradient(circle at 75% 50%, rgba(235, 221, 195, 0.08) 0%, transparent 75%);
  border: 1px solid rgba(235, 221, 195, 0.22);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  padding: 9px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--color-cream);
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s ease, border-color 0.4s ease, background 0.4s ease, color 0.35s ease;
  animation: buttonAmbientGlow 2.4s infinite ease-in-out;
}

.meta-item.top-right::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(235, 221, 195, 0.5) 0%, rgba(235, 221, 195, 0) 70%);
  transform: translateY(-50%) scale(0.8);
  pointer-events: none;
  animation: arrowTipBeacon 2.2s infinite cubic-bezier(0.16, 1, 0.3, 1);
}

.arrow-svg {
  display: block;
  overflow: visible;
  filter: drop-shadow(0 0 6px rgba(235, 221, 195, 0.45));
  transition: transform 0.4s var(--ease-out-expo), filter 0.35s ease;
  animation: arrowInviteSlide 2.2s infinite ease-in-out;
}

.arrow-stem {
  transition: transform 0.4s var(--ease-out-expo), stroke 0.3s ease, stroke-width 0.3s ease;
  transform-origin: right center;
}

.arrow-head {
  transition: transform 0.4s var(--ease-out-expo), stroke 0.3s ease, stroke-width 0.3s ease;
}

@keyframes arrowInviteSlide {
  0%, 100% {
    transform: translateX(0);
    filter: drop-shadow(0 0 5px rgba(235, 221, 195, 0.35));
  }
  50% {
    transform: translateX(6px);
    filter: drop-shadow(0 0 11px rgba(246, 239, 227, 0.85)) drop-shadow(0 0 20px rgba(235, 221, 195, 0.5));
  }
}

@keyframes arrowTipBeacon {
  0% {
    transform: translateY(-50%) translateX(0) scale(0.6);
    opacity: 0.9;
  }
  70% {
    transform: translateY(-50%) translateX(5px) scale(2.1);
    opacity: 0;
  }
  100% {
    transform: translateY(-50%) translateX(5px) scale(2.1);
    opacity: 0;
  }
}

@keyframes buttonAmbientGlow {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 12px rgba(235, 221, 195, 0.12), inset 0 0 8px rgba(235, 221, 195, 0.05);
    border-color: rgba(235, 221, 195, 0.18);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 24px rgba(235, 221, 195, 0.32), inset 0 0 12px rgba(235, 221, 195, 0.12);
    border-color: rgba(235, 221, 195, 0.42);
  }
}

.meta-item.top-right:hover,
.meta-item.top-right:focus-visible {
  opacity: 1 !important;
  animation: none;
  background: radial-gradient(circle at 65% 50%, rgba(235, 221, 195, 0.22) 0%, rgba(235, 221, 195, 0.06) 70%, transparent 100%);
  border-color: rgba(246, 239, 227, 0.65);
  box-shadow: 0 0 26px rgba(235, 221, 195, 0.48), 0 0 54px rgba(235, 221, 195, 0.24), inset 0 0 16px rgba(235, 221, 195, 0.18);
  transform: translateY(-1px) scale(1.04);
}

.meta-item.top-right:hover .arrow-svg,
.meta-item.top-right:focus-visible .arrow-svg {
  animation: none;
  transform: translateX(8px) scale(1.05);
  filter: drop-shadow(0 0 8px rgba(255, 252, 245, 0.95)) drop-shadow(0 0 20px rgba(235, 221, 195, 0.8));
}

.meta-item.top-right:hover .arrow-stem,
.meta-item.top-right:hover .arrow-head,
.meta-item.top-right:focus-visible .arrow-stem,
.meta-item.top-right:focus-visible .arrow-head {
  stroke: #FFFDF9;
  stroke-width: 1.9;
}

.meta-item.top-right:active {
  transform: scale(0.96);
  background: radial-gradient(circle at 65% 50%, rgba(246, 239, 227, 0.34) 0%, rgba(235, 221, 195, 0.12) 75%, transparent 100%);
  border-color: #FFFDF9;
  box-shadow: 0 0 36px rgba(255, 252, 245, 0.75), 0 0 70px rgba(235, 221, 195, 0.45), inset 0 0 22px rgba(246, 239, 227, 0.3);
}

.meta-item.top-right:active .arrow-svg {
  animation: none;
  transform: translateX(11px) scale(1.08);
  filter: drop-shadow(0 0 12px #FFFFFF) drop-shadow(0 0 28px rgba(235, 221, 195, 1));
}

/* Bottom Status Indicator */
.bottom-right {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(12px, 0.9vw, 14px);
  color: var(--text-secondary);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  background-color: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.6);
  animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
    box-shadow: 0 0 14px rgba(74, 222, 128, 0.9);
  }
}

/* ==========================================================================
   CENTER STAGE: 3-LAYER TYPOGRAPHY & PORTRAIT (EXACT REFERENCE SCALE)
   ========================================================================== */
.center-stage {
  --u: min(1vw, 1.7778dvh);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
}

.portfolio-text-layer {
  position: absolute;
  left: 50%;
  top: calc(50% - 1.0 * var(--u));
  transform: translate(-50%, -50%);
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-display);
  font-size: calc(22.6 * var(--u));
  line-height: 0.85;
  letter-spacing: -0.012em;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  padding: 0;
}

.text-char {
  display: inline-block;
  transform: scaleY(1.36);
  will-change: transform, opacity;
}

.solid-layer {
  z-index: 1;
  color: var(--color-cream);
  text-shadow: 0 0 40px rgba(235, 221, 195, 0.05);
}

.portrait-container {
  position: absolute;
  bottom: auto;
  top: calc(50% - 27.4 * var(--u));
  left: calc(50% + 2.3 * var(--u));
  transform: translateX(-50%);
  z-index: 2;
  width: calc(66.8 * var(--u));
  height: calc(54.0 * var(--u));
  max-width: none;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  pointer-events: auto;
  will-change: transform;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.portrait-image {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: bottom center;
  display: block;
  filter: contrast(1.03) brightness(1.02);
  transform-origin: bottom center;
  transition: transform 0.4s var(--ease-out-expo);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 90%, transparent 100%);
}

.outline-layer {
  display: none;
}

/* ==========================================================================
   PAGE 2: HIMEL 8-SECTION FULL-SCREEN SLIDE DECK (HERO COLOR THEME)
   ========================================================================== */
.gilber-page {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: radial-gradient(circle at 50% 45%, #181818 0%, #121212 55%, #0e0e0e 100%);
  overflow: hidden;
  z-index: 25;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo), visibility 0.7s;
  user-select: none;
}

body.view-info .gilber-page {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
}

/* FIXED CHROME: Top Header Navigation Bar */
.gilber-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(22px, 3.2vh, 38px) clamp(20px, 2.6vw, 44px);
  pointer-events: none;
}

.gilber-logo,
.gilber-nav,
.gilber-menu-toggle {
  pointer-events: auto;
}

.gilber-logo {
  font-family: var(--font-heading);
  font-size: clamp(22px, 1.9vw, 30px);
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.03em;
  line-height: 1;
  cursor: pointer;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.gilber-logo:hover {
  color: var(--color-cream);
}

.gilber-dot {
  color: var(--color-cream);
}

.gilber-nav {
  position: absolute;
  left: 13.4%;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 36px);
}

.gilber-nav-link {
  font-family: var(--font-body);
  font-size: clamp(11px, 0.8vw, 12.5px);
  font-weight: 700;
  color: #D6CEC1;
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  position: relative;
  padding: 4px 0;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.gilber-nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1.5px;
  background-color: var(--color-cream);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.35s var(--ease-out-expo);
}

.gilber-nav-link.active,
.gilber-nav-link:hover {
  color: var(--color-cream);
  text-shadow: 0 0 14px rgba(235, 221, 195, 0.35);
}

.gilber-nav-link.active::after,
.gilber-nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}

/* Compact Mobile/Tablet Menu Toggle */
.gilber-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid rgba(235, 221, 195, 0.24);
  background: rgba(20, 20, 20, 0.75);
  backdrop-filter: blur(8px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.gilber-menu-toggle:hover {
  border-color: var(--color-cream);
  background: rgba(235, 221, 195, 0.12);
}

.menu-bar {
  width: 20px;
  height: 1.8px;
  background-color: var(--color-cream);
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Mobile Slide-Over Navigation Drawer */
.gilber-mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.gilber-mobile-drawer.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.drawer-inner {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 84vw);
  background: #141414;
  border-left: 1px solid rgba(235, 221, 195, 0.16);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease-out-expo);
}

.gilber-mobile-drawer.open .drawer-inner {
  transform: translateX(0);
}

.drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}

.drawer-close {
  background: transparent;
  border: 1px solid rgba(235, 221, 195, 0.22);
  color: var(--color-cream);
  width: 38px;
  height: 38px;
  border-radius: 8px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.drawer-nav-link {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #D6CEC1;
  text-decoration: none;
  letter-spacing: 0.06em;
  padding: 8px 0;
  border-bottom: 1px solid rgba(235, 221, 195, 0.08);
  transition: color 0.25s ease, padding-left 0.25s ease;
}

.drawer-nav-link.active,
.drawer-nav-link:hover {
  color: var(--color-cream);
  padding-left: 8px;
}

.drawer-back-cover {
  margin-top: 18px;
  padding: 12px 16px;
  background: rgba(235, 221, 195, 0.1);
  border: 1px solid rgba(235, 221, 195, 0.28);
  color: var(--color-cream);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: background 0.25s ease;
}

.drawer-back-cover:hover {
  background: rgba(235, 221, 195, 0.2);
}

/* FIXED CHROME: Left Vertical Rail (Lines + Social Icons) */
.gilber-left-rail {
  position: absolute;
  left: clamp(20px, 2.3vw, 40px);
  top: clamp(92px, 11.5vh, 130px);
  bottom: clamp(82px, 10.5vh, 118px);
  width: 24px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.rail-line {
  width: 1px;
  background-color: rgba(235, 221, 195, 0.28);
  display: block;
}

.rail-line-top {
  flex: 1.15;
}

.rail-line-bottom {
  flex: 0.85;
}

.gilber-socials {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 2.6vh, 30px);
  padding: clamp(22px, 2.8vh, 34px) 0;
}

.gilber-social-link {
  color: #D6CEC1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.25s ease, transform 0.25s ease, filter 0.25s ease;
}

.gilber-social-link:hover {
  color: var(--color-cream);
  transform: scale(1.12);
  filter: drop-shadow(0 0 8px rgba(235, 221, 195, 0.45));
}

/* FIXED CHROME: Bottom-Left Copyright */
.gilber-copyright {
  position: absolute;
  left: clamp(20px, 2.3vw, 40px);
  bottom: clamp(24px, 3.4vh, 38px);
  z-index: 40;
  font-family: var(--font-heading);
  font-size: clamp(12px, 0.88vw, 14px);
  font-weight: 700;
  color: #D6CEC1;
  letter-spacing: 0.01em;
}

/* FIXED CHROME: Right Vertical Scroll Bar */
.gilber-right-rail {
  position: absolute;
  right: clamp(18px, 1.8vw, 32px);
  top: 19.5%;
  height: 51.5vh;
  width: 3px;
  z-index: 40;
  background-color: rgba(235, 221, 195, 0.22);
  overflow: hidden;
}

.gilber-rail-red {
  width: 100%;
  height: 12.5%;
  background-color: var(--color-cream);
  box-shadow: 0 0 10px rgba(235, 221, 195, 0.55);
  display: block;
  transition: height 0.75s var(--ease-in-out-smooth);
}

.gilber-rail-white {
  display: none;
}

/* ==========================================================================
   PAGE-PILING 8-SECTION SLIDES STACK & TRANSITION CHOREOGRAPHY
   ========================================================================== */
.gilber-slides-Wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 10;
}

.gilber-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 45%, #181818 0%, #121212 55%, #0e0e0e 100%);
  overflow: hidden;
  will-change: transform, opacity;
  transform: translate3d(0, 100%, 0);
  transition: transform 0.85s var(--ease-in-out-smooth), opacity 0.85s var(--ease-in-out-smooth);
  z-index: 1;
}

/* Previous slides stay underneath with subtle depth scale */
.gilber-slide.is-prev {
  transform: translate3d(0, -18%, 0) scale(0.96);
  opacity: 0.4;
  z-index: 2;
  pointer-events: none;
}

/* Active slide sits full-screen in viewport */
.gilber-slide.active {
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
  z-index: 5;
  pointer-events: auto;
}

/* Upcoming slides wait below the viewport (100% down) */
.gilber-slide.is-next {
  transform: translate3d(0, 100%, 0) scale(1);
  opacity: 1;
  z-index: 6;
  pointer-events: none;
}

/* ==========================================================================
   INITIAL HERO ENTRANCE & SCROLL-TRIGGERED BOTTOM-TO-TOP REVEAL CHOREOGRAPHY
   ========================================================================== */

/* Fixed Frame Chrome Entrance on Website Open */
.chrome-reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity 0.9s var(--ease-out-expo) 0.08s, transform 0.9s var(--ease-out-expo) 0.08s;
}

body.is-loaded .chrome-reveal {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Hero Portrait Cutout Smooth Entrance & Slide Reveal */
.hero-portrait-reveal {
  opacity: 0;
  transform: translate3d(0, 42px, 0) scale(0.985);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

body.is-loaded .gilber-slide.active .hero-portrait-reveal {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  transition: opacity 1.05s var(--ease-out-expo) 0.14s, transform 1.15s var(--ease-out-expo) 0.14s;
}

/* Staggered Bottom-to-Top Content Reveal on Every Section */
.reveal-item {
  opacity: 0;
  transform: translate3d(0, 38px, 0);
  will-change: transform, opacity;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

body.is-loaded .gilber-slide.active .reveal-item {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity 0.85s var(--ease-out-expo), transform 0.85s var(--ease-out-expo);
}

body.is-loaded .gilber-slide.active .reveal-item.stagger-1 {
  transition-delay: 0.16s;
}

body.is-loaded .gilber-slide.active .reveal-item.stagger-2 {
  transition-delay: 0.26s;
}

body.is-loaded .gilber-slide.active .reveal-item.stagger-3 {
  transition-delay: 0.36s;
}

body.is-loaded .gilber-slide.active .reveal-item.stagger-4 {
  transition-delay: 0.46s;
}

body.is-loaded .gilber-slide.active .reveal-item.stagger-5 {
  transition-delay: 0.55s;
}

body.is-loaded .gilber-slide.active .reveal-item.stagger-6 {
  transition-delay: 0.64s;
}

@media (prefers-reduced-motion: reduce) {
  .chrome-reveal,
  .hero-portrait-reveal,
  .reveal-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Shared Section Container inside Slides 1..7 */
.gilber-section-container {
  position: relative;
  width: 100%;
  height: 100%;
  padding-left: 13.4%;
  padding-right: clamp(64px, 9vw, 150px);
  padding-top: clamp(96px, 13vh, 140px);
  padding-bottom: clamp(64px, 9vh, 100px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 10;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 3.6vw, 54px);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin-bottom: clamp(18px, 2.8vh, 32px);
}

.section-lead {
  font-family: var(--font-body);
  font-size: clamp(13px, 0.95vw, 15px);
  color: var(--color-cream-dim);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: clamp(22px, 3.4vh, 40px);
}

/* Solid Cream Button (matches red button in reference video using Hero Cream theme) */
.gilber-btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 32px;
  background-color: var(--color-cream);
  color: #111111;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--color-cream);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.25s ease;
}

.gilber-btn-solid:hover {
  background-color: var(--color-cream-light);
  box-shadow: 0 0 26px rgba(235, 221, 195, 0.45);
  transform: translateY(-2px);
}

/* ==========================================================================
   SLIDE 0: HOME (MAIN HERO PORTRAIT & CONTENT)
   ========================================================================== */
.gilber-portrait-wrap {
  position: absolute;
  bottom: 0;
  left: 63.2%;
  transform: translateX(-50%);
  height: 103.5vh;
  height: 103.5dvh;
  width: auto;
  z-index: 1;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.gilber-portrait-img {
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: bottom center;
  display: block;
  filter: brightness(0.95) contrast(1.05);
  -webkit-mask-image: radial-gradient(ellipse 68% 88% at 50% 52%, #000 56%, rgba(0, 0, 0, 0.65) 74%, transparent 96%);
  mask-image: radial-gradient(ellipse 68% 88% at 50% 52%, #000 56%, rgba(0, 0, 0, 0.65) 74%, transparent 96%);
}

.gilber-main-content {
  position: absolute;
  left: 13.4%;
  top: 56%;
  transform: translateY(-50%);
  z-index: 15;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.gilber-play-btn {
  width: clamp(68px, 5.5vw, 86px);
  height: clamp(68px, 5.5vw, 86px);
  border-radius: 50%;
  border: 1.8px solid rgba(235, 221, 195, 0.78);
  background: radial-gradient(circle, rgba(235, 221, 195, 0.06) 0%, transparent 75%);
  color: var(--color-cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-bottom: clamp(42px, 7.8vh, 84px);
  transition: transform 0.35s var(--ease-out-expo), border-color 0.3s ease, box-shadow 0.35s ease, background 0.3s ease;
}

.gilber-play-btn svg {
  transform: translateX(2px);
  transition: transform 0.3s ease;
}

.gilber-play-btn:hover {
  border-color: var(--color-cream-light);
  background: rgba(235, 221, 195, 0.14);
  box-shadow: 0 0 28px rgba(235, 221, 195, 0.35), inset 0 0 12px rgba(235, 221, 195, 0.12);
  transform: scale(1.06);
}

.gilber-role {
  font-family: var(--font-heading);
  font-size: clamp(14px, 1.05vw, 17px);
  font-weight: 600;
  color: #D6CEC1;
  margin: 0 0 clamp(10px, 1.5vh, 18px) 0;
  padding: 0;
  letter-spacing: 0.015em;
  text-align: left;
}

.gilber-heading {
  font-family: var(--font-heading);
  font-size: clamp(56px, 6.8vw, 108px);
  font-weight: 800;
  color: var(--color-cream);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 clamp(20px, 3vh, 34px) 0;
  padding: 0;
  text-indent: -0.058em;
  text-align: left;
  text-shadow: 0 0 40px rgba(235, 221, 195, 0.06);
}

.gilber-description {
  font-family: var(--font-body);
  font-size: clamp(12.5px, 0.9vw, 14.5px);
  font-weight: 400;
  color: var(--color-cream-dim);
  line-height: 1.65;
  margin: 0;
  padding: 0;
  max-width: 365px;
  text-align: left;
}

/* ==========================================================================
   SLIDE 1: ABOUT (EXPERIENCE BOX & ANIMATED SKILL BARS)
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(320px, 560px);
  align-items: center;
  justify-content: space-between;
  gap: clamp(36px, 6vw, 100px);
  width: 100%;
}

.about-exp-box {
  border: 1px solid rgba(235, 221, 195, 0.42);
  padding: clamp(32px, 4.5vw, 56px) clamp(28px, 3.8vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: clamp(280px, 44vh, 390px);
  position: relative;
}

.about-exp-number {
  font-family: var(--font-heading);
  font-size: clamp(92px, 10vw, 148px);
  font-weight: 800;
  line-height: 0.9;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.about-exp-label {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
}

.exp-dash {
  flex: 1;
  height: 1px;
  background-color: rgba(235, 221, 195, 0.45);
  margin-bottom: 10px;
}

.exp-text {
  font-family: var(--font-heading);
  font-size: clamp(15px, 1.25vw, 20px);
  font-weight: 700;
  color: var(--text-primary);
  text-align: right;
  line-height: 1.35;
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.8vh, 30px);
}

.skill-item {
  width: 100%;
}

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

.skill-name {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  text-transform: uppercase;
}

.skill-pct {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-cream);
  font-variant-numeric: tabular-nums;
}

.skill-track {
  width: 100%;
  height: 4px;
  background-color: rgba(235, 221, 195, 0.2);
  position: relative;
}

.skill-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background-color: var(--color-cream);
  box-shadow: 0 0 12px rgba(235, 221, 195, 0.45);
  transition: width 1.15s var(--ease-out-expo) 0.35s;
}

.skill-dot {
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background-color: var(--color-cream);
  box-shadow: 0 0 10px rgba(235, 221, 195, 0.8);
}

/* ==========================================================================
   SLIDE 2: PROJECTS (FULL-SCREEN CASE STUDY SHOWCASE)
   ========================================================================== */
.project-bg-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.project-bg-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(11, 11, 11, 0.94) 0%,
    rgba(11, 11, 11, 0.84) 48%,
    rgba(11, 11, 11, 0.38) 100%
  );
  pointer-events: none;
}

.project-bg-visual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.65;
  transition: opacity 0.6s ease, transform 0.8s var(--ease-out-expo);
}

.project-macro-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.project-content-wrap {
  z-index: 10;
  justify-content: center;
}

.project-info-block {
  max-width: 600px;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.project-title {
  font-family: var(--font-heading);
  font-size: clamp(36px, 4.5vw, 68px);
  font-weight: 800;
  color: #FFFDF9;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: clamp(18px, 3vh, 32px);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.85);
}

.project-desc {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.12vw, 17.5px);
  font-weight: 500;
  color: #F4EFE6;
  line-height: 1.75;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.92), 0 1px 4px rgba(0, 0, 0, 0.8);
  margin-bottom: clamp(28px, 4.8vh, 48px);
}

.project-next-arrow {
  position: absolute;
  right: clamp(44px, 4.8vw, 78px);
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(235, 221, 195, 0.16) 0%, rgba(235, 221, 195, 0.04) 70%, transparent 100%);
  border: 1px solid rgba(235, 221, 195, 0.42);
  color: var(--color-cream-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  z-index: 20;
  box-shadow: 0 0 18px rgba(235, 221, 195, 0.32), inset 0 0 10px rgba(235, 221, 195, 0.12);
  transition: color 0.25s ease, transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  animation: projectArrowGlow 2.2s infinite ease-in-out;
}

.project-next-arrow svg {
  width: 16px;
  height: 28px;
  transform: translateX(1px);
  filter: drop-shadow(0 0 7px rgba(246, 239, 227, 0.8));
  transition: transform 0.3s var(--ease-out-expo), filter 0.3s ease;
}

@keyframes projectArrowGlow {
  0%, 100% {
    box-shadow: 0 0 14px rgba(235, 221, 195, 0.25), inset 0 0 8px rgba(235, 221, 195, 0.08);
    border-color: rgba(235, 221, 195, 0.34);
  }
  50% {
    box-shadow: 0 0 26px rgba(235, 221, 195, 0.55), 0 0 42px rgba(235, 221, 195, 0.22), inset 0 0 14px rgba(235, 221, 195, 0.2);
    border-color: rgba(246, 239, 227, 0.72);
  }
}

.project-next-arrow:hover,
.project-next-arrow:focus-visible {
  animation: none;
  color: #FFFDF9;
  border-color: #FFFDF9;
  background: radial-gradient(circle, rgba(235, 221, 195, 0.28) 0%, rgba(235, 221, 195, 0.08) 75%, transparent 100%);
  box-shadow: 0 0 28px rgba(246, 239, 227, 0.65), 0 0 52px rgba(235, 221, 195, 0.35), inset 0 0 16px rgba(235, 221, 195, 0.25);
  transform: translateY(-50%) translateX(4px) scale(1.06);
}

.project-next-arrow:hover svg,
.project-next-arrow:focus-visible svg {
  transform: translateX(3px);
  filter: drop-shadow(0 0 10px #FFFFFF) drop-shadow(0 0 20px rgba(235, 221, 195, 0.95));
}

.project-dots {
  position: absolute;
  left: 13.4%;
  bottom: clamp(32px, 5.5vh, 56px);
  display: flex;
  align-items: center;
  gap: 14px;
}

.project-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background-color: rgba(235, 221, 195, 0.35);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.project-dot.active,
.project-dot:hover {
  background-color: var(--color-cream);
  transform: scale(1.25);
  box-shadow: 0 0 10px rgba(235, 221, 195, 0.65);
}

/* ==========================================================================
   SLIDE 3: EDUCATION & EXPERIENCE ROWS
   ========================================================================== */
.edu-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(24px, 4.2vh, 48px);
}

.edu-top-row .section-title {
  margin-bottom: 0;
}

.edu-list {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.edu-row {
  display: grid;
  grid-template-columns: 140px 220px 1fr;
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  padding: clamp(20px, 3.2vh, 34px) 0;
  border-bottom: 1px solid rgba(235, 221, 195, 0.16);
}

.edu-row:last-child {
  border-bottom: none;
}

.edu-brand-mark {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  color: var(--color-cream);
  display: inline-flex;
  align-items: center;
}

.edu-year {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}

.edu-org {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-cream);
}

.edu-desc-col {
  font-family: var(--font-body);
  font-size: clamp(12.5px, 0.9vw, 14.5px);
  color: var(--color-cream-dim);
  line-height: 1.65;
}

/* ==========================================================================
   SLIDE 4: TESTIMONIALS / REVIEWS
   ========================================================================== */
.testimonial-bg-decor {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 25% 25%, rgba(235, 221, 195, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: flex-end;
  gap: clamp(36px, 6vw, 96px);
  width: 100%;
}

.testi-quote-icon {
  color: var(--color-cream);
  margin-bottom: clamp(28px, 5vh, 56px);
  filter: drop-shadow(0 0 18px rgba(235, 221, 195, 0.2));
}

.testi-Display-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.2vw, 46px);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.testi-right-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testi-quote-text {
  font-family: var(--font-body);
  font-size: clamp(13.5px, 1vw, 15.5px);
  color: var(--color-cream-dim);
  line-height: 1.75;
  margin-bottom: clamp(28px, 4.5vh, 44px);
  min-height: 84px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.testi-author-wrap {
  margin-bottom: clamp(24px, 3.8vh, 36px);
  transition: opacity 0.3s ease;
}

.testi-author-name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.testi-author-role {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-cream-dim);
}

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

.testi-arrow-btn {
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid rgba(235, 221, 195, 0.32);
  color: var(--color-cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.testi-arrow-btn:hover {
  background-color: var(--color-cream);
  color: #111111;
  border-color: var(--color-cream);
  transform: translateY(-2px);
}

/* ==========================================================================
   SLIDE 5: BLOG (RECENT NEWS 3-COLUMN CARDS)
   ========================================================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.6vw, 38px);
  width: 100%;
  margin-top: clamp(12px, 2vh, 24px);
}

.blog-card {
  position: relative;
  height: clamp(240px, 42vh, 360px);
  background: #141414;
  border: 1px solid rgba(235, 221, 195, 0.14);
  overflow: hidden;
  cursor: pointer;
  outline: none;
  display: block;
  text-decoration: none;
  transition: border-color 0.35s ease, transform 0.35s var(--ease-out-expo), box-shadow 0.35s ease;
}

.blog-card:hover,
.blog-card:focus-visible {
  border-color: var(--color-cream);
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
}

.blog-card-visual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.6s var(--ease-out-expo);
}

.blog-card:hover .blog-card-visual {
  transform: scale(1.06);
}

.blog-svg-art {
  width: 100%;
  height: 100%;
  display: block;
}

.blog-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.96) 0%, rgba(10, 10, 10, 0.72) 48%, rgba(10, 10, 10, 0.22) 100%);
  padding: clamp(16px, 2vw, 24px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.blog-date {
  font-family: var(--font-body);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--color-cream);
  letter-spacing: 0.08em;
  font-weight: 500;
  margin-bottom: 6px;
}

.blog-card-title {
  font-family: var(--font-heading);
  font-size: clamp(14.5px, 1.05vw, 17px);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.36;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.blog-card-desc {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 400;
  font-style: normal;
  color: var(--color-cream-dim);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}

.blog-card-cta {
  font-family: var(--font-heading);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-cream);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0.85;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.blog-card:hover .blog-card-cta {
  opacity: 1;
  transform: translateX(4px);
}

/* ==========================================================================
   SLIDE 7: CONTACT (INFO + FORM)
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: start;
  gap: clamp(36px, 6vw, 96px);
  width: 100%;
}

.contact-lead {
  font-family: var(--font-body);
  font-size: clamp(13px, 0.95vw, 15px);
  color: var(--color-cream-dim);
  line-height: 1.7;
  margin-bottom: clamp(24px, 4vh, 40px);
  max-width: 380px;
}

.contact-address {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: clamp(20px, 3.2vh, 32px);
}

.contact-phone-big {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.1vw, 30px);
  font-weight: 800;
  margin-bottom: clamp(16px, 2.5vh, 26px);
}

.contact-phone-big a {
  color: var(--color-cream);
  text-decoration: none;
  transition: opacity 0.25s ease;
}

.contact-phone-big a:hover {
  opacity: 0.85;
}

.contact-email a {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-cream-dim);
  text-decoration: none;
  transition: color 0.25s ease;
}

.contact-email a:hover {
  color: var(--color-cream);
}

.contact-form-heading {
  font-family: var(--font-heading);
  font-size: clamp(20px, 1.9vw, 28px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: clamp(24px, 4vh, 40px);
}

.cream-accent-text {
  color: var(--color-cream);
}

.gilber-contact-form {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.8vh, 28px);
}

.form-group {
  width: 100%;
}

.gilber-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(235, 221, 195, 0.28);
  padding: 12px 0;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.25s ease;
}

.gilber-input::placeholder {
  color: rgba(235, 221, 195, 0.5);
}

.gilber-input:focus {
  border-bottom-color: var(--color-cream);
}

.gilber-textarea {
  resize: none;
}

.form-submit-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 8px;
}

.form-status-msg {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-cream);
}

/* ==========================================================================
   INTERACTIVE MODAL (PROJECT / VIDEO / BLOG / RESUME)
   ========================================================================== */
.gilber-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.gilber-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.gilber-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 8, 0.82);
  backdrop-filter: blur(10px);
}

.gilber-modal-box {
  position: relative;
  z-index: 2;
  width: min(600px, 92vw);
  background: #161616;
  border: 1px solid rgba(235, 221, 195, 0.28);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.75);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s var(--ease-out-expo);
}

.gilber-modal.open .gilber-modal-box {
  transform: translateY(0) scale(1);
}

.gilber-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid rgba(235, 221, 195, 0.24);
  color: var(--color-cream);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.gilber-modal-Tag {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-cream);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.gilber-modal-title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.gilber-modal-body {
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--color-cream-dim);
  line-height: 1.7;
  margin-bottom: 24px;
}

.gilber-modal-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(235, 221, 195, 0.14);
  font-family: var(--font-heading);
  font-size: 13px;
  color: var(--color-cream);
}

/* ==========================================================================
   ENTRANCE & INTERACTION ANIMATIONS (PAGE 1)
   ========================================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(-8px);
  animation: fadeInTop 1s var(--ease-out-expo) forwards;
}

.fade-in.bottom-left, .fade-in.bottom-right {
  transform: translateY(8px);
  animation: fadeInBottom 1s var(--ease-out-expo) forwards;
}

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

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

.portfolio-text-layer .text-char {
  opacity: 0;
  transform: translateY(60px) scaleX(0.95) scaleY(1.3);
  animation: letterEntrance 1.2s var(--ease-out-expo) forwards;
}

.solid-layer .text-char:nth-child(1), .outline-layer .text-char:nth-child(1) { animation-delay: 0.1s; }
.solid-layer .text-char:nth-child(2), .outline-layer .text-char:nth-child(2) { animation-delay: 0.15s; }
.solid-layer .text-char:nth-child(3), .outline-layer .text-char:nth-child(3) { animation-delay: 0.2s; }
.solid-layer .text-char:nth-child(4), .outline-layer .text-char:nth-child(4) { animation-delay: 0.25s; }
.solid-layer .text-char:nth-child(5), .outline-layer .text-char:nth-child(5) { animation-delay: 0.3s; }
.solid-layer .text-char:nth-child(6), .outline-layer .text-char:nth-child(6) { animation-delay: 0.35s; }
.solid-layer .text-char:nth-child(7), .outline-layer .text-char:nth-child(7) { animation-delay: 0.4s; }
.solid-layer .text-char:nth-child(8), .outline-layer .text-char:nth-child(8) { animation-delay: 0.45s; }
.solid-layer .text-char:nth-child(9), .outline-layer .text-char:nth-child(9) { animation-delay: 0.5s; }

@keyframes letterEntrance {
  to {
    opacity: 1;
    transform: translateY(0) scaleX(1) scaleY(1.36);
  }
}

.portrait-container {
  opacity: 0;
  transform: translateX(-50%) translateY(40px);
  animation: portraitEntrance 1.4s var(--ease-out-expo) 0.3s forwards;
}

@keyframes portraitEntrance {
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS (ALL DEVICES: DESKTOP, TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 1180px) {
  .gilber-nav {
    left: 12%;
    gap: 16px;
  }
}

@media (max-width: 1024px) {
  .gilber-nav {
    display: none;
  }

  .gilber-menu-toggle {
    display: inline-flex;
  }

  .gilber-portrait-wrap {
    left: 65%;
    height: 92dvh;
  }

  .gilber-main-content {
    left: 11%;
  }

  .gilber-section-container {
    padding-left: 11%;
    padding-right: 64px;
  }

  .about-grid,
  .testimonials-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-exp-box {
    min-height: auto;
    flex-direction: row;
    align-items: center;
    padding: 22px 28px;
    gap: 28px;
  }

  .about-exp-label {
    margin-top: 0;
    flex: 1;
  }

  .edu-row {
    grid-template-columns: 70px 160px 1fr;
    gap: 18px;
    padding: 16px 0;
  }

  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .blog-card {
    height: 230px;
  }
}

@media (max-width: 768px) {
  .gilber-section-container {
    padding-left: 48px;
    padding-right: 32px;
    padding-top: 76px;
    padding-bottom: 46px;
    overflow-y: auto;
    justify-content: flex-start;
  }

  #slide-about .gilber-section-container,
  #slide-experience .gilber-section-container,
  #slide-education .gilber-section-container,
  #slide-testimonials .gilber-section-container,
  #slide-blog .gilber-section-container,
  #slide-contact .gilber-section-container {
    justify-content: center;
  }


  /* Projects Mobile: keep background visual in upper area & move main content lower down */
  #slide-projects .gilber-section-container {
    justify-content: flex-end;
    padding-bottom: clamp(76px, 12.5dvh, 104px);
  }

  .project-bg-stage::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to bottom,
      rgba(14, 14, 14, 0.12) 0%,
      rgba(14, 14, 14, 0.55) 44%,
      rgba(12, 12, 12, 0.92) 72%,
      #0e0e0e 100%
    );
    pointer-events: none;
  }

  .project-bg-visual {
    opacity: 0.48;
    transform: translateY(-14%) scale(0.94);
  }

  .project-info-block {
    max-width: calc(100% - 54px);
  }

  /* Home Hero on Tablet/Phone: position text lower so portrait stays clear */
  .gilber-main-content {
    left: 48px;
    right: 28px;
    top: auto;
    bottom: clamp(56px, 9dvh, 84px);
    transform: none;
  }

  .gilber-play-btn {
    width: 58px;
    height: 58px;
    margin-bottom: 20px;
  }

  /* About Section Mobile Optimization: cleaner, less crowded typography */
  .about-grid {
    gap: 18px;
  }

  .about-exp-box {
    padding: 14px 18px;
    gap: 16px;
  }

  .about-exp-number {
    font-size: 52px;
  }

  .exp-text {
    font-size: 13px;
    line-height: 1.25;
  }

  #slide-about .section-title {
    font-size: clamp(20px, 4.8vw, 25px);
    line-height: 1.22;
    margin-bottom: 8px;
  }

  #slide-about .section-lead {
    font-size: 12px;
    line-height: 1.52;
    margin-bottom: 16px;
  }

  .skills-list {
    gap: 12px;
  }

  .skill-header {
    margin-bottom: 6px;
    gap: 8px;
  }

  .skill-name {
    font-size: 10.5px;
    letter-spacing: 0.04em;
  }

  .skill-pct {
    font-size: 11.5px;
  }

  .skill-track {
    height: 3px;
  }

  .skill-dot {
    width: 9px;
    height: 9px;
  }

  .edu-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 10px 0;
  }

  .edu-brand-mark {
    font-size: 20px;
  }

  .edu-org {
    font-size: 14.5px;
  }

  .edu-desc-col {
    font-size: 12px;
    line-height: 1.5;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .blog-card {
    height: 124px;
  }

  .project-next-arrow {
    right: 26px;
    top: 54%;
    width: 38px;
    height: 38px;
  }

  .project-next-arrow svg {
    width: 13px;
    height: 22px;
  }

  .project-dots {
    left: 48px;
    bottom: 26px;
  }
}

@media (max-width: 640px) {
  /* Home Hero Mobile: portrait clearly visible above, text cleanly seated lower down */
  .gilber-portrait-wrap {
    left: 56%;
    height: 84dvh;
    opacity: 0.9;
  }

  .gilber-main-content {
    left: 44px;
    right: 24px;
    top: auto;
    bottom: clamp(50px, 8dvh, 72px);
    transform: none;
  }

  .gilber-play-btn {
    width: 52px;
    height: 52px;
    margin-bottom: 16px;
  }

  .gilber-role {
    font-size: 13px;
    margin-bottom: 6px;
  }

  .gilber-heading {
    font-size: clamp(44px, 11.5vw, 54px);
    margin-bottom: 12px;
  }

  .gilber-description {
    font-size: 12px;
    line-height: 1.55;
    max-width: 310px;
  }

  .gilber-left-rail {
    left: 12px;
  }

  .gilber-copyright {
    left: 12px;
    bottom: 14px;
    font-size: 10.5px;
  }

  .gilber-right-rail {
    right: 10px;
  }
}

@media (max-width: 480px) {
  .gilber-header {
    padding: 14px 16px;
  }

  .gilber-portrait-wrap {
    left: 55%;
    height: 80dvh;
  }

  .gilber-main-content {
    left: 40px;
    right: 22px;
    top: auto;
    bottom: clamp(46px, 7.2dvh, 64px);
    transform: none;
  }

  .gilber-play-btn {
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
  }

  .gilber-heading {
    font-size: 44px;
    margin-bottom: 10px;
  }

  .gilber-description {
    font-size: 11.5px;
    line-height: 1.5;
  }

  .gilber-section-container {
    padding-left: 40px;
    padding-right: 22px;
    padding-top: 68px;
    padding-bottom: 38px;
  }

  .section-title {
    font-size: 24px;
    margin-bottom: 10px;
  }

  .section-lead {
    font-size: 11.5px;
    line-height: 1.5;
    margin-bottom: 14px;
  }

  /* Compact, uncluttered About section on small phones */
  .about-grid {
    gap: 14px;
  }

  .about-exp-box {
    padding: 12px 16px;
    gap: 14px;
  }

  .about-exp-number {
    font-size: 44px;
  }

  .exp-text {
    font-size: 12px;
    line-height: 1.22;
  }

  #slide-about .section-title {
    font-size: clamp(18px, 5vw, 21px);
    line-height: 1.22;
    margin-bottom: 6px;
  }

  #slide-about .section-lead {
    font-size: 11.2px;
    line-height: 1.48;
    margin-bottom: 14px;
  }

  .skills-list {
    gap: 11px;
  }

  .skill-header {
    margin-bottom: 5px;
  }

  .skill-name {
    font-size: 9.8px;
    letter-spacing: 0.035em;
  }

  .skill-pct {
    font-size: 11px;
  }

  #slide-projects .gilber-section-container {
    justify-content: flex-end;
    padding-bottom: clamp(68px, 11dvh, 88px);
  }

  .project-bg-visual {
    opacity: 0.42;
    transform: translateY(-16%) scale(0.9);
  }

  .project-title {
    font-size: 30px;
    line-height: 1.12;
    margin-bottom: 10px;
  }

  .project-desc {
    font-size: 13.5px;
    font-weight: 500;
    color: #F4EFE6;
    line-height: 1.62;
    margin-bottom: 18px;
  }

  .project-next-arrow {
    right: 22px;
    top: 52%;
    width: 34px;
    height: 34px;
  }

  .project-next-arrow svg {
    width: 12px;
    height: 20px;
  }

  .project-dots {
    left: 40px;
    bottom: 22px;
  }

  .edu-top-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
  }

  .gilber-btn-solid {
    padding: 10px 18px;
    font-size: 10.5px;
  }

  .testi-quote-icon {
    margin-bottom: 14px;
  }

  .testi-quote-icon svg {
    width: 40px;
    height: 32px;
  }

  .testi-Display-title {
    font-size: 19px;
    line-height: 1.26;
  }

  .testi-quote-text {
    font-size: 12px;
    line-height: 1.55;
    margin-bottom: 16px;
    min-height: auto;
  }

  .testi-author-wrap {
    margin-bottom: 16px;
  }

  .testi-author-name {
    font-size: 15px;
  }

  .testi-arrow-btn {
    width: 38px;
    height: 38px;
  }

  .contact-grid {
    gap: 16px;
  }

  .contact-lead {
    font-size: 11.5px;
    margin-bottom: 10px;
  }

  .contact-address,
  .contact-phone-big {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .contact-form-heading {
    font-size: 15.5px;
    margin-bottom: 10px;
  }

  .gilber-contact-form {
    gap: 10px;
  }

  .gilber-input {
    padding: 8px 0;
    font-size: 12.5px;
  }
}
