/* Basic Styles & Typography */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #111;
    color: #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    position: relative; /* For positioning the background animation */
}

/* ... (rest of your CSS) ... */

/* Background Animation */
.bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Place it behind other content */
    overflow: hidden;
}

.bg-animation-element {
    position: absolute;
    opacity: 0.6; /* Adjust transparency */
    animation: moveShape 15s linear infinite;
    width: 80px; /* Set a uniform width for all SVGs */
    height: auto; /* Maintain aspect ratio */
    transition: transform 0.2s ease-out; /* Add a transition for a smoother effect */
}

/* Parallax effect on hover */
.bg-animation-element:hover {
    opacity: 0.8;
    cursor: pointer;
    transform: scale(1.1);
}

/* Individual image positions using a grid-like layout */
.bg-animation-element:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-name: moveShape1;
}

.bg-animation-element:nth-child(2) {
    top: 10%;
    left: 35%;
    animation-duration: 20s;
    animation-name: moveShape2;
}

.bg-animation-element:nth-child(3) {
    top: 10%;
    left: 60%;
    animation-duration: 12s;
    animation-name: moveShape3;
}

.bg-animation-element:nth-child(4) {
    top: 10%;
    left: 85%;
    animation-duration: 10s;
    animation-name: moveShape4;
}

.bg-animation-element:nth-child(5) {
    top: 35%;
    left: 10%;
    animation-duration: 14s;
    animation-name: moveShape5;
}

.bg-animation-element:nth-child(6) {
    top: 35%;
    left: 35%;
    animation-duration: 8s;
    animation-name: moveShape6;
}

.bg-animation-element:nth-child(7) {
    top: 35%;
    left: 60%;
    animation-duration: 18s;
    animation-name: moveShape7;
}

.bg-animation-element:nth-child(8) {
    top: 35%;
    left: 85%;
    animation-duration: 20s;
    animation-name: moveShape8;
}

.bg-animation-element:nth-child(9) {
    top: 60%;
    left: 10%;
    animation-duration: 12s;
    animation-name: moveShape9;
}

.bg-animation-element:nth-child(10) {
    top: 60%;
    left: 35%;
    animation-duration: 8s;
    animation-name: moveShape10;
}

.bg-animation-element:nth-child(11) {
    top: 60%;
    left: 60%;
    animation-duration: 14s;
    animation-name: moveShape11;
}

.bg-animation-element:nth-child(12) {
    top: 60%;
    left: 85%;
    animation-duration: 10s;
    animation-name: moveShape12;
}



/* Animation for the shapes */
@keyframes moveShape1 {
    0% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-50px) translateX(30px);
    }
    50% {
        transform: translateY(-100px) translateX(-20px);
    }
    75% {
        transform: translateY(-50px) translateX(-50px);
    }
    100% {
        transform: translateY(0) translateX(0);
    }
}

@keyframes moveShape2 {
    0% {
        transform: translateY(0) translateX(0) rotate(0);
    }
    25% {
        transform: translateY(-40px) translateX(50px) rotate(45deg);
    }
    50% {
        transform: translateY(-80px) translateX(-30px) rotate(-45deg);
    }
    75% {
        transform: translateY(-40px) translateX(-60px) rotate(45deg);
    }
    100% {
        transform: translateY(0) translateX(0) rotate(0);
    }
}

@keyframes moveShape3 {
    0% {
        transform: translateY(0) translateX(0);
    }
    33% {
        transform: translateY(-30px) translateX(-40px);
    }
    66% {
        transform: translateY(-70px) translateX(30px);
    }
    100% {
        transform: translateY(0) translateX(0);
    }
}
@keyframes moveShape4 {
    0% {
        transform: translateY(0) translateX(0) rotate(0);
    }
    25% {
        transform: translateY(-60px) translateX(-20px) rotate(-45deg);
    }
    50% {
        transform: translateY(-30px) translateX(40px) rotate(45deg);
    }
    75% {
        transform: translateY(-70px) translateX(20px) rotate(-45deg);
    }
    100% {
        transform: translateY(0) translateX(0) rotate(0);
    }
}

