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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
}

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

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

@keyframes bounce-in {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes count-up {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Floating Abacus Animation */
.floating-abacus {
    position: absolute;
    top: 20%;
    right: 10%;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #FF6B35 0%, #FFD23F 100%);
    border-radius: 50%;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.floating-abacus::before {
    content: '🧮';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 80px;
    opacity: 0.3;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid #004E89;
    border-radius: 15px;
    opacity: 0.5;
}

.scroll-arrow {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-right: 2px solid #004E89;
    border-bottom: 2px solid #004E89;
    transform: translateX(-50%) rotate(45deg);
    animation: scroll-bounce 2s infinite;
}

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

/* Animation Classes */
.animate-fade-in {
    animation: fade-in 1s ease-out;
}

.animate-slide-up {
    animation: slide-up 1s ease-out 0.3s both;
}

.animate-bounce-in {
    animation: bounce-in 0.8s ease-out 0.6s both;
}

/* Button Styles */
.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: linear-gradient(135deg, #FF6B35 0%, #FFD23F 100%);
    color: white;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: transparent;
    color: #004E89;
    font-weight: 600;
    border: 2px solid #004E89;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #004E89;
    color: white;
}

.btn-accent {
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    background: #FFD23F;
    color: #004E89;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 210, 63, 0.3);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 210, 63, 0.4);
}

.btn-primary-small {
    padding: 8px 16px;
    background: linear-gradient(135deg, #FF6B35 0%, #FFD23F 100%);
    color: white;
    font-weight: 500;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary-small:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* Feature Cards */
.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 32px;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #004E89;
    margin-bottom: 1rem;
}

.feature-description {
    color: #666;
    line-height: 1.6;
}

/* Course Cards */
.course-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

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

.course-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.course-tag {
    background: rgba(255, 255, 255, 0.9);
    color: #004E89;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.course-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #004E89;
    margin-bottom: 0.5rem;
}

.course-description {
    color: #666;
    margin-bottom: 1.5rem;
}

.course-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.course-features li {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: #555;
}

.course-features i {
    margin-right: 0.5rem;
    width: 16px;
    height: 16px;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
}

.course-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #FF6B35;
}

/* Stats Section */
.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    animation: count-up 2s ease-out;
}

.stat-label {
    font-size: 1.125rem;
    opacity: 0.9;
}

/* Testimonials */
.testimonial-slider {
    overflow: hidden;
    position: relative;
}

.testimonial-track {
    display: flex;
    gap: 2rem;
    animation: scroll 30s linear infinite;
}

.testimonial-card {
    min-width: 400px;
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-style: italic;
    color: #555;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-image + div h4 {
    font-weight: 600;
    color: #004E89;
}

.author-image + div span {
    color: #666;
    font-size: 0.875rem;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Contact Section */
.contact-item {
    text-align: center;
}

.contact-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
}

.contact-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-item p {
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .floating-abacus {
        display: none;
    }
    
    .testimonial-track {
        animation: none;
        flex-direction: column;
    }
    
    .testimonial-card {
        min-width: 100%;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .course-footer {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Web Components Styles */
custom-navbar {
    display: block;
}

custom-footer {
    display: block;
}