/* Custom styles for Milky Cereal Bar */

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

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Geometric Shapes */
.geo-shape {
    position: absolute;
    opacity: 0.08;
    pointer-events: none;
}

.circle-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: linear-gradient(135deg, #34d399, #10b981);
    top: 10%;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.circle-2 {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, #86efac, #4ade80);
    bottom: 20%;
    left: 5%;
    animation: float 6s ease-in-out infinite reverse;
}

.circle-3 {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid #34d399;
    background: transparent;
    top: 30%;
    left: 15%;
    animation: spin 20s linear infinite;
}

.square-1 {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #34d399, #10b981);
    top: 60%;
    right: 10%;
    border-radius: 20px;
    animation: rotate 15s linear infinite;
}

.square-2 {
    width: 60px;
    height: 60px;
    border: 3px solid #86efac;
    background: transparent;
    bottom: 30%;
    right: 25%;
    border-radius: 12px;
    animation: rotate 10s linear infinite reverse;
}

.triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid #34d399;
    top: 15%;
    left: 8%;
    animation: float 7s ease-in-out infinite;
    opacity: 0.06;
}

.ring-1 {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid #86efac;
    background: transparent;
    bottom: 15%;
    left: 20%;
    animation: spin 25s linear infinite;
}

.dot-grid {
    width: 100px;
    height: 100px;
    background-image: radial-gradient(circle, #34d399 2px, transparent 2px);
    background-size: 15px 15px;
    top: 45%;
    right: 5%;
    opacity: 0.15;
}

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

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

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

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Mobile Menu */
.mobile-link {
    transition: all 0.3s ease;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(6, 14, 26, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(52, 211, 153, 0.1);
}

/* Form focus styles */
input:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.1);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .geo-shape,
    .geo-shape.circle-1,
    .geo-shape.circle-2,
    .geo-shape.circle-3,
    .geo-shape.square-1,
    .geo-shape.square-2,
    .geo-shape.triangle-1,
    .geo-shape.ring-1 {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}

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

::-webkit-scrollbar-track {
    background: #0a1628;
}

::-webkit-scrollbar-thumb {
    background: #343f63;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #34d399;
}
