/* CSS is how you can add style to your website, such as colors, fonts, and positioning of your
   HTML content. To learn how to do something, just try searching Google for questions like
   "how to change link color." */

body {
  background-color: white;
  color: black;
  font-family: Verdana;<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>Surreal Art Gallery</title>

  <style>
    @import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@700&display=swap');

    body {
      margin: 0;
      padding: 0;
      height: 100vh;
      overflow-x: hidden;
      background: radial-gradient(circle at 20% 30%, #291a36, #0a0015 70%);
      color: white;
      font-family: 'Cinzel Decorative', cursive;
    }

    header {
      text-align: center;
      padding: 2rem;
      font-size: 2rem;
      letter-spacing: 4px;
      text-shadow: 0 0 10px rgba(255,255,255,0.4);
    }

    .gallery {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 2rem;
      padding: 2rem;
    }

    .art-piece {
      position: relative;
      width: 280px;
      height: 380px;
      overflow: hidden;
      border-radius: 15px;
      box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
      transform: rotate(calc(var(--r, 0deg)));
      transition: transform 0.8s ease;
      cursor: pointer;
    }

    .art-piece img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      filter: contrast(1.1) saturate(1.3);
      transition: all 1s ease;
    }

    .art-piece:hover img {
      filter: blur(2px) brightness(1.2);
      transform: scale(1.1);
    }

    .art-piece::after {
      content: attr(data-title);
      position: absolute;
      bottom: 0;
      width: 100%;
      text-align: center;
      background: rgba(0,0,0,0.4);
      backdrop-filter: blur(5px);
      padding: 0.5rem;
      font-size: 1.1rem;
      opacity: 0;
      transform: translateY(100%);
      transition: all 0.6s ease;
    }

    .art-piece:hover::after {
      opacity: 1;
      transform: translateY(0);
    }

    .floating {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      overflow: hidden;
      z-index: -1;
    }

    .orb {
      position: absolute;
      width: 250px;
      height: 250px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(255,255,255,0.15), transparent 70%);
      animation: float 20s infinite ease-in-out;
    }

    @keyframes float {
      0%, 100% { transform: translateY(0) scale(1); }
      50% { transform: translateY(-40px) scale(1.1); }
    }
  </style>
</head>

<body>
  <header>✨ Surreal Realities ✨</header>

  <div class="floating">
    <div class="orb" style="top:10%; left:15%; animation-delay:0s;"></div>
    <div class="orb" style="top:60%; left:70%; animation-delay:5s;"></div>
    <div class="orb" style="top:30%; left:80%; animation-delay:10s;"></div>
  </div>

  <section class="gallery">
    <div class="art-piece" data-title="Dreamscapes I" style="--r: 2deg;">
      <img src="https://images.unsplash.com/photo-1508766917616-d22f3f1eea14?auto=format&fit=crop&w=900&q=80" alt="Surreal art 1">
    </div>

    <div class="art-piece" data-title="Lucid Fields" style="--r: -3deg;">
      <img src="https://images.unsplash.com/photo-1534790566855-4cb788d389ec?auto=format&fit=crop&w=900&q=80" alt="Surreal art 2">
    </div>

    <div class="art-piece" data-title="Metaphysical Bloom" style="--r: 4deg;">
      <img src="https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=900&q=80" alt="Surreal art 3">
    </div>

    <div class="art-piece" data-title="The Infinite Mind" style="--r: -2deg;">
      <img src="https://images.unsplash.com/photo-1517694712202-14dd9538aa97?auto=format&fit=crop&w=900&q=80" alt="Surreal art 4">
    </div>
  </section>

  <script>
    // Gentle parallax movement
    document.addEventListener('mousemove', e => {
      const orbs = document.querySelectorAll('.orb');
      orbs.forEach((orb, i) => {
        const speed = (i + 1) * 0.02;
        orb.style.transform = `translate(${e.clientX * speed}px, ${e.clientY * speed}px)`;
      });
    });
  </script>
</body>
</html>

}