/* Custom styles and animations */

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

/* Hero shape animations */
.hero-shape {
    position: absolute;
    opacity: 0.15;
    animation: float 6s ease-in-out infinite;
}

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

.shape-circle-2 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, #FF6B6B 0%, transparent 70%);
    bottom: 15%;
    left: -3%;
    border-radius: 50%;
    animation-delay: 2s;
}

.shape-square-1 {
    width: 120px;
    height: 120px;
    background: #FF6B6B;
    top: 25%;
    left: 10%;
    border-radius: 24px;
    transform: rotate(45deg);
    animation-delay: 1s;
}

.shape-square-2 {
    width: 80px;
    height: 80px;
    background: #FFA8A8;
    bottom: 30%;
    right: 15%;
    border-radius: 16px;
    transform: rotate(20deg);
    animation-delay: 3s;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid #FF8787;
    top: 60%;
    right: 25%;
    animation-delay: 4s;
}

.shape-dots {
    top: 40%;
    left: 5%;
    width: 200px;
    height: 200px;
    background-image: radial-gradient(circle, #FF6B6B 2px, transparent 2px);
    background-size: 20px 20px;
    opacity: 0.3;
    animation-delay: 2.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(var(--rotate, 0deg));
    }
    50% {
        transform: translateY(-20px) rotate(var(--rotate, 0deg));
    }
}

.shape-square-1 {
    --rotate: 45deg;
}

.shape-square-2 {
    --rotate: 20deg;
}

.shape-triangle-1 {
    --rotate: 0deg;
}

/* Scroll indicator */
.scroll-indicator {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}

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

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu.open {
    max-height: 400px;
}

/* Button hover effects */
a:hover {
    transition: all 0.2s ease;
}

/* Custom selection color */
::selection {
    background: #FF6B6B;
    color: white;
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #FF6B6B;
    outline-offset: 2px;
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent layout shift */
img {
    object-fit: cover;
}
