/* Custom styles for Clips216 */

/* Geometric shape animations */
.geo-shape {
    position: absolute;
    opacity: 0.15;
    animation: float 8s ease-in-out infinite;
}

.geo-circle-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #fbbf24, transparent);
    border-radius: 50%;
    top: 10%;
    right: -5%;
    animation-delay: 0s;
}

.geo-circle-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #f9a8d4, transparent);
    border-radius: 50%;
    bottom: 20%;
    left: 5%;
    animation-delay: -2s;
}

.geo-circle-3 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, #fde68a, transparent);
    border-radius: 50%;
    top: 50%;
    right: 20%;
    animation-delay: -4s;
}

.geo-square-1 {
    width: 100px;
    height: 100px;
    background: #fbbf24;
    top: 30%;
    left: 15%;
    transform: rotate(45deg);
    animation-delay: -1s;
}

.geo-square-2 {
    width: 60px;
    height: 60px;
    background: #fbcfe8;
    bottom: 30%;
    right: 10%;
    transform: rotate(20deg);
    animation-delay: -3s;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86px solid #fbbf24;
    top: 60%;
    left: 25%;
    animation-delay: -5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(5deg);
    }
    66% {
        transform: translateY(10px) rotate(-3deg);
    }
}

/* Floating cards */
.floating-card {
    animation: floatCard 4s ease-in-out infinite;
}

.card-1 {
    animation-delay: 0s;
}

.card-2 {
    animation-delay: -1.3s;
}

.card-3 {
    animation-delay: -2.6s;
}

@keyframes floatCard {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px);
    }
}

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar scroll effect */
nav.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

nav.scrolled .font-display {
    color: #500724 !important;
}

nav.scrolled a:not(.bg-amber-400) {
    color: #374151 !important;
}

nav.scrolled a:not(.bg-amber-400):hover {
    color: #9d174d !important;
}

/* Mobile menu button animation */
.menu-line {
    transition: all 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #fdf4f8;
}

::-webkit-scrollbar-thumb {
    background: #be185d;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9d174d;
}

/* Selection color */
::selection {
    background: #fbcfe8;
    color: #500724;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .geo-shape,
    .floating-card {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}
