/* EdaPave Landing Page MVP - Custom Styles */

/* ====================================
   CSS Variables & Base Styles
   ==================================== */
:root {
    --font-body:
        "Space Grotesk", "Inter", system-ui, -apple-system, "Segoe UI",
        sans-serif;
    --font-display:
        "Clash Display", "Space Grotesk", "Inter", system-ui, -apple-system,
        "Segoe UI", sans-serif;
}

body {
    font-family: var(--font-body);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    letter-spacing: -0.01em;
}

/* ====================================
   Float Animations
   ==================================== */
@keyframes float {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes float-delayed {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-30px);
    }
}

@keyframes float-slow {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 8s ease-in-out infinite;
}

.animate-float-slow {
    animation: float-slow 10s ease-in-out infinite;
}

/* ====================================
   Smooth Scrolling
   ==================================== */
html {
    scroll-behavior: smooth;
}

/* ====================================
   Chat Animation
   ==================================== */
@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-message {
    animation: slideInFromBottom 0.6s ease-out forwards;
    opacity: 0;
}

/* ====================================
   Sun Animations
   ==================================== */
.sun {
    position: absolute;
    top: 8%;
    right: 12%;
    width: 100px;
    height: 100px;
    background: radial-gradient(
        circle,
        #ffd700 0%,
        #ffa500 70%,
        rgba(255, 165, 0, 0) 100%
    );
    border-radius: 50%;
    z-index: 1;
    animation:
        sunPulse 4s ease-in-out infinite,
        sunRise 2s ease-out;
}

.sun-rays {
    position: absolute;
    top: 8%;
    right: 12%;
    width: 100px;
    height: 100px;
    z-index: 0;
    animation: rotate 20s linear infinite;
}

.sun-rays::before,
.sun-rays::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    transform: translate(-50%, -50%);
    background:
        linear-gradient(
            0deg,
            transparent 45%,
            rgba(255, 215, 0, 0.3) 48%,
            rgba(255, 215, 0, 0.3) 52%,
            transparent 55%
        ),
        linear-gradient(
            45deg,
            transparent 45%,
            rgba(255, 215, 0, 0.3) 48%,
            rgba(255, 215, 0, 0.3) 52%,
            transparent 55%
        ),
        linear-gradient(
            90deg,
            transparent 45%,
            rgba(255, 215, 0, 0.3) 48%,
            rgba(255, 215, 0, 0.3) 52%,
            transparent 55%
        ),
        linear-gradient(
            135deg,
            transparent 45%,
            rgba(255, 215, 0, 0.3) 48%,
            rgba(255, 215, 0, 0.3) 52%,
            transparent 55%
        );
}

@keyframes sunPulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.95;
    }
}

@keyframes sunRise {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ====================================
   Cloud Base Styles
   ==================================== */
.cloud {
    position: absolute;
    z-index: 2;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1));
}

.cloud::before,
.cloud::after {
    content: "";
    position: absolute;
    background: white;
    border-radius: 50%;
}

/* ====================================
   Individual Cloud Styles
   ==================================== */

/* Cloud 1 - Large fluffy cloud */
.cloud-1 {
    top: 15%;
    left: 10%;
    width: 120px;
    height: 40px;
    background: white;
    border-radius: 50px;
    animation: cloudDrift1 25s linear infinite;
}

.cloud-1::before {
    width: 50px;
    height: 50px;
    top: -25px;
    left: 10px;
}

.cloud-1::after {
    width: 60px;
    height: 40px;
    top: -15px;
    right: 15px;
}

/* Cloud 2 - Medium cloud */
.cloud-2 {
    top: 25%;
    right: 20%;
    width: 90px;
    height: 30px;
    background: white;
    border-radius: 40px;
    animation: cloudDrift2 30s linear infinite;
}

.cloud-2::before {
    width: 40px;
    height: 40px;
    top: -18px;
    left: 15px;
}

