/*
Theme Name: Xe Đạp Xanh
Theme URI: http://xedapxanh.com.vn
Description: Giao diện website hiện đại cho chủ đề xe đạp với animation
Version: 1.0
Author: Your Name
Author URI: http://xedapxanh.com.vn
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bike-theme
Domain Path: /languages
*/

/* =====================================================
   Reset & Base Styles
   ===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background-color: #f8f9fa;
    line-height: 1.6;
}

a {
    color: #00a86b;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #008c5a;
}

/* =====================================================
   Animations
   ===================================================== */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* =====================================================
   Header & Navigation
   ===================================================== */
header {
    background: linear-gradient(135deg, #00a86b 0%, #008c5a 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: slideInDown 0.6s ease;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: zoomIn 0.8s ease;
}

.logo:hover {
    animation: pulse 1s infinite;
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    color: white;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    animation: slideInDown 0.6s ease;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
}

/* =====================================================
   Hero Section
   ===================================================== */
.hero {
    background: linear-gradient(135deg, #00a86b 0%, #008c5a 100%);
    color: white;
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="3" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="3" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="50" r="3" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    animation: slideInUp 0.8s ease;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
    animation: slideInDown 0.8s ease 0.2s both;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    animation: slideInUp 0.8s ease 0.4s both;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: white;
    color: #00a86b;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid white;
    animation: slideInUp 0.8s ease 0.6s both;
}

.btn:hover {
    background-color: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background-color: white;
    color: #00a86b;
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
    margin-left: 1rem;
}

.btn-secondary:hover {
    background-color: white;
    color: #00a86b;
}

/* =====================================================
   Features Section
   ===================================================== */
.features {
    padding: 4rem 2rem;
    background-color: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
    position: relative;
    animation: slideInDown 0.8s ease;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #00a86b, #008c5a);
    margin: 1rem auto 0;
    border-radius: 2px;
    animation: slideInDown 0.8s ease 0.2s both;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    animation: slideInUp 0.8s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 168, 107, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #00a86b;
}

.feature-card p {
    color: #666;
    line-height: 1.8;
}

/* =====================================================
   Products Section
   ===================================================== */
.products {
    padding: 4rem 2rem;
    background-color: #f8f9fa;
}

.products-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    animation: zoomIn 0.8s ease;
}

.product-card:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 168, 107, 0.2);
}

.product-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #e0f7f0, #c8f0e5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    overflow: hidden;
    position: relative;
}

.product-card:hover .product-image {
    animation: rotate 1s ease-in-out;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.product-price {
    color: #00a86b;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.product-rating {
    color: #ffc107;
    margin-bottom: 1rem;
}

.product-card .btn {
    width: 100%;
    text-align: center;
}

/* =====================================================
   About Section
   ===================================================== */
.about {
    padding: 4rem 2rem;
    background: white;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #00a86b, #008c5a);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    animation: slideInLeft 0.8s ease;
}

.about-content {
    animation: slideInRight 0.8s ease;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.about-content p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* =====================================================
   Testimonials Section
   ===================================================== */
.testimonials {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f0f8f5, #e8f7f2);
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #00a86b;
    animation: slideInUp 0.8s ease;
}

.testimonial-text {
    color: #666;
    margin-bottom: 1.5rem;
    font-style: italic;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00a86b, #008c5a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.testimonial-info h4 {
    color: #333;
    margin-bottom: 0.2rem;
}

.testimonial-info p {
    color: #999;
    font-size: 0.9rem;
}

/* =====================================================
   Call to Action Section
   ===================================================== */
.cta {
    background: linear-gradient(135deg, #00a86b 0%, #008c5a 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    animation: slideInDown 0.8s ease;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* =====================================================
   Footer
   ===================================================== */
footer {
    background: #333;
    color: white;
    padding: 3rem 2rem 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #00a86b;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #999;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #00a86b;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #555;
    padding-top: 2rem;
    color: #999;
}

/* =====================================================
   Responsive Design
   ===================================================== */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .about-image {
        height: 300px;
    }

    .btn-secondary {
        margin-left: 0;
        display: block;
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    nav a {
        padding: 0.3rem 0.6rem;
        font-size: 0.9rem;
    }

    .hero {
        padding: 3rem 1rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .features-container,
    .products-container {
        grid-template-columns: 1fr;
    }
}