/* ===================================
   MODERN TATTOO STUDIO DESIGN SYSTEM
   =================================== */

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  background-color: #ffffff;
  background-image: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)), url('https://www.blackandwhitetattoostudios.co.za/images/nicepage-images/TribalWallpaperPatternBlackAndWhiteLineArtFloralDesign.png');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  color: #111111;
  overflow-x: hidden;
  line-height: 1.7;
}

/* Custom font styles */
@font-face {
  font-family: 'Feather Graphy';
  src: url('fonts/Feathergraphy2.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

.font-feathergraphy {
  font-family: 'Feather Graphy', cursive;
  letter-spacing: 0.02em;
}

.font-merriweather {
  font-family: 'Merriweather', serif;
}

.font-oswald {
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.05em;
}

.font-lato {
  font-family: 'Lato', sans-serif;
}

.font-lobster {
  font-family: 'Lobster', cursive;
}

/* ===================================
   ENHANCED ANIMATIONS
   =================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 1s ease-out forwards;
  will-change: transform, opacity;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.animate-fadeIn {
  animation: fadeIn 0.6s ease-in-out forwards;
}

@keyframes zoomIn {
  from {
    transform: scale(0.85);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.animate-zoomIn {
  animation: zoomIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }

  100% {
    background-position: 1000px 0;
  }
}

/* ===================================
   HEADER ENHANCEMENTS
   =================================== */

#header {
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#header.scrolled {
  background-color: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Explicitly hide mobile menu button on desktop */
@media (min-width: 768px) {
  #mobile-menu-button {
    display: none !important;
  }
}

/* Navigation Link Styling */
.nav-link {
  position: relative;
  font-size: 1.125rem;
  font-weight: 600;
  color: #4a5568;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.5rem 0;
}

.nav-link span {
  position: relative;
  z-index: 1;
}

.nav-link:hover {
  color: #00b4a6;
  transform: translateY(-2px);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #00b4a6, #f4b3ce);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link.active {
  color: #00b4a6;
  font-weight: 700;
}

/* ===================================
   GLASSMORPHISM EFFECTS
   =================================== */

.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.glass-dark {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===================================
   ENHANCED BUTTONS & CTAs
   =================================== */

.btn-primary {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(43, 158, 83, 0.4);
}

.btn-primary:active {
  transform: translateY(-1px);
}

/* ===================================
   CARD ENHANCEMENTS
   =================================== */

.card-hover {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.card-hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(43, 158, 83, 0.1), rgba(244, 179, 206, 0.1));
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: inherit;
  pointer-events: none;
}

.card-hover:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.card-hover:hover::before {
  opacity: 1;
}

/* ===================================
   GRADIENT TEXT
   =================================== */

.gradient-text {
  background: linear-gradient(135deg, #00b4a6, #008c7a, #f52a09);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

/* ===================================
   SECTION DIVIDERS
   =================================== */

.section-divider {
  position: relative;
  overflow: hidden;
}

.section-divider::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #00b4a6, #f4b3ce, transparent);
  opacity: 0.5;
}

/* TRIBAL DIVIDER (CSS ONLY) */
.tribal-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.9;
}

.tribal-divider::before,
.tribal-divider::after {
  content: '';
  flex: 1;
  height: 2px;
  background: black;
  border-radius: 2px;
}

.tribal-divider::before {
  background: linear-gradient(to left, #00b4a6 40%, transparent);
  margin-right: 15px;
}

.tribal-divider::after {
  background: linear-gradient(to right, #00b4a6 40%, transparent);
  margin-left: 15px;
}

.tribal-pattern {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tribal-diamond {
  width: 12px;
  height: 12px;
  background-color: #f4b3ce;
  transform: rotate(45deg);
  border: 2px solid transparent;
  width: 16px;
  height: 16px;
  box-shadow: 0 0 5px rgba(244, 179, 206, 0.5);
}

.tribal-diamond:nth-child(2) {
  width: 24px;
  height: 24px;
  background-color: transparent;
  border: 3px solid #00b4a6;
  box-shadow: 0 0 5px rgba(0, 180, 166, 0.3);
}


/* ===================================
   IMAGE ENHANCEMENTS
   =================================== */

.image-hover-zoom {
  overflow: hidden;
  border-radius: 1rem;
}

.image-hover-zoom img {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-hover-zoom:hover img {
  transform: scale(1.1) rotate(2deg);
}

/* ===================================
   TESTIMONIAL CARDS
   =================================== */

.testimonial-card {
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 20px;
  font-size: 100px;
  font-family: Georgia, serif;
  color: rgba(43, 158, 83, 0.1);
  line-height: 1;
  pointer-events: none;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

/* ===================================
   FORM ENHANCEMENTS
   =================================== */

input:focus,
textarea:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(43, 158, 83, 0.2);
}

/* ===================================
   LIGHTBOX STYLES
   =================================== */

#lightbox-modal {
  display: none;
  backdrop-filter: blur(10px);
}

#lightbox-modal.active {
  display: flex;
}

/* ===================================
   SCROLL ANIMATIONS
   =================================== */

.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================
   LOADING STATES
   =================================== */

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/* ===================================
   RESPONSIVE ENHANCEMENTS
   =================================== */

@media (max-width: 768px) {
  .nav-link {
    font-size: 1.5rem;
    padding: 1rem 0;
  }

  .card-hover:hover {
    transform: translateY(-4px) scale(1.01);
  }
}

/* ===================================
   UTILITY CLASSES
   =================================== */

.text-shadow-sm {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.text-shadow-md {
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.text-shadow-lg {
  text-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.hover-lift {
  transition: transform 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
}

.pulse-slow {
  animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

/* ===================================
   DRAMATIC MOBILE ENHANCEMENTS
   =================================== */

@media (max-width: 768px) {

  /* HERO SECTION - Dramatic Changes */
  .mobile-hero {
    background-attachment: scroll !important;
    padding: 4rem 0 !important;
  }

  .mobile-hero h1 {
    font-size: 3.5rem !important;
    color: #000000 !important;
    text-shadow: none !important;
  }

  .mobile-hero h2 {
    font-size: 1.75rem !important;
    color: #f52a09 !important;
    text-shadow: 0 2px 8px rgba(245, 42, 9, 0.5);
    letter-spacing: 0.1em;
  }

  .mobile-hero p {
    font-size: 1.1rem !important;
    line-height: 1.8 !important;
    padding: 0 1rem;
  }

  /* BUTTONS - More Prominent */
  .btn-primary,
  a[class*="bg-[#00b4a6]"] {
    font-size: 1.25rem !important;
    padding: 1.25rem 2.5rem !important;
    box-shadow: 0 10px 30px rgba(43, 158, 83, 0.5) !important;
    animation: float 3s ease-in-out infinite;
  }

  /* IMAGES - More Dramatic */
  .mobile-section img,
  .image-hover-zoom img {
    border-radius: 2rem !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
    transform: scale(1.05);
  }

  /* CARDS - Eye-Catching */
  .testimonial-card {
    background: linear-gradient(135deg, rgba(43, 158, 83, 0.1), rgba(244, 179, 206, 0.1)) !important;
    border: 2px solid rgba(43, 158, 83, 0.3) !important;
    transform: scale(1.02);
  }

  .card-hover {
    background: linear-gradient(135deg, #ffffff, #f8f9fa) !important;
    border-left: 6px solid #00b4a6 !important;
    transform: translateY(-5px);
  }

  /* SECTION BACKGROUNDS - More Vibrant */
  .mobile-section {
    background: linear-gradient(135deg, #ffffff, #f0f9f4) !important;
  }

  /* TYPOGRAPHY - Bolder */
  h2 {
    color: #00b4a6 !important;
    font-size: 2.25rem !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  h3 {
    font-size: 1.5rem !important;
    color: #008c7a;
  }

  /* CONTAINER - Better Spacing */
  .container {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }

  /* SECTIONS - More Padding */
  section {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }

  /* GRID - Better Gaps */
  .grid {
    gap: 2rem !important;
  }

  /* AVATARS - Pulsing Effect */
  .pulse-slow {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    box-shadow: 0 0 0 0 rgba(43, 158, 83, 0.7);
    animation: pulse-ring 2s infinite;
  }

  @keyframes pulse-ring {
    0% {
      box-shadow: 0 0 0 0 rgba(43, 158, 83, 0.7);
    }

    70% {
      box-shadow: 0 0 0 10px rgba(43, 158, 83, 0);
    }

    100% {
      box-shadow: 0 0 0 0 rgba(43, 158, 83, 0);
    }
  }

  /* FORM INPUTS - More Prominent */
  input,
  textarea {
    border: 2px solid rgba(43, 158, 83, 0.3) !important;
    border-radius: 1rem !important;
    font-size: 16px !important;
    padding: 1rem !important;
  }

  input:focus,
  textarea:focus {
    border-color: #00b4a6 !important;
    box-shadow: 0 0 0 4px rgba(43, 158, 83, 0.1) !important;
  }

  /* FOOTER - Better Contrast */
  footer {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d) !important;
  }

  /* MOBILE MENU - Clean White */
  #mobile-menu {
    background: #ffffff !important;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
  }

  #mobile-menu a {
    font-size: 2rem !important;
    color: #111111 !important;
    transition: color 0.3s ease;
  }

  #mobile-menu a:hover {
    color: #00b4a6 !important;
  }

  /* Contact Section Overrides for Readability */
  #contact h2 {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
  }
}

@media (max-width: 767px) {
  .mobile-hero h1 {
    font-size: 2.75rem !important;
  }

  .mobile-hero h2 {
    font-size: 1.5rem !important;
  }

  h2 {
    font-size: 2rem !important;
  }

  /* ===================================
   CLIENT STORIES / TESTIMONIALS CAROUSEL
   =================================== */

  #client-stories-grid {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 2rem;
    padding-bottom: 2rem;
    padding-left: 1rem;
    padding-right: 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
  }

  /* Hide scrollbar Webkit */
  #client-stories-grid::-webkit-scrollbar {
    display: none;
  }

  #client-stories-grid .testimonial-card {
    min-width: 100%;
    /* Reduced slightly */
    max-width: 90vw;
    /* Hard cap */
    /* Mobile default */
    scroll-snap-align: center;
    flex-shrink: 0;
  }
}

/* Tablet/Desktop adjustments */
@media (min-width: 768px) {
  #client-stories-grid .testimonial-card {
    min-width: 350px;
    width: 350px;
    /* Fixed width for better consistency */
    flex: 0 0 auto;
  }
}