/* Custom Properties - Color Scheme inspired by logo and poster */
:root {
    --sage-green: #8a9a7b;
    --sage-dark: #6b7a5d;
    --beige: #e8d7c3;
    --beige-light: #f5efe7;
    --cream: #f9f6f2;
    --charcoal: #2c2c2c;
    --white: #ffffff;
    --text-primary: #2c2c2c;
    --text-muted: #6c757d;
}

/* Typography */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-primary);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.brand-text {
    color: var(--sage-green);
    font-style: italic;
}

.text-sage {
    color: var(--sage-green) !important;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    color: var(--text-primary) !important;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--cream) 0%, var(--beige-light) 100%);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-badge {
    display: inline-block;
    background: var(--sage-green);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
}

.hero-logo {
    max-width: 400px;
    animation: float 3s ease-in-out infinite;
}

.hero-image {
    max-width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
}

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

/* Bubble Animation */
.bubbles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.bubble {
    position: absolute;
    bottom: -100px;
    background: rgba(138, 154, 123, 0.1);
    border-radius: 50%;
    animation: rise 15s infinite ease-in;
}

.bubble:nth-child(1) {
    width: 40px;
    height: 40px;
    left: 10%;
    animation-delay: 0s;
}

.bubble:nth-child(2) {
    width: 60px;
    height: 60px;
    left: 30%;
    animation-delay: 2s;
}

.bubble:nth-child(3) {
    width: 30px;
    height: 30px;
    left: 50%;
    animation-delay: 4s;
}

.bubble:nth-child(4) {
    width: 50px;
    height: 50px;
    left: 70%;
    animation-delay: 6s;
}

.bubble:nth-child(5) {
    width: 45px;
    height: 45px;
    left: 90%;
    animation-delay: 8s;
}

@keyframes rise {
    to {
        bottom: 100%;
        opacity: 0;
    }
}

/* Hero Banner */
.hero-banner {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.hero-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.5));
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-banner-overlay h2,
.hero-banner-overlay p {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
    .hero-banner {
        height: 300px;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn i {
    line-height: 1;
}

.btn-primary {
    background: var(--sage-green);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--sage-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(138, 154, 123, 0.3);
}

.btn-outline-secondary {
    color: var(--sage-green);
    border: 2px solid var(--sage-green);
    padding: 0.75rem 2rem;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background: var(--sage-green);
    border-color: var(--sage-green);
    color: white;
    transform: translateY(-2px);
}

/* Feature Cards */
.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: var(--sage-green);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--sage-green), var(--sage-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: white;
}

.feature-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Machine Cards */
.machine-card {
    background: white;
    padding: 2.5rem 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
    position: relative;
    border: 2px solid var(--beige);
}

.machine-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.machine-card.featured {
    border: 3px solid var(--sage-green);
    background: linear-gradient(135deg, var(--cream), var(--beige-light));
}

.badge-xl {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--sage-green);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.machine-size {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--sage-green), var(--sage-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    font-family: 'Poppins', sans-serif;
}

.machine-card h4 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.machine-card p {
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Why Choose Us Section */
.bg-sage {
    background: linear-gradient(135deg, var(--sage-green), var(--sage-dark));
}

.why-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    min-height: 240px;
}

.why-card:hover {
    background: white;
    transform: translateY(-5px);
}

.why-card i {
    font-size: 3rem;
    color: var(--sage-green);
    margin-bottom: 1rem;
}

.why-card h5 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.why-card p {
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Contact Section */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-item i {
    font-size: 2rem;
    color: var(--sage-green);
    min-width: 40px;
}

.contact-item h5 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.contact-item a {
    color: var(--text-muted);
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--sage-green);
}

/* Forms */
.form-control-lg {
    border-radius: 10px;
    border: 2px solid var(--beige);
    padding: 0.75rem 1.25rem;
}

.form-control-lg:focus {
    border-color: var(--sage-green);
    box-shadow: 0 0 0 0.2rem rgba(138, 154, 123, 0.1);
}

/* Cards */
.card {
    border: none;
    border-radius: 15px;
}

/* Background Colors */
.bg-light {
    background-color: var(--cream) !important;
}

/* Footer */
footer {
    background: var(--charcoal) !important;
}

footer img {
    filter: brightness(0) invert(1);
}

/* Responsive */
@media (max-width: 991px) {
    .hero-section {
        padding-top: 100px;
    }

    .hero-logo {
        max-width: 300px;
    }
}

@media (max-width: 767px) {
    .display-3 {
        font-size: 2.5rem;
    }

    .display-5 {
        font-size: 2rem;
    }

    .hero-logo {
        max-width: 250px;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Section Spacing */
section {
    scroll-margin-top: 80px;
}

/* Instructions Page */
.step {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--sage-green);
    color: white;
    border-radius: 50%;
    font-weight: 600;
    flex-shrink: 0;
}

/* Gallery Section */
.gallery-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .gallery-img {
        height: 150px;
    }
}

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

.lightbox-overlay.active {
    display: flex;
}

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

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--sage-green);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 30px;
    padding: 15px 20px;
    cursor: pointer;
    transition: background 0.3s ease;
    border-radius: 4px;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

@media (max-width: 768px) {
    .lightbox-nav {
        font-size: 24px;
        padding: 10px 15px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}