@keyframes moveShape5 {
    0% {
        transform: translateY(0) translateX(0);
    }
    20% {
        transform: translateY(-20px) translateX(30px);
    }
    40% {
        transform: translateY(-50px) translateX(-20px);
    }
    60% {
        transform: translateY(-70px) translateX(30px);
    }
    80% {
        transform: translateY(-40px) translateX(-20px);
    }
    100% {
        transform: translateY(0) translateX(0);
    }
}

@keyframes moveShape6 {
    0% {
        transform: translateY(0) translateX(0) rotate(0);
    }
    30% {
        transform: translateY(-40px) translateX(-30px) rotate(45deg);
    }
    60% {
        transform: translateY(-80px) translateX(20px) rotate(-45deg);
    }
    90% {
        transform: translateY(-50px) translateX(-30px) rotate(45deg);
    }
    100% {
        transform: translateY(0) translateX(0) rotate(0);
    }
}

@keyframes moveShape7 {
    0% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-50px) translateX(-40px);
    }
    50% {
        transform: translateY(-90px) translateX(30px);
    }
    75% {
        transform: translateY(-40px) translateX(50px);
    }
    100% {
        transform: translateY(0) translateX(0);
    }
}

@keyframes moveShape8 {
    0% {
        transform: translateY(0) translateX(0) rotate(0);
    }
    20% {
        transform: translateY(-30px) translateX(40px) rotate(-45deg);
    }
    40% {
        transform: translateY(-60px) translateX(-30px) rotate(45deg);
    }
    60% {
        transform: translateY(-90px) translateX(20px) rotate(-45deg);
    }
    80% {
        transform: translateY(-40px) translateX(-20px) rotate(45deg);
    }
    100% {
        transform: translateY(0) translateX(0) rotate(0);
    }
}

@keyframes moveShape9 {
    0% {
        transform: translateY(0) translateX(0);
    }
    33% {
        transform: translateY(-40px) translateX(20px);
    }
    66% {
        transform: translateY(-80px) translateX(-30px);
    }
    100% {
        transform: translateY(0) translateX(0);
    }
}

@keyframes moveShape10 {
    0% {
        transform: translateY(0) translateX(0) rotate(0);
    }
    25% {
        transform: translateY(-50px) translateX(-40px) rotate(45deg);
    }
    50% {
        transform: translateY(-70px) translateX(30px) rotate(-45deg);
    }
    75% {
        transform: translateY(-40px) translateX(50px) rotate(45deg);
    }
    100% {
        transform: translateY(0) translateX(0) rotate(0);
    }
}

@keyframes moveShape11 {
    0% {
        transform: translateY(0) translateX(0);
    }
    20% {
        transform: translateY(-30px) translateX(-20px);
    }
    40% {
        transform: translateY(-60px) translateX(30px);
    }
    60% {
        transform: translateY(-80px) translateX(-20px);
    }
    80% {
        transform: translateY(-50px) translateX(30px);
    }
    100% {
        transform: translateY(0) translateX(0);
    }
}

@keyframes moveShape12 {
    0% {
        transform: translateY(0) translateX(0) rotate(0);
    }
    30% {
        transform: translateY(-40px) translateX(30px) rotate(-45deg);
    }
    60% {
        transform: translateY(-70px) translateX(-20px) rotate(45deg);
    }
    90% {
        transform: translateY(-50px) translateX(30px) rotate(-45deg);
    }
    100% {
        transform: translateY(0) translateX(0) rotate(0);
    }
}

.container {
    text-align: center;
    width: 90%;
    max-width: 900px;
    perspective: 1000px;
}

h1, h2 {
    font-weight: 200;
}

h1.logo {
    font-size: 6em; /* Increased logo size */
    font-weight: 800; /* Made logo bolder */
    color: #ff6b6b;
    margin-bottom: 50px;
    opacity: 0;
    animation: fadeIn 1.5s ease forwards, spin 2s ease-in-out forwards;
    cursor: pointer;
    transition: transform 0.3s ease;
    text-shadow: 0 0 20px rgba(255, 107, 107, 0.8);
}
/* Microinteraction: Adding a glow on hover */
h1.logo:hover {
    transform: scale(1.1) rotate(-5deg);
    text-shadow: 0 0 30px rgba(255, 107, 107, 1);
}

