@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600&family=Space+Mono:ital,wght@0,400;0,700;1,400&family=Syne:wght@600;700;800;900&display=swap');

:root {
  --bg: #0b0908;
  --surface: #110f0d;
  --surface-1: #171411;
  --surface-2: #1f1a16;
  --text: #ffffff;
  --text-light: #a8a29e;
  --border: rgba(249, 158, 26, 0.18);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  --radius: 24px;
  --container: 1440px;
  --accent: #f99e1a;
  --accent-gradient: linear-gradient(135deg, #fcb117 0%, #f88e1e 50%, #f47b20 100%);
  --agape-orange: #f39200;

  /* Brand Signature Palette - Radiant Golden Amber & Warm Sunset Orange */
  --behance-lime: #f99e1a;
  --behance-lime-hover: #ffb42e;
  --behance-lime-glow: rgba(249, 158, 26, 0.45);
  --behance-lime-dim: rgba(249, 158, 26, 0.14);
  --behance-blue: #0d52ff;
  --behance-blue-glow: rgba(13, 82, 255, 0.4);
  --canvas-obsidian: #0b0908;
  --canvas-obsidian-2: #110f0d;
  --canvas-card: #14110e;
  --canvas-card-hover: #1c1813;
  --canvas-border: rgba(249, 158, 26, 0.18);
  --canvas-border-hover: rgba(249, 158, 26, 0.5);
  --checkerboard-c1: #ffffff;
  --checkerboard-c2: #e4e8ed;

  /* Typography */
  --font-condensed: 'Bebas Neue', 'Syne', sans-serif;
  --font-display: 'Syne', 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Mono', monospace;
}

body.dark {
  --bg: #0b0908;
  --surface: #110f0d;
  --surface-1: #171411;
  --surface-2: #1f1a16;
  --text: #ffffff;
  --text-light: #a8a29e;
  --border: rgba(249, 158, 26, 0.18);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  --canvas-obsidian: #0b0908;
  --canvas-obsidian-2: #110f0d;
  --canvas-card: #14110e;
  --canvas-card-hover: #1c1813;
  --canvas-border: rgba(249, 158, 26, 0.18);
  --canvas-border-hover: rgba(249, 158, 26, 0.5);
  --behance-lime: #f99e1a;
  --behance-lime-hover: #ffb42e;
  --behance-lime-glow: rgba(249, 158, 26, 0.45);
  --behance-lime-dim: rgba(249, 158, 26, 0.14);
}

body:not(.dark) {
  --bg: #faf8f5;
  --surface: #ffffff;
  --surface-1: #f5efe8;
  --surface-2: #ebdccf;
  --text: #181512;
  --text-light: #635c55;
  --border: rgba(24, 21, 18, 0.12);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
  --canvas-obsidian: #faf8f5;
  --canvas-obsidian-2: #f5efe8;
  --canvas-card: #ffffff;
  --canvas-card-hover: #fcf9f5;
  --canvas-border: rgba(24, 21, 18, 0.12);
  --canvas-border-hover: rgba(217, 98, 0, 0.45);
  --behance-lime: #d96200;
  --behance-lime-hover: #b84e00;
  --behance-lime-glow: rgba(217, 98, 0, 0.3);
  --behance-lime-dim: rgba(217, 98, 0, 0.1);
}

/* Smooth transitions when toggling theme */
body.theme-transitioning,
body.theme-transitioning * {
  transition: background-color 0.35s ease !important, background 0.35s ease !important, color 0.35s ease !important, border-color 0.35s ease !important, box-shadow 0.35s ease !important;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  transition: background 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  animation: fadeInBody 1s ease-out;
  padding-top: 76px;
}

section[id] {
  scroll-margin-top: 80px;
}

/* Ensure headings and paragraphs use primary text color for readability */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 0.5em;
}

p {
  color: var(--text);
  margin-bottom: 1em;
}

/* Links and buttons */
a,
button {
  color: var(--text);
}

@keyframes fadeInBody {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Scroll Progress Bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(to right, #fcb117, #f88e1e, #f47b20);
  z-index: 10001;
  transition: width 0.1s ease;
}

/* Animation Classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

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

.stagger-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards;
}

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

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

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

.section {
  padding: 90px 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 55px;
}

.personal-projects-header {
  margin-top: 80px;
  margin-bottom: 45px;
}

.section-tag {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 20px;
  background: var(--surface);
}

.section-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
}

/* =========================
   NAVBAR (FROZEN / FIXED ON SCROLL)
========================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999;
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.22);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

body.dark .navbar,
body.dark #custom-nav {
  background: rgba(7, 13, 8, 0.9);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.4);
}

body:not(.dark) .navbar,
body:not(.dark) #custom-nav {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}

.nav-container {
  max-width: var(--container);
  margin: auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  font-weight: 800;
  font-size: 1.5rem;
}

/* Brand Logo in Navbar */
.nav-brand-wrap {
  display: inline-flex !important;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: transform 0.25s ease;
}

.nav-brand-wrap:hover {
  transform: translateY(-1px);
}

.nav-brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: contain;
  box-shadow: 0 0 15px rgba(249, 158, 26, 0.35);
  border: 1.5px solid rgba(249, 158, 26, 0.4);
  background: #000000;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.nav-brand-wrap:hover .nav-brand-logo {
  transform: scale(1.06) rotate(5deg);
  box-shadow: 0 0 22px rgba(249, 158, 26, 0.6);
  border-color: var(--behance-lime);
}

.nav-brand-text-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.nav-brand-name {
  font-family: var(--font-condensed);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--text);
  line-height: 1;
  text-transform: uppercase;
}

.nav-brand-sub {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--behance-lime);
  letter-spacing: 1.5px;
  line-height: 1;
  text-transform: uppercase;
}

/* Hero Brand Pill */
.hero-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(249, 158, 26, 0.08);
  border: 1px solid rgba(249, 158, 26, 0.25);
  padding: 6px 18px 6px 8px;
  border-radius: 999px;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), 0 0 15px rgba(249, 158, 26, 0.15);
  transition: all 0.3s ease;
}

.hero-brand-pill:hover {
  transform: translateY(-2px);
  border-color: var(--behance-lime);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3), 0 0 20px var(--behance-lime-glow);
  background: rgba(249, 158, 26, 0.12);
}

.hero-brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: contain;
  border: 1px solid rgba(249, 158, 26, 0.4);
  background: #000000;
  flex-shrink: 0;
}

.hero-brand-pill-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.hero-brand-pill-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--behance-lime);
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1;
}

.hero-brand-pill-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-links li a {
  color: var(--text-light);
  font-weight: 600;
  transition: 0.3s ease;
}

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

/* ==========================================================================
   NAVBAR DROPDOWN (POSTS & SHOWCASE MEGA MENU)
   ========================================================================== */
.nav-dropdown-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 4px 0;
  color: var(--text-light);
  font-weight: 600;
  transition: all 0.25s ease;
  user-select: none;
}

.nav-dropdown-toggle:hover {
  color: var(--text);
}

.nav-dropdown-toggle .nav-caret {
  font-size: 0.7rem;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-light);
}

.nav-dropdown-item.open .nav-dropdown-toggle .nav-caret {
  transform: rotate(180deg);
  color: var(--behance-lime);
}

/* Floating Dropdown Card */
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 270px;
  background: rgba(17, 15, 13, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--canvas-border);
  border-radius: 18px;
  padding: 8px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 20px rgba(249, 158, 26, 0.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
}

/* Dropdown Top Caret Pointer */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: rgba(17, 15, 13, 0.95);
  border-left: 1px solid var(--canvas-border);
  border-top: 1px solid var(--canvas-border);
}

/* Click Triggered Open State */
.nav-dropdown-item.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Light Theme Styling */
body:not(.dark) .nav-dropdown-menu {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(24, 21, 18, 0.12);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

body:not(.dark) .nav-dropdown-menu::before {
  background: rgba(255, 255, 255, 0.96);
  border-left: 1px solid rgba(24, 21, 18, 0.12);
  border-top: 1px solid rgba(24, 21, 18, 0.12);
}

/* Dropdown Links */
.nav-dropdown-menu li {
  width: 100%;
}

.dropdown-link {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
  color: var(--text) !important;
}

.dropdown-link:hover {
  background: rgba(249, 158, 26, 0.14);
  transform: translateX(3px);
}

body:not(.dark) .dropdown-link:hover {
  background: rgba(217, 98, 0, 0.08);
}

.dropdown-link-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--behance-lime);
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.dropdown-link:hover .dropdown-link-icon {
  background: var(--behance-lime);
  color: #000000;
  transform: scale(1.06);
}

.dropdown-link-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-align: left;
}

.dropdown-link-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.dropdown-link-desc {
  font-size: 0.72rem;
  color: var(--text-light);
  font-weight: 500;
  line-height: 1.2;
}

/* Mobile Drawer Responsive Adaptation */
@media (max-width: 900px) {
  .nav-dropdown-item {
    width: 100%;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .nav-dropdown-toggle {
    width: auto;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 0;
    font-size: 1.1rem;
    color: var(--text);
    font-weight: 600;
  }

  .nav-dropdown-menu {
    position: static;
    transform: none !important;
    display: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    width: 90%;
    min-width: unset;
    box-shadow: none;
    border: 1px solid var(--canvas-border);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 8px;
    margin-top: 10px;
    transition: all 0.25s ease;
  }

  body:not(.dark) .nav-dropdown-menu {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
  }

  .nav-dropdown-item.open .nav-dropdown-menu {
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-dropdown-menu::before {
    display: none;
  }

  .dropdown-link {
    padding: 8px 10px;
    width: 100%;
    text-align: left;
  }
}

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

.nav-socials {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: 10px;
}

.nav-social-link {
  font-size: 1.1rem;
  color: var(--text);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface-2);
}

.nav-social-link span {
  font-size: 0.85rem;
  font-weight: 700;
  display: none;
}

@media (min-width: 1100px) {
  .nav-social-link span {
    display: inline;
  }
}

.nav-social-link:hover {
  color: #fff;
  background: #417dfc;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(65, 125, 252, 0.3);
}

.theme-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 10px 12px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  transform: scale(1.08);
  background: var(--surface-2);
  box-shadow: 0 4px 12px var(--shadow);
}

.theme-toggle:active {
  transform: scale(0.92);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  transition: transform 0.3s ease;
  align-items: center;
}

.hamburger span {
  width: 100%;
  height: 2px;
  background-color: var(--text);
  border-radius: 10px;
  transition: all 0.3s ease;
  transform-origin: center;
}

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

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(10px);
}

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

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

  .nav-container {
    flex-direction: row;
  }

  .nav-actions {
    flex-direction: row;
  }

  .navbar {
    background: var(--surface);
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 80px;
    right: 20px;
    width: 220px;
    height: auto;
    background: var(--surface);
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 30px 0;
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    border-radius: 20px;
    box-shadow: 0 15px 35px var(--shadow);
    border: 1px solid var(--border);
  }

  .nav-links.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links li a {
    font-size: 1.1rem;
    color: var(--text);
    font-weight: 600;
  }
}

/* =========================
   RESULTS SECTION
========================= */
.results-section {
  padding: 40px 20px;
  text-align: center;
}

.results-container {
  max-width: 1200px;
  margin: auto;
}

.results-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 55px;
  color: var(--text);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

/* CARD */
.result-card {
  background: var(--surface);
  padding: 40px 20px;
  border-radius: 18px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.result-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.result-card i {
  font-size: 1.9rem;
  color: #60a5fa;
  margin-bottom: 14px;
}

/* NUMBER */
.result-card h3 {
  color: var(--text);
  font-size: 1.6rem;
  margin-bottom: 8px;
  font-weight: 800;
}

/* TEXT */
.result-card p {
  color: var(--text-light);
}

.modal-video {
  width: 100%;
  max-height: 80vh;
  border-radius: 12px;
  background: #000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* YouTube thumbnail card */
.yt-thumb-card {
  position: relative;
  display: block;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: #000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s ease;
}

.yt-thumb-card:hover {
  transform: scale(1.02);
}

.yt-thumb-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  filter: brightness(0.85);
  transition: filter 0.25s ease;
  margin: 0 !important;
}

.yt-thumb-card:hover img {
  filter: brightness(0.65);
}

.yt-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  pointer-events: none;
}

.yt-play-btn {
  transition: transform 0.2s ease;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
}

.yt-thumb-card:hover .yt-play-btn {
  transform: scale(1.15);
}

.yt-watch-label {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  background: rgba(0, 0, 0, 0.45);
  padding: 6px 16px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}


/* =========================
   HERO
========================= */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  padding-top: 50px;
  overflow: hidden;
}

.hero-container {
  max-width: var(--container);
  width: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-content-left {
  flex: 1;
  max-width: 600px;
}

.hero-tag {
  color: #417dfc;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: block;
}

.custom-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 20px;
}

.highlight-blue {
  color: #417dfc;
}

.custom-hero p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 0px;
  line-height: 1.6;
}

.hero-features {
  display: flex;
  gap: 30px;
  margin-bottom: 45px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.blue-icon {
  color: #417dfc;
  font-size: 1.6rem;
}

.feature-item span {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.4;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 24px;
}

.blue-btn {
  background: #417dfc !important;
  color: #fff !important;
  border-radius: 8px !important;
  padding: 16px 32px !important;
  font-weight: 700 !important;
  border: none !important;
}

.blue-btn:hover {
  background: #2a61d8 !important;
  transform: translateY(-3px);
  color: #fff !important;
  box-shadow: 0 10px 20px rgba(65, 125, 252, 0.3);
}

.link-only {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  color: var(--text) !important;
}

.link-only:hover {
  color: #417dfc !important;
  transform: translateY(-3px);
}

.circle-icon {
  font-size: 1.2rem;
}

.hero-right {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  max-width: 100vw;
  max-height: 100vw;
  background: radial-gradient(circle, rgba(65, 125, 252, 0.3) 0%, rgba(0, 0, 0, 0) 65%);
  z-index: 0;
  pointer-events: none;
}

.hero-3d-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  /* above the glow, maybe behind the image */
  perspective: 1000px;
}

.shape {
  position: absolute;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform-style: preserve-3d;
}

.shape::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid #417dfc;
  transform: translateZ(-30px);
  box-shadow: 0 0 20px rgba(65, 125, 252, 0.5);
  opacity: 0.8;
}

body.dark .shape {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark .shape::before {
  border: 2px solid #a855f7;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
}

.shape-1 {
  width: 90px;
  height: 90px;
  border-radius: 20px;
  top: 15%;
  left: 0%;
  animation: float3d-1 14s infinite ease-in-out alternate;
}

.shape-2 {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  bottom: 15%;
  right: -5%;
  animation: float3d-2 18s infinite ease-in-out alternate;
}

.shape-3 {
  width: 70px;
  height: 70px;
  border-radius: 14px;
  top: 70%;
  left: 5%;
  animation: float3d-3 12s infinite ease-in-out alternate;
}

@keyframes float3d-1 {
  0% {
    transform: translateZ(0) rotateX(0deg) rotateY(0deg) translateY(0);
  }

  100% {
    transform: translateZ(80px) rotateX(180deg) rotateY(180deg) translateY(-40px);
  }
}

@keyframes float3d-2 {
  0% {
    transform: translateZ(0) rotateX(0deg) rotateY(0deg) translateX(0);
  }

  100% {
    transform: translateZ(-80px) rotateX(-180deg) rotateY(-180deg) translateX(50px);
  }
}

@keyframes float3d-3 {
  0% {
    transform: translateZ(0) rotateX(0deg) rotateY(0deg) translateY(0);
  }

  100% {
    transform: translateZ(60px) rotateX(180deg) rotateY(-180deg) translateY(40px);
  }
}

.hero-carousel-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 800px;
}

.hero-carousel {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
}

.hero-slides {
  position: relative;
  width: 100%;
  height: auto !important;
  /* Allow container to fit the image */
  min-height: 300px;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.hero-slide.active {
  position: relative;
  /* This allows the container to 'fit' this image */
  opacity: 1;
  z-index: 2;
  pointer-events: auto;
}

.hero-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s ease;
}

.hero-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.hero-btn.prev {
  left: 10px;
}

.hero-btn.next {
  right: 10px;
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: 0.3s ease;
}

.hero-dot.active {
  background: #417dfc;
  transform: scale(1.2);
}

.floating-badge {
  position: absolute;
  top: 30%;
  right: -30px;
  background: rgba(40, 40, 40, 0.6);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px;
  border-radius: 16px;
  z-index: 2;
  color: #fff;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  text-align: left;
}

body:not(.dark) .floating-badge {
  background: rgba(255, 255, 255, 0.6);
  color: #111;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.badge-small {
  font-size: 0.8rem;
  color: #aaa;
  margin-bottom: 5px;
}

body:not(.dark) .badge-small {
  color: #555;
}

.badge-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.badge-desc {
  font-size: 0.85rem;
  color: #ccc;
  line-height: 1.4;
  position: relative;
}

body:not(.dark) .badge-desc {
  color: #555;
}

.badge-icon {
  color: #417dfc;
  font-size: 1.2rem;
  position: absolute;
  right: -25px;
  bottom: 0;
}

/* NAVBAR TWEAKS */
.custom-logo {
  display: flex;
  align-items: center;
}

.logo-j {
  font-size: 1.8rem;
  font-weight: 900;
  margin-right: 5px;
}

.logo-text {
  font-size: 0.9rem;
  letter-spacing: 1px;
  font-weight: 700;
}

.custom-nav-links li a {
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.25s ease;
  position: relative;
}

.custom-nav-links li a.active {
  color: #417dfc !important;
}

.custom-nav-links li a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #417dfc;
  border-radius: 2px;
}

.custom-btn-nav {
  background: #417dfc !important;
  color: #fff !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 10px 20px !important;
  font-size: 0.9rem !important;
}

.custom-btn-nav:hover {
  background: #2a61d8 !important;
}

