/* ==========================================================================
   CREATIVE BOSS - BLACK & WHITE DAY/NIGHT THEME SYSTEM (creative_boss_styles.css)
   Typography: Avenir Next LT Pro Condensed
   Google AdSense & Monetization Ad Unit Styling
   Header CB Logo Icon & Single Line 'Creative Boss' Text
   Clean Monochrome Scattered Letter Assembly & Continuous Wave Animation (2 Seconds)
   100% Fully Responsive Layout (Mobile, Tablet, Desktop, 4K Displays)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* --------------------------------------------------------------------------
   DESIGN TOKENS & MONOCHROME THEME VARIABLES
   -------------------------------------------------------------------------- */
:root {
  /* FONT FAMILY DIRECTIVE */
  --font-condensed: 'Avenir Next LT Pro Condensed', 'Avenir Next Condensed', 'Barlow Condensed', 'Avenir Next', 'Arial Narrow', sans-serif;
  --font-body: 'Avenir Next LT Pro Condensed', 'Avenir Next Condensed', 'Plus Jakarta Sans', sans-serif;

  /* LIGHT MODE (SUN ACTIVE): Pure White Background, Pitch Black Text */
  --bg-primary: #ffffff;
  --bg-secondary: #f6f6f9;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.88);
  --text-primary: #0a0a0c;
  --text-secondary: #555562;
  --text-muted: #888896;
  --border-color: #e2e2e8;
  --border-hover: #0a0a0c;
  --accent-contrast: #0a0a0c;
  --accent-reverse: #ffffff;
  --card-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
  --card-hover-shadow: 0 24px 50px rgba(0, 0, 0, 0.14);
  --grid-line: rgba(10, 10, 12, 0.06);
  --hero-overlay: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.95) 100%);
  --toggle-track-bg: #ececf2;
  --toggle-thumb-bg: #0a0a0c;
  --toggle-thumb-icon: #ffffff;
  --badge-bg: #0a0a0c;
  --badge-text: #ffffff;
  --whatsapp-green: #25D366;
}

[data-theme="dark"] {
  /* NIGHT MODE (MOON ACTIVE): Pitch Black Background, Pure White Text */
  --bg-primary: #050507;
  --bg-secondary: #0c0c10;
  --bg-card: #0d0d12;
  --bg-glass: rgba(5, 5, 7, 0.88);
  --text-primary: #ffffff;
  --text-secondary: #a0a0b2;
  --text-muted: #666678;
  --border-color: #1e1e28;
  --border-hover: #ffffff;
  --accent-contrast: #ffffff;
  --accent-reverse: #050507;
  --card-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  --card-hover-shadow: 0 24px 50px rgba(255, 255, 255, 0.1);
  --grid-line: rgba(255, 255, 255, 0.05);
  --hero-overlay: linear-gradient(180deg, rgba(5, 5, 7, 0) 0%, rgba(5, 5, 7, 0.95) 100%);
  --toggle-track-bg: #181822;
  --toggle-thumb-bg: #ffffff;
  --toggle-thumb-icon: #050507;
  --badge-bg: #ffffff;
  --badge-text: #050507;
}

/* --------------------------------------------------------------------------
   BASE STYLING & RESET
   -------------------------------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-body);
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.35s ease, color 0.35s ease;
}

#gridCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100%;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

/* Typography Rules */
h1, h2, h3, h4, .hero-title, .counter-number {
  font-family: var(--font-condensed);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   GOOGLE ADSENSE AD UNIT CONTAINERS
   -------------------------------------------------------------------------- */
.adsense-unit-container {
  background-color: var(--bg-secondary);
  border: 1px dashed var(--border-color);
  border-radius: 8px;
  padding: 1.2rem;
  text-align: center;
  margin: 1.5rem 0;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.adsense-label {
  font-size: 0.72rem;
  font-family: var(--font-condensed);
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-top: 0.5rem;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   BLANK LANDING SCREEN & VERTICAL MONOCHROME CIRCLE ICONS (RIGHT CENTER)
   -------------------------------------------------------------------------- */
.landing-hero-blank {
  position: relative;
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  z-index: 10;
  padding: 2rem 1rem;
  box-sizing: border-box;
}

/* LANDING PAGE RIGHT CENTER VERTICAL MONOCHROME CIRCLE ICONS STACK (DESKTOP / LAPTOP / TABLET) */
.landing-vertical-icons-bar {
  position: absolute;
  right: 2.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  z-index: 30;
}

/* IDENTICAL CIRCLE ICON BUTTONS - STRICTLY BLACK & WHITE MONOCHROME MATCHING THEME */
.icon-btn-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.18rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  outline: none;
  user-select: none;
  line-height: 1;
  text-align: center;
}

.icon-btn-circle span,
.icon-btn-circle svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: auto;
  line-height: 1;
}

.icon-btn-circle:hover {
  background-color: var(--accent-contrast);
  color: var(--accent-reverse);
  border-color: var(--accent-contrast);
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.icon-btn-circle.playing {
  background-color: var(--accent-contrast);
  color: var(--accent-reverse);
  border-color: var(--accent-contrast);
}

.anim-text-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  user-select: none;
  max-width: 100%;
  cursor: pointer;
}

.anim-title-tagline {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}

.anim-word {
  display: inline-flex;
  gap: 0.4rem;
  margin: 0 0.8rem;
}

.anim-letter {
  display: inline-block;
  font-family: var(--font-condensed);
  font-weight: 800;
  font-size: clamp(2.8rem, 8.5vw, 8rem);
  color: var(--text-primary);
  line-height: 1;
  position: relative;
  will-change: transform, opacity;
}

.landing-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  z-index: 12;
  text-decoration: none;
  opacity: 0;
  animation: fadeInHint 1.5s ease 1s forwards;
}

