/* ===== CUSTOM STYLES FOR PARADISE NUTRITION ===== */

/* Base reset and typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
}

/* ===== GEOMETRIC DECORATIVE ELEMENTS ===== */

/* Large accent shapes */
.geo-shape-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.geo-shape-square {
    position: absolute;
    pointer-events: none;
}

.geo-shape-triangle {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* ===== SECTION SEPARATORS ===== */

.wave-separator {
    position: relative;
    height: 80px;
    overflow: hidden;
}

.wave-separator svg {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 80px;
}

/* ===== NAVBAR ===== */

.navbar-scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #0d9488;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 60%;
}

/* ===== BUTTONS ===== */

.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(13, 148, 136, 0.35);
}

/* ===== CARDS ===== */

.service-card {
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(13, 148, 136, 0.15);
}

.product-card {
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

/* ===== GEOMETRIC PATTERNS ===== */

.dots-pattern {
    background-image: radial-gradient(circle, #0d9488 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.05;
}

.stripes-pattern {
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 15px,
        rgba(13, 148, 136, 0.03) 15px,
        rgba(13, 148, 136, 0.03) 30px
    );
}

/* ===== SCROLL REVEAL ===== */

.reveal-up,
.reveal-left,
.reveal-right,
.reveal-scale {
    /* Default: visible (progressive enhancement) */
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    
    .reveal-up.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-left {
        opacity: 0;
        transform: translateX(-40px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    
    .reveal-left.revealed {
        opacity: 1;
        transform: translateX(0);
    }
    
    .reveal-right {
        opacity: 0;
        transform: translateX(40px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    
    .reveal-right.revealed {
        opacity: 1;
        transform: translateX(0);
    }
    
    .reveal-scale {
        opacity: 0;
        transform: scale(0.9);
        transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    }
    
    .reveal-scale.revealed {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== FLOATING ANIMATION ===== */

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

/* ===== CUSTOM SCROLLBAR ===== */

::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #0d9488;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0f766e;
}

/* ===== MOBILE MENU ===== */

.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* ===== IMAGE HOVER ZOOM ===== */

.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.img-zoom:hover img {
    transform: scale(1.05);
}

/* ===== TEXT GRADIENT ===== */

.text-gradient {
    background: linear-gradient(135deg, #0d9488 0%, #2dd4bf 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== POLYGON DECORATIONS ===== */

.polygon-decoration {
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

/* ===== RIPPLE EFFECT ===== */

.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.ripple:active::after {
    width: 200px;
    height: 200px;
}

/* ===== ACCESSIBILITY ===== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== RESPONSIVE FINE-TUNING ===== */

@media (max-width: 640px) {
    .font-display {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }
}

@media (min-width: 1024px) {
    .lg\:hover\:bg-teal-50:hover {
        background-color: #f0fdfa;
    }
}
