/* Garden Tales - Soft Pastel Styles */

/* CSS Variables */
:root {
    --primary-color: #b4c5b4;
    --secondary-color: #b5d8eb;
    --accent-color: #f5d5e0;
    --accent2: #c9e4de;
    --dark-color: #4a4a4a;
    --light-bg: #fdf6f8;
    --card-bg: #ffffff;
}

/* Base */
body {
    overflow-x: hidden;
    width: 100%;
}

/* Navbar */
.navbar {
    background: var(--primary-color);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-color) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: url('bg.png') center 10% / cover no-repeat;
    background-attachment: scroll;
    display: flex;
    align-items: center;
    padding-top: 60px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.15);
    z-index: 1;
}


.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    color: #4a4a4a;
    text-shadow: none;
    animation: fadeInUp 1s ease;
}

.hero-section .lead {
    color: #666;
    font-size: 1.25rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-section .btn {
    animation: fadeInUp 1s ease 0.4s both;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #9ab09a;
    border-color: #9ab09a;
}

.btn-outline-light {
    border-color: #333;
    color: #333;
    background-color: rgba(255,255,255,0.8);
}

.btn-outline-light:hover {
    background-color: #333;
    color: white;
    border-color: #333;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 2;
}

.scroll-indicator a {
    color: #4a4a4a;
    font-size: 2rem;
    text-decoration: none;
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

/* Theme Cards */
.theme-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.theme-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.theme-image {
    height: 500px;
    background-color: var(--secondary-color);
    flex-shrink: 0;
    cursor: pointer;
    overflow: hidden;
}

.theme-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.scroll-card:hover .theme-image img {
    transform: scale(1.1);
}

.theme-content {
    display: none;
}

.flower-details {
    padding: 12px 16px;
    background: #fafaf9;
    text-align: center;
}

.flower-details h5 {
    margin-bottom: 6px;
    font-size: 1rem;
    text-align: center;
}

.flower-details .badge {
    font-size: 0.7rem;
    padding: 4px 8px;
}

.placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.placeholder-img i {
    font-size: 3rem;
    color: white;
}

/* Flower Cards */
.flower-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flower-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Inventory Grid */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
    box-sizing: border-box;
}

.inventory-item {
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
}

.inventory-carousel-wrapper {
    position: relative;
    width: 100%;
    padding: 0 50px;
    box-sizing: border-box;
}

.inventory-carousel-wrapper .carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 50%;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    color: var(--primary-color);
}

.inventory-carousel-wrapper .carousel-arrow.prev { left: 0; }
.inventory-carousel-wrapper .carousel-arrow.next { right: 0; }

.inner-scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    gap: 20px;
}

.inner-scroll-container::-webkit-scrollbar {
    display: none;
}

.inner-scroll-card {
    flex: 0 0 300px;
    aspect-ratio: 1/1;
    scroll-snap-align: start;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.inner-scroll-card:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.inner-scroll-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.inner-scroll-card:hover img {
    transform: scale(1.15);
}

.inner-scroll-card:hover img {
    transform: scale(1.1);
}

.inventory-item .flower-details {
    padding: 15px;
    text-align: center;
}

.inventory-item .flower-details h5 {
    margin-bottom: 5px;
    font-weight: bold;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Responsive */
@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--primary-color);
        padding: 1rem;
        border-radius: 10px;
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    .inventory-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .inventory-carousel-wrapper {
        padding: 0 15px; /* Reduce padding for mobile */
    }

    .inner-scroll-card {
        flex: 0 0 100%; /* Make card take full width */
        aspect-ratio: 1/1;
        scroll-snap-align: start;
        border-radius: 12px;
        overflow: hidden;
    }

    /* Themes carousel on mobile */
    #themes .container {
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    #themes .carousel-wrapper {
        max-width: 100% !important;
        padding: 0 !important;
        position: relative !important;
    }

    #themes .scroll-container {
        max-width: 100% !important;
        margin: 0 !important;
        gap: 0 !important;
    }

    #themes .text-center {
        padding-left: 15px;
        padding-right: 15px;
    }

    #themes .scroll-card {
        flex: 0 0 100% !important;
        width: 100% !important;
        height: 75vh !important;
    }

    #themes .theme-image {
        height: 75vh !important;
    }

    #themes .theme-card {
        height: 75vh !important;
    }

    #themes .carousel-arrow {
        position: absolute !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 44px !important;
        height: 44px !important;
        background: rgba(255, 255, 255, 0.9) !important;
        z-index: 20 !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.3) !important;
    }

    #themes .carousel-arrow.prev { left: 8px !important; }
    #themes .carousel-arrow.next { right: 8px !important; }

    .carousel-wrapper .carousel-arrow.prev { left: 5px; }
    .carousel-wrapper .carousel-arrow.next { right: 5px; }

    .hero-section {
        background-image: url('bgmWeb.png') !important;
        min-height: 30vh; /* Shortened further for mobile */
    }

    .hero-section h1 { font-size: 2rem; }
    
    .feature-card h4 { text-align: center; }

    #features {
        display: none; /* Hide the features section on mobile */
    }
}

