* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* AKIKAWA FARM inspired color palette */
    --primary-green: #2D4A22;
    --secondary-green: #4A7C59;
    --accent-green: #7FB069;
    --light-green: #A7C957;
    --sage-green: #B8C5A6;
    --cream: #F4F3F0;
    --off-white: #FEFEFE;
    --white: #FFFFFF;
    --dark-text: #2C3E21;
    --light-text: #6B7C5A;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background: var(--sage-green); /* 主要底色改為淺綠色 */
    overflow-x: hidden;
    padding-top: 80px;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../Img/Index/5_0_s.jpg') center/cover no-repeat;
    background-size: 110% auto; /* 放大圖片 */
    background-position: left center; /* 靠左對齊，右邊自然裁切 */
    overflow: hidden;
    margin-top: -80px;
    padding-top: 80px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 74, 34, 0.3); /* 使用深綠色覆蓋層 */
    z-index: 1;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 2rem;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.8s forwards;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--accent-green), var(--light-green));
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(127, 176, 105, 0.3);
    opacity: 0;
    animation: fadeInUp 1s ease 1.1s forwards;
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(127, 176, 105, 0.4);
    background: linear-gradient(135deg, var(--light-green), var(--accent-green));
}

/* About Section */
.about-section {
    padding: 120px 0;
    background: var(--off-white); /* 白色區塊 */
    position: relative;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--sage-green) 0%, var(--off-white) 50%, var(--cream) 100%);
    opacity: 0.7;
    z-index: 0;
}

.about-section .container {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    color: var(--secondary-green);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-description {
    font-size: 1.1rem;
    color: var(--light-text);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* About Section */
.about-content {
    /* display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 4rem; */
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    place-items: center;
    color: var(--light-text);
}

.about-text .highlight {
    color: var(--secondary-green);
    font-weight: 600;
}

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    transition: var(--transition);
}

.about-image:hover img {
    transform: scale(1.05);
}

/* Services Section */
.services-section {
    padding: 120px 0;
    background: var(--cream); /* 奶油色背景 */
    position: relative;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--cream) 0%, var(--sage-green) 100%);
    opacity: 0.8;
    z-index: 0;
}

.services-section .container {
    position: relative;
    z-index: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.service-card {
    background: var(--off-white);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(45, 74, 34, 0.1);
    border: 1px solid rgba(167, 201, 87, 0.2);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: var(--transition);
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(45, 74, 34, 0.15);
    background: var(--white);
}

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

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.service-description {
    color: var(--light-text);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.service-link {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    padding: 0.8rem 2rem;
    border: 2px solid var(--primary-green);
    border-radius: 50px;
    display: inline-block;
    transition: var(--transition);
}

.service-link:hover {
    background: var(--primary-green);
    color: var(--white);
    transform: scale(1.05);
}

/* Stats Section */
.stats-section {
    padding: 100px 0;
    background: var(--accent-green); /* 中綠色背景 */
    position: relative;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--light-green) 100%);
    z-index: 0;
}

.stats-section .container {
    position: relative;
    z-index: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--off-white);
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--off-white);
    opacity: 0.9;
}

/* Gallery Section - AKIKAWA FARM Style */
.gallery-section {
    /* padding: 120px 0; */
    background: var(--primary-green);
    overflow: hidden;
    position: relative;
}

.gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    z-index: 0;
}

.gallery-section .container {
    position: relative;
    z-index: 1;
    padding: 0 2rem;
}

.gallery-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem; /* 圖片間隙 */
    margin-bottom: 2rem;
    align-items: center;
}

.gallery-row.reverse {
    direction: rtl;
}

.gallery-row.reverse .gallery-item {
    direction: ltr;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    /* border-radius: 0;  */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    background: var(--white);
}

.gallery-item:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    border-radius: 0; /* 確保圖片也沒有圓角 */
}

/* .gallery-item:hover img {
    transform: scale(1.05);
} */

/* Gallery Layout for better spacing */
.gallery-section {
    display: flex;
    flex-direction: column;
    gap: 2rem; /* 行與行之間的間隙 */
    /* padding: 120px 2rem; */
}

/* Individual rows with better spacing */
.gallery-section > .gallery-item:nth-child(1),
.gallery-section > .gallery-item:nth-child(2) {
    margin-bottom: 2rem;
}

.gallery-section > .gallery-text-section {
    margin: 3rem 0;
}

.gallery-section > .gallery-item:nth-child(n+4):nth-child(-n+6) {
    margin-bottom: 2rem;
}

/* Responsive Design for Gallery */
@media (max-width: 1200px) {
    .gallery-section {
        gap: 1.5rem;
        padding: 100px 1.5rem;
    }
    
    .gallery-item.large {
        grid-column: span 1;
        height: 300px;
    }
    
    .gallery-item.medium {
        height: 280px;
    }
    
    .gallery-item.small {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .gallery-section {
        gap: 1rem;
        padding: 80px 1rem;
    }
    
    .gallery-item.large,
    .gallery-item.medium,
    .gallery-item.small {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .gallery-section {
        gap: 0.8rem;
        padding: 60px 0.5rem;
    }
    
    .gallery-item.large,
    .gallery-item.medium,
    .gallery-item.small {
        height: 180px;
    }
}

/* Gallery Text Section */
.gallery-text-section {
    margin: 80px 0;
    text-align: center;
    position: relative;
}

.gallery-text-section::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-green), var(--light-green));
    /* border-radius: 2px; */
}