@media (max-width: 900px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
    gap: 60px;
    padding-top: 20px;
  }

  .custom-hero h1,
  .custom-hero p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-features {
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
  }

  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-right {
    width: 100%;
    max-width: 500px;
  }

  .hero-person-img {
    width: 100%;
    height: auto;
  }

  .hero-slides {
    height: auto !important;
  }

  .hero-glow {
    width: 450px;
    height: 450px;
  }

  .shape-1 {
    width: 70px;
    height: 70px;
    border-radius: 16px;
  }

  .shape-2 {
    width: 100px;
    height: 100px;
  }

  .shape-3 {
    width: 50px;
    height: 50px;
    border-radius: 10px;
  }

  .floating-badge {
    top: auto;
    bottom: -30px;
    right: 50%;
    transform: translateX(50%);
    width: 90%;
    margin: 0 auto;
    text-align: center;
    padding: 18px;
  }

  .badge-icon {
    right: 15px;
    bottom: 15px;
  }
}

@media (max-width: 768px) {
  .custom-btn-nav {
    display: none !important;
  }

  .logo-j {
    font-size: 1.4rem;
  }

  .logo-text {
    font-size: 0.75rem;
  }

  .custom-hero h1 {
    font-size: 2.2rem;
  }

  .hero-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 30px;
  }

  .feature-item {
    flex-direction: column;
    text-align: center;
    gap: 6px;
    width: auto;
  }

  .feature-item span {
    font-size: 0.75rem;
    line-height: 1.3;
  }

  .feature-item span br {
    display: none;
  }

  .hero-slides {
    height: auto !important;
    min-height: 200px;
  }

  .hero-slide {
    object-fit: cover;
    object-position: top;
  }

  .hero-glow {
    width: 350px;
    height: 350px;
  }

  .shape-1 {
    width: 55px;
    height: 55px;
    border-radius: 12px;
  }

  .shape-2 {
    width: 75px;
    height: 75px;
  }

  .shape-3 {
    width: 40px;
    height: 40px;
    border-radius: 8px;
  }

  .floating-badge {
    padding: 15px;
    width: 95%;
    bottom: -40px;
  }
}

@media (max-width: 480px) {
  .custom-hero h1 {
    font-size: 1.9rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    align-items: stretch;
  }

  .blue-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    display: flex;
  }

  .link-only {
    justify-content: center;
    margin-top: 10px;
  }

  .hero-slides {
    height: auto !important;
  }

  .hero-glow {
    width: 280px;
    height: 280px;
  }

  .shape-1 {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .shape-2 {
    width: 55px;
    height: 55px;
  }

  .shape-3 {
    width: 30px;
    height: 30px;
    border-radius: 6px;
  }

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

  .feature-item {
    flex: 1 1 100%;
  }
}

.btn {
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.btn.primary {
  background: var(--text);
  color: #fff;
}

.btn.secondary {
  border: 1px solid var(--border);
  background: var(--surface);
}

.btn.primary:hover,
.btn.secondary:hover {
  transform: translateY(-3px);
}

/* =========================
   ABOUT
========================= */
.about {
  max-width: var(--container);
  margin: auto;
  width: 100%;
}

.about-intro {
  max-width: 900px;
  margin: 0 auto 80px;
  text-align: center;
}

.about-intro h3 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 14px;
}

.about-intro p {
  font-size: 1.05rem;
  color: var(--text-light);
}

.about-image-center {
  display: flex;
  justify-content: center;
  margin-bottom: 60px;
}


.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 55px 48px;
  box-shadow: var(--shadow);
}

.info-card h3 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 35px;
}

.timeline-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  text-align: center;
  transition: all 0.3s ease;
  border-radius: 8px;
}

.timeline-item:hover {
  background: var(--surface-2);
  transform: scale(1.02);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-color: transparent;
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-item h4 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  line-height: 1.4;
}

.timeline-item p {
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 6px;
}

.timeline-item span {
  display: block;
  color: var(--text-light);
  word-break: break-word;
}

.year-badge {
  display: inline-block !important;
  background: var(--surface-2);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  color: var(--text) !important;
  margin-bottom: 15px;
}

/* =========================
   MY STORY
 ========================= */
.my-story {
  max-width: var(--container);
  margin: 0 auto;
  padding: 100px 20px;
}

.story-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
}

.story-images {
  flex: 1;
  max-width: 550px;
  position: relative;
}

.profile-img-badge {
  position: absolute;
  top: -40px;
  left: -40px;
  width: 140px;
  height: 140px;
  background: #fff;
  border-radius: 50%;
  padding: 8px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  z-index: 5;
  animation: profileBadgeFloat 4s infinite alternate ease-in-out;
}

@keyframes profileBadgeFloat {
  0% {
    transform: translateY(0) rotate(0deg);
  }

  100% {
    transform: translateY(-15px) rotate(-5deg);
  }
}

.main-img-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: visible;
  padding: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.main-img-wrapper:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

.main-story-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.profile-story-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
}

.story-content {
  flex: 1;
  max-width: 600px;
}

.story-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 25px;
  line-height: 1.1;
  color: var(--text);
}

.story-subtitle {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
  line-height: 1.3;
}

.story-text {
  font-size: 1.15rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 30px;
}

.story-link {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 8px;
  transition: all 0.3s ease;
}

.story-link:hover {
  color: #417dfc;
  text-underline-offset: 12px;
}

.story-detail-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 20px 80px;
}

.story-top-nav-bar {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}

.return-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.return-home-btn i {
  font-size: 0.85rem;
  transition: transform 0.25s ease;
}

.return-home-btn:hover {
  background: var(--behance-lime);
  color: #000000;
  border-color: var(--behance-lime);
  transform: translateX(-4px);
  box-shadow: 0 6px 20px rgba(249, 158, 26, 0.35);
}

.return-home-btn:hover i {
  transform: translateX(-3px);
}

.story-detail-header {
  text-align: center;
  margin-bottom: 60px;
}

.story-main-title {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: -2px;
}

.story-main-sneakers-hero p {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 0 auto;
  line-height: 1.6;
}

.story-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info {
  text-align: left;
}

.author-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

.publish-date {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* IMAGE GRID */
.story-visual-grid {
  display: flex;
  gap: 20px;
  margin-bottom: 80px;
}

.story-grid-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.story-grid-col.main {
  flex: 1.5;
}

.grid-img-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  background: var(--surface);
}

.grid-img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.grid-img-card.small {
  height: auto;
}

.grid-img-card.large {
  height: auto;
}

/* FULL TEXT CONTENT */
.story-full-text {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.25rem;
  line-height: 1.9;
  color: var(--text);
}

.story-full-text h2 {
  font-size: 2rem;
  margin: 60px 0 25px;
  color: var(--text);
}

.story-full-text p {
  margin-bottom: 30px;
}

/* Tablet Story Grid */
@media (max-width: 992px) {
  .story-detail-section {
    padding: 20px 15px 60px;
  }

  .story-main-title {
    font-size: 2.8rem;
    letter-spacing: -1px;
  }

  .story-visual-grid {
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .story-visual-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 0;
  }

  .story-grid-col {
    gap: 8px;
  }

  .grid-img-card {
    width: 100%;
    height: auto;
    border-radius: 8px;
  }

  .grid-img-card img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}

/* Mobile Story */
@media (max-width: 992px) {
  .story-container {
    flex-direction: column;
    gap: 60px;
    text-align: center;
  }

  .story-images {
    width: 90%;
    margin: 0 auto;
  }

  .profile-img-badge {
    width: 100px;
    height: 100px;
    top: -30px;
    left: -30px;
  }

  .story-title {
    font-size: 2.2rem;
  }

  .story-text {
    font-size: 1.05rem;
  }
}

@media (max-width: 480px) {
  .profile-img-badge {
    width: 80px;
    height: 80px;
    top: -20px;
    left: -20px;
  }
}

/* =========================
   QUICK FACTS
========================= */
.quick-facts {
  margin-top: 60px;
  border-top: 1px solid var(--border);
  padding-top: 40px;
  text-align: center;
}

.facts-title {
  font-size: 1.8rem !important;
  margin-bottom: 30px !important;
  font-weight: 800;
  color: var(--text);
}

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

.fact-label {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 8px !important;
}

.fact-value {
  font-size: 1.1rem;
  color: var(--text-light) !important;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .quick-facts {
    margin-top: 60px;
    padding-top: 40px;
  }

  .facts-title {
    font-size: 1.8rem !important;
  }
}

.story-extra-content {
  margin-top: 80px;
  text-align: center;
}

.story-extra-content h2 {
  font-size: 2.2rem !important;
  margin-bottom: 30px !important;
  color: var(--text);
}

.story-extra-content p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-light);
  /* already using variable */
  max-width: 750px;
  margin: 0 auto 30px;
}

/* =========================
   ABOUT IMAGE CAROUSEL
========================= */
.about-image-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 60px;
}

.about-carousel {
  position: relative;
  width: 100%;
  max-width: 900px;
  border-radius: 32px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.about-slides {
  position: relative;
  width: 100%;
  height: 560px;
}

/* Each slide container */
.about-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #f3f3f3;
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.about-slide.active {
  opacity: 1;
  z-index: 2;
}

/* THIS makes all logos/images same visual size */
.about-slide img {
  width: 100%;
  max-width: 7000px;
  /* same max width for all */
  max-height: 420px;
  /* same max height for all */
  object-fit: contain;
  object-position: center;
  margin: 0 auto;
}

/* Arrows */
.about-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1.7rem;
  cursor: pointer;
  z-index: 10;
  transition: 0.3s ease;
}

.about-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

.about-btn.prev {
  left: 18px;
}

.about-btn.next {
  right: 18px;
}

/* Dots */
.about-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.about-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: 0.3s ease;
}

.about-dot.active {
  background: #111;
  transform: scale(1.15);
}

/* Dark Mode */
body.dark .about-slide {
  background: #1c1d20;
}

body.dark .about-dot {
  background: #555;
}

body.dark .about-dot.active {
  background: #fff;
}

/* Mobile */
@media (max-width: 768px) {
  .about-slides {
    height: 380px;
  }

  .about-slide {
    padding: 20px;
  }

  .about-slide img {
    max-width: 90%;
    max-height: 280px;
  }

  .about-btn {
    width: 42px;
    height: 42px;
    font-size: 1.4rem;
  }

  .about-btn.prev {
    left: 10px;
  }

  .about-btn.next {
    right: 10px;
  }
}

@media (max-width: 480px) {
  .about-slides {
    height: 280px;
  }

  .about-slide img {
    max-height: 200px;
  }
}

/* =========================
   CERTIFICATE IMAGE CAROUSEL
========================= */
.cer-image-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 60px;
}

.cer-carousel {
  position: relative;
  width: 100%;
  max-width: 900px;
  border-radius: 32px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.cer-slides {
  position: relative;
  width: 100%;
  height: 560px;
}

.cer-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #f3f3f3;
  opacity: 0;
  transition: opacity 0.5s ease;
  padding: 30px;
}

.cer-slide.active {
  opacity: 1;
  z-index: 2;
}

/* Arrows */
.cer-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1.7rem;
  cursor: pointer;
  z-index: 10;
  transition: 0.3s ease;
}

.cer-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

.cer-btn.prev {
  left: 18px;
}

.cer-btn.next {
  right: 18px;
}

/* Dots */
.cer-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.cer-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: 0.3s ease;
}

.cer-dot.active {
  background: #111;
  transform: scale(1.15);
}

/* Dark Mode */
body.dark .cer-slide {
  background: #1c1d20;
}

body.dark .cer-dot {
  background: #555;
}

body.dark .cer-dot.active {
  background: #fff;
}

/* Mobile */
@media (max-width: 768px) {
  .cer-slides {
    height: 380px;
  }

  .cer-slide {
    padding: 20px;
  }

  .cer-btn {
    width: 42px;
    height: 42px;
    font-size: 1.4rem;
  }

  .cer-btn.prev {
    left: 10px;
  }

  .cer-btn.next {
    right: 10px;
  }
}

@media (max-width: 480px) {
  .cer-slides {
    height: 280px;
  }

  .cer-slide {
    padding: 12px;
  }
}

/* =========================
   SKILLS
========================= */
.skills-section {
  max-width: var(--container);
  margin: auto;
  width: 100%;
}

.skills-category {
  margin-bottom: 60px;
}

.category-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: var(--text);
  text-align: center;
}

.category-title::before,
.category-title::after {
  content: "";
  height: 2px;
  flex: 1;
  opacity: 0.3;
}

.category-title::before {
  background: linear-gradient(to left, #417dfc, transparent);
}

.category-title::after {
  background: linear-gradient(to right, #417dfc, transparent);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 15px;
}

.skill-card {
  background: var(--surface);
  border: 1px solid rgba(65, 125, 252, 0.3);
  border-radius: 20px;
  padding: 30px 15px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.skill-card:nth-child(1) {
  animation-delay: 0.1s;
}

.skill-card:nth-child(2) {
  animation-delay: 0.3s;
}

.skill-card:nth-child(3) {
  animation-delay: 0.5s;
}

.skill-card:nth-child(4) {
  animation-delay: 0.7s;
}

.skill-card:nth-child(5) {
  animation-delay: 0.9s;
}

.skill-card:nth-child(6) {
  animation-delay: 1.1s;
}

.skill-card:nth-child(7) {
  animation-delay: 1.3s;
}

.skill-card:nth-child(8) {
  animation-delay: 1.5s;
}

.skill-card:nth-child(9) {
  animation-delay: 1.7s;
}

.skill-card:nth-child(10) {
  animation-delay: 1.9s;
}

.skill-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.15);
}

.skill-card img,
.skill-card i.tool-icon-fa {
  width: 110px;
  height: 110px;
  object-fit: contain;
  margin: 0 auto 12px;
  transition: transform 0.3s ease;
  animation: toolFloat 3.5s ease-in-out infinite alternate;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill-card i.tool-icon-fa {
  font-size: 80px;
  /* Slightly smaller to fit visually */
}

@keyframes toolFloat {
  0% {
    transform: translateY(0px);
  }

  100% {
    transform: translateY(-10px);
  }
}

/* Different delays so they don't bounce all at the same time */
.skill-card:nth-child(2n) img,
.skill-card:nth-child(2n) i {
  animation-delay: 0.5s;
}

.skill-card:nth-child(3n) img,
.skill-card:nth-child(3n) i {
  animation-delay: 1s;
}

.skill-card:nth-child(5n) img,
.skill-card:nth-child(5n) i {
  animation-delay: 1.5s;
}

.skill-card:hover img,
.skill-card:hover i.tool-icon-fa {
  animation: none;
  transform: scale(1.2) translateY(-5px);
}

.skill-card p {
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--text);
}

/* =========================
   SOFT SKILLS
========================= */
.soft-skills-box {
  margin-top: 50px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 60px 40px;
  box-shadow: var(--shadow);
  text-align: center;
  animation: gentleFloatBox 5s infinite alternate ease-in-out;
}

@keyframes gentleFloatBox {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  }
}

.soft-skills-box h3 {
  font-size: 2rem;
  margin-bottom: 25px;
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.pill-grid span {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: default;
  animation: pillPulse 3s infinite alternate ease-in-out;
}

@keyframes pillPulse {
  0% {
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    border-color: var(--border);
  }

  100% {
    box-shadow: 0 4px 15px rgba(65, 125, 252, 0.2);
    border-color: rgba(65, 125, 252, 0.5);
  }
}

.pill-grid span:nth-child(even) {
  animation-delay: 1.5s;
}

.pill-grid span:hover {
  background: var(--text);
  color: var(--surface);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* =========================
   SERVICES
========================= */
.services-section {
  max-width: var(--container);
  margin: auto;
  padding: 90px 20px;
  text-align: center;
}

.section-label {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #777;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.7);
}

.section-subtitle {
  max-width: 700px;
  margin: 0 auto 60px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #666;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
}

.service-card {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 28px;
  padding: 35px 28px;
  text-align: left;
  transition: all 0.35s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border-color: rgba(0, 0, 0, 0.15);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 18px;
  display: inline-block;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.2) rotate(-5deg);
  filter: brightness(1.1);
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: #111;
}

.service-card p {
  font-size: 1rem;
  line-height: 1.8;
  color: #666;
}

/* PROJECTS */
.projects-section {
  max-width: var(--container);
  margin: auto;
  width: 100%;
}

.card-grid {
  max-width: 1400px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  align-items: start;
}

.project-card {
  background: var(--surface);
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border-color: rgba(0, 0, 0, 0.15);
}

/* IMPORTANT: make all project images same size */
.project-card img {
  width: auto;
  height: auto;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

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

/* project content */
.project-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-info h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.project-info p {
  color: var(--text-light);
  margin-bottom: 20px;
  font-size: 0.98rem;
  flex-grow: 1;
}

.view-project {
  border: none;
  background: #ffffff;
  color: #111111;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  width: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  align-self: center;
  margin-top: auto;
}

.view-project:hover {
  transform: translateY(-5px);
  background: #ffffff;
  color: #111111;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

body.dark .view-project {
  background: #ffffff;
  color: #111111;
}

/* OPTIONAL: better crop for tall SMM image */
.smm-img {
  object-position: top;
}

/* Container */
.social-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 15px;
}

/* Base button */
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  text-decoration: none;
  padding: 12px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;

  transition: all 0.3s ease;
  transform: translateY(0);
}

/* ICON */
.social-btn i {
  font-size: 16px;
}

/* FACEBOOK */
.social-btn.fb {
  background: #1877f2;
  color: #fff;
}

/* INSTAGRAM */
.social-btn.ig {
  background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af);
  color: #fff;
}

/* HOVER EFFECT */
.social-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* CLICK EFFECT */
.social-btn:active {
  transform: scale(0.95);
}

/* DARK MODE SUPPORT */
body.dark .social-btn {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

/* LIGHT MODE SUPPORT */
body.light .social-btn {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* =========================
   MODAL
========================= */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100005;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-content {
  background: var(--surface);
  max-width: 1100px;
  width: 100%;
  margin: 40px auto;
  border-radius: 30px;
  padding: 30px;
  position: relative;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(18, 16, 14, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  color: #ffffff;
  z-index: 100;
  transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
  outline: none;
  padding: 0;
}

.close:hover {
  background: #ff4757;
  color: #ffffff;
  border-color: #ff4757;
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 6px 20px rgba(255, 71, 87, 0.5);
}

.close:active {
  transform: scale(0.95);
}

.modal-slider-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 30px;
}

.modal-image-scroll {
  width: 100%;
  max-height: 72vh;
  overflow: auto;
  border-radius: 24px;
  background: var(--surface-2);
  padding: 20px;
  scroll-behavior: smooth;
}

.modal-image-scroll img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 18px;
  object-fit: contain;
}

.modal-image-scroll::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.modal-image-scroll::-webkit-scrollbar-thumb {
  background: rgba(120, 120, 120, 0.5);
  border-radius: 999px;
}

.modal-image-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 58px;
  height: 58px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
  transition: 0.3s ease;
}

