/* ========================================
   Goula Nutrition at Total — Custom Styles
   ======================================== */

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

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

body {
    min-height: 100vh;
}

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

.circle-1 {
    width: 480px;
    height: 480px;
    border-radius: 50%;
    border: 3px solid #fbbf24;
    top: -120px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.circle-2 {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    bottom: 15%;
    left: 5%;
    animation: float 6s ease-in-out infinite reverse;
}

.triangle-1 {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid #fbbf24;
    top: 30%;
    left: 8%;
    opacity: 0.08;
    animation: spin 20s linear infinite;
}

.square-1 {
    width: 100px;
    height: 100px;
    border: 3px solid #f9a8d4;
    top: 20%;
    right: 15%;
    transform: rotate(45deg);
    animation: float 7s ease-in-out infinite;
}

.ring-1 {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 2px solid #f472b6;
    bottom: 20%;
    right: 10%;
    opacity: 0.1;
    animation: float 9s ease-in-out infinite reverse;
}

.dot-grid {
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, #fbbf24 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    top: 60%;
    left: 15%;
    opacity: 0.3;
}

/* ========================================
   Animations
   ======================================== */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

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

/* ========================================
   Scroll Reveal (progressive enhancement)
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
}

/* Always visible for reduced motion or no-JS */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ========================================
   Card Hover
   ======================================== */
.card-hover {
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* ========================================
   Navbar Scroll State
   ======================================== */
.navbar-scrolled {
    box-shadow: 0 4px 20px rgba(80, 7, 36, 0.3);
}

/* ========================================
   Mobile Menu Transition
   ======================================== */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

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

/* ========================================
   Focus Styles
   ======================================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

/* ========================================
   Selection
   ======================================== */
::selection {
    background: #fbbf24;
    color: #500724;
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 640px) {
    .circle-1 {
        width: 240px;
        height: 240px;
    }
    
    .circle-2 {
        width: 140px;
        height: 140px;
    }
    
    .square-1 {
        width: 50px;
        height: 50px;
    }
    
    .triangle-1 {
        border-left-width: 40px;
        border-right-width: 40px;
        border-bottom-width: 70px;
    }
}
