/* ==========================================
   1. CSS CUSTOM PROPERTIES
   ========================================== */

:root {
  /* Color Palette - Muted Taupe, Off-White, Black */
  --color-bg-primary: #CFCAC5;
  --color-bg-secondary: #C0B9B0;
  --color-tape: #E3DFD7;
  --color-black: #0A0A0A;
  --color-charcoal: #1A1A1A;
  --color-gray: #4A4A4A;
  --color-accent: #2A2A2A;

  /* Typography */
  --font-display: 'Anton', 'Bebas Neue', sans-serif;
  --font-body: 'Roboto Condensed', sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;
  --spacing-xxl: 5rem;

  /* Tape aesthetics */
  --tape-width: 60px;
  --tape-opacity: 0.85;
  --tape-offset: 20px;
  --tape-inset: -8px;

  /* Border image height */
  --border-height: 60px;

  /* Torn tape edge clip-path */
  --tape-clip-path: polygon(0% 2%, 5% 0%, 10% 2%, 15% 1%, 20% 3%, 25% 0%, 30% 2%, 35% 1%,
      40% 2%, 45% 0%, 50% 1%, 55% 2%, 60% 0%, 65% 2%, 70% 1%, 75% 2%,
      80% 0%, 85% 1%, 90% 2%, 95% 1%, 100% 0%,
      100% 98%, 95% 100%, 90% 98%, 85% 99%, 80% 97%, 75% 100%, 70% 98%, 65% 99%,
      60% 98%, 55% 100%, 50% 99%, 45% 98%, 40% 100%, 35% 99%, 30% 98%, 25% 100%,
      20% 99%, 15% 98%, 10% 99%, 5% 100%, 0% 98%);
}

/* ==========================================
   2. RESET & BASE STYLES
   ========================================== */

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

/* Base Styles */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--color-black);
  background-color: var(--color-bg-primary);
  background-image:
    repeating-linear-gradient(90deg,
      transparent,
      transparent 49px,
      rgba(0, 0, 0, 0.02) 49px,
      rgba(0, 0, 0, 0.02) 50px);
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='21' height='21' viewBox='0 0 21 21'%3E%3Cline x1='10.5' y1='0' x2='10.5' y2='21' stroke='%230A0A0A' stroke-width='2'/%3E%3Cline x1='0' y1='10.5' x2='21' y2='10.5' stroke='%230A0A0A' stroke-width='2'/%3E%3Ccircle cx='10.5' cy='10.5' r='2' fill='none' stroke='%230A0A0A' stroke-width='2'/%3E%3C/svg%3E") 10 10, crosshair;
}

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

/* Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden;
}

/* Custom Text Selection */
::selection {
  background: var(--color-black);
  color: var(--color-tape);
}

/* Accessibility: Focus Indicators */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid var(--color-black);
  outline-offset: 2px;
}

/* Screen Reader Only - Hide visually but keep for assistive tech */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ==========================================
   3. LAYOUT COMPONENTS
   ========================================== */

/* Keyboard navigation - skip to main content */
.skip-to-main {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 1rem;
  background: var(--color-black);
  color: var(--color-tape);
  text-decoration: none;
  font-family: var(--font-display);
}

.skip-to-main:focus {
  left: 50%;
  transform: translateX(-50%);
  top: 1rem;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

.nav-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

/* ==========================================
   4. SHARED COMPONENTS (USED ACROSS SECTIONS)
   ========================================== */

/* Section Headers & Titles */
.section-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  position: relative;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  letter-spacing: 2px;
  color: var(--color-black);
  margin-bottom: var(--spacing-sm);
  line-height: 0.9;
}

.tape-title::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 200px;
  height: 40px;
  background: var(--color-tape);
  opacity: var(--tape-opacity);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: -1;
  display: none; /* Tape removed from section titles */
}

.tape-underline {
  width: 150px;
  height: 6px;
  background: var(--color-black);
  margin: 0 auto;
  transform: rotate(-1deg);
}

.tape-accent {
  width: 100px;
  height: 8px;
  background: var(--color-black);
  margin-bottom: var(--spacing-md);
  transform: rotate(-2deg);
}

/* Tape Elements with Subtle Torn Edges */
.tape-strip {
  position: absolute;
  width: 100%;
  height: var(--tape-width);
  background: var(--color-tape);
  opacity: var(--tape-opacity);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transform: rotate(-1deg);
  clip-path: var(--tape-clip-path);
}

.tape-top {
  top: 10%;
  left: -2%;
}

.tape-bottom {
  bottom: 15%;
  right: -2%;
  transform: rotate(1deg);
}

.tape-cross {
  position: relative;
  margin: var(--spacing-md) auto;
  width: 80px;
  height: 80px;
}