.slider-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

.slider-btn.prev {
  left: 16px;
}

.slider-btn.next {
  right: 16px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}

.slider-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d3d3d3;
  cursor: pointer;
  transition: 0.3s ease;
}

.slider-dots .dot.active {
  background: var(--accent, #3b82f6);
  transform: scale(1.15);
}

.compact-counter {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-light, #aaaaaa);
  background: var(--surface-2, rgba(255, 255, 255, 0.1));
  padding: 4px 16px;
  border-radius: 999px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.15));
  letter-spacing: 1px;
}

#modal-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 20px;
}

#modal-desc {
  max-width: 800px;
  margin: auto;
  color: var(--text-light);
  font-size: 1.08rem;
  line-height: 1.9;
}

.modal-footer {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.visit-project-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #417dfc;
  color: #fff;
  padding: 15px 35px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(65, 125, 252, 0.3);
}

.visit-project-btn:hover {
  background: #2a61d8;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(65, 125, 252, 0.4);
  color: #fff;
}

.visit-project-btn i {
  font-size: 1.1rem;
}

/* =========================
   TESTIMONIALS
========================= */
.testimonials-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 30px;
  box-shadow: var(--shadow);
  transition: all 0.35s ease;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border-color: rgba(0, 0, 0, 0.15);
}

.testimonial-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 15px;
  margin-bottom: 20px;
}

.testimonial-img {
  width: auto;
  height: auto;
  object-fit: cover;
  border-radius: 18px;
  border: 3px solid var(--border);
  transition: transform 0.4s ease, filter 0.4s ease;
}

.testimonial-card:hover .testimonial-img {
  transform: scale(1.08) rotate(3deg);
  filter: brightness(1.1);
}

.testimonial-person h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.testimonial-person p {
  color: var(--text-light);
  margin-bottom: 12px;
}

.testimonial-socials {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.testimonial-socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s ease;
}

.testimonial-socials a:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.testimonial-text {
  font-size: 1.02rem;
  color: var(--text-light);
  font-style: italic;
  line-height: 1.9;
  text-align: center;
}

/* =========================
   CONTACT
========================= */
.contact-section {
  max-width: var(--container);
  margin: auto;
  width: 100%;
}

.contact-box {
  max-width: 900px;
  margin: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 50px 30px;
  box-shadow: var(--shadow);
  text-align: center;
}

.contact-text {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 30px;
}


/* =========================
   FOOTER
========================= */
.footer {
  padding: 35px 20px;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--text-light);
}

/* =========================
   DARK MODE
========================= */

body.dark #custom-nav {
  background: rgba(15, 15, 16, 0.85);
  border-bottom: 1px solid var(--border);
}

body.dark .story-full-text {
  color: #ddd;
}

body.dark .quick-facts {
  border-top-color: #333;
}

body.dark .story-main-title {
  color: #ffffff;
}

body.dark .story-main-subtitle {
  color: #bbbbbb;
}

body.dark .grid-img-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
}

body.dark .author-name {
  color: #ffffff;
}

.section,
.project-card,
.skill-card,
.testimonial-card,
.info-card,
.soft-skills-box,
.contact-box,
.service-card {
  opacity: 0;
  transform: translateY(25px);
  transition: all 0.7s ease;
}

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

/* =========================
   TABLET
========================= */
@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .nav-links {
    gap: 18px;
  }

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

  .personal-projects-header {
    margin-top: 60px;
    margin-bottom: 35px;
  }

  .project-info {
    padding: 15px 12px;
  }

  .project-info h3 {
    font-size: 1rem;
  }

  .project-info p {
    font-size: 0.75rem;
    line-height: 1.3;
  }

  .view-project {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {
  .section {
    padding: 75px 18px;
  }

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

  .personal-projects-header {
    margin-top: 50px;
    margin-bottom: 30px;
  }

  .nav-container {
    padding: 16px 18px;
  }

  .logo {
    font-size: 1.2rem;
  }

  /* Mobile menu rules are inherited from the primary max-width: 768px block to maintain smooth 3D transitions and proper width. */
  .hamburger {
    display: flex;
  }

  .about-grid {
    gap: 12px;
  }

  .info-card {
    padding: 20px 10px;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 10vw, 3.5rem);
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .hero-buttons .btn {
    margin-left: 0 !important;
    width: 100%;
    max-width: 280px;
    justify-content: center;
    text-align: center;
  }

  .about-image-center img {
    max-width: 100%;
  }

  .info-card h3,
  .soft-skills-box h3 {
    font-size: 1.2rem;
  }

  .timeline-item {
    padding: 15px 0;
  }

  .timeline-item h4 {
    font-size: 0.9rem;
  }

  .timeline-item p,
  .timeline-item span {
    font-size: 0.75rem;
  }

  .services-section {
    padding: 75px 18px;
  }

  .service-card {
    text-align: center;
    padding: 28px 22px;
  }

  .project-card img {
    height: auto;
  }

  .testimonial-img {
    width: auto;
    height: auto;
  }


  .modal {
    padding: 8px;
  }

  .modal-content {
    padding: 18px 12px 20px;
    border-radius: 20px;
    margin: 10px auto;
  }

  .modal-image-scroll {
    max-height: 55vh;
    padding: 8px;
    border-radius: 14px;
  }

  .slider-btn {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  .slider-btn.prev {
    left: 4px;
  }

  .slider-btn.next {
    right: 4px;
  }

  #modal-title {
    font-size: 1.6rem;
  }

  #modal-desc {
    font-size: 0.92rem;
    line-height: 1.7;
  }

  .modal-footer {
    margin-top: 20px;
  }

  .visit-project-btn {
    padding: 12px 20px;
    font-size: 0.95rem;
    width: 100%;
    justify-content: center;
  }

  .close {
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    font-size: 1.15rem;
  }

  /* YouTube thumbnail on mobile */
  .yt-play-btn svg {
    width: 50px;
    height: 36px;
  }

  .yt-watch-label {
    font-size: 0.8rem;
    padding: 5px 12px;
  }
}

/* =========================
   SMALL MOBILE
========================= */
@media (max-width: 480px) {
  .section {
    padding: 65px 14px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .info-card,
  .soft-skills-box,
  .testimonial-card,
  .contact-box,
  .service-card {
    padding: 24px 18px;
    border-radius: 22px;
  }

  .project-card img {
    height: 300px;
    object-fit: cover;
  }

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

  .pill-grid span {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    min-height: 50px;
    font-size: 0.75rem;
    padding: 8px 12px;
    line-height: 1.2;
  }

  .skill-card {
    padding: 24px 16px;
  }

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

  .cs-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
  }

  .cs-card {
    padding: 20px 10px;
  }

  .cs-card h4 {
    font-size: 0.95rem;
  }

  .cs-card p {
    font-size: 0.8rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .project-info {
    padding: 15px;
  }

  .project-info h3 {
    font-size: 0.95rem;
    margin-bottom: 5px;
  }

  .project-info p {
    font-size: 0.72rem;
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .view-project {
    padding: 10px 15px;
    font-size: 0.75rem;
  }

  .social-links {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
  }

  .social-btn {
    padding: 6px 4px;
    font-size: 8.5px;
    border-radius: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    justify-content: center;
    gap: 4px;
    height: 34px;
  }

  .social-btn i {
    font-size: 11px;
  }

  .modal-footer {
    margin-top: 20px;
  }

  .visit-project-btn {
    padding: 10px 18px;
    font-size: 0.85rem;
  }

  /* Even smaller play button on very small phones */
  .yt-play-btn svg {
    width: 42px;
    height: 30px;
  }

  .yt-watch-label {
    font-size: 0.72rem;
    padding: 4px 10px;
  }

  .slider-btn {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }

  .modal-image-scroll {
    max-height: 45vh;
    padding: 6px;
  }
}

/* =========================
   ULTRA NARROW MOBILE (iPhone SE, etc.)
========================= */
@media (max-width: 360px) {
  .section-tag {
    font-size: 0.75rem;
    padding: 6px 12px;
  }

  .card-grid,
  .skills-grid,
  .cs-grid {
    grid-template-columns: 1fr !important;
  }

  .modal-content {
    margin: 6px auto;
    padding: 14px 10px 16px;
  }

  .project-info h3 {
    font-size: 1.1rem !important;
  }

  .project-info p {
    -webkit-line-clamp: initial !important;
  }

  .logo-j {
    font-size: 1.1rem;
  }

  .logo-text {
    display: none;
    /* Hide small text for logo on ultra narrow */
  }

  .hero h1 {
    font-size: 1.7rem !important;
  }

  .hero-buttons {
    gap: 10px;
  }

  .blue-btn {
    padding: 12px 15px;
    font-size: 0.85rem;
  }

  .feature-item span {
    font-size: 0.7rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    /* Force 1 column on ultra narrow */
  }

  .social-links {
    grid-template-columns: 1fr 1fr;
    /* Force 2 columns as requested */
    gap: 6px;
  }

  .social-btn {
    height: 38px;
    font-size: 10px;
  }

  .card-grid {
    grid-template-columns: 1fr;
    /* Go to 1 column on ultra narrow devices */
    gap: 20px;
  }

  .project-info h3 {
    font-size: 1.1rem;
  }

  .project-info p {
    font-size: 0.85rem;
    -webkit-line-clamp: 3;
  }
}

/* =========================
   CASE STUDY COMPONENTS (SERVICES)
========================= */
.cs-section {
  padding: 60px 20px;
  max-width: var(--container);
  margin: 0 auto;
}

.cs-title-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
}

.cs-line {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  flex: 1;
  max-width: 250px;
}

body:not(.dark) .cs-line {
  background: rgba(0, 0, 0, 0.1);
}

.cs-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
}

body:not(.dark) .cs-title {
  color: #111;
}

.cs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 50px;
}

.cs-card {
  background: #17181c;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 30px 20px;
  text-align: center;
  transition: all 0.3s ease;
}

body:not(.dark) .cs-card {
  background: #f8f9fa;
  border: 1px solid #e1e3e5;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.cs-card:hover {
  transform: translateY(-5px);
  border-color: #417dfc;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

body:not(.dark) .cs-card:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.cs-icon {
  font-size: 1.8rem;
  color: #ccc;
  margin-bottom: 15px;
  display: inline-block;
}

body:not(.dark) .cs-icon {
  color: #666;
}

.cs-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

body:not(.dark) .cs-card h4 {
  color: #222;
}

.cs-card p {
  font-size: 0.9rem;
  color: #999;
  line-height: 1.5;
}

body:not(.dark) .cs-card p {
  color: #555;
}

.cs-metric {
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 10px;
}

body:not(.dark) .cs-metric {
  color: #111;
}

.yellow-text {
  color: #ffc107 !important;
}

body:not(.dark) .yellow-text {
  color: #dcb000 !important;
}

.cs-metric span {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

body:not(.dark) .cs-metric span {
  color: #333;
}

/* =========================
   EXPERIENCE LIST STYLES
========================= */
.exp-list {
  margin-top: 15px;
  padding-left: 18px;
  font-size: 0.85rem;
  color: #ccc;
}

body:not(.dark) .exp-list {
  color: #555;
}

.exp-list li {
  margin-bottom: 6px;
  line-height: 1.4;
}

/* =========================
   3D TILT HOVER EFFECTS
========================= */
.tilt-element {
  will-change: transform;
  transform-style: preserve-3d;
}

/* =========================
   EXTRA ANIMATIONS (Gradient Text, Shimmer, Float)
========================= */
.highlight-blue {
  background: linear-gradient(to right, #417dfc, #a855f7, #417dfc);
  background-size: 200% auto;
  color: transparent !important;
  -webkit-background-clip: text;
  background-clip: text;
  animation: gradientText 4s linear infinite;
  display: inline-block;
}

@keyframes gradientText {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 200% 50%;
  }
}

.blue-btn {
  position: relative;
  overflow: hidden;
}

.blue-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-20deg);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }

  15% {
    left: 200%;
  }

  100% {
    left: 200%;
  }
}

.feature-item i,
.cs-icon {
  animation: gentleFloat 3s ease-in-out infinite alternate;
}

@keyframes gentleFloat {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-6px);
  }
}

/* =========================
   TESTIMONIALS
========================= */
.testimonials-section {
  max-width: var(--container);
  margin: auto;
  width: 100%;
  padding-bottom: 80px;
}

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

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 36px 30px 28px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  animation: testimonialFadeIn 0.7s both;
}

.testimonial-card:nth-child(1) {
  animation-delay: 0.05s;
}

.testimonial-card:nth-child(2) {
  animation-delay: 0.15s;
}

.testimonial-card:nth-child(3) {
  animation-delay: 0.25s;
}

.testimonial-card:nth-child(4) {
  animation-delay: 0.35s;
}

.testimonial-card:nth-child(5) {
  animation-delay: 0.45s;
}

@keyframes testimonialFadeIn {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.testimonial-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(65, 125, 252, 0.06) 0%, rgba(168, 85, 247, 0.06) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
  border-radius: 28px;
  pointer-events: none;
}

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

.testimonial-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 30px 60px rgba(65, 125, 252, 0.15);
  border-color: rgba(65, 125, 252, 0.35);
}

.testimonial-quote-icon {
  font-size: 2.2rem;
  background: linear-gradient(135deg, #417dfc, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  animation: quoteBob 3.5s ease-in-out infinite alternate;
}

@keyframes quoteBob {
  0% {
    transform: translateY(0) rotate(-3deg);
  }

  100% {
    transform: translateY(-8px) rotate(3deg);
  }
}

.testimonial-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.testimonial-img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid transparent;
  background: linear-gradient(white, white) padding-box,
    linear-gradient(135deg, #417dfc, #a855f7) border-box;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  flex-shrink: 0;
  box-shadow: 0 12px 35px rgba(65, 125, 252, 0.25);
}

.testimonial-card:hover .testimonial-img {
  transform: scale(1.1);
  box-shadow: 0 0 18px rgba(65, 125, 252, 0.4);
}

.testimonial-person h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
  text-align: center;
}

.testimonial-person p {
  font-size: 0.85rem;
  color: var(--text-light);
  text-align: center;
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-light);
  flex-grow: 1;
}

.testimonial-stars {
  display: flex;
  gap: 5px;
}

.testimonial-stars i {
  font-size: 0.95rem;
  color: #f59e0b;
  animation: starPop 0.5s both;
}

.testimonial-stars i:nth-child(1) {
  animation-delay: 0.1s;
}

.testimonial-stars i:nth-child(2) {
  animation-delay: 0.2s;
}

.testimonial-stars i:nth-child(3) {
  animation-delay: 0.3s;
}

.testimonial-stars i:nth-child(4) {
  animation-delay: 0.4s;
}

.testimonial-stars i:nth-child(5) {
  animation-delay: 0.5s;
}

@keyframes starPop {
  0% {
    transform: scale(0) rotate(-30deg);
    opacity: 0;
  }

  70% {
    transform: scale(1.3) rotate(5deg);
    opacity: 1;
  }

  100% {
    transform: scale(1) rotate(0);
    opacity: 1;
  }
}

.testimonials-grid .testimonial-card:nth-child(5) {
  grid-column: 2 / 3;
}

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

  .testimonials-grid .testimonial-card:nth-child(5) {
    grid-column: 1 / -1;
  }
}

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

  .testimonials-grid .testimonial-card:nth-child(5) {
    grid-column: auto;
  }

  .testimonial-card {
    padding: 24px 20px 20px;
  }
}

/* MOBILE GRID FIXES */
@media (max-width: 550px) {

  .card-grid,
  .results-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .project-info {
    padding: 12px 10px !important;
  }

  .project-info h3 {
    font-size: 0.9rem !important;
  }

  .project-info p {
    font-size: 0.7rem !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .view-project {
    width: 100%;
    padding: 8px 5px !important;
    font-size: 0.75rem !important;
  }
}

/* ==========================================================================
   SCALE BRAND & REVENUE CONTACT SECTION
   ========================================================================== */
.scale-contact-section {
  position: relative;
  width: 100%;
  max-width: var(--container, 1400px);
  margin: 0 auto;
  padding: 60px 24px 90px;
  overflow: hidden;
}

.scale-contact-container {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 50px;
  align-items: start;
  position: relative;
  z-index: 2;
}

/* Left Column Styling */
.scale-info-col {
  display: flex;
  flex-direction: column;
}

.scale-headline {
  font-size: clamp(2.3rem, 3.8vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text, #111111);
  margin-bottom: 18px;
}

body.dark .scale-headline {
  color: #ffffff;
}

.scale-gradient-text {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 45%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.scale-dot {
  color: #ec4899;
}

.scale-subtitle {
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--text-light, #666666);
  margin-bottom: 34px;
  max-width: 580px;
}

body.dark .scale-subtitle {
  color: #94a3b8;
}

/* Action Cards */
.scale-action-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 18px;
  padding: 16px 20px;
  margin-bottom: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

body.dark .scale-action-card {
  background: #111522;
  border-color: #1f273b;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.scale-action-card:hover {
  transform: translateY(-2px);
  border-color: #818cf8;
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.12);
}

body.dark .scale-action-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(99, 102, 241, 0.15);
}

.scale-card-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.scale-icon-box {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: #6366f1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

body.dark .scale-icon-box {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.3);
  color: #818cf8;
}

.scale-action-card:hover .scale-icon-box {
  transform: scale(1.06);
}

.scale-card-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.scale-card-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 3px;
}

body.dark .scale-card-label {
  color: #64748b;
}

.scale-card-val {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text, #111111);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.dark .scale-card-val {
  color: #f1f5f9;
}

.scale-card-val.email-text {
  font-family: inherit;
  letter-spacing: -0.01em;
}

/* Social Media Icons in Card */
.scale-social-icons {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
  flex-wrap: wrap;
}