.scroll-text {
  font-family: var(--font-condensed);
  font-size: 0.95rem;
  letter-spacing: 0.25em;
  color: var(--text-secondary);
  font-weight: 700;
}

.scroll-arrow {
  font-size: 1.4rem;
  color: var(--text-primary);
  animation: bounceArrow 2s infinite ease-in-out;
}

@keyframes bounceArrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

@keyframes fadeInHint {
  to { opacity: 1; }
}

/* --------------------------------------------------------------------------
   HEADER NAVBAR, CB LOGO ICON & REGULAR WEIGHT 'CREATIVE BOSS'
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 0.9rem 0;
  background-color: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.header-cb-logo {
  height: 34px;
  width: auto;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  border-radius: 4px;
  filter: invert(100%);
  mix-blend-mode: multiply;
  transition: filter 0.35s ease, transform 0.25s ease;
}

[data-theme="dark"] .header-cb-logo {
  filter: none;
  mix-blend-mode: screen;
}

.brand-logo-wrapper:hover .header-cb-logo {
  transform: scale(1.08);
}

.brand-logo-text {
  font-family: var(--font-condensed);
  font-size: 1.55rem;
  font-weight: 800; /* Bold condensed weight matching logo emblem across all pages */
  color: var(--text-primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font-condensed);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.25s ease;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--text-primary);
  transition: width 0.3s ease;
}

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

/* --------------------------------------------------------------------------
   STATS COUNTER SECTION
   -------------------------------------------------------------------------- */
.stats-strip {
  padding: 3.5rem 0;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  width: 100%;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  text-align: center;
  align-items: center;
  justify-content: center;
}

.counter-item {
  padding: 1.5rem;
}

.counter-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.counter-label {
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--font-condensed);
  color: var(--text-secondary);
  letter-spacing: 0.1em;
}

/* --------------------------------------------------------------------------
   TESTIMONIALS / CLIENT FEEDBACK CAROUSEL SECTION
   -------------------------------------------------------------------------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 2.2rem;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.testimonial-stars {
  color: #ffb700;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.testimonial-quote {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-style: italic;
  line-height: 1.6;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--accent-contrast);
  color: var(--accent-reverse);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: var(--font-condensed);
}

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

.author-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   FLOATING BACK TO TOP BUTTON
   -------------------------------------------------------------------------- */
.floating-actions {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  z-index: 99;
}

.back-to-top {
  width: 50px;
  height: 50px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--card-shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  transform: translateY(-4px);
  border-color: var(--text-primary);
  background-color: var(--accent-contrast);
  color: var(--accent-reverse);
}

/* --------------------------------------------------------------------------
   BUTTONS & CTAs
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  border-radius: 6px;
  font-weight: 700;
  font-family: var(--font-condensed);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary {
  background-color: var(--accent-contrast);
  color: var(--accent-reverse);
  border: 1px solid var(--accent-contrast);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  opacity: 0.92;
}

.btn-whatsapp {
  background-color: #25D366;
  color: #ffffff;
  border: 1px solid #25D366;
}

.btn-whatsapp:hover {
  background-color: #1ebc57;
  border-color: #1ebc57;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.35);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--text-primary);
  background-color: var(--bg-secondary);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   MAIN STUDIO CONTENT SECTIONS
   -------------------------------------------------------------------------- */
.main-studio-content {
  position: relative;
  z-index: 5;
}

.section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem;
}

.section-subtitle {
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-condensed);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  text-transform: uppercase;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   SERVICES SECTION
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--card-hover-shadow);
}

