@import url("https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Playfair+Display:wght@400;500;600;700&display=swap");

/* =====================================================
   🎨 CSS VARIABLES
   ===================================================== */
:root {
  --dark: #000;
  --light: #f9f4eb;
  --light2: #f0ece5;
  --accent-1: #e5d9f6;
  --accent-2: #ffd2f3;
  --accent-3: #fcdca6;
}

/* =====================================================
   🔧 RESET & BASE STYLES
   ===================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  background-color: #fff;
  font-family: "DM Sans", sans-serif;
  color: #000;
}

h2 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 500;
}

p {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  font-weight: 500;
}

span {
  text-transform: uppercase;
  font-family: "DM Mono", monospace;
  font-size: 0.75rem;
  font-weight: 500;
}

/* =====================================================
   🎯 HEADER
   ===================================================== */
.site-header {
  position: absolute;
  top: 2rem;
  left: 2rem;
  right: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 100;
  background: none;
}

.logo {
  color: #000;
  font-size: clamp(1.5rem, 2.5vw, 1.8rem);
  line-height: 1.2;
  font-family: "Playfair Display", serif;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: capitalize;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.7),
               0 0 25px rgba(255, 255, 255, 0.4),
               0 0 45px rgba(180, 200, 255, 0.2);
  animation: glowPulse 2.5s ease-in-out infinite alternate;
}

@keyframes glowPulse {
  from {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5),
                 0 0 20px rgba(255, 255, 255, 0.3),
                 0 0 35px rgba(180, 200, 255, 0.1);
  }
  to {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.9),
                 0 0 40px rgba(200, 220, 255, 0.6),
                 0 0 60px rgba(180, 200, 255, 0.4);
  }
}

.menu-button {
  background: #fff;
  color: #000;
  border: none;
  padding: 0.55rem 1.3rem;
  border-radius: 3px;
  font-size: 0.9rem;
  font-family: "DM Mono", monospace;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.menu-button:hover {
  background: #000;
  color: #fff;
  box-shadow: 0 3px 15px rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* =====================================================
   🌊 FLUID ANIMATION SECTION
   ===================================================== */
.fluid-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

#fluid-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* =====================================================
   🎴 HERO CARDS SECTION
   ===================================================== */
.cards-hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  padding: 2rem;
  overflow: hidden;
  background-color: var(--light);
}

.hero-cards {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(90%, 500px);
  max-width: 500px;
  display: flex;
  justify-content: center;
  gap: clamp(0.5rem, 2vw, 1rem);
}

.hero-cards .card {
  flex: 1;
  position: relative;
  aspect-ratio: 5/7;
  max-height: 70vh;
  padding: clamp(0.5rem, 1.5vw, 0.75rem);
  border-radius: 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-title {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

#hero-card-1 {
  background-color: var(--accent-1);
  transform-origin: top right;
  z-index: 2;
}

#hero-card-2 {
  background-color: var(--accent-2);
  z-index: 1;
}

#hero-card-3 {
  background-color: var(--accent-3);
  transform-origin: top left;
  z-index: 0;
}

/* =====================================================
   📄 SECTION DIVIDERS
   ===================================================== */
.section-divider {
  position: relative;
  width: 100vw;
  height: 100vh;
  padding: 2rem;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--dark);
  color: var(--light);
}

/* =====================================================
   💼 SERVICES SECTION
   ===================================================== */
.services-section {
  position: relative;
  width: 100vw;
  height: 100vh;
  padding: 8rem 2rem;
  overflow: hidden;
}

.services-header {
  position: relative;
  width: 100%;
  text-align: center;
  transform: translateY(400%);
  will-change: transform;
}

/* =====================================================
   🔄 FLIP CARDS SECTION
   ===================================================== */
.flip-cards-section {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  background-color: var(--light);
}

.cards-container {
  position: relative;
  width: min(90%, 1200px);
  max-width: 1200px;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(1rem, 4vw, 4rem);
}

.cards-container .card {
  flex: 1;
  position: relative;
  aspect-ratio: 5/7;
  max-height: 80vh;
  max-width: 350px;
  perspective: 1000px;
  opacity: 0;
}

.card-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 1rem;
  backface-visibility: hidden;
  overflow: hidden;
  padding: clamp(0.75rem, 2vw, 1rem);
}

.flip-card-front {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

#card-1 .flip-card-front { background-color: var(--accent-1); }
#card-2 .flip-card-front { background-color: var(--accent-2); }
#card-3 .flip-card-front { background-color: var(--accent-3); }

.flip-card-back {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(1rem, 3vh, 2rem);
  background-color: #fff;
  transform: rotateY(180deg);
}

.card-copy {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card-copy p {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: clamp(0.75rem, 1.5vw, 1rem);
  font-weight: 500;
  background-color: var(--light2);
  border-radius: 0.25rem;
  padding: 0.25rem;
  text-align: center;
  line-height: 1.2;
}

#card-1 {
  transform: translateX(100%) translateY(-100%) rotate(-5deg) scale(0.25);
  z-index: 2;
}

#card-2 {
  transform: translateX(0%) translateY(-100%) rotate(0deg) scale(0.25);
  z-index: 1;
}

#card-3 {
  transform: translateX(-100%) translateY(-100%) rotate(5deg) scale(0.25);
  z-index: 0;
}

/* =====================================================
   📱 RESPONSIVE DESIGN
   ===================================================== */
@media (max-width: 1024px) {
  .hero-cards {
    width: min(85%, 450px);
  }

  .cards-container {
    width: 95%;
    gap: clamp(0.5rem, 3vw, 2rem);
  }

  .cards-container .card {
    max-width: 280px;
  }
}

@media (max-width: 768px) {
  .site-header {
    top: 1rem;
    left: 1rem;
    right: 1rem;
  }

  .logo {
    font-size: 1.5rem;
  }

  .menu-button {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .hero-cards {
    width: 80%;
    max-width: 400px;
  }

  .cards-container {
    width: 95%;
    gap: clamp(0.5rem, 2vw, 1rem);
  }

  .cards-container .card {
    max-width: 200px;
    max-height: 60vh;
  }

  .card-copy p {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .hero-cards {
    width: 90%;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .hero-cards .card {
    width: 100%;
    max-width: 200px;
  }

  .cards-container {
    flex-direction: column;
    gap: 1rem;
    justify-content: flex-start;
    padding: 2rem 0;
  }

  .cards-container .card {
    width: 80%;
    max-width: 250px;
    max-height: 400px;
  }
   .cards-container .card {
  perspective: 1200px;
  transform-style: preserve-3d;
}

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

.flip-card-front,
.flip-card-back {
  backface-visibility: hidden;
}
}