.scale-social-pill {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

body:not(.dark) .scale-social-pill {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #475569;
}

.scale-social-pill:hover {
  transform: translateY(-2px);
  color: #ffffff !important;
}

.scale-social-pill.ig:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(225, 48, 108, 0.45) !important;
}

.scale-social-pill.tt:hover {
  background: linear-gradient(135deg, #00f2fe 0%, #fe2c55 100%) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(254, 44, 85, 0.45) !important;
}

.scale-social-pill.li:hover {
  background: #0a66c2 !important;
  border-color: #0a66c2 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(10, 102, 194, 0.45) !important;
}

.scale-social-pill.fb:hover {
  background: #1877f2 !important;
  border-color: #1877f2 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(24, 119, 242, 0.45) !important;
}

.scale-social-pill.x:hover {
  background: #0f172a !important;
  border-color: #38bdf8 !important;
  color: #38bdf8 !important;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.35) !important;
}

.scale-card-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 9px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.dark .scale-card-btn {
  background: #1c2333;
  border-color: #2b354d;
  color: #cbd5e1;
}

.scale-card-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

body.dark .scale-card-btn:hover {
  background: #283248;
  border-color: #3f4e70;
  color: #ffffff;
}

.scale-card-btn.copied {
  background: #10b981 !important;
  border-color: #10b981 !important;
  color: #ffffff !important;
}

/* Right Column: Growth Proposal Card */
.scale-form-col {
  width: 100%;
}

.growth-proposal-card {
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 26px;
  padding: 36px 32px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  position: relative;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

body.dark .growth-proposal-card {
  background: #0d111c;
  border-color: #1c2438;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

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

.proposal-heading {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #4f46e5;
}

body.dark .proposal-heading {
  color: #60a5fa;
}

.proposal-badge {
  background: rgba(226, 232, 240, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #475569;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 999px;
  padding: 4px 12px;
  white-space: nowrap;
}

body.dark .proposal-badge {
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(148, 163, 184, 0.2);
  color: #94a3b8;
}

/* Form Styles */
.growth-form .form-group {
  margin-bottom: 18px;
}

.growth-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text, #334155);
  margin-bottom: 7px;
}

body.dark .growth-form label {
  color: #94a3b8;
}

.growth-form input,
.growth-form textarea {
  width: 100%;
  background: var(--bg, #f8fafc);
  border: 1px solid var(--border, #cbd5e1);
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 0.95rem;
  color: var(--text, #111111);
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

body.dark .growth-form input,
body.dark .growth-form textarea {
  background: #080a12;
  border-color: #1a2234;
  color: #f1f5f9;
}

.growth-form input::placeholder,
.growth-form textarea::placeholder {
  color: #94a3b8;
}

body.dark .growth-form input::placeholder,
body.dark .growth-form textarea::placeholder {
  color: #475569;
}

.growth-form input:focus,
.growth-form textarea:focus {
  border-color: #818cf8;
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.18);
}

.growth-form textarea {
  resize: vertical;
  min-height: 100px;
}

.submit-proposal-btn {
  width: 100%;
  background: linear-gradient(90deg, #6366f1 0%, #c026d3 50%, #ec4899 100%);
  color: #ffffff;
  border: none;
  border-radius: 14px;
  padding: 16px 24px;
  font-size: 1.02rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(192, 38, 211, 0.35);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 22px;
}

.submit-proposal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(236, 72, 153, 0.48);
  filter: brightness(1.08);
}

.submit-proposal-btn:active {
  transform: translateY(0);
}

.proposal-feedback {
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  min-height: 24px;
  transition: all 0.3s ease;
}

.proposal-feedback.success {
  color: #10b981;
}

.proposal-feedback.error {
  color: #ef4444;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .scale-contact-container {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .scale-headline {
    font-size: 2.3rem;
  }
}

@media (max-width: 600px) {
  .scale-action-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .scale-card-btn {
    width: 100%;
    margin-top: 10px;
  }

  .growth-proposal-card {
    padding: 24px 20px;
  }
}

/* =========================
   CONTACT SECTION 3D
========================= */
.contact-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
  position: relative;
  z-index: 1;
}

/* Background 3D Floating Shapes */
.contact-section::before,
.contact-section::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(65, 125, 252, 0.08) 0%, rgba(168, 85, 247, 0.08) 100%);
  filter: blur(80px);
  z-index: -1;
  animation: floatBG 20s infinite alternate ease-in-out;
}

.contact-section::before {
  top: 10%;
  left: -5%;
}

.contact-section::after {
  bottom: 10%;
  right: -5%;
  animation-delay: -10s;
}

@keyframes floatBG {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(50px, 50px) scale(1.2);
  }
}

.contact-content-left {
  flex: 1;
}

.contact-text {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: var(--text-light);
}

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

.contact-link-card {
  background: #ffffff;
  border: 1px solid #eeeeee;
  padding: 16px 28px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  width: 100%;
}

.contact-link-card i {
  font-size: 1.2rem;
  color: #417dfc;
}

.contact-link-card span {
  font-weight: 700;
  color: #111111;
  font-size: 1rem;
  display: inline-block !important;
  /* Force display */
}

.contact-link-card:hover {
  transform: translateY(-5px);
  background: #417dfc;
  border-color: #417dfc;
  box-shadow: 0 10px 25px rgba(65, 125, 252, 0.3);
}

.contact-link-card:hover i,
.contact-link-card:hover span {
  color: #ffffff;
}

body.dark .contact-link-card {
  background: #1a1a1e;
  border-color: #2a2a2e;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

body.dark .contact-link-card span {
  color: #ffffff;
}

.contact-content-right {
  flex: 1;
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.contact-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 450px;
  aspect-ratio: 4/5;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.contact-image-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #417dfc, #a855f7);
  border-radius: 30px;
  z-index: -1;
  opacity: 0.1;
  transform: translateZ(-20px);
}

.contact-person-img {
  width: auto;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  transform: translateZ(30px);
  transition: transform 0.3s ease;
}

.contact-image-wrapper:hover .contact-person-img {
  transform: translateZ(50px) scale(1.05);
}

.contact-3d-floating-shapes .float-shape {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  color: #fff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.float-shape i {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: #417dfc;
}

.float-shape span {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

body:not(.dark) .contact-3d-floating-shapes .float-shape {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
  color: #111;
}

.shape-a {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  top: -20px;
  right: -20px;
  animation: float3d-1 10s infinite alternate ease-in-out;
  transform: translateZ(80px);
}

.shape-b {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  bottom: 20px;
  left: -30px;
  animation: float3d-2 12s infinite alternate ease-in-out;
  transform: translateZ(60px);
}

@media (max-width: 900px) {
  .contact-container {
    flex-direction: column-reverse;
    text-align: center;
    gap: 50px;
    padding: 20px;
  }

  .contact-socials {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
    gap: 15px;
  }

  .contact-content-right {
    width: 100%;
    margin-bottom: 20px;
  }

  .contact-image-wrapper {
    max-width: 300px;
    margin: 0 auto;
  }

  .float-shape {
    transform: scale(0.8) !important;
  }
}

@media (max-width: 550px) {
  .contact-socials {
    grid-template-columns: 1fr;
  }

  .contact-image-wrapper {
    max-width: 250px;
  }

  .shape-a {
    right: -10px;
    top: -10px;
  }

  .shape-b {
    left: -15px;
    bottom: 10px;
  }
}

/* =========================
   ANIMATIONS
========================= */

/* Reveal on Scroll */
.section:not(.hero),
.project-card,
.skill-card,
.skills-category,
.category-title,
.testimonial-card,
.info-card,
.soft-skills-box,
.contact-box,
.service-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.section.visible:not(.hero),
.project-card.visible,
.skill-card.visible,
.skills-category.visible,
.category-title.visible,
.testimonial-card.visible,
.info-card.visible,
.soft-skills-box.visible,
.contact-box.visible,
.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered entrance for Hero content */
.hero-content-left>* {
  opacity: 0;
  transform: translateX(-30px);
  animation: revealRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-content-left .hero-tag {
  animation-delay: 0.1s;
}

.hero-content-left h1 {
  animation-delay: 0.3s;
}

.hero-content-left p {
  animation-delay: 0.5s;
}

.hero-content-left .hero-features {
  animation-delay: 0.7s;
}

.hero-content-left .hero-buttons {
  animation-delay: 0.9s;
}

@keyframes revealRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Hero Image Entrance */
.hero-right {
  opacity: 0;
  transform: scale(0.9) translateX(30px);
  animation: revealLeft 1s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
}

@keyframes revealLeft {
  to {
    opacity: 1;
    transform: scale(1) translateX(0);
  }
}

/* Hover Physics for Cards */
.skill-card,
.project-card,
.service-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.skill-card:hover,
.project-card:hover,
.service-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 20px 40px rgba(65, 125, 252, 0.2);
}

/* Back to Top Button Animation */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #417dfc;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 1000;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  background: #2a61d8;
  transform: translateY(-5px);
}


@media (max-width: 550px) {
  .contact-socials {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .contact-link-card {
    padding: 15px !important;
  }
}

/* NAVBAR PILL SOCIALS */
.nav-pill-socials {
  display: flex;
  gap: 8px;
  margin-right: 15px;
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav-pill i {
  font-size: 0.85rem;
  color: #417dfc;
}

.nav-pill span {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text);
}

.nav-pill:hover {
  background: #417dfc;
  border-color: #417dfc;
}

.nav-pill:hover i,
.nav-pill:hover span {
  color: #fff;
}

@media (max-width: 1100px) {
  .nav-pill-socials {
    display: none;
    /* Hide in navbar on smaller screens to prevent overlap */
  }
}

/* =========================
   BENGUET GALLERY & REELS UPGRADE
========================= */
.benguet-gallery-section {
  margin-top: 100px;
  padding-top: 60px;
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.benguet-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px auto;
  padding: 0 20px;
}

.benguet-header .section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(65, 125, 252, 0.1);
  color: #417dfc;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 15px;
}

body.dark .benguet-header .section-tag {
  background: rgba(65, 125, 252, 0.2);
  color: #6394ff;
}

.gallery-title {
  font-size: 2.2rem !important;
  font-weight: 800;
  margin-bottom: 15px !important;
  color: var(--text);
}

.benguet-subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.6;
}

.view-toggle-container {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 25px;
}

.toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.toggle-btn:hover {
  transform: translateY(-2px);
  background: var(--border);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.toggle-btn.active {
  background: #417dfc;
  color: #fff;
  border-color: #417dfc;
  box-shadow: 0 6px 15px rgba(65, 125, 252, 0.35);
}

body.dark .toggle-btn.active {
  background: #3b82f6;
  border-color: #3b82f6;
  box-shadow: 0 6px 15px rgba(59, 130, 246, 0.4);
}

/* REELS EXPERIENCE VIEWPORT */
.benguet-reels-container {
  display: none;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
  position: relative;
  perspective: 1000px;
}

.benguet-reels-container.active {
  display: flex;
  animation: fadeIn 0.6s ease forwards;
}

.reels-glow-aura {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 550px;
  height: 550px;
  max-width: 100vw;
  max-height: 100vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(65, 125, 252, 0.18) 0%, rgba(255, 46, 147, 0.08) 60%, transparent 100%);
  filter: blur(100px);
  opacity: 0.85;
  transition: background 1.2s ease, transform 1.2s ease;
  pointer-events: none;
  z-index: 1;
}

/* High-fidelity iPhone 15 Pro Frame */
.iphone-mockup {
  position: relative;
  width: 375px;
  max-width: 100%;
  height: 760px;
  background: #000;
  border: 12px solid #1c1c1e;
  border-radius: 46px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45),
    inset 0 0 4px rgba(255, 255, 255, 0.25);
  z-index: 5;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.iphone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 25px;
  background: #000;
  border-radius: 18px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.iphone-notch .camera {
  width: 10px;
  height: 10px;
  background: #09090b;
  border-radius: 50%;
  border: 1px solid #1f1f23;
  box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.4);
}

.iphone-notch .speaker {
  width: 36px;
  height: 3px;
  background: #111;
  border-radius: 1.5px;
}

/* Bezel buttons */
.iphone-btn {
  position: absolute;
  background: #1c1c1e;
  border-radius: 2px;
  z-index: -1;
  transition: transform 0.2s ease;
}

.iphone-btn.volume-up {
  top: 140px;
  left: -15px;
  width: 3px;
  height: 48px;
}

.iphone-btn.volume-down {
  top: 198px;
  left: -15px;
  width: 3px;
  height: 48px;
}

.iphone-btn.power {
  top: 170px;
  right: -15px;
  width: 3px;
  height: 70px;
}

/* Screen container */
.iphone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 35px;
  background: #09090b;
  display: flex;
  flex-direction: column;
}

/* Top Progress Bars Indicator */
.reels-progress-header {
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  display: flex;
  gap: 4px;
  z-index: 95;
}

.progress-bar-segment {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.progress-bar-segment:hover {
  transform: scaleY(1.5);
}

.progress-bar-segment .fill {
  width: 0%;
  height: 100%;
  background: #ffffff;
  border-radius: 2px;
}

/* Reels Top Controls & User Badge */
.reels-top-bar {
  position: absolute;
  top: 26px;
  left: 15px;
  right: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 90;
  padding: 5px 0;
}

.reels-user-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 70%;
}

.user-avatar-mini {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.user-info-mini {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.user-name {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
}

.sound-track-marquee {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  white-space: nowrap;
  width: 120px;
}

.marquee-inner {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 12s linear infinite;
}

@keyframes marquee {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-100%, 0, 0);
  }
}

.reels-system-controls {
  display: flex;
  gap: 6px;
}

.sys-btn {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.72rem;
  transition: all 0.25s ease;
}

.sys-btn:hover {
  background: rgba(0, 0, 0, 0.75);
  transform: scale(1.1);
}

/* Slides and background images */
.reels-slides-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.reel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.reel-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.slide-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

/* Tap Navigation Overlays */
.reels-nav-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
}

.nav-zone {
  height: 100%;
  cursor: pointer;
}

.nav-zone-left {
  width: 35%;
}

.nav-zone-right {
  width: 65%;
}

/* Visible Arrow buttons on Hover (Desktop) */
.reel-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(18, 18, 18, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 85;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.iphone-mockup:hover .reel-nav-arrow {
  opacity: 1;
  visibility: visible;
}

.arrow-left {
  left: -65px;
}

.arrow-right {
  right: -65px;
}

.reel-nav-arrow:hover {
  background: rgba(18, 18, 18, 0.85);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Actions Sidebar */
.reels-action-sidebar {
  position: absolute;
  right: 12px;
  bottom: 125px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  z-index: 25;
}

.sidebar-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  color: #fff;
}

.sidebar-action-btn .icon-circle {
  width: 42px;
  height: 42px;
  background: rgba(18, 18, 18, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sidebar-action-btn:hover .icon-circle {
  transform: scale(1.15);
  background: rgba(18, 18, 18, 0.75);
}

.sidebar-action-btn.active .icon-circle {
  color: #ff2e93;
  transform: scale(1.2);
  text-shadow: 0 0 10px rgba(255, 46, 147, 0.5);
  animation: heartBeat 0.4s ease;
}

.sidebar-action-btn.saved.active .icon-circle {
  color: #eab308;
}

.action-count {
  font-size: 0.65rem;
  font-weight: 700;
  margin-top: 4px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

@keyframes heartBeat {
  0% {
    transform: scale(1);
  }

  35% {
    transform: scale(1.35);
  }

  65% {
    transform: scale(0.95);
  }

  100% {
    transform: scale(1.2);
  }
}

/* Audio Spinner and visualizer */
.sidebar-audio-spinner {
  position: relative;
  width: 40px;
  height: 40px;
  cursor: pointer;
  margin-top: 5px;
}

.music-disc-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #ff2e93, #417dfc, #ff2e93);
  filter: blur(2px);
  opacity: 0.7;
  z-index: 1;
}

.spinning-disc {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid #18181b;
  z-index: 2;
  animation: rotateDisc 5s linear infinite;
}

.sidebar-audio-spinner.paused .spinning-disc {
  animation-play-state: paused;
}

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

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

.mini-visualizer {
  position: absolute;
  bottom: -4px;
  right: -4px;
  display: flex;
  align-items: flex-end;
  gap: 1.5px;
  background: rgba(10, 10, 10, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3px 4px;
  border-radius: 4px;
  z-index: 5;
}

.v-bar {
  width: 2px;
  height: 4px;
  background: #6394ff;
  border-radius: 1px;
  animation: bounceBar 0.8s ease infinite alternate;
  transform-origin: bottom;
}

.v-bar:nth-child(2) {
  height: 6px;
  animation-delay: 0.2s;
  background: #3b82f6;
}

.v-bar:nth-child(3) {
  height: 8px;
  animation-delay: 0.4s;
  background: #60a5fa;
}

.v-bar:nth-child(4) {
  height: 5px;
  animation-delay: 0.1s;
  background: #93c5fd;
}

.sidebar-audio-spinner.paused .v-bar {
  animation-play-state: paused;
  height: 2px !important;
}

@keyframes bounceBar {
  0% {
    transform: scaleY(0.4);
  }

  100% {
    transform: scaleY(1.4);
  }
}

/* Slide Caption Area */
.reels-bottom-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 75px 20px 16px;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.9) 0%,
      rgba(0, 0, 0, 0.6) 60%,
      rgba(0, 0, 0, 0) 100%);
  color: #fff;
  z-index: 15;
  pointer-events: auto;
}

.caption-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.slide-num {
  font-size: 0.68rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
}

.slide-location-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #6394ff;
}

.slide-display-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 3px !important;
  color: #fff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.slide-display-tagline {
  font-size: 0.8rem;
  font-weight: 600;
  color: #d4d4d8;
  margin-bottom: 8px !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.slide-display-desc-preview {
  font-size: 0.74rem;
  color: #a1a1aa;
  line-height: 1.4;
  margin-bottom: 12px !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.swipe-up-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  opacity: 0.95;
  cursor: pointer;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  width: 100%;
}

.swipe-up-indicator span {
  transition: color 0.3s ease;
}

.swipe-up-indicator:hover span {
  color: #6394ff;
}

.bounce-anim {
  animation: verticalBounce 1.4s infinite;
}

