/* Custom Styles for Strategonel CapitalMind */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  overflow-x: hidden;
  background-color: var(--bg-cream);
}

/* Fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 1s ease-out forwards;
}

/* Form focus states */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 4px rgba(232, 139, 168, 0.3);
}

/* Custom checkbox styling */
input[type="checkbox"]:checked {
  background-color: var(--accent);
  border-color: var(--primary);
}

/* Smooth transitions for all interactive elements */
a,
button,
input,
textarea {
  transition: all 0.3s ease;
}

/* Prevent text selection on buttons */
button {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* Image loading optimization */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 14px;
}

::-webkit-scrollbar-track {
  background: var(--bg-cream);
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 10px;
  border: 3px solid var(--bg-cream);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Form validation error styles */
.border-red-500 {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.text-red-500 {
  color: #ef4444 !important;
}

/* Responsive iframe */
iframe {
  max-width: 100%;
}

/* Print styles */
@media print {
  header,
  footer,
  #cookiePopup,
  #burgerMenu {
    display: none;
  }

  body {
    background: white;
  }
}

/* Utility: hide on mobile/desktop */
@media (max-width: 768px) {
  .hide-mobile {
    display: none;
  }
}

@media (min-width: 769px) {
  .hide-desktop {
    display: none;
  }
}

/* Added Pomegranate-style color variables and custom properties */
:root {
  --primary: #7a2048;
  --primary-dark: #5a1838;
  --primary-light: #8a2858;
  --accent: #e88ba8;
  --accent-hover: #d67a97;
  --bg-cream: #fff5e9;
  --bg-tan: #f5e5d3;
}

/* Custom border widths for thick borders */
.border-3 {
  border-width: 3px;
}

.border-6 {
  border-width: 6px;
}

/* Card flip animation */
.card-flip-container {
  perspective: 1000px;
  cursor: pointer;
}

.card-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.card-flip-container.flipped .card-flip-inner {
  transform: rotateY(180deg);
}

.card-flip-front,
.card-flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
}

.card-flip-back {
  transform: rotateY(180deg);
}

/* Benefit card expand animation */
.benefit-card {
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  cursor: pointer;
}

.benefit-card.expanded {
  transform: scale(1.05);
  z-index: 10;
  box-shadow: 0 25px 50px -12px rgba(122, 32, 72, 0.4);
}

/* Layer item hover effects */
.layer-item {
  transition: all 0.3s ease;
  cursor: pointer;
}

/* Feature card expansion */
.feature-card {
  transition: all 0.4s ease;
  overflow: hidden;
}

.feature-card.expanded {
  grid-column: span 2;
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .feature-card.expanded {
    grid-column: span 1;
  }
}

/* Service card 3D hover effect */
.service-card {
  transition: all 0.3s ease;
  transform-style: preserve-3d;
}

/* Pill card active state */
.pill-card {
  transition: all 0.3s ease;
}

.pill-card.active {
  background: linear-gradient(135deg, var(--bg-tan) 0%, rgba(232, 139, 168, 0.2) 100%);
  transform: translateX(10px);
}

/* Team member hover effects */
.team-member {
  transition: all 0.3s ease;
}

/* Smooth bounce animation for scroll indicator */
@keyframes bounce-slow {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

.animate-bounce-slow {
  animation: bounce-slow 2s ease-in-out infinite;
}

/* Demo card chat bubble animations */
.demo-card {
  transition: all 0.5s ease;
}

/* Dashboard card subtle parallax effect */
.dashboard-card {
  transition: all 0.3s ease;
}

.dashboard-card:hover {
  transform: translateY(-5px);
}

/* Layers container perspective effect */
.layers-container {
  perspective: 1000px;
}

/* Responsive spacing adjustments */
@media (max-width: 640px) {
  .service-card,
  .benefit-card,
  .feature-card,
  .pill-card {
    transform: none !important;
  }
}