.tape-cross::before,
.tape-cross::after {
  content: '';
  position: absolute;
  background: var(--color-tape);
  opacity: var(--tape-opacity);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tape-cross::before {
  width: 100%;
  height: 25px;
  top: 50%;
  left: 0;
  transform: translateY(-50%) rotate(-5deg);
}

.tape-cross::after {
  width: 25px;
  height: 100%;
  left: 50%;
  top: 0;
  transform: translateX(-50%) rotate(5deg);
}

.tape-corner {
  position: absolute;
  width: 50px;
  height: 25px;
  background: rgba(245, 241, 232, 0.85);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.tape-tl {
  top: var(--tape-inset);
  left: var(--tape-offset);
  transform: rotate(-8deg);
}

.tape-tr {
  top: var(--tape-inset);
  right: var(--tape-offset);
  transform: rotate(8deg);
}

.tape-bl {
  bottom: var(--tape-inset);
  left: var(--tape-offset);
  transform: rotate(8deg);
}

.tape-br {
  bottom: var(--tape-inset);
  right: var(--tape-offset);
  transform: rotate(-8deg);
}

/* Card Components */
.card-tape {
  position: absolute;
  top: var(--tape-inset);
  right: var(--tape-offset);
  width: 60px;
  height: 25px;
  background: var(--color-tape);
  opacity: 0.9;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transform: rotate(-5deg);
  border: 1px solid rgba(0, 0, 0, 0.1);
  clip-path: var(--tape-clip-path);
}

/* Random tape variations */
.service-card:nth-child(1) .card-tape {
  top: -8px;
  left: 15px;
  right: auto;
  transform: rotate(8deg);
}

.service-card:nth-child(2) .card-tape {
  top: -8px;
  left: 50%;
  right: auto;
  transform: translateX(-50%) rotate(-3deg);
}

.service-card:nth-child(3) .card-tape {
  top: -8px;
  right: 30px;
  width: 60px;
  height: 25px;
  transform: rotate(12deg);
}

.service-card:nth-child(4) .card-tape {
  top: -8px;
  right: 30px;
  transform: rotate(-12deg);
}

.service-card:nth-child(5) .card-tape {
  top: -8px;
  left: 25%;
  right: auto;
  transform: rotate(5deg);
}

.service-card:nth-child(6) .card-tape {
  top: -8px;
  left: 20px;
  right: auto;
  transform: rotate(-8deg);
}

.service-card:nth-child(7) .card-tape {
  top: -8px;
  left: 40%;
  right: auto;
  width: 60px;
  height: 25px;
  transform: translateX(-50%) rotate(-15deg);
}

.service-card:nth-child(8) .card-tape {
  top: -8px;
  right: 35%;
  transform: rotate(10deg);
}

/* Info Blocks (used in Contact & FAQ sections) */
.info-block {
  border-left: 5px solid var(--color-black);
  padding-left: var(--spacing-sm);
}

.info-label {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 2px;
  color: var(--color-black);
  margin-bottom: var(--spacing-xs);
}

.info-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-charcoal);
  line-height: 1.6;
}

.info-text a {
  color: var(--color-charcoal);
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
  position: relative;
}

.info-text a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-black);
  transition: width 0.3s ease;
}

.info-text a:hover {
  color: var(--color-gray);
  transform: translateY(-2px);
}

.info-text a:hover::after,
.info-text a:focus::after {
  width: 100%;
}

.info-text a:focus {
  outline: 3px solid var(--color-black);
  outline-offset: 2px;
}

/* Image Placeholders */
.image-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--color-bg-primary);
  border: 4px solid var(--color-black);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 8px 8px 0 var(--color-black);
}

.image-placeholder p {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 3px;
  color: var(--color-gray);
}

/* ==========================================
   5. NAVIGATION
   ========================================== */

.nav-tape {
  background: var(--color-tape);
  border-bottom: 3px solid var(--color-black);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-content {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-sm) 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  padding-left: var(--spacing-xl);
  gap: 0.5rem;
  transition: transform 0.3s ease;
  text-decoration: none;
}

.nav-logo:hover {
  transform: scale(1.02);
}

.nav-logo:focus {
  outline: none;
}

.logo-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: brightness(1.1);
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}

.nav-logo:hover .logo-img {
  filter: brightness(1.1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  transform: translate3d(0, -2px, 0);
  transition: all 0.2s ease;
}

.nav-brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.05rem;
  margin-top: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
}

.nav-brand-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 2px;
  color: var(--color-black);
  text-transform: uppercase;
  line-height: 1;
  text-shadow: 2px 2px 0 rgba(255, 0, 0, 0.1), -2px -2px 0 rgba(0, 255, 255, 0.1);
  transition: max-width 0.3s ease, opacity 0.3s ease;
}

.nav-brand-short {
  display: inline-block;
  max-width: 100px;
  opacity: 1;
  overflow: hidden;
}

.nav-brand-full {
  display: inline-block;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
}

.nav-scrolled .nav-brand-short {
  max-width: 0;
  opacity: 0;
}

.nav-scrolled .nav-brand-full {
  max-width: 100px;
  opacity: 1;
}

.nav-brand-divider {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-gray);
  text-shadow: 2px 2px 0 rgba(255, 0, 0, 0.1), -2px -2px 0 rgba(0, 255, 255, 0.1);
  transition: max-width 0.3s ease, opacity 0.3s ease;
}

.nav-brand-divider-short {
  display: inline-block;
  max-width: 100px;
  opacity: 1;
  overflow: hidden;
}

.nav-brand-divider-full {
  display: inline-block;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
}

.nav-scrolled .nav-brand-divider-short {
  max-width: 0;
  opacity: 0;
}

.nav-scrolled .nav-brand-divider-full {
  max-width: 100px;
  opacity: 1;
}

.nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-left: auto;
  padding-right: 1rem;
  padding-top: 0.75rem;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-black);
  text-decoration: none;
  letter-spacing: 2px;
  transition: all 0.2s ease;
  position: relative;
  padding: 0.75rem 0.75rem;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.nav-link:hover {
  color: var(--color-gray);
  transform: translateY(-2px);
}

.nav-link:focus {
  outline: none;
}

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

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

.nav-link.active {
  color: var(--color-charcoal);
  font-weight: 700;
}

