/* Import base styles and extend them */
@import url('style_kbi.css'); /* Your existing CSS file */

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1a1a4f, #2a2a8a);
    color: #fff;
    text-align: center;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.7);
    color: #fff;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

/* Search Container */
.search-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
}

.search-input {
    padding: 0.8rem 1.5rem;
    border: 2px solid #fff;
    border-radius: 25px 0 0 25px;
    font-size: 1rem;
    width: 300px;
    outline: none;
    background: #fff;
    color: #333;
}

.search-input:focus {
    border-color: #1a1a4f;
    box-shadow: 0 0 0 3px rgba(26, 26, 79, 0.2);
}

.search-btn {
    background-color: #fff;
    color: #1a1a4f;
    border: 2px solid #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.search-btn:hover {
    background-color: #1a1a4f;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Filter Section */
.filter-section {
    padding: 3rem 0;
    background: #f8f9fa;
}

.filter-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #1a1a4f;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid #1a1a4f;
    background: white;
    color: #1a1a4f;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-btn:hover {
    background: #1a1a4f;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.filter-btn.active {
    background: #666;
    color: white;
    border-color: #666;
}

/* Machines Section */
.machines-section {
    padding: 4rem 0;
    background: white;
}

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

.machine-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.machine-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.25);
    border-color: #1a1a4f;
}

.machine-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

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

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

.machine-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 79, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.machine-card:hover .machine-overlay {
    opacity: 1;
}

.quick-view-btn {
    background: #fff;
    color: #1a1a4f;
    border: 2px solid #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quick-view-btn:hover {
    background: #1a1a4f;
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.machine-info {
    padding: 1.5rem;
}

.machine-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #1a1a4f;
}

.machine-category {
    color: #666;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.machine-description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.machine-features {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.feature-tag {
    background: #f8f9fa;
    color: #1a1a4f;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    border: 1px solid #e9ecef;
}

.machine-quantity {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0.8rem;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.quantity-label {
    font-weight: bold;
    color: #1a1a4f;
    font-size: 0.9rem;
}

.quantity-number {
    font-size: 1.2rem;
    font-weight: bold;
    color: #1a1a4f;
    background: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    border: 1px solid #1a1a4f;
}

.machine-actions {
    display: flex;
    justify-content: center;
}

.learn-more-btn {
    background: #1a1a4f;
    color: white;
    border: 2px solid #1a1a4f;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-block;
}

.learn-more-btn:hover {
    background: #fff;
    color: #1a1a4f;
    border: 2px solid #1a1a4f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.machine-details {
    padding: 0 1.5rem 1.5rem;
    border-top: 1px solid #e0e0e0;
    margin-top: 1rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.machine-card.expanded .machine-details {
    max-height: 200px;
    padding-top: 1.5rem;
}

.machine-details h4 {
    color: #1a1a4f;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.machine-details ul {
    list-style: none;
    padding: 0;
}

.machine-details li {
    padding: 0.3rem 0;
    color: #666;
    position: relative;
    padding-left: 1rem;
}

.machine-details li::before {
    content: '⚙️';
    position: absolute;
    left: 0;
    color: #1a1a4f;
    font-weight: bold;
}

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

/* Hidden class for filtering */
.hidden {
    display: none !important;
}

/* Container class for consistent spacing */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .search-input {
        width: 250px;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .machines-grid {
        grid-template-columns: 1fr;
    }
    
    .machine-quantity {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 4rem 0;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .search-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-input {
        border-radius: 25px;
        width: 100%;
    }
    
    .search-btn {
        border-radius: 25px;
        width: 100%;
    }
    
    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 200px;
        text-align: center;
    }
    
    .machines-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .machine-card {
        margin: 0;
    }
    
    .machine-features {
        justify-content: center;
    }
    
    .machine-details li::before {
        content: '•';
    }
}