@keyframes verticalBounce {

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

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

/* Immersive Bottom Slide-Up Story sheet drawer */
.reels-detail-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -100%;
  background: rgba(18, 18, 20, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px 24px 0 0;
  z-index: 120;
  transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 16px 20px 30px 20px;
  color: #fff;
}

.reels-detail-sheet.open {
  bottom: 0;
}

.sheet-handle-bar {
  display: flex;
  justify-content: center;
  padding-bottom: 12px;
  cursor: pointer;
}

.handle-pill {
  width: 36px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  transition: background 0.3s ease;
}

.sheet-handle-bar:hover .handle-pill {
  background: rgba(255, 255, 255, 0.6);
}

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

.sheet-category {
  font-size: 0.78rem;
  font-weight: 800;
  color: #6394ff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sheet-close-btn,
.comments-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.sheet-close-btn:hover,
.comments-close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
}

.sheet-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff !important;
  margin-bottom: 4px !important;
}

.sheet-tagline {
  font-size: 0.85rem;
  font-weight: 600;
  color: #c8c8cc;
  margin-bottom: 10px !important;
}

.sheet-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 12px 0;
}

.sheet-body-text {
  font-size: 0.84rem;
  color: #e4e4e7;
  line-height: 1.5;
  margin-bottom: 16px !important;
}

.sheet-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.sheet-tags span {
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(65, 125, 252, 0.18);
  color: #6394ff;
  padding: 4px 10px;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.sheet-tags span:hover {
  background: rgba(65, 125, 252, 0.3);
}

.sheet-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
}

.author-credits {
  font-size: 0.7rem;
  color: #71717a;
}

/* Comments Sheet Overlay (Slides up like Instagram/FB Comments) */
.reels-comments-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -100%;
  height: 72%;
  background: rgba(18, 18, 20, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px 24px 0 0;
  z-index: 130;
  display: flex;
  flex-direction: column;
  transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  color: #fff;
}

.reels-comments-sheet.open {
  bottom: 0;
}

.comments-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.comments-header h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.comments-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.comment-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  animation: slideComment 0.3s ease-out forwards;
}

@keyframes slideComment {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

.comment-item .commenter-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.comment-details {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 8px 12px;
  flex: 1;
}

.commenter-name {
  font-size: 0.72rem;
  font-weight: 800;
  color: #6394ff;
  margin-bottom: 2px;
}

.comment-text {
  font-size: 0.78rem;
  color: #e4e4e7;
  line-height: 1.4;
}

.comment-time {
  font-size: 0.62rem;
  color: #71717a;
  margin-top: 4px;
}

.comments-footer {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 16px 20px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 10, 10, 0.5);
}

.comments-footer .commenter-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.comment-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 8px 14px;
  color: #fff;
  font-size: 0.78rem;
  transition: border-color 0.25s ease;
}

.comment-input:focus {
  outline: none;
  border-color: #417dfc;
  background: rgba(255, 255, 255, 0.12);
}

.comment-submit-btn {
  background: #417dfc;
  border: none;
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.75rem;
  transition: all 0.25s ease;
}

.comment-submit-btn:hover {
  background: #3b82f6;
  transform: scale(1.08);
}

/* Toast Copy Link notification */
.reels-toast {
  position: absolute;
  left: 50%;
  bottom: 85px;
  transform: translate(-50%, 20px);
  background: rgba(10, 10, 12, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reels-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Immersive Theater Mode styles */
.benguet-reels-container.fullscreen-mode {
  position: fixed;
  inset: 0;
  background: rgba(7, 7, 8, 0.97);
  z-index: 9999;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.benguet-reels-container.fullscreen-mode .iphone-mockup {
  height: 96vh;
  width: auto;
  aspect-ratio: 375 / 760;
  border-width: 6px;
  border-radius: 28px;
}

.benguet-reels-container.fullscreen-mode .iphone-screen {
  border-radius: 22px;
}

.benguet-reels-container.fullscreen-mode .reels-glow-aura {
  width: 800px;
  height: 800px;
  opacity: 0.25;
}

/* TRADITIONAL RESPONSIVE GRID VIEW */
.benguet-grid-container {
  display: none;
  padding: 20px 10px;
}

.benguet-grid-container.active {
  display: block;
  animation: fadeIn 0.6s ease forwards;
}

.benguet-grid-container .gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.benguet-grid-container .gallery-item {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  height: 100%;
}

.benguet-grid-container .gallery-img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.benguet-grid-container .gallery-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.benguet-grid-container .gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.benguet-grid-container .gallery-overlay span {
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  background: rgba(65, 125, 252, 0.85);
  padding: 6px 16px;
  border-radius: 20px;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.benguet-grid-container .gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.benguet-grid-container .gallery-item:hover .gallery-overlay span {
  transform: scale(1);
}

.benguet-grid-container .grid-details-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.benguet-grid-container .grid-details-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px !important;
}

.benguet-grid-container .grid-loc {
  font-size: 0.74rem;
  font-weight: 700;
  color: #417dfc;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
}

body.dark .benguet-grid-container .grid-loc {
  color: #6394ff;
}

.benguet-grid-container .grid-details-card p {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.5;
  margin: 0 !important;
}

.benguet-grid-container .gallery-item:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: #417dfc;
  box-shadow: 0 20px 40px rgba(65, 125, 252, 0.15);
}

body.dark .benguet-grid-container .gallery-item:hover {
  border-color: #3b82f6;
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.25);
}

/* RESPONSIVE BREAKPOINTS FOR SMARTPHONE FRAME & GRID */
@media (max-width: 1024px) {
  .benguet-grid-container .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .benguet-grid-container .gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 10px;
  }

  .benguet-grid-container .gallery-item {
    height: auto;
  }

  .benguet-grid-container .gallery-img-wrapper {
    height: 200px;
  }

  .benguet-reels-container {
    padding: 15px 0;
  }
}

/* Mobile fluid scaling for phone mockup */
@media (max-width: 480px) {
  .iphone-mockup {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  .iphone-screen {
    border-radius: 0;
  }

  .iphone-notch,
  .iphone-btn {
    display: none !important;
  }

  .reels-progress-header {
    top: 20px;
  }

  .reels-top-bar {
    top: 30px;
  }

  .reels-action-sidebar {
    right: 10px;
    bottom: 95px;
    gap: 12px;
  }

  .reels-bottom-caption {
    padding: 24px 65px 24px 15px;
    bottom: 0px;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

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


/* SMM Project Card Enhancements */
.project-actions {
  margin: 20px 0 0 0;
  display: flex;
  justify-content: center;
  width: 100%;
}

.view-project-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #111111 !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: auto;
  min-width: 150px;
  max-width: 100%;
  align-self: center;
}

.view-project-link:hover {
  transform: translateY(-5px);
  background: #ffffff;
  color: #111111 !important;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.social-links-grid {
  display: flex;
  gap: 12px;
  margin-top: 15px;
  border-top: 1px solid var(--border);
  padding-top: 15px;
}

.social-mini-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-light);
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.social-mini-btn:hover {
  background: #417dfc;
  color: #fff;
  transform: scale(1.1);
}

body.dark .social-mini-btn {
  background: rgba(255, 255, 255, 0.05);
}

/* =========================
   Agape Roofing Case Study
========================= */
:root {
  --agape-orange: #f39200;
  --agape-dark: #111111;
  --agape-gray: #333333;
  --agape-white: #ffffff;
}

body.case-study-page {
  background-color: var(--agape-dark);
  color: var(--agape-white);
  font-family: 'Inter', sans-serif;
  margin: 0;
}

.case-study-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Header / Hero */
.agape-hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
  padding: 60px;
  border-radius: 24px;
  margin-bottom: 40px;
  align-items: center;
  border: 1px solid #333;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.agape-logo-section {
  text-align: left;
}

.agape-logo-section h1 {
  font-size: 4rem;
  font-weight: 900;
  letter-spacing: -2px;
  margin: 0;
  line-height: 1;
  background: linear-gradient(to bottom, #fff, #888);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.agape-logo-section .roofing-text {
  color: var(--agape-orange);
  font-size: 1.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-top: -5px;
}

.agape-desc-sect.video-info p {
  font-size: 0.82rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.4;
}

.agape-stats-grid {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.stat-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.stat-icon {
  background: var(--agape-orange);
  color: white;
  width: 45px;
  height: 45px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.3rem;
  box-shadow: 0 10px 20px rgba(243, 146, 0, 0.2);
}

.stat-content h4 {
  color: var(--agape-orange);
  margin: 0 0 5px 0;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.stat-content p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.5;
  margin: 0;
}

.section-heading {
  background: rgba(255, 255, 255, 0.05);
  padding: 12px 24px;
  display: inline-block;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 25px;
  letter-spacing: 2px;
  border-left: 4px solid var(--agape-orange);
  border-radius: 0 8px 8px 0;
}

.smm-section-label {
  background: rgba(255, 255, 255, 0.05);
  padding: 12px 24px;
  display: inline-block;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 25px;
  letter-spacing: 2px;
  border-left: 4px solid var(--agape-orange);
  border-radius: 0 8px 8px 0;
  color: var(--text);
}

/* Sample Posts Row */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 60px;
}

.post-card {
  background: #1a1a1a;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #333;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.post-card:hover {
  transform: translateY(-12px);
  border-color: var(--agape-orange);
}

.post-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.post-label {
  padding: 15px;
  text-align: center;
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, 0.8);
  position: absolute;
  bottom: 0;
  width: 100%;
  backdrop-filter: blur(5px);
}

/* Carousel Set - Slides match new image */
.carousel-set {
  background: #1a1a1a;
  padding: 30px;
  border-radius: 24px;
  border: 1px solid #333;
  margin-bottom: 60px;
}

.slides-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 25px;
  scroll-snap-type: x mandatory;
  scrollbar-width: auto;
  scrollbar-color: var(--agape-orange) #333;
}

.slides-scroll::-webkit-scrollbar {
  height: 8px;
  display: block;
}

.slides-scroll::-webkit-scrollbar-track {
  background: #333;
  border-radius: 10px;
}

.slides-scroll::-webkit-scrollbar-thumb {
  background: var(--agape-orange);
  border-radius: 10px;
}

.slide-item {
  min-width: 280px;
  scroll-snap-align: center;
  background: white;
  color: black;
  padding: 0;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

@media (max-width: 600px) {
  .slide-item {
    min-width: 85%;
    /* Shows a peek of the next slide */
  }

  .agape-hero {
    padding: 30px 20px;
  }

  .agape-logo-section img {
    max-width: 100% !important;
  }
}

.slide-header {
  background: #111;
  color: white;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.slide-num-badge {
  background: var(--agape-orange);
  color: black;
  width: 30px;
  height: 30px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.slide-body {
  padding: 25px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.slide-icon {
  font-size: 3rem;
  color: #111;
  margin-bottom: 20px;
}

.slide-title {
  font-weight: 900;
  text-transform: uppercase;
  font-size: 1.1rem;
  margin-bottom: 10px;
  line-height: 1.2;
}

.slide-text {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}

/* Before After Slider Interaction */
.ba-section-container {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 30px;
  margin-bottom: 60px;
  align-items: start;
}

.ba-slider-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #333;
}

.ba-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

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

.ba-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  z-index: 2;
  border-right: 2px solid white;
}

.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: white;
  border-radius: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: black;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  cursor: ew-resize;
}

.ba-label {
  position: absolute;
  top: 20px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  font-weight: 800;
  font-size: 0.7rem;
  text-transform: uppercase;
  border-radius: 4px;
  z-index: 4;
}

.ba-label.before {
  left: 20px;
}

.ba-label.after {
  right: 20px;
}

/* Analytics Dashboard - Updated Stats */
.analytics-dashboard {
  background: #ffffff;
  color: #111111;
  padding: 20px;
  border-radius: 24px;
  margin-bottom: 60px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  border: 1px solid #eee;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 25px;
}

.analytic-item {
  border-left: 1px solid #f0f0f0;
  padding-left: 15px;
}

.analytic-item:nth-child(4n+1) {
  border-left: none;
  padding-left: 0;
}

.analytic-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: #888;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.analytic-value {
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1;
}

.analytic-growth {
  font-size: 0.75rem;
  font-weight: 800;
  color: #27ae60;
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 5px;
}

.chart-placeholder {
  height: 35px;
  margin-top: 5px;
}

.audience-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f5f5f5;
  padding-top: 20px;
}

.audience-chart-container {
  display: flex;
  align-items: center;
  gap: 20px;
}

.donut {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: conic-gradient(#1e3a29 78%, #eeeeee 0);
  position: relative;
}

.donut::after {
  content: '';
  position: absolute;
  inset: 15px;
  background: white;
  border-radius: 50%;
}

/* Tools Footer */
.tools-footer {
  display: flex;
  justify-content: center;
  gap: 50px;
  padding: 40px;
  border-top: 1px solid #333;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0 0 24px 24px;
}

.tool-icon {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #aaa;
  font-weight: 700;
  transition: color 0.3s ease;
}

.tool-icon:hover {
  color: var(--agape-orange);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
  color: var(--agape-orange);
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.85rem;
}

@media (max-width: 992px) {
  .agape-hero {
    grid-template-columns: 1fr;
  }

  .posts-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ba-section-container {
    grid-template-columns: 1fr;
  }

  .analytics-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

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

  .analytics-dashboard {
    padding: 25px 15px;
  }

  .analytics-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .analytic-item {
    border-left: none;
    border-bottom: 1px solid #eee;
    padding-left: 0;
    padding-bottom: 15px;
  }

  .analytic-value {
    font-size: 1.5rem;
  }

  .analytic-label {
    font-size: 0.7rem;
  }

  .analytic-item:last-child {
    border: none;
    padding-bottom: 0;
  }
}

.feed-section {
  padding: 60px 0;
  text-align: center;
}

.feed-title {
  font-size: 5rem;
  font-weight: 900;
  margin-bottom: 20px;
  color: white;
  text-transform: capitalize;
  letter-spacing: -2px;
}

/* Feed Filter Tabs */
.feed-filter-container {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  padding: 0 20px;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.05);
  color: #a0a0a5;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.filter-btn.active {
  background: #ffffff;
  color: #111111;
  border-color: #ffffff;
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.1);
}


.feed-grid {
  grid-template-columns: repeat(3, 1fr) !important;
  max-width: 1200px;
  margin: 0 auto 60px auto;
  gap: 20px !important;
}

@media (max-width: 1000px) {
  .feed-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .feed-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .feed-title {
    font-size: 3rem;
  }
}

/* Case Study Container */
.case-study-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}


.book-slider-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--bg);
  padding: 0;
}

/* Back link */
.book-back-link {
  position: absolute;
  top: 90px;
  left: 40px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.3s ease;
  text-decoration: none;
}

.book-back-link:hover {
  background: #417dfc;
  color: #fff;
  border-color: #417dfc;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(65, 125, 252, 0.3);
}

/* Slider BG area */
.book-slider-bg {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 60px 30px;
  overflow: hidden;
  gap: 60px;
}

.book-slider-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 30% 50%, rgba(65, 125, 252, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 75% 40%, rgba(168, 85, 247, 0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

body.dark .book-slider-bg::before {
  background:
    radial-gradient(ellipse 70% 60% at 30% 50%, rgba(65, 125, 252, 0.1) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 75% 40%, rgba(168, 85, 247, 0.08) 0%, transparent 60%);
}

/* Left: content */
.book-active-overlay {
  position: relative;
  z-index: 5;
  flex: 1;
  max-width: 520px;
  display: flex;
  align-items: center;
}

.book-active-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.book-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #417dfc;
  padding: 8px 18px;
  border: 1px solid rgba(65, 125, 252, 0.3);
  border-radius: 999px;
  width: fit-content;
  backdrop-filter: blur(6px);
  background: rgba(65, 125, 252, 0.06);
}

body.dark .book-label {
  background: rgba(65, 125, 252, 0.1);
  border-color: rgba(65, 125, 252, 0.25);
}

.book-active-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--text);
  letter-spacing: -1px;
  margin-top: 6px;
}

.book-active-desc {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-light);
  max-width: 480px;
  margin: 4px 0;
}

/* Nav row: prev / counter / next */
.book-slider-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
}

.book-nav-btn {
  width: 52px;
  height: 52px;
  border: 2px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(10px);
}

.book-nav-btn:hover {
  background: #417dfc;
  color: #fff;
  border-color: #417dfc;
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(65, 125, 252, 0.35);
}

body.dark .book-nav-btn {
  background: rgba(30, 31, 35, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
}

.book-nav-counter {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-light);
  letter-spacing: 2px;
  min-width: 70px;
  text-align: center;
}

/* Right: Active Book Image */
.book-active-img-wrapper {
  position: relative;
  z-index: 4;
  flex-shrink: 0;
  width: 360px;
  max-width: 100%;
  height: 500px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    -20px 20px 60px rgba(0, 0, 0, 0.15);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
}

body.dark .book-active-img-wrapper {
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    -20px 20px 60px rgba(0, 0, 0, 0.35);
}

.book-active-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Floating book badge */
.book-float-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(65, 125, 252, 0.9);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 8px 25px rgba(65, 125, 252, 0.4);
  animation: floatBadge 3s ease-in-out infinite alternate;
}

@keyframes floatBadge {
  0% {
    transform: translateY(0) rotate(0deg);
  }

  100% {
    transform: translateY(-8px) rotate(5deg);
  }
}

/* =========================
   BOOK THUMBNAIL STRIP
========================= */
.book-thumb-strip {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 20px 40px 36px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.book-thumb-strip::-webkit-scrollbar {
  display: none;
}

.book-thumb {
  flex-shrink: 0;
  width: 120px;
  height: 170px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  scroll-snap-align: start;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  border: 2px solid transparent;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.book-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.6) 100%);
  pointer-events: none;
  transition: all 0.4s ease;
}

.book-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.book-thumb:hover img {
  transform: scale(1.08);
}

.book-thumb:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

/* Active thumb */
.book-thumb.active {
  border-color: #417dfc;
  transform: translateY(-7px) scale(1.04);
  box-shadow:
    0 12px 35px rgba(65, 125, 252, 0.25),
    0 0 0 3px rgba(65, 125, 252, 0.15);
}