.nav-link.active::after {
  width: 80%;
  background: var(--color-charcoal);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: 2px solid var(--color-black);
  padding: 0.75rem;
  cursor: pointer;
  margin-left: auto;
  margin-top: 0.75rem;
  transition: all 0.3s ease;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  align-items: center;
}

.mobile-menu-toggle:hover {
  background: var(--color-black);
}

.mobile-menu-toggle:focus {
  outline: 3px solid var(--color-black);
  outline-offset: 3px;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background: var(--color-black);
  transition: all 0.3s ease;
  display: block;
}

.mobile-menu-toggle:hover .hamburger-line {
  background: var(--color-tape);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ==========================================
   6. HERO SECTION
   ========================================== */

.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--color-bg-primary);
  border-bottom: 5px solid var(--color-black);
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background-image: url('../img/Logo/Skully_Large.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.08;
  pointer-events: none;
  z-index: 1;
  transition: transform 0.1s ease-out;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 3;
  padding: var(--spacing-lg) var(--spacing-sm);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 10rem);
  letter-spacing: 2px;
  line-height: 0.85;
  margin-bottom: var(--spacing-sm);
  color: var(--color-black);
  text-transform: uppercase;
  display: flex;
  justify-content: center;
  text-shadow: 3px 3px 0 rgba(255, 0, 0, 0.1), -3px -3px 0 rgba(0, 255, 255, 0.1);
}

.hero-divider {
  font-size: clamp(2rem, 8vw, 5rem);
  color: var(--color-gray);
}

.glitch-wrapper {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 1rem);
}

.glitch {
  position: relative;
  display: inline-block;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.glitch-wrapper:hover .glitch::before {
  animation: glitch-1 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
  color: #ff0000;
  z-index: -1;
  opacity: 0.5;
}

.glitch-wrapper:hover .glitch::after {
  animation: glitch-2 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) reverse both infinite;
  color: #00ffff;
  z-index: -2;
  opacity: 0.5;
}

@keyframes glitch-1 {
  0% {
    transform: translate(0);
    opacity: 0;
  }

  20% {
    transform: translate(-2px, 2px);
    opacity: 0.8;
  }

  40% {
    transform: translate(-2px, -2px);
    opacity: 0.8;
  }

  60% {
    transform: translate(2px, 2px);
    opacity: 0.8;
  }

  80% {
    transform: translate(2px, -2px);
    opacity: 0.8;
  }

  100% {
    transform: translate(0);
    opacity: 0;
  }
}

@keyframes glitch-2 {
  0% {
    transform: translate(0);
    opacity: 0;
  }

  20% {
    transform: translate(2px, -2px);
    opacity: 0.6;
  }

  40% {
    transform: translate(2px, 2px);
    opacity: 0.6;
  }

  60% {
    transform: translate(-2px, -2px);
    opacity: 0.6;
  }

  80% {
    transform: translate(-2px, 2px);
    opacity: 0.6;
  }

  100% {
    transform: translate(0);
    opacity: 0;
  }
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 3vw, 1.8rem);
  font-weight: 700;
  letter-spacing: clamp(2px, 0.8vw, 5px);
  color: var(--color-gray);
  margin-bottom: var(--spacing-md);
  white-space: nowrap;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 3rem);
  letter-spacing: 6px;
  color: var(--color-black);
  margin-top: var(--spacing-md);
}

.hero-cta-btn {
  display: inline-block;
  margin-top: var(--spacing-md);
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  letter-spacing: 2px;
  padding: 0.75rem 2rem;
  background: var(--color-black);
  color: var(--color-tape);
  text-decoration: none;
  border: 2px solid var(--color-black);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 4px 4px 0 var(--color-charcoal);
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-cta-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--color-charcoal);
  background: var(--color-charcoal);
}

.hero-cta-btn:focus {
  outline: 3px solid var(--color-black);
  outline-offset: 3px;
}

.hero-cta-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--color-charcoal);
  transition: all 0.05s ease;
}

.chaos-text {
  display: inline-block;
  position: relative;
  animation: chaos-pulse 2s ease-in-out infinite;
  text-shadow:
    2px 2px 0 rgba(255, 0, 0, 0.3),
    -2px -2px 0 rgba(0, 255, 255, 0.3),
    3px 3px 0 rgba(255, 0, 0, 0.2),
    -3px -3px 0 rgba(0, 255, 255, 0.2),
    4px 4px 0 rgba(255, 0, 0, 0.1),
    -4px -4px 0 rgba(0, 255, 255, 0.1),
    5px 5px 8px rgba(0, 0, 0, 0.3);
}

.chaos-text:hover {
  animation: chaos-explode 0.6s ease-out;
  text-shadow:
    3px 3px 0 rgba(255, 0, 0, 0.5),
    -3px -3px 0 rgba(0, 255, 255, 0.5),
    6px 6px 0 rgba(255, 0, 0, 0.3),
    -6px -6px 0 rgba(0, 255, 255, 0.3),
    9px 9px 0 rgba(255, 0, 0, 0.2),
    -9px -9px 0 rgba(0, 255, 255, 0.2),
    0 0 20px rgba(255, 0, 0, 0.5),
    0 0 40px rgba(0, 255, 255, 0.3);
}