.cloud-2::after {
    width: 35px;
    height: 30px;
    top: -12px;
    right: 10px;
}

/* Cloud 3 - Small cloud */
.cloud-3 {
    top: 35%;
    left: 25%;
    width: 70px;
    height: 25px;
    background: white;
    border-radius: 30px;
    animation: cloudDrift3 20s linear infinite;
}

.cloud-3::before {
    width: 30px;
    height: 30px;
    top: -15px;
    left: 10px;
}

.cloud-3::after {
    width: 28px;
    height: 25px;
    top: -10px;
    right: 12px;
}

/* Cloud 4 - Larger cloud */
.cloud-4 {
    top: 12%;
    left: 45%;
    width: 100px;
    height: 35px;
    background: white;
    border-radius: 45px;
    animation: cloudDrift4 28s linear infinite;
}

.cloud-4::before {
    width: 45px;
    height: 45px;
    top: -20px;
    left: 12px;
}

.cloud-4::after {
    width: 50px;
    height: 35px;
    top: -15px;
    right: 10px;
}

/* Cloud 5 - Small drifting cloud */
.cloud-5 {
    top: 28%;
    right: 8%;
    width: 80px;
    height: 28px;
    background: white;
    border-radius: 35px;
    animation: cloudDrift5 22s linear infinite;
}

.cloud-5::before {
    width: 35px;
    height: 35px;
    top: -16px;
    left: 12px;
}

.cloud-5::after {
    width: 30px;
    height: 28px;
    top: -12px;
    right: 15px;
}

/* ====================================
   Cloud Drift Animations
   ==================================== */
@keyframes cloudDrift1 {
    0% {
        transform: translateX(0) translateY(0);
        opacity: 0.8;
    }
    50% {
        transform: translateX(30px) translateY(-10px);
        opacity: 1;
    }
    100% {
        transform: translateX(0) translateY(0);
        opacity: 0.8;
    }
}

@keyframes cloudDrift2 {
    0% {
        transform: translateX(0) translateY(0);
        opacity: 0.9;
    }
    50% {
        transform: translateX(-40px) translateY(15px);
        opacity: 0.7;
    }
    100% {
        transform: translateX(0) translateY(0);
        opacity: 0.9;
    }
}

@keyframes cloudDrift3 {
    0% {
        transform: translateX(0) translateY(0);
        opacity: 0.85;
    }
    50% {
        transform: translateX(25px) translateY(12px);
        opacity: 0.95;
    }
    100% {
        transform: translateX(0) translateY(0);
        opacity: 0.85;
    }
}

@keyframes cloudDrift4 {
    0% {
        transform: translateX(0) translateY(0);
        opacity: 0.75;
    }
    50% {
        transform: translateX(-30px) translateY(-8px);
        opacity: 0.9;
    }
    100% {
        transform: translateX(0) translateY(0);
        opacity: 0.75;
    }
}

@keyframes cloudDrift5 {
    0% {
        transform: translateX(0) translateY(0);
        opacity: 0.8;
    }
    50% {
        transform: translateX(35px) translateY(10px);
        opacity: 1;
    }
    100% {
        transform: translateX(0) translateY(0);
        opacity: 0.8;
    }
}

/* ====================================
   Responsive Media Queries
   ==================================== */
/* ====================================
   Wavy Dot Loading Animation
   ==================================== */
@keyframes wave {
    0%,
    60%,
    100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-8px);
    }
}

.animate-wave {
    animation: wave 1.4s ease-in-out infinite;
}

/* ====================================
   Responsive Media Queries
   ==================================== */
@media (max-width: 768px) {
    .sun {
        width: 70px;
        height: 70px;
        top: 5%;
        right: 8%;
    }

    .sun-rays {
        width: 70px;
        height: 70px;
        top: 5%;
        right: 8%;
    }

    .sun-rays::before,
    .sun-rays::after {
        width: 90px;
        height: 90px;
    }

    .cloud {
        transform: scale(0.7);
    }
}