.book-thumb.active::after {
  background: linear-gradient(180deg, transparent 40%, rgba(65, 125, 252, 0.4) 100%);
}

/* Thumb number overlay */
.book-thumb-number {
  position: absolute;
  bottom: 8px;
  left: 10px;
  z-index: 3;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  opacity: 0.85;
}

/* =========================
   BOOK OVERVIEW SECTION
========================= */
.book-overview-section {
  padding: 80px 20px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.book-overview-container {
  max-width: 1100px;
  margin: 0 auto;
}

.book-overview-header {
  text-align: center;
  margin-bottom: 50px;
}

.book-overview-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-light);
  max-width: 700px;
  margin: 20px auto 0;
}

.book-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.book-stat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px;
  transition: all 0.35s ease;
}

.book-stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  border-color: rgba(65, 125, 252, 0.3);
}

body.dark .book-stat-card:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.book-stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(65, 125, 252, 0.1);
  color: #417dfc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 18px;
}

.book-stat-card h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}

.book-stat-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-light);
}

/* =========================
   BOOK SLIDER — TABLET
========================= */
@media (max-width: 1024px) {
  .book-slider-bg {
    padding: 120px 30px 20px;
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 30px;
  }

  .book-active-overlay {
    max-width: 100%;
    order: 2;
    justify-content: center;
  }

  .book-active-content {
    align-items: center;
    text-align: center;
  }

  .book-active-desc {
    text-align: center;
  }

  .book-active-img-wrapper {
    order: 1;
    width: 280px;
    height: 380px;
  }

  .book-slider-nav {
    justify-content: center;
  }

  .book-thumb-strip {
    padding: 14px 20px 28px;
    gap: 10px;
    justify-content: flex-start;
  }

  .book-thumb {
    width: 100px;
    height: 140px;
  }

  .book-back-link {
    top: 80px;
    left: 20px;
    font-size: 0.8rem;
    padding: 8px 16px;
  }
}

/* =========================
   BOOK SLIDER — MOBILE
========================= */
@media (max-width: 640px) {
  .book-slider-section {
    min-height: auto;
  }

  .book-slider-bg {
    padding: 100px 20px 15px;
    gap: 24px;
  }

  .book-active-img-wrapper {
    width: 200px;
    height: 280px;
    border-radius: 12px;
  }

  .book-active-title {
    font-size: 1.8rem;
  }

  .book-active-desc {
    font-size: 0.92rem;
    line-height: 1.6;
  }

  .book-label {
    font-size: 0.6rem;
    padding: 6px 14px;
    letter-spacing: 2px;
  }

  .book-nav-btn {
    width: 44px;
    height: 44px;
    font-size: 0.85rem;
  }

  .book-nav-counter {
    font-size: 0.95rem;
  }

  .book-thumb-strip {
    padding: 10px 14px 22px;
    gap: 8px;
  }

  .book-thumb {
    width: 80px;
    height: 112px;
    border-radius: 10px;
  }

  .book-thumb-number {
    font-size: 0.6rem;
    bottom: 5px;
    left: 7px;
  }

  .book-float-badge {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
    border-radius: 10px;
    top: 12px;
    right: 12px;
  }

  .book-back-link {
    top: 75px;
    left: 16px;
    font-size: 0.75rem;
    padding: 7px 14px;
  }

  .book-overview-section {
    padding: 50px 16px;
  }

  .book-stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ================================================================
   COMPREHENSIVE RESPONSIVE FIXES — ALL DEVICES
   Applied after all existing rules to take priority where needed
================================================================ */

/* ---- Prevent horizontal overflow on every page ---- */
html,
body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

/* ---- Navbar: ensure no overflow on any breakpoint ---- */
.nav-container {
  flex-wrap: nowrap;
  min-width: 0;
}

.logo.custom-logo {
  flex-shrink: 0;
  white-space: nowrap;
  min-width: 0;
}

/* Hide pill socials below 1100px (they push layout) */
@media (max-width: 1100px) {
  .nav-pill-socials {
    display: none !important;
  }
}

/* Hide desktop nav links below 900px — use hamburger */
@media (max-width: 900px) {
  .custom-nav-links:not(.show) {
    display: none !important;
  }

  .hamburger {
    display: flex !important;
  }
}

/* Ensure nav links panel doesn't go off-screen */
@media (max-width: 900px) {
  .nav-links {
    right: 12px;
    width: min(260px, calc(100vw - 24px));
  }
}

@media (max-width: 400px) {
  .logo-text {
    display: none;
  }

  .logo-j {
    font-size: 1.3rem;
  }

  .nav-container {
    padding: 14px 12px;
  }
}

/* ---- Hero Section ---- */
@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .hero-container {
    flex-direction: column;
    text-align: center;
    padding: 0 16px;
    gap: 40px;
  }

  .hero-content-left {
    max-width: 100%;
    width: 100%;
  }

  .hero-tag {
    display: block;
  }

  .hero-right {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
  }

  .hero-carousel-wrapper {
    max-width: 100%;
  }

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

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

@media (max-width: 600px) {
  .hero {
    padding-top: 30px;
  }

  .hero-right {
    max-width: 320px;
  }

  .hero-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .feature-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
  }
}

@media (max-width: 480px) {
  .hero-container {
    padding: 0 14px;
  }

  .hero-right {
    max-width: 280px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: none !important;
    justify-content: center;
    text-align: center;
    margin-left: 0 !important;
  }

  .hero-buttons .link-only {
    justify-content: center;
  }

  .blue-btn {
    text-align: center;
    justify-content: center;
    display: flex;
  }
}

/* ---- Section padding fluid ---- */
@media (max-width: 768px) {
  .section {
    padding: 60px 16px;
  }

  .section-header {
    margin-bottom: 36px;
  }

  .section-title {
    font-size: clamp(1.6rem, 6vw, 2.4rem);
  }
}

@media (max-width: 480px) {
  .section {
    padding: 50px 14px;
  }
}

/* ---- About Grid: 2-col on tablet, 1-col on mobile ---- */
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .info-card {
    padding: 28px 20px;
  }
}

/* ---- Story section ---- */
@media (max-width: 768px) {
  .story-container {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .story-images {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }

  .story-title {
    font-size: clamp(1.8rem, 6vw, 2.4rem);
  }

  .story-subtitle {
    font-size: 1.15rem;
  }

  .story-text {
    font-size: 1rem;
  }

  .profile-img-badge {
    width: 90px;
    height: 90px;
    top: -25px;
    left: -25px;
  }
}

/* ---- Skills grid ---- */
@media (max-width: 768px) {
  .skills-section {
    padding: 60px 16px;
  }

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

  .skill-card {
    padding: 14px 8px;
  }

  .category-title {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .soft-skills-box {
    padding: 32px 16px;
  }

  .soft-skills-box h3 {
    font-size: 1.4rem;
  }

  .pill-grid span {
    font-size: 0.78rem;
    padding: 10px 14px;
  }
}

/* ---- Services grid ---- */
@media (max-width: 768px) {
  .services-section {
    padding: 60px 16px;
  }

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

  .service-card {
    text-align: left;
    padding: 28px 22px;
  }
}

@media (max-width: 480px) {
  .services-grid {
    gap: 14px;
  }
}

/* ---- Projects / Card grid ---- */
@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

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

  .project-card img {
    width: 100%;
    height: auto;
  }

  .project-info {
    padding: 18px;
  }

  .project-info h3 {
    font-size: 1.1rem;
  }

  .project-info p {
    font-size: 0.9rem;
  }

  .view-project,
  .view-project-link {
    width: 100%;
    text-align: center;
    justify-content: center;
    font-size: 0.85rem;
  }
}

/* ---- Testimonials grid ---- */
@media (max-width: 900px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .testimonials-grid .testimonial-card:nth-child(5) {
    grid-column: 1 / -1;
    max-width: 420px;
    margin: 0 auto;
  }
}

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

  .testimonials-grid .testimonial-card:nth-child(5) {
    grid-column: auto;
    max-width: none;
  }

  .testimonial-card {
    padding: 22px 18px;
  }

  .testimonial-img {
    width: 140px;
    height: 140px;
  }
}

/* ---- Contact section ---- */
@media (max-width: 900px) {
  .contact-container {
    flex-direction: column-reverse;
    text-align: center;
    gap: 40px;
    padding: 0 16px 60px;
  }

  .contact-content-left {
    width: 100%;
  }

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

  .contact-content-right {
    width: 100%;
  }

  .contact-image-wrapper {
    max-width: 280px;
    margin: 0 auto;
  }
}

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

  .contact-link-card {
    padding: 14px 20px;
  }

  .contact-image-wrapper {
    max-width: 220px;
  }
}

@media (max-width: 400px) {
  .contact-link-card span {
    font-size: 0.9rem;
  }

  .contact-image-wrapper {
    max-width: 180px;
  }
}

/* ---- Modal responsive ---- */
@media (max-width: 600px) {
  .modal {
    padding: 6px;
  }

  .modal-content {
    padding: 14px 10px 18px;
    border-radius: 18px;
    margin: 8px auto;
  }

  .modal-image-scroll {
    max-height: 50vh;
    padding: 6px;
  }

  .slider-btn {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  #modal-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
  }

  #modal-desc {
    font-size: 0.88rem;
  }

  .visit-project-btn {
    font-size: 0.88rem;
    padding: 11px 18px;
    width: 100%;
    justify-content: center;
  }
}

/* ---- About carousel / cert carousel ---- */
@media (max-width: 600px) {

  .about-slides,
  .cer-slides {
    height: 280px;
  }

  .about-slide,
  .cer-slide {
    padding: 12px;
  }

  .about-carousel,
  .cer-carousel {
    border-radius: 18px;
  }
}

/* ---- Agape case study ---- */
@media (max-width: 768px) {
  .agape-hero {
    grid-template-columns: 1fr;
    padding: 30px 18px;
    gap: 28px;
  }

  .agape-logo-section h1 {
    font-size: 2.6rem;
  }

  .agape-logo-section .roofing-text {
    font-size: 1.2rem;
  }

  .posts-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

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

  .tools-footer {
    flex-wrap: wrap;
    gap: 20px;
    padding: 24px 16px;
  }

  .feed-title {
    font-size: 2.2rem;
    letter-spacing: -1px;
  }
}

@media (max-width: 480px) {
  .agape-hero {
    padding: 24px 14px;
  }

  .agape-logo-section h1 {
    font-size: 2rem;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .analytics-grid {
    grid-template-columns: 1fr;
  }

  .ba-section-container {
    grid-template-columns: 1fr;
  }

  .feed-title {
    font-size: 1.8rem;
  }

  .feed-grid {
    grid-template-columns: 1fr !important;
  }

  .case-study-container {
    padding: 24px 14px;
  }
}

/* ---- Story detail / full-text pages ---- */
@media (max-width: 768px) {
  .story-detail-section {
    padding: 20px 16px 50px;
  }

  .story-main-title {
    font-size: clamp(1.8rem, 7vw, 2.8rem);
    letter-spacing: -0.5px;
  }

  .story-main-subtitle {
    font-size: 1.1rem;
  }

  .story-visual-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .story-full-text {
    font-size: 1.05rem;
    line-height: 1.75;
  }

  .story-extra-content h2 {
    font-size: 1.6rem !important;
  }
}

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

  .story-full-text {
    font-size: 0.97rem;
  }
}

/* ---- Back-to-top button ---- */
@media (max-width: 480px) {
  #back-to-top {
    bottom: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    font-size: 0.85rem;
  }
}

/* ---- SMM / mockup pages ---- */
@media (max-width: 768px) {

  .smm-branding-section,
  .smm-sneakers-section {
    padding: 30px 14px;
  }

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

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

/* ---- Benguet gallery / reels ---- */
@media (max-width: 768px) {
  .benguet-gallery-section {
    margin-top: 60px;
    padding-top: 40px;
  }

  .benguet-grid-container .gallery-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .iphone-mockup {
    width: min(340px, 90vw);
    height: auto;
    aspect-ratio: 375 / 760;
  }
}

@media (max-width: 480px) {
  .benguet-reels-container {
    padding: 10px 0;
  }

  .iphone-mockup {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  .iphone-screen {
    border-radius: 0;
  }

  .iphone-notch,
  .iphone-btn {
    display: none !important;
  }
}


/* ---- Book cover slider ---- */
@media (max-width: 768px) {
  .book-slider-bg {
    padding: 100px 20px 16px;
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 24px;
  }

  .book-active-overlay {
    order: 2;
    max-width: 100%;
    justify-content: center;
  }

  .book-active-content {
    align-items: center;
    text-align: center;
  }

  .book-active-img-wrapper {
    order: 1;
    width: min(240px, 70vw);
    height: auto;
    aspect-ratio: 360/500;
  }

  .book-slider-nav {
    justify-content: center;
  }

  .book-back-link {
    top: 76px;
    left: 14px;
  }
}

/* ---- General image overflow guard ---- */
img {
  max-width: 100%;
  height: auto;
}

/* ---- Fix any elements that can bleed the layout ---- */
.hero-glow,
.contact-section::before,
.contact-section::after {
  pointer-events: none;
  overflow: hidden;
}

/* ---- Floating badge position guard on small screens ---- */
@media (max-width: 480px) {
  .floating-badge {
    position: static;
    transform: none;
    margin-top: 16px;
    width: 100%;
    text-align: center;
  }
}

/* ---- Services page section label dark mode ---- */
body.dark .section-label {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
}

body.dark .service-card {
  background: rgba(30, 31, 35, 0.85);
  border-color: var(--border);
}

body.dark .service-card h3 {
  color: var(--text);
}

body.dark .service-card p,
body.dark .section-subtitle {
  color: var(--text-light);
}

/* ---- Ensure view-project button text wrap properly ---- */
.view-project,
.view-project-link {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 480px) {

  .view-project,
  .view-project-link {
    white-space: normal;
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* =============================================================
   COMPREHENSIVE DARK MODE TEXT READABILITY FIXES
   Fixes all text that becomes unreadable when dark mode is on
   ============================================================= */

/* ---- Slider / modal dots: active dot was #111 (invisible in dark) ---- */
body.dark .slider-dots .dot.active {
  background: #ffffff;
}

/* ---- skill-card hover border in dark mode ---- */
body.dark .skill-card:hover {
  border-color: rgba(65, 125, 252, 0.5);
}

/* ---- Section label in dark mode (border was rgba(0,0,0,0.1) – nearly invisible) ---- */
body.dark .section-label {
  border-color: rgba(255, 255, 255, 0.12);
}

/* ---- Contact link cards: white bg + dark text (already in 3811-3818 but reinforce) ---- */
body.dark .contact-link-card {
  background: var(--surface-2);
  border-color: var(--border);
}

body.dark .contact-link-card span {
  color: var(--text);
}

/* ---- Floating badges on about/contact: text visible in both modes ---- */
body.dark .float-shape span {
  color: #ffffff;
}

/* ---- Story subtitle color (uses var(--text-light) already — reinforce) ---- */
body.dark .story-subtitle {
  color: var(--text-light);
}

/* ---- Profile image badge background in dark ---- */
body.dark .profile-img-badge {
  background: var(--surface-2);
}

/* ---- Project card hover border in dark mode ---- */
body.dark .project-card:hover {
  border-color: rgba(65, 125, 252, 0.35);
}

/* ---- Service card hover border in dark mode ---- */
body.dark .service-card:hover {
  border-color: rgba(65, 125, 252, 0.35);
}

/* ---- Testimonial card hover border in dark mode ---- */
body.dark .testimonial-card:hover {
  border-color: rgba(65, 125, 252, 0.35);
}

/* ---- Nav links in mobile dropdown (dark bg) ---- */
body.dark .nav-links {
  background: var(--surface);
  border-color: var(--border);
}

/* ---- Back-to-top button in dark ---- */
body.dark #back-to-top {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
}

/* ---- Results section cards (dark border) ---- */
body.dark .result-card {
  border-color: var(--border);
}

/* ---- Soft-skills pill text visible in dark ---- */
body.dark .pill-grid span {
  color: var(--text);
}

/* ---- Feature items text in hero ---- */
body.dark .feature-item span {
  color: var(--text);
}

/* ---- Section tag pill readable in dark ---- */
body.dark .section-tag {
  background: var(--surface);
  color: var(--text-light);
  border-color: var(--border);
}

/* ---- Modal slider dot active in dark ---- */
body.dark .slider-dots .dot {
  background: rgba(255, 255, 255, 0.25);
}

/* ---- About-dot (non-active) visible in dark ---- */
body.dark .about-dot {
  background: rgba(255, 255, 255, 0.25);
}

/* ---- Cer-dot (non-active) visible in dark ---- */
body.dark .cer-dot {
  background: rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   GLOBAL LIGHTBOX MODAL SYSTEM (Clean Fullscreen Lightbox)
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100005;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
  user-select: none;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 7, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  cursor: zoom-out;
}

.lightbox-content {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100vh;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transform: scale(0.96);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.active .lightbox-content {
  transform: scale(1);
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  background: rgba(18, 16, 14, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  line-height: 1;
  color: #ffffff;
  cursor: pointer;
  z-index: 100010;
  pointer-events: auto;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  outline: none;
}

.lightbox-close:hover {
  background: rgba(255, 71, 87, 0.95);
  color: #ffffff;
  border-color: rgba(255, 71, 87, 1);
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 8px 25px rgba(255, 71, 87, 0.5);
}

.lightbox-slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.lightbox-image-container {
  position: relative;
  max-width: 90vw;
  max-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  background: transparent;
  border-radius: 12px;
  pointer-events: auto;
}

.lightbox-image-container img {
  max-width: 88vw;
  max-height: calc(100vh - 140px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.25s ease;
}

.lightbox-nav-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99998;
  pointer-events: auto;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  outline: none;
}

#lightbox-prev,
.lightbox-nav-btn:first-of-type,
.lightbox-nav-btn#lightbox-prev {
  left: 28px;
}

#lightbox-next,
.lightbox-nav-btn:last-of-type,
.lightbox-nav-btn#lightbox-next {
  right: 28px;
}

.lightbox-nav-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-50%) scale(1.12);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}

.lightbox-details {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
  z-index: 99997;
  text-align: center;
  max-width: 85vw;
}

.lightbox-details h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
  letter-spacing: 0.3px;
}