@keyframes chaos-pulse {

  0%,
  100% {
    transform: scale(1);
    text-shadow:
      2px 2px 0 rgba(255, 0, 0, 0.3),
      -2px -2px 0 rgba(0, 255, 255, 0.3),
      3px 3px 0 rgba(255, 0, 0, 0.2),
      -3px -3px 0 rgba(0, 255, 255, 0.2),
      5px 5px 8px rgba(0, 0, 0, 0.3);
  }

  50% {
    transform: scale(1.05);
    text-shadow:
      3px 3px 0 rgba(255, 0, 0, 0.4),
      -3px -3px 0 rgba(0, 255, 255, 0.4),
      4px 4px 0 rgba(255, 0, 0, 0.3),
      -4px -4px 0 rgba(0, 255, 255, 0.3),
      6px 6px 10px rgba(0, 0, 0, 0.4);
  }
}

@keyframes chaos-explode {
  0% {
    transform: scale(1);
  }

  30% {
    transform: scale(1.2) rotate(2deg);
    text-shadow:
      10px 10px 0 rgba(255, 0, 0, 0.6),
      -10px -10px 0 rgba(0, 255, 255, 0.6),
      15px 15px 0 rgba(255, 0, 0, 0.4),
      -15px -15px 0 rgba(0, 255, 255, 0.4),
      0 0 30px rgba(255, 0, 0, 0.8),
      0 0 50px rgba(0, 255, 255, 0.6);
  }

  60% {
    transform: scale(1.1) rotate(-1deg);
  }

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

@keyframes chaosShake {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  10% {
    transform: translate(-5px, -5px) rotate(-2deg);
  }

  20% {
    transform: translate(5px, 5px) rotate(2deg);
  }

  30% {
    transform: translate(-5px, 5px) rotate(-2deg);
  }

  40% {
    transform: translate(5px, -5px) rotate(2deg);
  }

  50% {
    transform: translate(-5px, -5px) rotate(-2deg);
  }

  60% {
    transform: translate(5px, 5px) rotate(2deg);
  }

  70% {
    transform: translate(-5px, 5px) rotate(-2deg);
  }

  80% {
    transform: translate(5px, -5px) rotate(2deg);
  }

  90% {
    transform: translate(-5px, -5px) rotate(-2deg);
  }
}

/* ==========================================
   7. ABOUT SECTION
   ========================================== */

.about-section {
  padding: var(--spacing-xl) 0;
  background: var(--color-bg-secondary);
  position: relative;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.about-text .section-title {
  text-align: left;
  margin-bottom: var(--spacing-sm);
}

.about-paragraph {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.8;
  color: var(--color-charcoal);
  margin-bottom: var(--spacing-sm);
}

.about-statement {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 1px;
  color: var(--color-black);
  margin-top: var(--spacing-md);
  padding: var(--spacing-sm);
  background: linear-gradient(to right, #FFD700 0%, #FFD700 100%);
  background-size: 100% 60%;
  background-position: 0 40%;
  background-repeat: no-repeat;
  border-left: 5px solid var(--color-black);
  display: inline-block;
  line-height: 1.4;
}

.about-image {
  position: relative;
}

.image-frame {
  width: 100%;
  aspect-ratio: 3/4;
  border: 4px solid var(--color-black);
  position: relative;
  box-shadow: 8px 8px 0 var(--color-black);
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  position: relative;
  z-index: 1;
}

/* ==========================================
   8. SERVICES SECTION
   ========================================== */

.services-section {
  padding: var(--spacing-xl) 0;
  background: var(--color-bg-primary);
  position: relative;
}

.services-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--border-height);
  background: url('../img/Assets/Border_Line_Opp.png') no-repeat center;
  background-size: 100% 100%;
  pointer-events: none;
  z-index: 10;
}

/* Three-column layout for services section */
.services-three-column {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
  align-items: stretch;
  width: 100%;
  padding: 0 var(--spacing-md);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.service-card {
  background: var(--color-tape);
  border: 3px solid var(--color-black);
  padding: var(--spacing-md);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 5px 5px 0 var(--color-black);
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Force equal heights in the three-column services section */
.services-three-column .service-card {
  height: 100%;
}

.service-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--color-black);
}

.service-card:active {
  transform: translate(1px, 1px);
  box-shadow: 6px 6px 0 var(--color-black);
  transition: transform 0.05s ease, box-shadow 0.05s ease;
}

.service-title {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 3px;
  margin-bottom: var(--spacing-sm);
  color: var(--color-black);
}

.service-desc {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-charcoal);
  margin-bottom: auto;
  line-height: 1.7;
  flex-grow: 1;
}

.service-specialty {
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-sm);
  border-top: 2px solid var(--color-black);
  flex-shrink: 0;
}

.specialty-title {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: var(--spacing-sm);
  color: var(--color-black);
}

.specialty-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.specialty-list li {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-charcoal);
  padding: 0.4rem 0;
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.5;
}

.specialty-list li::before {
  content: '✕';
  position: absolute;
  left: 0;
  color: var(--color-black);
  font-weight: bold;
  font-size: 0.9rem;
}



/* ==========================================
   9. PORTFOLIO SECTION
   ========================================== */

.portfolio-section {
  padding: var(--spacing-xl) 0;
  background: var(--color-bg-secondary);
  position: relative;
}

.portfolio-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--border-height);
  background: url('../img/Assets/Border_Line.png') no-repeat center;
  background-size: 100% 100%;
  pointer-events: none;
  z-index: 10;
}

.portfolio-section .container {
  max-width: 100%;
}

.portfolio-section .service-card {
  min-height: auto;
}

