body, h1, h2, h3, h4, h5, h6, p {
  font-family: "Lato", sans-serif;
}


/* For service or pricing boxes */
.package-box, 
.services-section,
.pricing-card,
.button,
.bubble-title {
  font-family: "Libertinus Mono", sans-serif;
}

/* General styles */
.bg-sage {
  background-color: #e6f2e6;
  color: #000;
}

.btn-sage {
  background-color: #a3c4a3;
  color: black;
  border: none;
}

.btn-sage:hover {
  background-color: #8db88d;
  color: black;
}

.btn-outline-sage {
  color: #000;
  border: 2px solid #a3c4a3;
  background-color: transparent;
}

.btn-outline-sage:hover {
  background-color: #a3c4a3;
  color: black;
}

.bubble-title {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: #a3c4a3;
  color: #000;
;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.1rem;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  flex-shrink: 0; /* Prevents bubble from squishing */
}

.bg-footer-sage {
  background-color: #a3c4a3; /* Matches button color */
  color: #000;
}

/* computer mockup styles */
.imac-wrapper {
  position: relative;
  padding-bottom: 40px; /* Adds space below for the base to show */
}

.imac {
  width: 260px;
  height: 180px;
  background: #d0d0d0;
  border: 8px solid #666;
  border-radius: 12px 12px 10px 10px ;
  overflow: hidden;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.screen {
  width: 100%;
  height: 100%;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.stand {
  width: 70px;
  height: 30px;
  background: #999;
  border-radius: 0 0 0px 0px;
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.base {
  width: 110px;
  height: 12px;
  background: #666;
  border-radius: 6px;
  position: absolute;
  margin: 0 auto;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
}

.imac:hover .mockup-img {
  transform: scale(1.05);
  transition: transform 0.3s ease-in-out;
}

.mockup-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease-in-out;
}

/* Flip Card Structure */
.flip-card {
  width: 200px;
  height: 260px;
  perspective: 1000px;
   cursor: pointer;
  user-select: none;
  touch-action: manipulation;
}

.flip-inner {
  width: 100%;
  height: 100%;
  transition: transform 0.8s ease;
  transform-style: preserve-3d;
  position: relative;
}

.flip-card:hover .flip-inner {
  transform: rotateY(180deg);
}

/* Front & Back Sides */
.flip-front,
.flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 8px;
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  
}

.flip-back {
  transform: rotateY(180deg);
  padding: 1rem;

}

/* Polaroid Styling */
.polaroid {
  padding: 10px;
  border: 1px solid #ccc;
  background: white;
}

.polaroid .caption {
  font-size: 0.9rem;
  margin-top: 10px;
  text-align: center;
  pointer-events: none;
}

.flip-inner {
  transition: transform 0.8s ease;
  transform-style: preserve-3d;
  position: relative;
}


/* fade ins */
.fade-in {
  opacity: 0;
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in-left {
  transform: translateX(-50px);
}

.fade-in-right {
  transform: translateX(50px);
}

.fade-in-up {
  transform: translateY(30px);
}

/* Visible state triggers animation */
.visible {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

/* Base fade and grow effect */
.fade-in-grow {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in-grow.visible {
  opacity: 1;
  transform: scale(1);
}

.delay-1 {
  transition-delay: 0.2s;
}

.delay-2 {
  transition-delay: 0.4s;
}

.delay-3 {
  transition-delay: 0.6s;
}

.delay-4 {
  transition-delay: 0.8s;
}


/* Responsive Design */
/* Flip when hovered on desktop */
.flip-card:hover .flip-inner {
  transform: rotateY(180deg);
}

/* Flip when class is toggled (for mobile) */
.flip-inner.flipped {
  transform: rotateY(180deg);
}

@media (min-width: 768px) {
  .bubble-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .fade-in-left,
  .fade-in-right,
  .fade-in-up {
    transform: none !important;
  }
}
