* {
  margin: 0;
  padding: 0;
  box-sizing: border-box; }

body {
  font-family: 'Arial', sans-serif;
  background: linear-gradient(135deg, #f8f9fa, #e0e7ff);
  min-height: 100vh;
  color: #333; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem; }

header {
  text-align: center;
  margin-bottom: 3rem; }
  header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #667eea, #f093fb);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: all 0.5s ease 0.3s ease-in-out; }
    header h1:hover {
      letter-spacing: 2px; }
  header p {
    font-size: 1.2rem;
    opacity: 0.8; }

.transition-section {
  margin-bottom: 4rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); }
  .transition-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #667eea;
    font-size: 2rem; }

.button-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap; }
  .button-container .magic-button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.3s ease-in-out; }
    .button-container .magic-button::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
      transition: left 0.5s 0.3s ease-in-out; }
    .button-container .magic-button:hover {
      transform: scale(1.1) rotate(2deg);
      box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4); }
      .button-container .magic-button:hover::before {
        left: 100%; }
    .button-container .magic-button:active {
      transform: scale(0.95); }
  .button-container .pulse-button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    background: #f093fb;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease 0.3s ease-in-out; }
    .button-container .pulse-button:hover {
      background: #f7c4fd;
      transform: scale(1.05);
      box-shadow: 0 0 0 10px rgba(240, 147, 251, 0.3);
      animation: pulse 2s infinite; }
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(240, 147, 251, 0.7); }
  70% {
    box-shadow: 0 0 0 15px rgba(240, 147, 251, 0); }
  100% {
    box-shadow: 0 0 0 0 rgba(240, 147, 251, 0); } }
.card-container {
  display: flex;
  justify-content: center;
  perspective: 1000px; }

.flip-card {
  width: 300px;
  height: 200px;
  perspective: 1000px; }
  .flip-card .flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d; }
  .flip-card:hover .flip-card-inner {
    transform: rotateY(180deg); }
  .flip-card .flip-card-front, .flip-card .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); }
  .flip-card .flip-card-front {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #ffffff; }
    .flip-card .flip-card-front img {
      width: 100%;
      height: 120px;
      object-fit: cover;
      border-radius: 10px;
      margin-bottom: 1rem; }
  .flip-card .flip-card-back {
    background: linear-gradient(135deg, #f093fb, #ff6b6b);
    color: #ffffff;
    transform: rotateY(180deg); }
    .flip-card .flip-card-back h3 {
      margin-bottom: 1rem; }
    .flip-card .flip-card-back p {
      font-size: 0.9rem;
      line-height: 1.4; }

.floating-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem 0; }

.floating-element {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.4s ease 0.3s ease-in-out; }
  .floating-element span {
    text-align: center;
    transition: all 0.3s ease 0.3s ease-in-out; }
  .floating-element:hover {
    transform: scale(1.2) rotate(10deg); }
    .floating-element:hover span {
      transform: scale(1.1); }

.element-1 {
  background: linear-gradient(45deg, #ff6b6b, #ee5a24);
  animation: float 3s ease-in-out infinite; }
@keyframes float {
  0%, 100% {
    transform: translateY(0px); }
  50% {
    transform: translateY(-15px); } }
.element-2 {
  background: linear-gradient(45deg, #05c46b, #0be881);
  animation: float 4s ease-in-out infinite;
  animation-delay: 0.5s; }
@keyframes float {
  0%, 100% {
    transform: translateY(0px); }
  50% {
    transform: translateY(-20px); } }
.element-3 {
  background: linear-gradient(45deg, #3c40c6, #575fcf);
  animation: float 2.5s ease-in-out infinite;
  animation-delay: 1s; }
@keyframes float {
  0%, 100% {
    transform: translateY(0px); }
  50% {
    transform: translateY(-10px); } }
.element-4 {
  background: linear-gradient(45deg, #ffa801, #ffd32a);
  animation: float 3.5s ease-in-out infinite;
  animation-delay: 1.5s; }
@keyframes float {
  0%, 100% {
    transform: translateY(0px); }
  50% {
    transform: translateY(-25px); } }
.gallery-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap; }

.gallery-item {
  position: relative;
  width: 200px;
  height: 150px;
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease box-shadow 0.3s ease ease-in-out; }
  .gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15); }
  .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease 0.3s ease-in-out; }
  .gallery-item .gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #ffffff;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease 0.3s ease-in-out; }
    .gallery-item .gallery-overlay h4 {
      margin-bottom: 0.5rem; }
    .gallery-item .gallery-overlay p {
      font-size: 0.8rem;
      opacity: 0.8; }
  .gallery-item:hover img {
    transform: scale(1.1); }
  .gallery-item:hover .gallery-overlay {
    transform: translateY(0); }

@media (max-width: 768px) {
  .container {
    padding: 1rem; }

  header h1 {
    font-size: 2rem; }

  .button-container {
    flex-direction: column;
    align-items: center;
    gap: 1rem; }

  .floating-container {
    flex-direction: column;
    align-items: center; }

  .gallery-container {
    flex-direction: column;
    align-items: center; } }