.portfolio-grid {
  margin-top: var(--spacing-lg);
  grid-template-columns: repeat(5, 1fr);
  width: 100%;
  justify-items: center;
  gap: var(--spacing-sm);
}

.portfolio-grid .service-card {
  width: 100%;
  max-width: 400px;
}

@media (max-width: 1400px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 100%;
  }
}

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

.portfolio-image {
  aspect-ratio: 1/1;
  margin-bottom: 1rem;
  overflow: hidden;
  border: 4px solid var(--color-black);
  box-shadow: 4px 4px 0 var(--color-black);
}

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

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

.portfolio-title {
  font-size: 1.3rem;
}

/* Cursor style for portfolio cards */
.portfolio-card {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 10px 10px 0 var(--color-black);
}

/* ==========================================
   10. TESTIMONIALS SECTION
   ========================================== */

.testimonials-section {
  padding: var(--spacing-xxl) 0;
  background: var(--color-bg-primary);
  position: relative;
}

.testimonials-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--border-height);
  background: url('../img/Assets/Border_Line_Opp.png') no-repeat center;
  background-size: 100% 100%;
  pointer-events: none;
  z-index: 10;
}

.testimonials-section .service-card {
  min-height: auto;
}

.testimonial-grid {
  margin-top: var(--spacing-xl);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.testimonial-quote {
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial-author {
  font-size: 1rem;
  text-align: right;
}

/* ==========================================
   11. FAQ SECTION
   ========================================== */

.faq-section {
  padding: var(--spacing-xl) 0;
  background: var(--color-bg-secondary);
  position: relative;
}

.faq-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--border-height);
  background: url('../img/Assets/Border_Line.png') no-repeat center;
  background-size: 100% 100%;
  pointer-events: none;
  z-index: 10;
}

.faq-container {
  max-width: 800px;
  margin: var(--spacing-lg) auto 0;
}

.faq-item {
  margin-bottom: var(--spacing-md);
}

/* FAQ specific styling */
.faq-section .info-label {
  background: var(--color-tape);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-left: 5px solid var(--color-black);
  display: inline-block;
  margin-bottom: var(--spacing-sm);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
}

/* ==========================================
   12. CONTACT SECTION
   ========================================== */

.contact-section {
  padding: var(--spacing-xl) 0;
  background: var(--color-bg-primary);
  position: relative;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--border-height);
  background: url('../img/Assets/Border_Line_Opp.png') no-repeat center;
  background-size: 100% 100%;
  pointer-events: none;
  z-index: 10;
}

/* Three-column layout for contact section */
.contact-three-column {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
  align-items: start;
  width: 100%;
  padding: 0 var(--spacing-md);
}

/* Force single column on tablets/iPads (max-width: 1366px covers iPad landscape) */
@media (max-width: 1366px) {
  .contact-three-column {
    grid-template-columns: 1fr !important;
  }
}

/* Contact section title styling */
.contact-section-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 3px;
  color: var(--color-black);
  margin-bottom: var(--spacing-sm);
  padding-bottom: var(--spacing-xs);
  border-bottom: 3px solid var(--color-black);
}

/* Google Map Section */
.contact-map-wrapper {
  background: var(--color-tape);
  border: 3px solid var(--color-black);
  padding: var(--spacing-lg);
  position: relative;
  box-shadow: 8px 8px 0 var(--color-black);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.map-container {
  width: 100%;
  flex: 1;
  min-height: 500px;
  border: 3px solid var(--color-black);
  overflow: hidden;
  box-shadow: 5px 5px 0 var(--color-black);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.map-container:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--color-black);
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 500px;
  filter: grayscale(20%) contrast(1.1);
}

/* Contact Info Section */
.contact-info-wrapper {
  background: var(--color-tape);
  border: 3px solid var(--color-black);
  padding: var(--spacing-lg);
  position: relative;
  box-shadow: 8px 8px 0 var(--color-black);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.contact-info-content {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
  flex: 1;
}

.contact-info-stack {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  flex: 1;
}

.contact-skull-image {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  padding-left: var(--spacing-xl);
}

.skull-decoration {
  width: 300px;
  height: 300px;
  object-fit: contain;
  opacity: 0.8;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.skull-decoration:hover {
  transform: scale(1.1) rotate(5deg);
  opacity: 1;
}

/* Contact Form Section */
.contact-form-wrapper {
  background: var(--color-tape);
  border: 3px solid var(--color-black);
  padding: var(--spacing-lg);
  position: relative;
  box-shadow: 8px 8px 0 var(--color-black);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

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

.form-group label {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 2px;
  color: var(--color-black);
  margin-bottom: var(--spacing-xs);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem;
  border: 2px solid var(--color-black);
  background: var(--color-bg-primary);
  color: var(--color-black);
  transition: all 0.3s ease;
  min-height: 44px;
}

/* Custom dropdown styling */
.form-group select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: var(--color-bg-primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%230A0A0A' d='M0 0 L6 8 L12 0 Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px;
  padding-right: 2.5rem;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.form-group select:hover {
  background-color: var(--color-tape);
  box-shadow: 2px 2px 0 var(--color-charcoal);
  transform: translate(-1px, -1px);
}

/* Style the dropdown options */
.form-group select option {
  background-color: var(--color-bg-primary);
  color: var(--color-black);
  padding: 0.5rem;
  font-weight: 600;
  font-family: var(--font-body);
}

.form-group select option:first-child {
  color: var(--color-gray);
  font-style: italic;
}

.form-group select option:hover,
.form-group select option:focus,
.form-group select option:checked {
  background-color: var(--color-black) !important;
  color: var(--color-tape) !important;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 3px solid var(--color-black);
  outline-offset: 2px;
  border-color: var(--color-gray);
  box-shadow: 3px 3px 0 var(--color-black);
  transform: translate(-1px, -1px);
}

.submit-btn {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 3px;
  padding: 1rem 2rem;
  background: var(--color-black);
  color: var(--color-tape);
  border: none;
  cursor: pointer;
  transition: all 0.1s ease;
  box-shadow: 4px 4px 0 var(--color-charcoal);
  margin-top: var(--spacing-sm);
  position: relative;
  min-height: 44px;
  width: 100%;
}

.submit-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--color-charcoal);
}

.submit-btn:focus {
  outline: 3px solid var(--color-black);
  outline-offset: 3px;
}

.submit-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--color-charcoal);
  transition: all 0.05s ease;
}

