/* ===== Custom Styles for Sky Nutrition ===== */

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

body {
    overflow-x: hidden;
}

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

.shape-circle-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: #e06544;
    top: 15%;
    right: -100px;
    animation: float-slow 20s ease-in-out infinite;
}

.shape-circle-2 {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: #facc15;
    bottom: 20%;
    left: -60px;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.shape-circle-3 {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #c94d2e;
    top: 60%;
    right: 15%;
    animation: float-slow 12s ease-in-out infinite;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid #e06544;
    top: 40%;
    left: 5%;
    opacity: 0.04;
    animation: spin-slow 30s linear infinite;
}

.shape-rect {
    width: 120px;
    height: 120px;
    background: #facc15;
    bottom: 10%;
    right: 8%;
    transform: rotate(45deg);
    opacity: 0.05;
    animation: float-slow 18s ease-in-out infinite;
}

/* Hero geometric elements */
.hero-geo {
    position: absolute;
    pointer-events: none;
}

.geo-1 {
    width: 300px;
    height: 300px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    top: 10%;
    left: -5%;
    animation: float-slow 16s ease-in-out infinite;
}

.geo-2 {
    width: 150px;
    height: 150px;
    background: rgba(250, 204, 21, 0.15);
    border-radius: 50%;
    top: 20%;
    right: 5%;
    animation: float-slow 12s ease-in-out infinite reverse;
}

.geo-3 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(255, 255, 255, 0.08);
    bottom: 25%;
    left: 10%;
    transform: rotate(-15deg);
    animation: spin-slow 25s linear infinite;
}

.geo-4 {
    width: 80px;
    height: 80px;
    border: 2px solid rgba(255, 255, 255, 0.12);
    bottom: 30%;
    right: 12%;
    transform: rotate(45deg);
    animation: float-slow 14s ease-in-out infinite;
}

/* ===== Animations ===== */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-30px); }
}

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

/* ===== Scroll Reveal Animations ===== */
/* Default state: visible (progressive enhancement) */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* When JS adds the hidden class, elements animate in */
.reveal-up.is-hidden,
.reveal-left.is-hidden,
.reveal-right.is-hidden {
    opacity: 0;
}

.reveal-up.is-hidden {
    transform: translateY(40px);
}

.reveal-left.is-hidden {
    transform: translateX(-40px);
}

.reveal-right.is-hidden {
    transform: translateX(40px);
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    
    .geo-shape,
    .hero-geo {
        animation: none !important;
    }
}

/* ===== Navbar transition ===== */
#navbar.scrolled {
    background: rgba(61, 19, 12, 0.95);
    backdrop-blur-xl;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

#navbar.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

/* ===== Mobile menu ===== */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* ===== Button hover effects ===== */
a:hover {
    transition: all 0.3s ease;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #c94d2e;
}

/* ===== Selection color ===== */
::selection {
    background: #e06544;
    color: #fff;
}

/* ===== Focus styles ===== */
*:focus-visible {
    outline: 2px solid #e06544;
    outline-offset: 2px;
}

/* ===== Responsive adjustments ===== */
@media (max-width: 768px) {
    .shape-circle-1 {
        width: 200px;
        height: 200px;
    }
    
    .shape-circle-2 {
        width: 120px;
        height: 120px;
    }
    
    .shape-circle-3 {
        display: none;
    }
    
    .shape-triangle {
        display: none;
    }
    
    .shape-rect {
        display: none;
    }
}

@media (max-width: 640px) {
    .geo-1,
    .geo-2,
    .geo-3,
    .geo-4 {
        display: none;
    }
}