.gallery-text-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.gallery-text-content .section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 600;
    color: var(--off-white); /* 深綠背景上使用白色文字 */
    margin-bottom: 2rem;
    position: relative;
}

.gallery-text-content .text-block {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--off-white); /* 白色文字 */
    text-align: left;
}

.gallery-text-content .text-block p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.gallery-text-content .text-block strong {
    color: var(--accent-green); /* 亮綠色強調 */
    font-weight: 600;
}

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

/* .fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
} */

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        height: 80vh;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    .about-section,
    .services-section {
        padding: 5rem 0;
    }
    
    .gallery-section {
        padding: 80px 0;
    }
    
    .gallery-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .gallery-item.large,
    .gallery-item.medium,
    .gallery-item.small {
        grid-column: span 1;
        height: 250px;
    }
    
    .gallery-text-section {
        margin: 60px 0;
    }
    
    .gallery-text-content .section-title {
        font-size: 2.2rem;
    }
    
    .gallery-text-content .text-block {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item.large,
    .gallery-item.medium,
    .gallery-item.small {
        height: 200px;
    }
    
    .gallery-text-content {
        padding: 0 1rem;
    }
    
    .gallery-text-content .section-title {
        font-size: 1.8rem;
    }
}

/* Local Farmers Section */
.local-farmers-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--off-white) 0%, var(--cream) 100%);
    position: relative;
}

.local-farmers-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23A7C957' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    pointer-events: none;
}

.farmer-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

.farmer-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(45, 74, 34, 0.15);
    transition: var(--transition);
}

.farmer-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(45, 74, 34, 0.2);
}

.farmer-link {
    display: block;
    position: relative;
    text-decoration: none;
}

.farmer-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: var(--transition);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 74, 34, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.farmer-link:hover .image-overlay {
    opacity: 1;
}

.farmer-link:hover img {
    transform: scale(1.05);
}

.view-more {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
    padding: 1rem 2rem;
    border-radius: 50px;
    border: 2px solid var(--white);
    transition: var(--transition);
}

.farmer-link:hover .view-more {
    background: var(--white);
    color: var(--primary-green);
    transform: scale(1.05);
}

.farmer-content {
    padding: 2rem 0;
}

.farmer-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 1.5rem;
    position: relative;
}

.farmer-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-green);
    border-radius: 2px;
}

.farmer-description {
    margin-bottom: 2rem;
}

.farmer-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-text);
    margin-bottom: 1.5rem;
}

.farmer-description p:last-child {
    margin-bottom: 0;
    font-weight: 500;
    color: var(--secondary-green);
}

.farmer-features {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.feature-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--white);
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    border: 1px solid var(--sage-green);
    color: var(--secondary-green);
    font-weight: 500;
    transition: var(--transition);
}

.feature-tag:hover {
    background: var(--accent-green);
    color: var(--white);
    border-color: var(--accent-green);
    transform: translateY(-2px);
}

.feature-tag i {
    font-size: 1rem;
}

.farmer-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--primary-green);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.farmer-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: var(--transition);
}

.farmer-cta:hover::before {
    left: 100%;
}

.farmer-cta:hover {
    background: var(--secondary-green);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(45, 74, 34, 0.3);
}

.farmer-cta i {
    transition: var(--transition);
}

.farmer-cta:hover i {
    transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .farmer-showcase {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .farmer-image {
        order: -1;
    }
    
    .farmer-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .farmer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .local-farmers-section {
        padding: 60px 0;
    }
    
    .farmer-showcase {
        gap: 2rem;
    }
    
    .farmer-image img {
        height: 300px;
    }
    
    .farmer-title {
        font-size: 1.8rem;
    }
    
    .farmer-description p {
        font-size: 1rem;
    }
    
    .farmer-features {
        justify-content: center;
    }
    
    .feature-tag {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    .farmer-cta {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
        display: flex;
        justify-content: center;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .farmer-content {
        padding: 1rem 0;
        text-align: center;
    }
    
    .farmer-features {
        flex-direction: column;
        align-items: center;
    }
    
    .feature-tag {
        width: fit-content;
    }
}

/* Animation for the farmer section */
.farmer-showcase.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.farmer-showcase.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Additional hover effects */
.farmer-content {
    position: relative;
}

.farmer-content::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 40px;
    height: 40px;
    background: var(--accent-green);
    border-radius: 50%;
    opacity: 0.1;
    transition: var(--transition);
}

.farmer-showcase:hover .farmer-content::before {
    transform: scale(1.5);
    opacity: 0.05;
}


.gallery-section .fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.gallery-section .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}