/* ============================================
   Power Blendz — Custom Styles
   ============================================ */

/* Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
}

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

.shape-circle-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(61, 97, 41, 0.06) 0%, transparent 70%);
    top: -100px;
    right: -100px;
}

.shape-circle-2 {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(61, 97, 41, 0.08) 0%, transparent 70%);
    bottom: 10%;
    left: 5%;
}

.shape-rect-1 {
    width: 120px;
    height: 120px;
    background: rgba(61, 97, 41, 0.04);
    border-radius: 24px;
    top: 30%;
    left: 3%;
    transform: rotate(15deg);
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(61, 97, 41, 0.05);
    top: 60%;
    right: 8%;
    transform: rotate(-20deg);
}

.shape-dots {
    width: 100px;
    height: 100px;
    background-image: radial-gradient(circle, rgba(61, 97, 41, 0.1) 1.5px, transparent 1.5px);
    background-size: 12px 12px;
    top: 15%;
    right: 15%;
    border-radius: 50%;
}

/* ============================================
   Floating Cards Animation
   ============================================ */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

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

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

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

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

/* ============================================
   Scroll Reveal (progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Default visible state (no JS) */
.scroll-reveal {
    opacity: 1;
    transform: none;
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
    background: rgba(253, 252, 248, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(61, 97, 41, 0.08);
}

#navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-link {
    display: block;
    transition: color 0.2s ease;
}

.mobile-link:hover {
    color: #527f37;
}

/* ============================================
   Button Focus States
   ============================================ */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid #74a056;
    outline-offset: 2px;
}

/* ============================================
   Selection Color
   ============================================ */
::selection {
    background: #c5dbb5;
    color: #111a0c;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 767px) {
    .floating-card {
        display: none;
    }
    
    .floating-card.card-3 {
        display: none !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .floating-card.card-3 {
        display: flex !important;
    }
}

/* ============================================
   Subtle Patterns
   ============================================ */
section::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%233d6129' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

#products::before {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%233d6129' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.03;
}