h2.headline {
    font-size: 2.5em;
    margin-bottom: 15px;
    transform-origin: bottom;
    opacity: 0;
    animation: fadeIn 1.5s ease 0.5s forwards, scaleUp 1s ease 0.5s forwards;
    font-weight: 200; /* Removed bold from headline */
}

.subheadline {
    font-size: 1.1em;
    margin-bottom: 40px;
    color: #ddd;
    opacity: 0;
    animation: fadeIn 1.5s ease 1s forwards;
}

.products {
    display: block;
    font-size: 0.9em;
    color: #ff6b6b;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: colorShift 3s infinite alternate;
}

.countdown {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.countdown > div {
    margin: 10px 20px;
    opacity: 0;
    animation: flipIn 1s ease forwards, pulse 1.5s infinite alternate;
}

.countdown > div:nth-child(1) { animation-delay: 1.5s; }
.countdown > div:nth-child(2) { animation-delay: 1.7s; }
.countdown > div:nth-child(3) { animation-delay: 1.9s; }
.countdown > div:nth-child(4) { animation-delay: 2.1s; }

.countdown span {
    display: block;
    font-size: 0.8em;
    color: #ff6b6b;
    margin-top: 5px;
}

.social-links {
    margin-top: 60px;
    opacity: 0;
    animation: fadeIn 1s ease 2.5s forwards;
}

/* Microinteraction: Adding a bounce effect on hover */
.social-link {
    display: inline-block;
    margin: 0 15px;
    color: #999;
    font-size: 1.5em;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.2);
    color: #ff6b6b;
}

footer {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    opacity: 0;
    animation: fadeIn 1s ease 3s forwards;
}

footer p {
    font-size: 0.8em;
    color: #666;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes spin {
  0% {
    transform: rotateY(0);
  }
  100% {
    transform: rotateY(360deg);
  }
}

@keyframes scaleUp {
    from { transform: scale(0.8); }
    to { transform: scale(1); }
}

@keyframes flipIn {
    from { transform: rotateX(-90deg); opacity: 0; }
    to { transform: rotateX(0deg); opacity: 1; }
}

@keyframes pulse {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

@keyframes colorShift {
    from { color: #ff6b6b; }
    to { color: #ff9e9e; }
}

/* Responsive Design */
@media (max-width: 768px) {
    h1.logo {
        font-size: 4em; /* Adjust logo size for smaller screens */
        margin-bottom: 30px;
    }

    h2.headline {
        font-size: 1.8em;
    }

    .subheadline {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .products {
        font-size: 0.8em;
    }

    .countdown > div {
        margin: 5px 10px;
        font-size: 0.9em;
    }

    .social-links {
        margin-top: 40px;
    }

    .social-link {
        font-size: 1.3em;
    }

    .bg-animation-element {
        width: 60px; /* Smaller width on smaller screens */
    }

    /* Adjust layout for smaller screens */
    .bg-animation-element:nth-child(1) {
        top: 5%;
    }

    .bg-animation-element:nth-child(2) {
        top: 5%;
        left: 45%;
    }

    .bg-animation-element:nth-child(3) {
        top: 5%;
        left: 80%;
    }

    .bg-animation-element:nth-child(4) {
        top: 25%;
        left: 5%;
    }

    .bg-animation-element:nth-child(5) {
        top: 25%;
        left: 45%;
    }

    .bg-animation-element:nth-child(6) {
        top: 25%;
        left: 80%;
    }

    .bg-animation-element:nth-child(7) {
        top: 45%;
        left: 5%;
    }

    .bg-animation-element:nth-child(8) {
        top: 45%;
        left: 45%;
    }

    .bg-animation-element:nth-child(9) {
        top: 45%;
        left: 80%;
    }

    .bg-animation-element:nth-child(10) {
        top: 65%;
        left: 5%;
    }

    .bg-animation-element:nth-child(11) {
        top: 65%;
        left: 45%;
    }

    .bg-animation-element:nth-child(12) {
        top: 65%;
        left: 80%;
    }
}