.lightbox-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 14px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 1.5px;
  font-family: monospace, sans-serif;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* Post card hover zoom indicator */
.posts-grid .post-card,
.feed-grid .post-card {
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.posts-grid .post-card::after,
.feed-grid .post-card::after {
  content: '\f00e';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

.posts-grid .post-card:hover::after,
.feed-grid .post-card:hover::after {
  opacity: 1;
}

@media (max-width: 768px) {
  .lightbox-close {
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }

  .lightbox-nav-btn {
    width: 44px;
    height: 44px;
    font-size: 1.05rem;
  }

  #lightbox-prev,
  .lightbox-nav-btn:first-of-type,
  .lightbox-nav-btn#lightbox-prev {
    left: 12px;
  }

  #lightbox-next,
  .lightbox-nav-btn:last-of-type,
  .lightbox-nav-btn#lightbox-next {
    right: 12px;
  }

  .lightbox-image-container {
    max-width: 95vw;
    max-height: calc(100vh - 160px);
  }

  .lightbox-image-container img {
    max-width: 95vw;
    max-height: calc(100vh - 160px);
    border-radius: 8px;
  }

  .lightbox-details {
    bottom: 16px;
    max-width: 92vw;
  }

  .lightbox-details h3 {
    font-size: 0.95rem;
  }

  .lightbox-counter {
    font-size: 0.75rem;
    padding: 3px 10px;
  }
}

/* ==========================================================================
   BEHANCE 2026 DESIGN SYSTEM: "ALL-YOU-NEED SOCIAL MEDIA PORTFOLIO"
   Inspired by Behance project 245475787
   ========================================================================== */

/* Typography Helpers */
.font-condensed {
  font-family: var(--font-condensed) !important;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.font-display {
  font-family: var(--font-display) !important;
}

.font-mono {
  font-family: var(--font-mono) !important;
}

.text-lime {
  color: var(--behance-lime) !important;
}

.text-blue {
  color: var(--behance-blue) !important;
}

.bg-lime {
  background-color: var(--behance-lime) !important;
  color: #000000 !important;
}

/* Global Container */
.behance-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* Canvas Backgrounds */
.dark-grid-canvas {
  background-color: var(--canvas-obsidian);
  background-image:
    radial-gradient(rgba(249, 158, 26, 0.14) 1.2px, transparent 1.2px),
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 28px 28px, 112px 112px, 112px 112px;
  position: relative;
  overflow: hidden;
}

body:not(.dark).dark-grid-canvas,
body:not(.dark) .dark-grid-canvas {
  background-color: var(--canvas-obsidian);
  background-image:
    radial-gradient(rgba(217, 98, 0, 0.1) 1.2px, transparent 1.2px),
    linear-gradient(to right, rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.035) 1px, transparent 1px);
  background-size: 28px 28px, 112px 112px, 112px 112px;
}

.checkerboard-canvas-wrapper {
  padding: 40px 0;
}

.checkerboard-canvas {
  background-color: #f7f9fb;
  background-image:
    linear-gradient(45deg, #e3e7ee 25%, transparent 25%),
    linear-gradient(-45deg, #e3e7ee 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e3e7ee 75%),
    linear-gradient(-45deg, transparent 75%, #e3e7ee 75%);
  background-size: 24px 24px;
  background-position: 0 0, 0 12px, 12px -12px, -12px 0px;
  border-radius: 32px;
  padding: 60px 45px;
  color: #181512;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  position: relative;
}

body.dark .checkerboard-canvas {
  background-color: #14110e;
  background-image:
    linear-gradient(45deg, #1c1813 25%, transparent 25%),
    linear-gradient(-45deg, #1c1813 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #1c1813 75%),
    linear-gradient(-45deg, transparent 75%, #1c1813 75%);
  background-size: 24px 24px;
  color: #ffffff;
  border: 1px solid rgba(249, 158, 26, 0.2);
}

/* Figma Selection Bounding Box Metaphor */
.figma-selection-frame {
  position: relative;
  border: 2px dashed var(--behance-blue);
  background: rgba(13, 82, 255, 0.04);
  border-radius: 6px;
  padding: 24px 28px;
  margin: 20px 0;
  transition: all 0.3s ease;
}

.figma-selection-frame:hover {
  background: rgba(13, 82, 255, 0.07);
  box-shadow: 0 0 20px rgba(13, 82, 255, 0.15);
}

.figma-anchor {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #ffffff;
  border: 2px solid var(--behance-blue);
  z-index: 10;
}

.figma-anchor.top-left {
  top: -6px;
  left: -6px;
}

.figma-anchor.top-right {
  top: -6px;
  right: -6px;
}

.figma-anchor.bottom-left {
  bottom: -6px;
  left: -6px;
}

.figma-anchor.bottom-right {
  bottom: -6px;
  right: -6px;
}

.figma-cursor-badge {
  position: absolute;
  top: -15px;
  left: 20px;
  background: var(--behance-blue);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px 3px 7px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(13, 82, 255, 0.4);
  z-index: 11;
  text-transform: none;
  letter-spacing: 0.5px;
}

.figma-cursor-badge svg {
  width: 12px;
  height: 12px;
  fill: #ffffff;
}

/* Tilted Neon Ribbon Marquee Dividers */
.marquee-divider-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 30px 0;
  margin: 30px 0;
  z-index: 25;
}

.marquee-ribbon-banner {
  background: var(--behance-lime);
  color: #000000;
  padding: 12px 0;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4), 0 0 25px var(--behance-lime-glow);
  transform: rotate(-2deg);
  width: 110%;
  margin-left: -5%;
  border-top: 2px solid #000000;
  border-bottom: 2px solid #000000;
}

.marquee-ribbon-banner.tilt-right {
  transform: rotate(2deg);
}

.marquee-scroll-track {
  display: flex;
  white-space: nowrap;
  animation: ribbonMarquee 22s linear infinite;
  will-change: transform;
}

.marquee-scroll-track span {
  font-family: var(--font-condensed);
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-weight: 900;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 0 25px;
  display: inline-flex;
  align-items: center;
  gap: 15px;
}

.marquee-scroll-track i {
  font-size: 0.8em;
}

@keyframes ribbonMarquee {
  0% {
    transform: translateX(0);
  }

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

/* Section Header Styles */
.behance-section-header {
  margin-bottom: 50px;
  position: relative;
}

.behance-section-header.text-center {
  text-align: center;
}

.behance-title-condensed {
  font-family: var(--font-condensed);
  font-size: clamp(2.8rem, 6.5vw, 5.2rem);
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 8px 0;
}

body:not(.dark) .checkerboard-canvas .behance-title-condensed {
  color: #181512;
}

.behance-subtitle-lime {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 700;
  color: var(--behance-lime);
  letter-spacing: 0.5px;
  margin: 0;
  display: inline-block;
}

body:not(.dark) .checkerboard-canvas .behance-subtitle-lime {
  color: #d96200;
}

/* Tag Badge Strip */
.tag-badge-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.behance-tag-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--behance-lime);
  background: rgba(249, 158, 26, 0.1);
  border: 1px solid rgba(249, 158, 26, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.behance-tag-badge:hover {
  background: var(--behance-lime);
  color: #000000;
  box-shadow: 0 0 16px var(--behance-lime-glow);
  transform: translateY(-2px);
}

/* Glassmorphism Floating Play Badge & Overlays */
.glass-play-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.3rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.glass-play-btn:hover {
  transform: scale(1.15);
  background: var(--behance-lime);
  color: #000000;
  border-color: var(--behance-lime);
  box-shadow: 0 0 25px var(--behance-lime-glow);
}

.glass-pill-badge {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 8px 18px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   HERO SECTION (BEHANCE 2026)
   ========================================================================== */
.hero-behance-section {
  padding: 60px 0 80px 0;
  position: relative;
}

.hero-behance-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 50px;
  align-items: center;
}

.hero-title-main {
  font-family: var(--font-condensed);
  font-size: clamp(3.2rem, 7.5vw, 6.2rem);
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 0.92;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 20px 0;
}

.hero-title-main .title-accent {
  color: var(--behance-lime);
  text-shadow: 0 0 30px rgba(249, 158, 26, 0.35);
}

.hero-value-statement {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-light);
  margin: 0;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0;
}

.hero-stat-card {
  background: var(--canvas-card);
  border: 1px solid var(--canvas-border);
  border-radius: 16px;
  padding: 16px 14px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.hero-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--behance-lime);
  opacity: 0.8;
}

.hero-stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--behance-lime);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(249, 158, 26, 0.18);
}

.hero-stat-number {
  font-family: var(--font-condensed);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 900;
  color: var(--behance-lime);
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat-label {
  font-size: 0.78rem;
  color: var(--text-light);
  line-height: 1.3;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 30px;
}

.btn-behance-primary {
  background: var(--behance-lime);
  color: #000000 !important;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  padding: 14px 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px var(--behance-lime-glow);
  border: none;
  cursor: pointer;
}

.btn-behance-primary:hover {
  background: var(--behance-lime-hover);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px var(--behance-lime-glow);
  color: #000000 !important;
}

.btn-behance-outline {
  background: transparent;
  color: var(--text) !important;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.btn-behance-outline:hover {
  border-color: var(--behance-lime);
  color: var(--behance-lime) !important;
  background: var(--behance-lime-dim);
  transform: translateY(-3px);
}

/* Hero Right Showcase Composition */
.hero-visual-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: var(--canvas-card);
  border: 1px solid var(--canvas-border);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 4 / 3;
  width: 100%;
}

.hero-visual-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 10px 10px 0 10px;
}

.hero-visual-card:hover img {
  transform: scale(1.02);
}

.hero-floating-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: all 0.3s ease;
  z-index: 5;
}

body.dark .hero-floating-badge {
  background: rgba(14, 12, 10, 0.88);
  border: 1px solid rgba(249, 158, 26, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

body.dark .hero-badge-title {
  color: #ffffff;
}

body.dark .hero-badge-subtitle {
  color: var(--behance-lime);
}

body.dark .hero-edition-badge {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

body.dark .hero-edition-badge i {
  color: var(--behance-lime);
}

body:not(.dark) .hero-floating-badge {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(24, 21, 18, 0.14);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body:not(.dark) .hero-badge-title {
  color: #181512;
}

body:not(.dark) .hero-badge-subtitle {
  color: #d96200;
}

body:not(.dark) .hero-edition-badge {
  background: rgba(217, 98, 0, 0.08);
  border: 1px solid rgba(217, 98, 0, 0.22);
  color: #181512;
}

body:not(.dark) .hero-edition-badge i {
  color: #d96200;
}

.hero-badge-title {
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.3px;
}

.hero-badge-subtitle {
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-mono);
  line-height: 1.2;
  margin-top: 2px;
}

.hero-edition-badge {
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.hero-floating-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.live-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--behance-lime);
  box-shadow: 0 0 10px var(--behance-lime);
  animation: livePulse 1.8s infinite;
}

@keyframes livePulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(249, 158, 26, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(249, 158, 26, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(249, 158, 26, 0);
  }
}

/* ==========================================================================
   ABOUT SECTION (CHECKERBOARD CANVAS)
   ========================================================================== */
.about-checkerboard-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-story-p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 16px;
  color: inherit;
}

.about-superpowers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.superpower-card {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  padding: 14px;
  transition: all 0.25s ease;
}

body.dark .superpower-card {
  background: rgba(23, 20, 17, 0.85);
  border: 1px solid rgba(249, 158, 26, 0.15);
}

.superpower-card:hover {
  transform: translateY(-2px);
  border-color: var(--behance-blue);
}

.superpower-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--behance-blue);
}

.superpower-card p {
  font-size: 0.82rem;
  margin: 0;
  line-height: 1.4;
  color: inherit;
  opacity: 0.85;
}

/* Timeline Cards */
.about-timeline-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 720px;
  overflow-y: auto;
  padding-right: 6px;
}

.about-timeline-cards::-webkit-scrollbar {
  width: 5px;
}

.about-timeline-cards::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

.about-timeline-cards::-webkit-scrollbar-thumb {
  background: rgba(249, 158, 26, 0.25);
  border-radius: 999px;
}

.about-timeline-cards::-webkit-scrollbar-thumb:hover {
  background: var(--behance-lime);
}

.timeline-behance-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  position: relative;
  transition: all 0.3s ease;
}

body.dark .timeline-behance-card {
  background: #171411;
  border: 1px solid rgba(249, 158, 26, 0.18);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.timeline-behance-card:hover {
  transform: translateX(4px);
  border-color: var(--behance-lime);
}

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

.timeline-year-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--behance-lime);
  color: #000000;
  padding: 3px 10px;
  border-radius: 999px;
}

/* ==========================================================================
   SINGLE POST & BRAND POSTERS (DARK GRID)
   ========================================================================== */
.filter-tabs-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}

.filter-tab-btn {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--canvas-card);
  color: var(--text-light);
  border: 1px solid var(--canvas-border);
  cursor: pointer;
  transition: all 0.25s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-tab-btn:hover,
.filter-tab-btn.active {
  background: var(--behance-lime);
  color: #000000;
  border-color: var(--behance-lime);
  box-shadow: 0 0 18px var(--behance-lime-glow);
  transform: translateY(-2px);
}

.posts-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 24px;
}

.post-card-behance {
  background: var(--canvas-card);
  border: 1px solid var(--canvas-border);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.post-card-behance:hover {
  transform: translateY(-6px);
  border-color: var(--behance-lime);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(249, 158, 26, 0.2);
}

.post-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #0f0d0a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0f0d0a;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.post-card-behance:hover .post-card-img-wrap img {
  transform: scale(1.04);
}

.post-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 9, 8, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.post-card-behance:hover .post-card-overlay,
.thumbnail-card-behance:hover .post-card-overlay,
.certificate-card-behance:hover .post-card-overlay,
.story-card-916:hover .post-card-overlay {
  opacity: 1;
}

.post-card-info {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.post-card-category {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--behance-lime);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.post-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
  line-height: 1.3;
}

/* ==========================================================================
   REELS / SHORTS & VIDEO SHOWCASE
   ========================================================================== */
.reels-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 28px;
}

.reel-card-behance {
  background: var(--canvas-card);
  border: 1px solid var(--canvas-border);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  transition: all 0.35s ease;
}

.reel-card-behance:hover {
  transform: translateY(-6px);
  border-color: var(--behance-lime);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 25px rgba(249, 158, 26, 0.25);
}

.reel-media-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #0f0d0a;
  overflow: hidden;
}

.reel-media-wrap video,
.reel-media-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}

.reel-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.reel-card-behance:hover .reel-play-overlay {
  background: rgba(0, 0, 0, 0.15);
}

.reel-card-content {
  padding: 18px;
}

.reel-strategy-pill {
  background: rgba(249, 158, 26, 0.1);
  border: 1px solid rgba(249, 158, 26, 0.25);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.8rem;
  color: var(--behance-lime);
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   #CARROUSEL (MULTI-SLIDE SWIPE CARDS)
   ========================================================================== */
.carousels-container-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.carousel-deck-card {
  background: var(--canvas-card);
  border: 1px solid var(--canvas-border);
  border-radius: 24px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.3s ease;
}

.carousel-deck-card:hover {
  border-color: var(--behance-lime);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

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

.carousel-deck-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
  color: var(--text);
}

.carousel-slide-counter {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--behance-lime);
  background: rgba(249, 158, 26, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(249, 158, 26, 0.25);
}

.carousel-stage-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  overflow: hidden;
  background: #0f0d0a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: scale(0.96);
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide-item.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.carousel-slide-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0f0d0a;
  display: block;
}

.carousel-nav-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}

.carousel-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

body:not(.dark) .carousel-btn,
body.light .carousel-btn {
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  color: #0f172a;
}

body.dark .carousel-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.carousel-btn:hover {
  background: var(var(--behance-lime));
  color: #000000;
  border-color: var(var(--behance-lime));
  transform: scale(1.1);
}

.carousel-dots-wrap {
  display: flex;
  gap: 6px;
}

.carousel-dot-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transition: all 0.25s ease;
}

.carousel-dot-indicator.active {
  background: var(--behance-lime);
  width: 22px;
  border-radius: 999px;
}

/* ==========================================================================
   THUMBNAILS (HIGH-CTR GRAPHICS)
   ========================================================================== */
.thumbnails-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 28px;
  width: 100%;
  box-sizing: border-box;
}

.thumbnail-card-behance {
  background: var(--canvas-card);
  border: 1px solid var(--canvas-border);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease,
              box-shadow 0.35s ease,
              background-color 0.35s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

@media (hover: hover) and (pointer: fine) {
  .thumbnail-card-behance:hover {
    transform: translateY(-5px);
    border-color: var(--behance-lime);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(249, 158, 26, 0.2);
  }

  .thumbnail-card-behance:hover .thumbnail-img-wrap img {
    transform: scale(1.05);
  }

  .thumbnail-card-behance:hover .post-card-overlay {
    opacity: 1;
  }
}

.thumbnail-card-behance:active {
  transform: scale(0.98);
  border-color: var(--behance-lime);
}

.thumbnail-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #141210;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.thumbnail-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
}

.thumbnail-card-behance .post-card-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 18px 20px 22px 20px;
  box-sizing: border-box;
  gap: 6px;
}

.thumbnail-card-behance .post-card-category {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--behance-lime);
  display: block;
}

.thumbnail-card-behance .post-card-title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin: 0;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

/* ==========================================================================
   #CERTIFICATES (VERIFIED CREDENTIALS & SPECIALIZATIONS)
   ========================================================================== */
.certificates-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 24px;
}

.certificate-card-behance {
  background: var(--canvas-card);
  border: 1px solid var(--canvas-border);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.certificate-card-behance:hover {
  transform: translateY(-6px);
  border-color: var(--behance-lime);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.5), 0 0 22px rgba(249, 158, 26, 0.2);
}

.certificate-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0f0d0a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.certificate-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0f0d0a;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.certificate-card-behance:hover .certificate-img-wrap img {
  transform: scale(1.04);
}

/* ==========================================================================
   #STORIES (VERTICAL 9:16 MOBILE SYSTEMS)
   ========================================================================== */
.stories-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 20px;
}