/* Honeypot spam protection - hide from humans, visible to bots */
.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Form validation & feedback styles */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #8B0000;
  background-color: rgba(139, 0, 0, 0.05);
  animation: shake 0.3s ease;
}

.field-error {
  color: #8B0000;
  font-size: 0.85rem;
  margin-top: 0.25rem;
  font-family: var(--font-body);
  letter-spacing: 0.5px;
  display: block;
  animation: slideDown 0.2s ease;
}

@keyframes shake {

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

  25% {
    transform: translateX(-5px);
  }

  75% {
    transform: translateX(5px);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

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

/* Form messages (success/error) */
.form-message {
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  border-left: 5px solid;
  background: var(--color-tape);
  animation: slideDown 0.3s ease;
  box-shadow: 3px 3px 0 var(--color-charcoal);
}

.form-message-success {
  border-left-color: #2d5016;
  background: #d4edda;
}

.form-message-error {
  border-left-color: #8B0000;
  background: #f8d7da;
}

.form-message-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.form-message-icon {
  font-size: 1.5rem;
  font-weight: bold;
  min-width: 1.5rem;
}

.form-message-success .form-message-icon {
  color: #2d5016;
}

.form-message-error .form-message-icon {
  color: #8B0000;
}

.form-message-text {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-black);
  letter-spacing: 0.3px;
}

.form-message.fade-out {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Loading state for submit button */
.submit-btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.submit-btn.loading {
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.submit-btn .spinner {
  width: 18px;
  height: 18px;
  border: 3px solid var(--color-tape);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================
   13. FOOTER
   ========================================== */

.footer {
  background: var(--color-charcoal);
  color: var(--color-tape);
  padding: var(--spacing-lg) 0 var(--spacing-md) 0;
  position: relative;
  border-top: 5px solid var(--color-black);
  overflow: hidden;
}

.footer::before {
  content: 'LAURA GUNTER';
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: clamp(4rem, 15vw, 12rem);
  letter-spacing: 10px;
  color: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}

.tape-footer-top {
  top: -15px;
  transform: rotate(0deg);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  position: relative;
  z-index: 1;
}

.footer-text {
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.footer-link {
  color: var(--color-tape);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--color-bg-primary);
  text-decoration: underline;
}

.footer-link:focus {
  outline: 3px solid var(--color-tape);
  outline-offset: 2px;
}

.footer-skull {
  color: var(--color-tape);
  text-decoration: none;
  font-size: 0.85rem;
  opacity: 0.3;
  transition: all 0.3s ease;
  display: inline-block;
  cursor: pointer;
}

.footer-skull:hover {
  opacity: 1;
  transform: scale(1.2) rotate(15deg);
  filter: drop-shadow(0 0 8px var(--color-neon-purple));
}

.footer-skull:focus {
  outline: 2px solid var(--color-tape);
  outline-offset: 2px;
  opacity: 1;
}

/* ==========================================
   14. UI COMPONENTS (MODALS, LIGHTBOX, BUTTONS)
   ========================================== */

/* Portfolio Modal */
.portfolio-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-modal.active {
  display: flex;
  opacity: 1;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(5px);
  cursor: pointer;
}

.modal-content {
  position: relative;
  z-index: 10001;
  background: var(--color-tape);
  border: 5px solid var(--color-black);
  max-width: 90%;
  max-height: 90vh;
  width: 1000px;
  padding: var(--spacing-lg);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
  overflow-y: auto;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }

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

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 50px;
  height: 50px;
  background: var(--color-black);
  color: var(--color-tape);
  border: 3px solid var(--color-black);
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10002;
  line-height: 1;
  box-shadow: 3px 3px 0 var(--color-charcoal);
}

.modal-close:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--color-charcoal);
  background: var(--color-charcoal);
}

.modal-close:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--color-charcoal);
}

.modal-close:focus {
  outline: 3px solid var(--color-black);
  outline-offset: 3px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 4px;
  color: var(--color-black);
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-sm);
  border-bottom: 4px solid var(--color-black);
  text-align: center;
}

.modal-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.gallery-item {
  position: relative;
  aspect-ratio: 1/1;
  border: 3px solid var(--color-black);
  background: var(--color-bg-primary);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 4px 4px 0 var(--color-black);
  cursor: pointer;
}

.gallery-item:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 var(--color-black);
}

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

.gallery-item .image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-primary);
  border: none;
  box-shadow: none;
  margin: 0;
}

.gallery-item .image-placeholder p {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 2px;
  color: var(--color-gray);
}

/* Lightbox - Full Size Image View */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 20000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.98);
  cursor: pointer;
}

