/* ============================================
   Bucket & the Bean — Custom Styles
   ============================================ */

/* Base Reset & Typography */
*, *::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;
}

/* ============================================
   Hero Section
   ============================================ */
.hero-gradient {
    background: linear-gradient(135deg, #1B4332 0%, #2d6a4f 30%, #40916c 55%, #52b788 75%, #74c69d 100%);
}

/* Geometric Shapes */
.geo-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
}

.geo-circle-1 {
    width: 400px;
    height: 400px;
    background: #FEFAE0;
    top: -100px;
    right: -80px;
    animation: float-slow 20s ease-in-out infinite;
}

.geo-circle-2 {
    width: 250px;
    height: 250px;
    background: #F5CC10;
    bottom: 15%;
    left: -60px;
    animation: float-medium 15s ease-in-out infinite reverse;
}

.geo-circle-3 {
    width: 120px;
    height: 120px;
    background: #FEFAE0;
    top: 40%;
    right: 10%;
    animation: float-fast 10s ease-in-out infinite;
}

.geo-square {
    position: absolute;
    opacity: 0.08;
    background: #FEFAE0;
    border-radius: 20px;
    transform: rotate(45deg);
}

.geo-square-1 {
    width: 150px;
    height: 150px;
    top: 20%;
    left: 8%;
    animation: rotate-slow 25s linear infinite;
}

.geo-triangle {
    position: absolute;
    opacity: 0.1;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid #FEFAE0;
    top: 60%;
    right: 5%;
    animation: float-medium 18s ease-in-out infinite;
    transform: rotate(20deg);
}

.geo-dots {
    position: absolute;
    top: 15%;
    left: 5%;
    opacity: 0.15;
}

.geo-dots::before {
    content: '•••••\n•••••\n•••••\n•••••\n•••••';
    font-size: 20px;
    line-height: 1.5;
    color: #FEFAE0;
    white-space: pre;
    letter-spacing: 12px;
}

/* Floating Animation */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

@keyframes float-medium {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes float-fast {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-15px) scale(1.05); }
}

@keyframes rotate-slow {
    from { transform: rotate(45deg); }
    to { transform: rotate(405deg); }
}

/* Scroll Indicator */
.scroll-indicator {
    animation: bounce-down 2s ease-in-out infinite;
}

@keyframes bounce-down {
    0%, 100% { transform: translateY(0); opacity: 0.7; }
    50% { transform: translateY(8px); opacity: 1; }
}

/* ============================================
   Buttons
   ============================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1B4332;
    color: #FEFAE0;
    padding: 14px 32px;
    border-radius: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #1B4332;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary:hover {
    background: #2d6a4f;
    border-color: #2d6a4f;
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(27, 67, 50, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-size: 1rem;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

/* ============================================
   Section Labels
   ============================================ */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #1B4332;
}

.section-label::before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 2px;
    background: #1B4332;
    border-radius: 2px;
}

/* ============================================
   About Section
   ============================================ */
.about-images {
    position: relative;
}

.about-float-card {
    animation: float-medium 6s ease-in-out infinite;
}

.stat-item {
    text-align: left;
}

/* ============================================
   Product Cards
   ============================================ */
.product-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 8px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-8px);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
}

.product-img {
    position: relative;
    overflow: hidden;
}

.product-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(27, 67, 50, 0.3) 0%, transparent 40%);
    pointer-events: none;
}

.product-tag {
    margin: 0 8px;
}

/* Product Pattern Background */
.product-pattern {
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(254, 250, 224, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(254, 250, 224, 0.2) 0%, transparent 50%);
}

/* ============================================
   Community Section
   ============================================ */
.community-grid {
    display: grid;
    gap: 16px;
}

.community-img-1 {
    height: 320px;
    grid-row: span 2;
}

.community-img-2,
.community-img-3 {
    height: 152px;
}

.community-img {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.community-img:hover {
    transform: scale(1.02);
}

.community-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.community-img:hover img {
    transform: scale(1.08);
}

.feature-row {
    transition: transform 0.3s ease;
}

.feature-row:hover {
    transform: translateX(8px);
}

.feature-icon {
    transition: transform 0.3s ease;
}

.feature-row:hover .feature-icon {
    transform: rotate(-5deg) scale(1.1);
}

/* ============================================
   Info Cards (Visit Section)
   ============================================ */
.info-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

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

#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(254, 250, 224, 0.95);
    backdrop-blur-lg;
    box-shadow: 0 4px 32px rgba(27, 67, 50, 0.08);
}

#navbar.scrolled .nav-link {
    color: #1B4332;
}

#navbar.scrolled .btn-primary {
    background: #1B4332;
    border-color: #1B4332;
}

/* Mobile Menu */
#mobile-menu {
    transition: opacity 0.4s ease, pointer-events 0.4s ease;
}

#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    transition: all 0.3s ease;
}

.menu-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

/* ============================================
   Scroll Animations
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ============================================
   Form Styles
   ============================================ */
#contact-form input,
#contact-form select,
#contact-form textarea {
    font-family: 'Inter', system-ui, sans-serif;
}

#contact-form input:focus,
#contact-form select:focus,
#contact-form textarea:focus {
    box-shadow: 0 0 0 3px rgba(27, 67, 50, 0.15);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .hero-gradient {
        background: linear-gradient(160deg, #1B4332 0%, #2d6a4f 40%, #40916c 70%, #52b788 100%);
    }
    
    .geo-circle-1 {
        width: 200px;
        height: 200px;
        right: -40px;
    }
    
    .geo-circle-2 {
        width: 120px;
        height: 120px;
    }
    
    .geo-square-1 {
        width: 80px;
        height: 80px;
    }
    
    .geo-triangle-1 {
        border-left: 50px solid transparent;
        border-right: 50px solid transparent;
        border-bottom: 87px solid #FEFAE0;
    }
    
    .font-serif.text-5xl {
        font-size: 2.5rem;
    }
    
    .font-serif.text-4xl {
        font-size: 2rem;
    }
    
    .about-float-card {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 16px;
        display: inline-block;
    }
    
    .community-img-1 {
        height: 240px;
        grid-row: span 1;
    }
    
    .community-img-2,
    .community-img-3 {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .hero-gradient {
        background: linear-gradient(180deg, #1B4332 0%, #2d6a4f 50%, #40916c 100%);
    }
    
    .geo-circle-1,
    .geo-circle-2,
    .geo-circle-3,
    .geo-square-1,
    .geo-triangle-1 {
        display: none;
    }
    
    .font-serif.text-5xl {
        font-size: 2rem;
    }
}