.service-icon {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.service-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   PORTFOLIO GALLERY WITH FILTER TABS & LIGHTBOX
   -------------------------------------------------------------------------- */
.portfolio-filter {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.6rem 1.4rem;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 50px;
  color: var(--text-secondary);
  font-weight: 700;
  font-family: var(--font-condensed);
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.filter-btn.active, .filter-btn:hover {
  background-color: var(--accent-contrast);
  color: var(--accent-reverse);
  border-color: var(--accent-contrast);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.portfolio-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
  border-color: var(--border-hover);
  box-shadow: var(--card-hover-shadow);
}

.portfolio-img-wrapper {
  position: relative;
  height: 320px;
  overflow: hidden;
  background-color: var(--bg-secondary);
}

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

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

.portfolio-content {
  padding: 1.4rem;
}

.portfolio-category {
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-condensed);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.portfolio-item-title {
  font-size: 1.35rem;
}

/* --------------------------------------------------------------------------
   FACEBOOK INTEGRATION & SOCIAL PROOF CARD
   -------------------------------------------------------------------------- */
.facebook-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  box-shadow: var(--card-shadow);
  margin-top: 2rem;
}

.fb-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-condensed);
  margin-bottom: 1.2rem;
}

.fb-title {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.fb-description {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.fb-feed-preview {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
}

.fb-post-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.fb-avatar-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-color);
  mix-blend-mode: multiply;
}

[data-theme="dark"] .fb-avatar-img {
  mix-blend-mode: screen;
  filter: invert(100%);
}

.fb-name {
  font-weight: 700;
  font-size: 1.1rem;
}

.fb-time {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.fb-post-text {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   CONTACT SECTION & FORM
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
}

.contact-info-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem;
}

.contact-item {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.contact-icon {
  font-size: 1.4rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-condensed);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 0.9rem 1.2rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.25s ease;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--text-primary);
}

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

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
footer {
  border-top: 1px solid var(--border-color);
  padding: 3rem 0;
  margin-top: 4rem;
  background-color: var(--bg-secondary);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-mode-indicator {
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-condensed);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  border: 1px solid var(--border-color);
}

/* --------------------------------------------------------------------------
   LIGHTBOX MODAL
   -------------------------------------------------------------------------- */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal.active {
  display: flex;
}

.modal-content {
  max-width: 950px;
  width: 100%;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.modal-img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  background-color: var(--bg-secondary);
}

.modal-info {
  padding: 1.5rem;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent-contrast);
  color: var(--accent-reverse);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
}

/* --------------------------------------------------------------------------
   100% RESPONSIVE MEDIA QUERIES (TABLETS, PHONES & SMALL SCREENS)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .container {
    padding: 0 1.5rem;
  }
  .nav-links {
    gap: 1.2rem;
  }
  .facebook-card, .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  #mobileNavToggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    z-index: 1001;
    transition: background-color 0.25s ease, border-color 0.25s ease;
  }
  #mobileNavToggle:hover {
    border-color: var(--text-primary);
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100vw;
    background-color: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    z-index: 999;
  }

  .nav-links.active {
    display: flex !important;
    animation: fadeInDown 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav-links .nav-link {
    font-size: 1.1rem;
    padding: 0.65rem 0;
    border-bottom: 1px dashed var(--border-color);
    width: 100%;
    display: block;
  }

  .nav-links .nav-link:last-child {
    border-bottom: none;
  }

  .header-cb-logo {
    height: 30px;
  }
  .brand-logo-text {
    font-size: 1.35rem;
  }
  .landing-hero-blank {
    min-height: auto;
    height: auto;
    padding: 6rem 1rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    box-sizing: border-box;
  }
  .anim-text-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    margin: 1rem 0 2rem;
  }
  .landing-scroll-hint {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    margin: 1.5rem auto 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .landing-vertical-icons-bar {
    position: fixed !important;
    top: auto !important;
    bottom: 1rem !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    z-index: 99999 !important;
    gap: 0.55rem;
    width: max-content;
    max-width: 94vw;
  }
  .icon-btn-circle {
    width: 40px;
    height: 40px;
    font-size: 0.98rem;
  }
  .anim-title-tagline {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.3rem;
    width: 100%;
  }
  .anim-word {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.1rem 0;
  }
  .anim-letter {
    font-size: clamp(2.2rem, 11vw, 4.2rem);
  }
  .section {
    padding: 3.5rem 0;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }
  .portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
  .footer-container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 0.8rem 1rem;
  }
  .landing-vertical-icons-bar {
    position: fixed !important;
    top: auto !important;
    bottom: 0.8rem !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.4rem 0.75rem;
    gap: 0.4rem;
    width: max-content;
    max-width: 96vw;
    z-index: 99999 !important;
  }
  .icon-btn-circle {
    width: 36px !important;
    height: 36px !important;
    font-size: 0.88rem !important;
    flex-shrink: 0 !important;
  }
  .anim-word {
    margin: 0 0.2rem;
  }
  .anim-letter {
    font-size: clamp(1.6rem, 10vw, 3.2rem);
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .floating-actions {
    bottom: 4.8rem;
    right: 1rem;
  }
  .back-to-top {
    width: 42px;
    height: 42px;
    font-size: 0.95rem;
  }
}

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

.footer-social-icons-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}
