/* Global Styles */
:root {
    --primary-color: #4e54c8;
    --primary-light: #8f94fb;
    --secondary-color: #FF6F61;
    --dark-color: #333;
    --light-color: #f8f9fa;
    --python-blue: #306998;
    --python-yellow: #FFD43B;
    --ai-purple: #6B5B95;
    --ai-coral: #FF6F61;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

a {
    transition: var(--transition);
}

a:hover {
    text-decoration: none;
}

/* Button Styles */
.btn {
    border-radius: 30px;
    padding: 0.6rem 1.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(to right, var(--primary-color), var(--primary-light));
    border: none;
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: linear-gradient(to right, var(--primary-color), var(--primary-light));
}

/* Hero Section */
.hero-section {
    background: linear-gradient(to right, var(--primary-color), var(--primary-light));
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/static/images/pattern.svg');
    opacity: 0.1;
    animation: moveBackground 30s linear infinite;
}

@keyframes moveBackground {
    0% { background-position: 0 0; }
    100% { background-position: 100% 100%; }
}

/* Book Cards */
.book-card {
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.5s ease;
    overflow: hidden;
    border-radius: 15px;
}

.book-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
}

.book-cover {
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.book-card:hover .book-cover {
    transform: scale(1.05);
}

/* Method Badges */
.method-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.8rem;
    box-shadow: var(--box-shadow);
}

.python-badge {
    background: linear-gradient(135deg, var(--python-blue), #4584b6);
    color: white;
}

.ai-badge {
    background: linear-gradient(135deg, var(--ai-coral), var(--ai-purple));
    color: white;
}

/* Section Styling */
.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
}

/* Method Sections Styling */
.method-section {
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.method-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/static/images/pattern.svg');
    opacity: 0.05;
    pointer-events: none;
}

/* SVG Animations */
.svg-container {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

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

/* Footer */
footer {
    background: linear-gradient(to right, #2b2b2b, #343a40);
}

.social-icons a {
    transition: transform 0.3s ease, color 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.social-icons a:hover {
    transform: translateY(-5px);
    color: var(--primary-light) !important;
    background: rgba(255, 255, 255, 0.2);
}

/* Checkout Form */
.checkout-form {
    max-width: 400px;
    transition: var(--transition);
    transform: translateY(0);
}

.checkout-form:hover {
    transform: translateY(-5px);
}

.checkout-form .form-control {
    border-radius: 30px;
    padding: 0.8rem 1.2rem;
    border: 1px solid #ddd;
    transition: var(--transition);
}

.checkout-form .form-control:focus {
    box-shadow: 0 0 0 3px rgba(78, 84, 200, 0.2);
    border-color: var(--primary-color);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s ease-in-out forwards;
}

@keyframes fadeIn {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.zoom-in {
    animation: zoomIn 1s ease-out;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.bounce {
    animation: bounce 1s ease infinite;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 50px 0;
    }
    
    .hero-section .btn {
        display: block;
        margin: 10px auto;
    }
    
    .section-title::after {
        width: 30px;
    }
}

/* Testimonial styles */
.testimonial-card {
    transition: var(--transition);
    border-radius: 15px;
    overflow: hidden;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Loading animation */
.loading {
    position: relative;
}

.loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(110deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.2) 20%, 
        rgba(255, 255, 255, 0.5) 40%, 
        rgba(255, 255, 255, 0.2) 60%, 
        rgba(255, 255, 255, 0) 80%);
    background-size: 200% 100%;
    animation: loadingShimmer 1.5s infinite linear;
}

@keyframes loadingShimmer {
    0% { background-position: -100% 0; }
    100% { background-position: 100% 0; }
}

/* Book detail page styling */
.book-detail-image {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.book-detail-image:hover {
    transform: scale(1.02);
} 