.story-card-916 {
  background: #000000;
  border: 1px solid var(--canvas-border);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 9 / 16;
  transition: all 0.35s ease;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.story-card-916:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--behance-lime);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 25px rgba(249, 158, 26, 0.3);
}

.story-card-916 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.story-card-header-bar {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 5;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.story-user-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.story-user-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffffff;
}

.story-card-footer-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
  padding: 30px 14px 14px 14px;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
}

/* ==========================================================================
   SERVICES & GROWTH MATRIX
   ========================================================================== */
.services-behance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 20px;
}

@media (min-width: 1100px) {
  .services-behance-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card-behance {
  background: var(--canvas-card);
  border: 1px solid var(--canvas-border);
  border-radius: 20px;
  padding: 34px 24px 28px 24px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.service-card-behance:hover {
  transform: translateY(-6px);
  border-color: var(--behance-lime);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(249, 158, 26, 0.15);
}

.service-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(249, 158, 26, 0.1);
  border: 1px solid rgba(249, 158, 26, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: all 0.3s ease;
}

.service-card-behance:hover .service-icon-wrap {
  background: var(--behance-lime);
  transform: scale(1.08);
}

.service-card-behance:hover .service-card-icon {
  color: #000000;
}

.service-card-icon {
  font-size: 1.4rem;
  color: var(--behance-lime);
  transition: color 0.3s ease;
}

.service-card-title {
  font-size: 1.12rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text);
  line-height: 1.35;
}

.service-card-desc {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-light);
  margin: 0;
}

/* ==========================================================================
   OUTRO & CONTACT / BRIEF FORM
   ========================================================================== */
.outro-section-wrap {
  padding: 60px 0 100px 0;
}

.outro-contact-card {
  background: var(--canvas-card);
  border: 1px solid var(--canvas-border);
  border-radius: 32px;
  padding: 60px 50px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

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

.outro-headline {
  font-family: var(--font-condensed);
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 16px 0;
}

.outro-actions-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 30px;
}

.outro-action-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.25s ease;
}

.outro-action-item:hover {
  border-color: var(--behance-lime);
  transform: translateX(4px);
}

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

.outro-action-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(249, 158, 26, 0.12);
  color: var(--behance-lime);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.outro-action-text h4 {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--behance-lime);
  text-transform: uppercase;
  margin: 0 0 2px 0;
  letter-spacing: 1px;
}

.outro-action-text p {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

/* ==========================================================================
   SOCIAL MEDIA QR CODE CARDS (BEHANCE 2026)
   ========================================================================== */
.social-qr-container {
  margin-top: 24px;
}

.social-qr-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.social-qr-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--behance-lime);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-qr-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.social-qr-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.social-qr-card:hover {
  transform: translateY(-5px);
  border-color: var(--behance-lime);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 20px rgba(249, 158, 26, 0.2);
}

.social-qr-platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 800;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.social-qr-card.ig .social-qr-platform-badge {
  background: rgba(225, 48, 108, 0.15);
  color: #e1306c;
  border: 1px solid rgba(225, 48, 108, 0.3);
}

.social-qr-card.li .social-qr-platform-badge {
  background: rgba(10, 102, 194, 0.15);
  color: #0a66c2;
  border: 1px solid rgba(10, 102, 194, 0.3);
}

.social-qr-card.fb .social-qr-platform-badge {
  background: rgba(24, 119, 242, 0.15);
  color: #1877f2;
  border: 1px solid rgba(24, 119, 242, 0.3);
}

.social-qr-frame {
  width: 100%;
  max-width: 140px;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  border-radius: 14px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease;
  margin-bottom: 0;
}

.social-qr-card:hover .social-qr-frame {
  transform: scale(1.04);
}

.social-qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@media (max-width: 768px) {
  .social-qr-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .social-qr-card {
    padding: 12px 8px;
  }

  .social-qr-frame {
    max-width: 100px;
  }
}

@media (max-width: 480px) {
  .social-qr-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .social-qr-platform-badge {
    font-size: 0.68rem;
    padding: 3px 6px;
    margin-bottom: 6px;
  }

  .social-qr-frame {
    max-width: 80px;
    padding: 5px;
    border-radius: 10px;
  }
}

/* Proposal Form */
.growth-brief-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.form-input-group label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input-group input,
.form-input-group textarea {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.25s ease;
  outline: none;
}

.form-input-group input:focus,
.form-input-group textarea:focus {
  border-color: var(--behance-lime);
  box-shadow: 0 0 16px rgba(249, 158, 26, 0.2);
  background: #1a1510;
}

/* Behance Project Appreciation Footer Bar */
.behance-project-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.appreciation-btn {
  background: var(--behance-blue);
  color: #ffffff;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 999px;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px var(--behance-blue-glow);
}

.appreciation-btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 30px var(--behance-blue-glow);
}

/* ==========================================================================
   TOOLS & SKILLS (BEHANCE 2026)
   ========================================================================== */
/* ==========================================================================
   TOOLS & SKILLS (BEHANCE 2026) - REDESIGNED & RESIZED
   ========================================================================== */
.skills-category {
  background: var(--canvas-card);
  border: 1px solid var(--canvas-border);
  border-radius: 28px;
  padding: 32px 28px 28px 28px;
  transition: all 0.35s ease;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.skills-category:hover {
  border-color: rgba(249, 158, 26, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 25px rgba(249, 158, 26, 0.1);
}

.skills-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.category-title {
  font-family: var(--font-condensed);
  font-size: clamp(1.2rem, 3vw, 1.45rem);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--behance-lime);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.skills-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #000000;
  background: var(--behance-lime);
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 1px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.skill-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px 14px 18px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.skill-card:hover {
  transform: translateY(-6px);
  border-color: var(--behance-lime);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(249, 158, 26, 0.25);
  background: #1a1510;
}

.skill-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  transition: all 0.3s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.skill-card:hover .skill-icon-wrapper {
  background: rgba(249, 158, 26, 0.14);
  border-color: var(--behance-lime);
  transform: scale(1.08);
  box-shadow: 0 0 16px var(--behance-lime-glow);
}

.skill-icon-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.skill-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  letter-spacing: 0.3px;
  transition: color 0.25s ease;
}

.skill-card:hover .skill-name {
  color: var(--behance-lime);
}

/* ==========================================================================
   TESTIMONIALS SLIDER (BEHANCE 2026)
   ========================================================================== */
.testi-slider-section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.testi-slider-bg {
  max-width: var(--container);
  margin: 0 auto;
  padding: 50px 45px;
  background: var(--canvas-card);
  border: 1px solid var(--canvas-border);
  border-radius: 32px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  position: relative;
}

.testi-active-overlay {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.testi-label {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--behance-lime);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.testi-active-name {
  font-family: var(--font-condensed);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text);
  margin: 0;
  line-height: 1;
}

.testi-active-role {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px 0;
  line-height: 1.3;
}

.testi-active-company {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--behance-lime);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
  line-height: 1.4;
}

.testi-active-text {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-light);
  font-style: italic;
  margin: 12px 0;
}

.testi-active-stars {
  color: #facc15;
  font-size: 1.1rem;
  display: flex;
  gap: 4px;
}

.testi-slider-nav {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.testi-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.testi-nav-btn:hover {
  background: var(--behance-lime);
  color: #000000;
  border-color: var(--behance-lime);
  transform: scale(1.08);
}

.testi-active-img-wrapper {
  position: relative;
  width: 100%;
  max-width: 350px;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--canvas-border);
  justify-self: center;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.45);
  background: var(--surface-1);
}

.testi-active-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  transition: opacity 0.4s ease, transform 0.5s ease;
}

.testi-quote-float {
  position: absolute;
  bottom: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--behance-lime);
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 6px 20px var(--behance-lime-glow);
}

.testi-thumb-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  flex-wrap: wrap;
  padding: 0 16px;
  overflow: visible;
}

.testi-thumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--canvas-card);
  border: 1px solid var(--canvas-border);
  border-radius: 999px;
  padding: 6px 16px 6px 6px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  width: auto;
  height: auto;
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.testi-thumb::after {
  display: none;
}

.testi-thumb:hover {
  border-color: rgba(249, 158, 26, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.testi-thumb.active {
  border-color: var(--behance-lime);
  background: rgba(249, 158, 26, 0.14);
  box-shadow: 0 0 20px var(--behance-lime-glow);
  transform: translateY(-3px) scale(1.03);
}

.testi-thumb img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  transition: all 0.25s ease;
}

.testi-thumb.active img {
  border-color: var(--behance-lime);
}

.testi-thumb-info {
  position: static;
  padding: 0;
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 2px;
}

.testi-thumb-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  white-space: nowrap;
}

.testi-thumb-role {
  font-size: 0.72rem;
  color: var(--behance-lime);
  font-family: var(--font-mono);
  line-height: 1.2;
  white-space: nowrap;
}

.testi-counter {
  text-align: center;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.testi-counter-current {
  color: var(--behance-lime);
  font-weight: 700;
  font-size: 1.1rem;
}

.testi-counter-sep {
  color: rgba(255, 255, 255, 0.4);
}

.testi-counter-total {
  color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   COMPREHENSIVE RESPONSIVE DESIGN (ALL DEVICES)
   ========================================================================== */

/* Prevent horizontal overflow on any device */
html,
body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Base Container Safety */
.behance-container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 36px);
  box-sizing: border-box;
}

/* Tablet & Laptop (<= 1199px) */
@media (max-width: 1199px) {
  .services-behance-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .thumbnails-showcase-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 24px;
  }
}

/* Tablet Landscape & Below (<= 1024px) */
@media (max-width: 1024px) {
  .hero-behance-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual-card img {
    height: 400px;
  }

  .about-checkerboard-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .testi-slider-bg {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 24px;
    text-align: center;
  }

  .testi-active-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .testi-active-img-wrapper {
    max-width: 260px;
    aspect-ratio: 1 / 1;
    border-radius: 24px;
    order: -1;
  }

  .testi-active-stars {
    justify-content: center;
  }

  .testi-slider-nav {
    justify-content: center;
  }

  .outro-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .checkerboard-canvas {
    padding: 40px 24px;
  }

  .outro-contact-card {
    padding: 40px 28px;
  }

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

  .thumbnails-showcase-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 22px;
  }
}

/* Tablet Portrait & Mobile Landscape (<= 768px) */
@media (max-width: 768px) {
  .section-behance {
    padding: 50px 0 !important;
  }

  .figma-selection-frame {
    margin-bottom: 30px;
    max-width: 100% !important;
  }

  .behance-title-condensed {
    font-size: clamp(2.2rem, 7vw, 3.4rem) !important;
  }

  .behance-subtitle-lime {
    font-size: 0.85rem;
  }

  .hero-behance-title {
    font-size: clamp(2.6rem, 9vw, 4.2rem);
  }

  .hero-stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .hero-stat-box {
    padding: 16px 14px;
  }

  .hero-stat-num {
    font-size: 1.8rem;
  }

  .hero-visual-card img {
    height: 320px;
  }

  .hero-floating-badge {
    padding: 10px 14px;
    border-radius: 14px;
  }

  .hero-floating-badge h4 {
    font-size: 0.82rem;
  }

  .hero-floating-badge p {
    font-size: 0.72rem;
  }

  /* Horizontal Filter Tabs */
  .filter-tabs-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start;
    padding: 8px 4px 14px 4px;
    gap: 8px;
  }

  .filter-tabs-container::-webkit-scrollbar {
    display: none;
  }

  .filter-tab-btn {
    flex-shrink: 0;
    padding: 8px 16px;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  /* Grids */
  .posts-showcase-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
  }

  .reels-showcase-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
  }

  .carousels-container-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
    gap: 24px;
  }

  .carousel-deck-card {
    padding: 18px 16px;
    border-radius: 20px;
  }

  .thumbnails-showcase-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 18px;
  }

  .certificates-showcase-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
  }

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

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

  .skill-card {
    padding: 18px 10px 14px 10px;
  }

  .skill-icon-wrapper {
    width: 48px;
    height: 48px;
    padding: 8px;
  }

  /* Testimonials */
  .testi-slider-bg {
    padding: 28px 18px;
    border-radius: 24px;
    gap: 20px;
  }

  .testi-active-img-wrapper {
    max-width: 220px;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
  }

  .testi-quote-float {
    width: 38px;
    height: 38px;
    font-size: 1rem;
    bottom: 12px;
    right: 12px;
  }

  .testi-active-text {
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .testi-thumb-strip {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    justify-content: flex-start;
    padding: 8px 12px 14px 12px;
    gap: 8px;
    max-width: 100%;
  }

  .testi-thumb-strip::-webkit-scrollbar {
    display: none;
  }

  .testi-thumb {
    flex-shrink: 0;
    scroll-snap-align: center;
    padding: 5px 12px 5px 5px;
    gap: 8px;
  }

  .testi-thumb img {
    width: 32px;
    height: 32px;
  }

  .testi-thumb-name {
    font-size: 0.75rem;
  }

  .testi-thumb-role {
    font-size: 0.65rem;
  }

  /* Outro & Brief */
  .outro-contact-card {
    padding: 32px 18px;
    border-radius: 24px;
  }

  .outro-headline {
    font-size: clamp(2.2rem, 7vw, 3.2rem);
  }

  /* Modals */
  .modal {
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    min-height: 100vh;
    min-height: 100dvh;
  }

  .modal[style*="display: block"],
  .modal[style*="display: flex"],
  .modal.active {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  .modal-content {
    margin: auto;
    padding: 24px 16px;
    border-radius: 20px;
    max-width: 100%;
    width: 100%;
    max-height: calc(100dvh - max(24px, env(safe-area-inset-top) + env(safe-area-inset-bottom)));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
  }

  .close {
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    font-size: 1.15rem;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  #modal-image-scroll img {
    max-height: 60dvh;
    max-height: min(60vh, 60dvh);
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
  }
}

/* Mobile Devices (<= 480px) */
@media (max-width: 480px) {
  .testi-slider-bg {
    padding: 22px 14px;
    border-radius: 18px;
    gap: 16px;
  }

  .testi-active-img-wrapper {
    max-width: 160px;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
  }

  .testi-quote-float {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
    bottom: 8px;
    right: 8px;
  }

  .testi-active-name {
    font-size: clamp(1.6rem, 7vw, 2.1rem);
  }

  .testi-active-role {
    font-size: 0.92rem;
  }

  .testi-active-company {
    font-size: 0.74rem;
    letter-spacing: 0.3px;
  }

  .testi-active-text {
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .testi-nav-btn {
    width: 38px;
    height: 38px;
    font-size: 0.85rem;
  }

  .testi-thumb {
    padding: 4px 10px 4px 4px;
    gap: 6px;
  }

  .testi-thumb img {
    width: 28px;
    height: 28px;
  }

  .testi-thumb-name {
    font-size: 0.74rem;
  }

  .testi-thumb-role {
    font-size: 0.62rem;
  }

  .carousels-container-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 20px;
  }

  .carousel-deck-card {
    padding: 14px 12px;
    border-radius: 18px;
    gap: 12px;
  }

  .carousel-deck-title {
    font-size: 0.95rem;
  }

  .carousel-btn {
    width: 34px;
    height: 34px;
    font-size: 0.85rem;
  }

  .carousel-dots-wrap {
    gap: 5px;
  }

  .carousel-dot-indicator {
    width: 6px;
    height: 6px;
  }

  .carousel-dot-indicator.active {
    width: 16px;
  }

  .thumbnails-showcase-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .thumbnail-card-behance {
    border-radius: 16px;
  }

  .thumbnail-card-behance .post-card-info {
    padding: 14px 14px 16px 14px;
  }

  .thumbnail-card-behance .post-card-title {
    font-size: 0.98rem;
    line-height: 1.35;
  }

  .thumbnail-card-behance .post-card-category {
    font-size: 0.68rem;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-cta-group .btn-behance-primary,
  .hero-cta-group .btn-behance-outline {
    width: 100%;
    justify-content: center;
  }

  .hero-stats-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-visual-card img {
    height: 260px;
  }

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

  .posts-showcase-grid {
    grid-template-columns: 1fr;
  }

  .reels-showcase-grid {
    grid-template-columns: 1fr;
  }

  .certificates-showcase-grid {
    grid-template-columns: 1fr;
  }

  .services-behance-grid {
    grid-template-columns: 1fr;
  }

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

  .skill-card {
    padding: 14px 6px 12px 6px;
    border-radius: 16px;
    gap: 8px;
  }

  .skill-icon-wrapper {
    width: 42px;
    height: 42px;
    padding: 6px;
    border-radius: 12px;
  }

  .skill-name {
    font-size: 0.76rem;
  }

  .outro-action-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
  }

  .outro-action-item .btn-behance-primary,
  .outro-action-item a {
    width: 100%;
    justify-content: center;
  }

  .behance-project-footer {
    margin-top: 40px;
    padding: 30px 0;
  }

  .appreciation-btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 0.95rem;
  }
}

/* Small / Foldable Mobile Devices (<= 360px) */
@media (max-width: 360px) {
  .behance-title-condensed {
    font-size: 1.9rem !important;
  }

  .hero-behance-title {
    font-size: 2.2rem;
  }

  .stories-showcase-grid {
    grid-template-columns: 1fr;
    max-width: 260px;
    margin: 0 auto;
  }

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

  .thumbnails-showcase-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .thumbnail-card-behance {
    border-radius: 14px;
  }

  .thumbnail-card-behance .post-card-info {
    padding: 12px 10px 14px 10px;
  }

  .thumbnail-card-behance .post-card-title {
    font-size: 0.92rem;
  }

  .thumbnail-card-behance .post-card-category {
    font-size: 0.62rem;
  }

  .testi-slider-bg {
    padding: 16px 10px;
  }

  .testi-active-img-wrapper {
    max-width: 130px;
    border-radius: 14px;
  }

  .testi-active-name {
    font-size: 1.5rem !important;
  }

  .testi-thumb-strip {
    padding: 6px 6px 12px 6px;
    gap: 6px;
  }

  .testi-thumb {
    padding: 3px 8px 3px 3px;
  }

  .testi-thumb-name {
    font-size: 0.7rem;
  }

  .testi-thumb-role {
    font-size: 0.58rem;
  }
}