/* 5F Products - Main Stylesheet */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #2d5016 0%, #4a7c2c 50%, #6b9d3e 100%);
    color: white;
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: float 20s linear infinite;
}

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

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero p {
    font-size: 1.3em;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-subtitle {
    font-size: 1em;
    opacity: 0.9;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: white;
    color: #2d5016;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    background: #f0f0f0;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Section Title */
.section-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
    color: #2d5016;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #4a7c2c, #6b9d3e);
    margin: 20px auto 0;
    border-radius: 2px;
}

/* Scales Section */
.scales {
    background: white;
    padding: 40px 20px;
    text-align: center;
}

.scales-title {
    color: #2d5016;
    font-size: 2em;
    margin-bottom: 10px;
}

.scale-badges {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.scale-badge {
    padding: 15px 30px;
    background: linear-gradient(135deg, #4a7c2c, #6b9d3e);
    color: white;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(74, 124, 44, 0.3);
    transition: all 0.3s ease;
}

.scale-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(74, 124, 44, 0.4);
}

/* Product Categories */
.product-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.category-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-color: #6b9d3e;
}

.category-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.category-card h3 {
    color: #2d5016;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.category-card ul {
    list-style: none;
    color: #666;
}

.category-card li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    transition: all 0.2s ease;
}

.category-card li:last-child {
    border-bottom: none;
}

.category-card li:hover {
    color: #4a7c2c;
    padding-left: 10px;
}

/* Features Section */
.features {
    background: linear-gradient(135deg, #f5f7f5 0%, #e8f0e8 100%);
    padding: 60px 20px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.feature-item h4 {
    color: #2d5016;
    margin-bottom: 10px;
    font-size: 1.3em;
}

/* Footer */
footer {
    background: #2d5016;
    color: white;
    text-align: center;
    padding: 30px 20px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlide 0.3s ease-out;
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2em;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
}

.close-modal:hover {
    color: #2d5016;
}

/* Modal Body Styles */
.modal-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.modal-title {
    color: #2d5016;
    margin-bottom: 30px;
}

.modal-product-list {
    list-style: none;
    text-align: left;
}

.modal-product-list li {
    padding: 12px;
    border-bottom: 1px solid #eee;
    color: #333;
    font-size: 1.1em;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2em;
    }
    
    .hero p {
        font-size: 1em;
    }
    
    .section-title {
        font-size: 1.8em;
    }
}
