/* ============================================
   Top Of The Mountain Grocery — 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 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #0f172a;
    color: #f8fafc;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f172a;
}
::-webkit-scrollbar-thumb {
    background: #14b8a6;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2dd4bf;
}

/* Selection */
::selection {
    background: rgba(20, 184, 166, 0.3);
    color: #f0fdfa;
}

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

.shape-circle-1 {
    top: 15%;
    right: 8%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.shape-circle-2 {
    bottom: 20%;
    left: 5%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

.shape-square-1 {
    top: 40%;
    left: 3%;
    width: 80px;
    height: 80px;
    border: 2px solid rgba(20, 184, 166, 0.1);
    transform: rotate(45deg);
    animation: float 6s ease-in-out infinite;
}

.shape-triangle-1 {
    bottom: 30%;
    right: 5%;
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(20, 184, 166, 0.05);
    animation: float 7s ease-in-out infinite reverse;
}

.shape-dots {
    top: 60%;
    right: 15%;
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(20, 184, 166, 0.15) 1px, transparent 1px);
    background-size: 16px 16px;
    opacity: 0.6;
}

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

@keyframes float-delay {
    0%, 100% { transform: translateY(0px) rotate(45deg); }
    50% { transform: translateY(-15px) rotate(48deg); }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-up-delay {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-up-delay-2 {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delay {
    animation: float-delay 7s ease-in-out infinite;
}

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

.animate-fade-in-up {
    animation: fade-in-up 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.animate-fade-in-up-delay {
    animation: fade-in-up-delay 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.animate-fade-in-up-delay-2 {
    animation: fade-in-up-delay-2 0.8s ease-out 0.6s forwards;
    opacity: 0;
}

/* Scroll Reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ============================================
   Navbar
   ============================================ */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05), 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Mobile Menu */
.menu-line {
    transition: all 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 5px;
}

.mobile-link {
    transition: color 0.3s ease, transform 0.3s ease;
}

.mobile-link:hover {
    transform: translateX(4px);
}

/* ============================================
   Product Cards
   ============================================ */
.product-card {
    transition: transform 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease;
}

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

/* ============================================
   Buttons
   ============================================ */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover::before {
    opacity: 1;
}

/* ============================================
   Form Inputs
   ============================================ */
input:focus, textarea:focus {
    outline: none;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .shape-circle-1 {
        width: 150px;
        height: 150px;
    }
    .shape-circle-2 {
        width: 100px;
        height: 100px;
    }
    .shape-square-1 {
        width: 50px;
        height: 50px;
    }
    .shape-triangle-1 {
        border-left: 25px solid transparent;
        border-right: 25px solid transparent;
        border-bottom: 45px solid rgba(20, 184, 166, 0.05);
    }
}

@media (max-width: 640px) {
    h1 {
        font-size: 2.75rem !important;
    }
}
