/* Forest Color Scheme Variables */
:root {
    --forest-primary: #2d5016;
    --forest-secondary: #4a7c59;
    --forest-accent: #7fb069;
    --forest-light: #a7c957;
    --forest-dark: #1a3009;
    --forest-gradient: linear-gradient(135deg, #2d5016 0%, #4a7c59 50%, #7fb069 100%);
    --forest-gradient-light: linear-gradient(135deg, #7fb069 0%, #a7c957 100%);
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
    --shadow: 0 4px 6px rgba(45, 80, 22, 0.1);
    --shadow-lg: 0 10px 25px rgba(45, 80, 22, 0.15);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    background: var(--forest-gradient) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding: 1rem 0;
    box-shadow: var(--shadow);
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--white) !important;
    transition: all 0.3s ease;
}

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

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--forest-light) !important;
    transform: translateY(-2px);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--forest-light);
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
    left: 0;
}

.cart-link {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--forest-accent);
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--forest-gradient);
    color: var(--white);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/ai-brain-hero.jpg') center/cover;
    opacity: 0.1;
    z-index: 1;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--forest-gradient);
    opacity: 0.9;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.gradient-text {
    background: var(--forest-gradient-light);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons .btn {
    margin: 0.5rem;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--forest-accent);
    border: none;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: var(--forest-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--forest-primary);
    transform: translateY(-3px);
}

.hero-image {
    position: relative;
    z-index: 3;
    animation: fadeInRight 1s ease 0.3s both;
}

.hero-image img {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

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

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
    color: var(--white);
    font-size: 1.5rem;
}

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--forest-primary);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--forest-gradient);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--forest-secondary);
    margin-bottom: 3rem;
}

/* Service Cards */
.service-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--forest-accent);
}

.service-card.featured {
    background: var(--forest-gradient);
    color: var(--white);
    transform: scale(1.05);
}

.service-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--forest-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--white);
    animation: pulse 2s infinite;
}

.service-card.featured .service-icon {
    background: var(--white);
    color: var(--forest-primary);
}

.service-card h4 {
    color: var(--forest-primary);
    margin-bottom: 1rem;
    font-weight: bold;
}

.service-card.featured h4 {
    color: var(--white);
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.service-features li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--forest-accent);
    font-weight: bold;
}

.service-card.featured .service-features li::before {
    color: var(--white);
}

.service-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--forest-accent);
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 10px;
}

.service-card.featured .service-price {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

/* Toy Product Cards */
.toy-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
}

.toy-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.toy-image {
    height: 250px;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--forest-secondary);
    position: relative;
    overflow: hidden;
}

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

.toy-card:hover .toy-image img {
    transform: scale(1.1);
}

.toy-content {
    padding: 1.5rem;
}

.toy-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--forest-primary);
    margin-bottom: 0.5rem;
}

.toy-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--forest-accent);
    margin: 1rem 0;
}

.toy-description {
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.btn-add-cart {
    background: var(--forest-gradient);
    border: none;
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-add-cart:hover {
    background: var(--forest-light);
    transform: translateY(-2px);
}

/* Article Cards */
.article-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.article-image {
    height: 200px;
    background: var(--forest-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--white);
}

.article-content {
    padding: 1.5rem;
}

.article-content h5 {
    color: var(--forest-primary);
    margin-bottom: 1rem;
    font-weight: bold;
}

.article-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--forest-secondary);
    margin-top: 1rem;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Testimonial Cards */
.testimonial-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stars {
    color: #ffc107;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
}

.testimonial-author h6 {
    color: var(--forest-primary);
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.testimonial-author span {
    color: var(--forest-secondary);
    font-size: 0.9rem;
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.form-label {
    color: var(--forest-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--forest-accent);
    box-shadow: 0 0 0 0.2rem rgba(127, 176, 105, 0.25);
}

.contact-info {
    text-align: center;
    padding: 2rem;
}

.contact-info i {
    font-size: 3rem;
    color: var(--forest-accent);
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

.contact-info h5 {
    color: var(--forest-primary);
    margin-bottom: 0.5rem;
    font-weight: bold;
}

/* Footer */
.footer {
    background: var(--forest-gradient);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 5rem;
}

.footer h5, .footer h6 {
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: bold;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--forest-light);
    padding-left: 0.5rem;
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .service-card {
        margin-bottom: 2rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .navbar-nav {
        text-align: center;
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

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

/* Success Message */
.success-message {
    background: var(--forest-light);
    color: var(--white);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    margin-top: 1rem;
    animation: fadeInUp 0.5s ease;
}

/* Case Study Cards */
.case-study-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
    border: 2px solid transparent;
}

.case-study-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--forest-accent);
}

.case-study-icon {
    width: 80px;
    height: 80px;
    background: var(--forest-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--white);
    animation: pulse 2s infinite;
}

.case-study-card h5 {
    color: var(--forest-primary);
    margin-bottom: 1rem;
    font-weight: bold;
}

.case-study-metric {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--forest-accent);
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background: var(--light-gray);
    border-radius: 25px;
    display: inline-block;
}

.case-study-tags {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.tag {
    background: var(--forest-gradient);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}
