/* ============================================
   OASIS FRUITS — Custom Styles
   ============================================ */

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

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

body {
    margin: 0;
    overflow-x: hidden;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #e05921;
    transition: width 0.3s ease;
}

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

.nav-text {
    transition: color 0.3s ease;
}

/* ============================================
   GEOMETRIC SHAPES — Hero Decorations
   ============================================ */
.geometric-shape {
    position: absolute;
    opacity: 0.15;
    animation: float 8s ease-in-out infinite;
}

.circle-1 {
    width: 300px;
    height: 300px;
    background: #f4e0b0;
    border-radius: 50%;
    top: 10%;
    right: -50px;
    animation-delay: 0s;
}

.circle-2 {
    width: 150px;
    height: 150px;
    background: #fce8de;
    border-radius: 50%;
    bottom: 20%;
    left: 5%;
    animation-delay: 2s;
}

.circle-3 {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    top: 40%;
    left: 15%;
    animation-delay: 4s;
}

.triangle-1 {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid #f8d0b8;
    top: 60%;
    right: 10%;
    animation-delay: 1s;
    transform: rotate(15deg);
}

.square-1 {
    width: 100px;
    height: 100px;
    background: #f2aa82;
    top: 25%;
    left: 8%;
    animation-delay: 3s;
    transform: rotate(45deg);
    border-radius: 8px;
}

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

/* ============================================
   HERO ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.animate-slide-up {
    animation: slideUp 0.8s ease forwards;
    opacity: 1;
}

.animate-slide-up-delay {
    animation: slideUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.animate-slide-up-delay-2 {
    animation: slideUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

/* ============================================
   SCROLL REVEAL — Progressive Enhancement
   Only activates when JS is available and
   user prefers motion
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
}

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

/* When JS adds the hidden state, content stays visible by default */
.js-enabled .scroll-reveal {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .js-enabled .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .js-enabled .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   FEATURE ITEMS
   ============================================ */
.feature-item {
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-4px);
}

/* ============================================
   PRODUCT CARDS
   ============================================ */
.scroll-reveal {
    opacity: 1;
}

/* ============================================
   MOBILE MENU
   ============================================ */
.mobile-link {
    transition: color 0.2s ease;
}

.mobile-link:hover {
    color: #e05921;
}

#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   BUTTON HOVER EFFECTS
   ============================================ */
button, a {
    transition: all 0.3s ease;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
    .geometric-shape {
        opacity: 0.1;
    }
    
    .circle-1 {
        width: 200px;
        height: 200px;
    }
    
    .circle-2 {
        width: 100px;
        height: 100px;
    }
    
    .triangle-1 {
        border-left-width: 50px;
        border-right-width: 50px;
        border-bottom-width: 90px;
    }
    
    .square-1 {
        width: 60px;
        height: 60px;
    }
}

/* ============================================
   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,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #e05921;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .geometric-shape,
    .animate-bounce {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