.lightbox-content {
  position: relative;
  z-index: 20001;
  max-width: 95%;
  max-height: 95vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  animation: lightboxZoomIn 0.3s ease-out;
}

@keyframes lightboxZoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  border: 5px solid var(--color-tape);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.9);
  object-fit: contain;
  display: block;
}

.lightbox-counter {
  margin-top: var(--spacing-sm);
  padding: 0.5rem 1.5rem;
  background: var(--color-black);
  color: var(--color-tape);
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 2px;
  border: 2px solid var(--color-tape);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  background: var(--color-black);
  color: var(--color-tape);
  border: 3px solid var(--color-tape);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20002;
  font-weight: bold;
  box-shadow: 4px 4px 0 rgba(245, 241, 232, 0.3);
}

.lightbox-close {
  top: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  font-size: 2.5rem;
  line-height: 1;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 80px;
  font-size: 3rem;
  line-height: 1;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--color-charcoal);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 6px 6px 0 rgba(245, 241, 232, 0.4);
}

.lightbox-close:hover {
  transform: scale(1.1);
}

.lightbox-close:active,
.lightbox-prev:active,
.lightbox-next:active {
  transform: translateY(-50%) scale(0.95);
  box-shadow: 2px 2px 0 rgba(245, 241, 232, 0.2);
}

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

.lightbox-close:focus,
.lightbox-prev:focus,
.lightbox-next:focus {
  outline: 3px solid var(--color-tape);
  outline-offset: 3px;
}

/* Hide navigation arrows when there's only one image */
.lightbox.single-image .lightbox-prev,
.lightbox.single-image .lightbox-next {
  display: none;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--color-black);
  color: var(--color-tape);
  border: 3px solid var(--color-black);
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 4px 4px 0 var(--color-charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--color-charcoal);
}

.back-to-top:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--color-charcoal);
  transition: all 0.05s ease;
}

.back-to-top:focus {
  outline: 3px solid var(--color-black);
  outline-offset: 3px;
}

.back-to-top-arrow {
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 1;
}

/* ==========================================
   15. RESPONSIVE DESIGN - MEDIA QUERIES
   ========================================== */

