/* Complete redesign to match Point Eight Power industrial aesthetic */

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  background: #1a2e49;
  color: white;
}

/* Mobile Menu Styles */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
}

.mobile-menu.active {
  max-height: 400px;
}

/* Cookie Popup Styles */
.cookie-popup {
  position: fixed;
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 1.5rem;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  max-width: 500px;
  width: 90%;
  transition: bottom 0.4s ease-in-out;
}

.cookie-popup.show {
  bottom: 20px;
}

.cookie-content {
  display: flex;
  flex-direction: column;
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #c8102e;
  color: white;
  border: none;
  border-radius: 0;
  font-size: 24px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.4);
  font-weight: bold;
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background: #a00d25;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(200, 16, 46, 0.6);
}

/* Flip Card Styles */
.flip-card {
  perspective: 1000px;
  height: 400px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  overflow: hidden;
}

.flip-card-front {
  background-color: #1a2e49;
}

.flip-card-back {
  background-color: #0f1a2e;
  transform: rotateY(180deg);
  border: 2px solid #c8102e;
}

/* Service Card with Brackets */
.service-card-bracket {
  transition: all 0.3s ease;
}

.service-card-bracket:hover {
  transform: translateY(-5px);
}

.brackets {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.brackets span {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid #c8102e;
}

.bracket-tl {
  top: -2px;
  left: -2px;
  border-right: none;
  border-bottom: none;
}

.bracket-tr {
  top: -2px;
  right: -2px;
  border-left: none;
  border-bottom: none;
}

.bracket-bl {
  bottom: -2px;
  left: -2px;
  border-right: none;
  border-top: none;
}

.bracket-br {
  bottom: -2px;
  right: -2px;
  border-left: none;
  border-top: none;
}

/* Expandable Card Styles */
.expandable-card {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.expandable-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.expandable-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 4px;
  background: #c8102e;
  transition: left 0.3s ease;
}

.expandable-card:hover::before {
  left: 0;
}

/* Animation on Scroll */
.fade-in {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(30px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

/* Form Error States */
input.border-red-500,
textarea.border-red-500 {
  border-color: #ef4444 !important;
}

/* Smooth Transitions */
a {
  transition: all 0.2s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #0f1a2e;
}

::-webkit-scrollbar-thumb {
  background: #c8102e;
  border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
  background: #a00d25;
}

/* Image Effects */
img {
  transition: transform 0.3s ease;
}

/* Focus Styles */
button:focus,
a:focus,
input:focus,
textarea:focus {
  outline: 2px solid #c8102e;
  outline-offset: 2px;
}

/* Utility Classes */
.text-balance {
  text-wrap: balance;
}

/* Responsive Container */
.container {
  max-width: 1280px;
}

/* Print Styles */
@media print {
  .cookie-popup,
  .scroll-to-top,
  header,
  footer {
      display: none;
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .flip-card {
      height: 350px;
  }
  
  h1 {
      font-size: 2.5rem !important;
  }
  
  h2 {
      font-size: 2rem !important;
  }
}

/* Loading States */
img[src*="placeholder"] {
  background: linear-gradient(90deg, #0f1a2e 25%, #1a2e49 50%, #0f1a2e 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
      background-position: 200% 0;
  }
  100% {
      background-position: -200% 0;
  }
}