/* Global Arrow Styles */
.carousel-arrow {
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-arrow:hover {
    background: var(--primary-color);
    color: white;
}

/* Themes Carousel */
.carousel-wrapper {
    position: relative;
    padding: 0 50px;
}

.carousel-wrapper .carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: var(--primary-color);
}

.carousel-wrapper .carousel-arrow.prev { left: 0; }
.carousel-wrapper .carousel-arrow.next { right: 0; }

.scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    gap: 20px;
    padding: 20px 0;
}

.scroll-container::-webkit-scrollbar { display: none; }

.scroll-card {
    flex: 0 0 450px;
    transition: transform 0.3s ease;
}

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

/* About Section Formatting */
#about {
    padding-top: 3rem; /* Reduced padding to move content up */
}

#about p {
    margin-bottom: 1rem; /* Ensure consistent spacing between all paragraphs */
}

#about .lead {
    margin-bottom: 1.5rem; /* Slightly more space for the lead paragraph */
}

#about h2 {
    margin-bottom: 1.5rem; /* Larger margin for main heading */
}

#about h4 {
    margin-bottom: 1rem; /* Consistent spacing for sub-heading */
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 85%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    cursor: default;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 10001;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.lightbox-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

@media (max-width: 768px) {
    .lightbox-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox img {
        max-width: 95%;
    }
}

/* Force full width themes on mobile */
@media (max-width: 768px) {
    #themes .carousel-wrapper {
        padding: 0 !important;
    }
    #themes .scroll-card {
        flex: 0 0 100% !important;
        width: 100% !important;
    }
    #themes .scroll-container {
        gap: 0 !important;
    }
}

/* Force mobile styles */
@media (max-width: 768px) {
    #themes .carousel-wrapper {
        padding: 0 !important;
    }
    #themes .scroll-card {
        flex: 0 0 100% !important;
        width: 100% !important;
    }
}

/* Farm Gallery Section */
#farm-gallery {
    max-width: 100%;
    margin: 0 auto;
}

/* Farm Gallery Grid */
.farm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 10px 0;
}

.farm-grid-card {
    aspect-ratio: 1/1;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.farm-grid-card:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.farm-grid-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.farm-grid-card:hover img {
    transform: scale(1.1);
}

/* Mobile: 2 columns, 2 rows visible */
@media (max-width: 768px) {
    .farm-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* Edible Flowers Grid */
.edible-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 10px 0;
}

.edible-grid-card {
    aspect-ratio: 1/1;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.edible-grid-card:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.edible-grid-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.edible-grid-card:hover img {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .edible-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* Farm Gallery Section */
#from-our-farm {
    background: var(--light-bg);
}

.farm-gallery-wrapper {
    position: relative;
    padding: 0 50px;
}

.farm-gallery-wrapper .carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 50%;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.farm-gallery-wrapper .carousel-arrow:hover {
    background: var(--primary-color);
    color: white;
}

.farm-gallery-wrapper .carousel-arrow.prev { left: 0; }
.farm-gallery-wrapper .carousel-arrow.next { right: 0; }

.farm-scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 10px 0;
}

.farm-scroll-container::-webkit-scrollbar {
    display: none;
}

.farm-gallery-card {
    flex: 0 0 280px;
    aspect-ratio: 3/4;
    scroll-snap-align: start;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.farm-gallery-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.farm-gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.farm-gallery-card:hover img {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .farm-gallery-wrapper {
        padding: 0 15px;
    }

    .farm-gallery-card {
        flex: 0 0 200px;
        aspect-ratio: 3/4;
    }

    .farm-gallery-wrapper .carousel-arrow {
        width: 44px;
        height: 44px;
    }

    .farm-gallery-wrapper .carousel-arrow.prev { left: 5px; }
    .farm-gallery-wrapper .carousel-arrow.next { right: 5px; }
}

/* Story Section Styling */
.story-content {
    line-height: 1.6;
}

.story-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border-left: 5px solid var(--primary-color);
    margin-bottom: 1.5rem;
}

.story-item:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    background: var(--light-bg);
}

.story-icon {
    font-size: 2rem;
    min-width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fdf6f8;
    border-radius: 12px;
}

.story-text strong {
    color: var(--dark-color);
    display: block;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.story-text {
    color: #666;
    font-size: 0.95rem;
}

/* Service Cards (What We Do) */
.service-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    text-align: center;
    transition: all 0.3s ease;
    border-bottom: 4px solid var(--accent-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
    border-bottom-color: var(--primary-color);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.service-card h5 {
    font-weight: bold;
    margin-bottom: 12px;
    color: var(--dark-color);
}

/* Instagram Card */
#instagram-embed {
    min-height: 490px;
}

@media (max-width: 991px) {
    #instagram-embed {
        min-height: auto;
    }
}

/* Custom Consultation Form */
.custom-input {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    background: var(--light-bg);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.custom-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(245, 213, 224, 0.4);
    background: #fff;
}

#consultation-form .btn-primary {
    background: var(--primary-color);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: background 0.3s ease, transform 0.15s ease;
}

#consultation-form .btn-primary:hover {
    background: var(--accent2);
    transform: translateY(-1px);
}

#consultation-form .form-label {
    font-weight: 500;
    color: var(--dark-color);
}

#form-success {
    animation: fadeInUp 0.5s ease;
}

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