/* Editorial style redesign with bold typography and minimalist aesthetics */

* {
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography enhancements */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 900;
  letter-spacing: -0.02em;
}

/* Header adjustments */
#contacts {
  scroll-margin-top: 100px;
}

/* Smooth transitions */
a,
button {
  transition: all 0.3s ease;
}

/* Form input focus states with editorial style */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #000;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f5f5f4;
}

::-webkit-scrollbar-thumb {
  background: #000;
  border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
  background: #333;
}

/* Image transitions */
img {
  transition: transform 0.6s ease, opacity 0.3s ease;
  will-change: transform;
}

img:not([src]) {
  opacity: 0;
}

/* Button hover effects */
button:hover,
a:hover {
  transform: translateY(-1px);
}

/* Flip card styles */
.flip-card {
  background-color: transparent;
  width: 100%;
  height: 600px;
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  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;
}

.flip-card-front {
  background-color: #000;
  color: black;
}

.flip-card-back {
  background-color: #292524;
  color: white;
  transform: rotateY(180deg);
}

/* Expandable card styles */
.expand-card {
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.expand-card-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.4s ease;
}

.expand-card.active .expand-card-content {
  max-height: 500px;
  opacity: 1;
}

.expand-card.active {
  background-color: #fff !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transform: scale(1.02);
}

.expand-card.active .expand-icon {
  transform: rotate(180deg);
}

/* Animation for cookie popup */
#cookiePopup {
  animation: slideUp 0.4s ease forwards;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

/* Fade-in animation for sections */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive iframe */
iframe {
  max-width: 100%;
}

/* Editorial spacing and layout improvements */
section {
  position: relative;
}

/* Text selection color */
::selection {
  background-color: #000;
  color: #fff;
}

::-moz-selection {
  background-color: #000;
  color: #fff;
}

/* Link underline effect */
a {
  position: relative;
}

/* Image overlay effect on hover */
.flip-card-front img {
  transition: transform 0.6s ease;
}

.flip-card:hover .flip-card-front img {
  transform: scale(1.05);
}

/* Grid improvements */
.grid {
  display: grid;
}

/* Mobile menu improvements */
#mobileMenu {
  transition: all 0.3s ease;
}

/* Print styles */
@media print {
  header,
  footer,
  #cookiePopup {
    display: none;
  }

  section {
    page-break-inside: avoid;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .flip-card {
    height: 400px;
  }

  h1 {
    font-size: 3rem !important;
  }

  h2 {
    font-size: 2rem !important;
  }

  .expand-card {
    margin-bottom: 1rem;
  }
}

/* Performance optimizations */
* {
  -webkit-tap-highlight-color: transparent;
}

img,
video {
  max-width: 100%;
  height: auto;
}

/* Accessibility improvements */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid #000;
  outline-offset: 2px;
}

/* Loading state */
.loading {
  opacity: 0.6;
  pointer-events: none;
}
