/* Homepage Enhancement Styles */

/* Enhanced Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/hero/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

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

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

.hero-text {
    flex: 1;
    text-align: left;
    max-width: 600px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.animated-heading {
    font-size: 3.8rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    line-height: 1.2;
}

.animated-heading .highlight {
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
}

.animated-heading .highlight:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 5px;
    background-color: var(--secondary-color);
    bottom: 5px;
    left: 0;
    transform: scaleX(0);
    transform-origin: left;
    animation: underline 1.5s ease-out forwards 0.5s;
}

@keyframes underline {
    to {
        transform: scaleX(1);
    }
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: white;
    padding: 15px 30px;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(200, 162, 122, 0.4);
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #677142;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(200, 162, 122, 0.5);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    padding: 14px 28px;
    font-size: 1.1rem;
    box-shadow: none;
    border: 2px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: rgba(200, 162, 122, 0.2);
    transform: translateY(-3px);
}

.coffee-cup {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: float 6s ease-in-out infinite;
}

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

.rotating-beans {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: rotate 30s linear infinite;
}

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

.coffee-steam {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    display: flex;
    justify-content: space-between;
}

.coffee-steam span {
    width: 8px;
    height: 60px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    filter: blur(5px);
}

.coffee-steam span:nth-child(1) {
    animation: steam 3s linear infinite 0.5s;
}

.coffee-steam span:nth-child(2) {
    animation: steam 3s linear infinite 1s;
    height: 80px;
}

.coffee-steam span:nth-child(3) {
    animation: steam 3s linear infinite 1.5s;
}

@keyframes steam {
    0% {
        transform: translateY(0) scaleX(1);
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    50% {
        transform: translateY(-50px) scaleX(3);
    }
    95% {
        opacity: 0;
    }
    100% {
        transform: translateY(-80px) scaleX(4);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    margin-top: 8px;
    font-size: 1.2rem;
}

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

/* Why Choose Us Section */
.why-choose-us {
    padding: 100px 0;
    background-color: var(--light-color);
}

.why-choose-us-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.why-choose-us-image {
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.why-choose-us-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.why-choose-us-content h2 {
    margin-bottom: 30px;
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 15px;
}

.why-choose-us-content h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

.why-choose-us-content p {
    margin-bottom: 25px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 30px;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
}

.feature-icon {
    margin-right: 15px;
    width: 50px;
    height: 50px;
    background-color: rgba(200, 162, 122, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.feature-text h4 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.feature-text p {
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.6;
}

/* Featured Products Section Enhancement */
.featured-products {
    padding: 100px 0;
    text-align: center;
    background-color: white;
}

.featured-products h2 {
    margin-bottom: 20px;
    font-size: 2.2rem;
}

.featured-products .section-subtitle {
    max-width: 700px;
    margin: 0 auto 50px;
    color: #666;
}

.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-image {
    height: 250px;
    overflow: hidden;
}

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

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

.product-info {
    padding: 25px 20px;
}

.product-info h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.product-info p {
    margin-bottom: 20px;
    color: #666;
}

/* What We Do Section */
.what-we-do {
    padding: 70px 0;
    background-color: #f9f9f9;
    position: relative;
}

.what-we-do::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/hero/coffee-beans-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    z-index: 0;
}

.what-we-do .container {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
}

.what-we-do h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #5a3921;
    font-size: 2.2rem;
}

.what-we-do-content {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #b5c76f;
}

.what-we-do-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 20px;
}

.what-we-do-content p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .what-we-do {
        padding: 50px 0;
    }
    
    .what-we-do h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .what-we-do-content {
        padding: 30px;
    }
    
    .what-we-do-content p {
        font-size: 1rem;
        line-height: 1.6;
    }
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background-color: var(--light-color);
    text-align: center;
}

.testimonials h2 {
    margin-bottom: 20px;
    font-size: 2.2rem;
}

.testimonials .section-subtitle {
    max-width: 700px;
    margin: 0 auto 50px;
    color: #666;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: white;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
    position: relative;
}

.testimonial-card:before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 4rem;
    color: rgba(200, 162, 122, 0.2);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.author-info p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* CTA Section Enhancement */
.cta {
    padding: 100px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/hero/quality-coffee.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
}

.cta h2 {
    margin-bottom: 20px;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.cta p {
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 1.2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.cta .btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .why-choose-us-container {
        grid-template-columns: 1fr;
    }
    
    .why-choose-us-image {
        height: 400px;
        order: -1;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 120px 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .why-choose-us-image {
        height: 300px;
    }
    
    .journey-step {
        padding: 30px 20px;
    }
    
    .testimonial-card {
        padding: 30px 20px;
    }
}