/* Tablet/iPad specific styles (769px - 1200px) */
@media (min-width: 769px) and (max-width: 1200px) {

  /* Navigation fixes */
  .nav-logo {
    padding-left: 0;
  }

  .nav-links {
    gap: 0.5rem;
    padding-right: 0.5rem;
  }

  .nav-link {
    font-size: 1rem;
    padding: 0.5rem;
  }

  /* Services section - single column layout */
  .services-three-column {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    padding: 0 var(--spacing-sm);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Testimonials - single column for cleaner look */
  .testimonial-grid {
    grid-template-columns: 1fr;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
  }

  .service-card {
    min-height: 450px;
  }

  /* Contact section - stack vertically */
  .contact-three-column {
    grid-template-columns: 1fr !important;
    gap: var(--spacing-lg);
    padding: 0 var(--spacing-md);
  }

  .contact-info-content {
    flex-direction: row;
  }

  .contact-skull-image {
    padding-left: var(--spacing-md);
    width: auto;
  }

  .skull-decoration {
    width: 250px;
    height: 250px;
  }

  /* About section */
  .about-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
}

/* Tablet portrait mode - navigation fixes (769px - 900px, portrait) */
@media (min-width: 769px) and (max-width: 900px) and (orientation: portrait) {
  .nav-logo {
    padding-left: 0;
  }

  .nav-brand-wrapper {
    gap: 0.025rem;
  }

  .nav-brand-text {
    font-size: 1.1rem;
    letter-spacing: 1px;
  }

  .nav-brand-divider {
    font-size: 0.9rem;
  }

  .nav-links {
    gap: 0.25rem;
    padding-right: 0.25rem;
  }

  .nav-link {
    font-size: 0.9rem;
    padding: 0.4rem;
    letter-spacing: 1px;
  }
}

/* Mobile devices (max-width: 768px) */
@media (max-width: 768px) {
  .hero::after {
    width: 400px;
    height: 400px;
  }

  /* Add padding to sections with border images to prevent title cutoff */
  .services-section,
  .testimonials-section,
  .contact-section {
    padding-top: calc(var(--spacing-xl) + var(--border-height));
  }

  .portfolio-section,
  .faq-section {
    padding-top: calc(var(--spacing-xl) + var(--border-height));
  }

  .nav-content {
    flex-wrap: nowrap;
    position: relative;
    justify-content: space-between;
  }

  .mobile-menu-toggle {
    display: flex;
    flex-shrink: 0;
  }

  /* Prevent logo expansion from pushing content down */
  .nav-logo {
    max-width: none;
    flex-shrink: 1;
    padding-left: 0;
    min-width: 0;
  }

  .nav-brand-wrapper {
    height: 1.5rem;
    gap: 0.05rem;
    min-width: 0;
  }

  .nav-brand-text {
    font-size: 1.2rem;
    letter-spacing: 1px;
  }

  .nav-brand-divider {
    font-size: 0.9rem;
  }

  .nav-brand-short {
    max-width: 55px;
  }

  .nav-brand-full {
    max-width: 100px;
  }

  .nav-brand-divider-short,
  .nav-brand-divider-full {
    max-width: 28px;
  }

  .logo-img {
    width: 45px;
    height: 45px;
    flex-shrink: 0;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-tape);
    flex-direction: column;
    padding: 0;
    gap: 0;
    border-top: 3px solid var(--color-black);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    margin: 0;
    z-index: 1000;
    padding-top: 80px;
    justify-content: flex-start;
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    font-size: 1.2rem;
    padding: 1rem;
    width: 100%;
    justify-content: center;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
  }

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

  .nav-link:hover {
    transform: none;
    background: rgba(0, 0, 0, 0.05);
  }

  .nav-link::after {
    display: none;
  }

  .hero {
    min-height: 60vh;
  }

  .hero-title {
    flex-direction: column;
    gap: 0.5rem;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }

  .tape-cross {
    width: 50px;
    height: 50px;
  }

  .tape-cross::before {
    height: 18px;
  }

  .tape-cross::after {
    width: 18px;
  }

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

  .about-statement {
    font-size: 1.3rem;
    letter-spacing: 0.5px;
    line-height: 1.4;
  }

  .contact-three-column {
    grid-template-columns: 1fr;
    padding: 0 var(--spacing-sm);
  }

  .contact-info-content {
    flex-direction: column;
  }

  .contact-skull-image {
    padding-left: 0;
    width: 100%;
  }

  .skull-decoration {
    width: 120px;
    height: 120px;
  }

  .map-container {
    min-height: 300px;
  }

  .map-container iframe {
    min-height: 300px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .services-three-column {
    grid-template-columns: 1fr;
    padding: 0 var(--spacing-sm);
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-text {
    font-size: 0.85rem;
  }

  .tape-strip {
    height: 40px;
  }

  /* Adjust portfolio and testimonial grids */
  .services-grid[style*="minmax(300px"] {
    grid-template-columns: 1fr !important;
  }

  /* Better spacing for FAQ section on mobile */
  .faq-section .info-block {
    margin-bottom: var(--spacing-sm);
  }

  /* Modal adjustments for mobile */
  .modal-content {
    max-width: 95%;
    padding: var(--spacing-md);
    max-height: 95vh;
  }

  .modal-gallery {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }

  .modal-title {
    font-size: 1.8rem;
    padding-right: 60px;
  }

  .modal-close {
    width: 44px;
    height: 44px;
    top: 10px;
    right: 10px;
  }

  /* Lightbox adjustments for mobile */
  .lightbox-close {
    width: 50px;
    height: 50px;
    top: 10px;
    right: 10px;
    font-size: 2rem;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 50px;
    height: 60px;
    font-size: 2.5rem;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-counter {
    font-size: 1rem;
    padding: 0.4rem 1rem;
  }

  .lightbox-image {
    max-height: 85vh;
  }
}

/* Small mobile devices (max-width: 480px) */
@media (max-width: 480px) {
  .hero::after {
    width: 300px;
    height: 300px;
  }

  :root {
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 2.5rem;
  }

  /* Ensure border images don't cut off titles on small screens */
  .services-section,
  .testimonials-section,
  .contact-section,
  .portfolio-section,
  .faq-section {
    padding-top: calc(var(--spacing-xl) + var(--border-height) + 0.5rem);
  }

  .container {
    padding: 0 1rem;
  }

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

  .service-card {
    padding: var(--spacing-md);
  }

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

  .hero-content {
    padding: var(--spacing-md) var(--spacing-sm);
  }

  .tape-cross {
    width: 40px;
    height: 40px;
  }

  .tape-cross::before {
    height: 15px;
  }

  .tape-cross::after {
    width: 15px;
  }

  .hero-tagline {
    font-size: 1.2rem;
    letter-spacing: 3px;
  }

  .about-paragraph {
    font-size: 1rem;
    line-height: 1.7;
  }

  .about-statement {
    font-size: 1rem;
    letter-spacing: 0.5px;
    padding: 0.5rem;
    line-height: 1.3;
    word-spacing: 0.1rem;
  }

  .info-label {
    font-size: 1.25rem;
    letter-spacing: 1px;
    line-height: 1.4;
  }

  .info-text {
    font-size: 1rem;
    line-height: 1.6;
  }

  /* FAQ specific improvements for mobile */
  .faq-section .info-label {
    font-size: 1.3rem;
    padding: var(--spacing-sm);
    font-weight: bold;
  }

  .contact-form-wrapper {
    padding: var(--spacing-sm);
  }

  .submit-btn {
    font-size: 1.1rem;
    padding: 0.875rem 1.5rem;
  }

  .nav-logo {
    padding-left: 0;
  }

  .nav-brand-wrapper {
    gap: 0.05rem;
    min-width: 0;
  }

  .nav-brand-text {
    font-size: 1.05rem;
    letter-spacing: 0.5px;
  }

  .nav-brand-divider {
    font-size: 0.8rem;
  }

  .nav-brand-short {
    max-width: 50px;
  }

  .nav-brand-full {
    max-width: 85px;
  }

  .logo-img {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }

  /* Improve tap targets on very small screens */
  .mobile-menu-toggle {
    min-width: 48px;
    min-height: 48px;
  }

  .nav-link {
    padding: 1.25rem 1rem;
    font-size: 1.1rem;
  }
}

/* Landscape orientation adjustments for phones */
@media (max-width: 896px) and (max-height: 414px) and (orientation: landscape) {
  .hero {
    min-height: 100vh;
  }

  .hero-content {
    padding: var(--spacing-sm);
  }

  .nav-links.active {
    max-height: 300px;
    overflow-y: auto;
  }

  .nav-link {
    padding: 0.75rem;
  }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .glitch::before,
  .glitch::after {
    display: none;
  }

  .chaos-text {
    animation: none;
  }
}