/* Custom Styles for PassionBots */

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

body {
    overflow-x: hidden;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #FFD300;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ffd300cc;
}

/* Navbar Scrolled State */
#navbar.scrolled {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(255, 211, 0, 0.1);
}

/* Grid Pattern Background */
.grid-pattern {
    background-image: 
        linear-gradient(rgba(255, 211, 0, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 211, 0, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

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

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

@keyframes pulse-slow {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s backwards;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s backwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-pulse-slow {
    animation: pulse-slow 2s ease-in-out infinite;
}

/* Feature Cards */
.feature-card {
    transition: all 0.3s ease;
}

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

/* Product Cards */
.product-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #000;
    border: 2px solid #1f2937;
}

.product-card:hover {
    border-color: #FFD300;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 211, 0, 0.3);
}

.product-card img {
    transition: transform 0.5s ease;
}

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

.product-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.product-card:hover .product-overlay {
    transform: translateY(0);
}

/* Course Cards */
.course-card {
    background: #000;
    border: 2px solid #1f2937;
    transition: all 0.3s ease;
    overflow: hidden;
}

.course-card:hover {
    border-color: #FFD300;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 211, 0, 0.3);
}

.course-card img {
    transition: transform 0.5s ease;
}

.course-card:hover img {
    transform: scale(1.05);
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-beginner {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.badge-intermediate {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.badge-advanced {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Form Styles */
.form-input {
    width: 100%;
    padding: 12px 16px;
    background: #1f2937;
    border: 2px solid #374151;
    border-radius: 12px;
    color: white;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #FFD300;
    background: #111827;
    box-shadow: 0 0 0 3px rgba(255, 211, 0, 0.1);
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

/* Button Styles */
.btn {
    padding: 12px 24px;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: #FFD300;
    color: #000;
}

.btn-primary:hover {
    background: #ffd300cc;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 211, 0, 0.3);
}

.btn-outline {
    background: transparent;
    color: #FFD300;
    border: 2px solid #FFD300;
}

.btn-outline:hover {
    background: #FFD300;
    color: #000;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.2);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Team Member Cards */
.team-member {
    background: #000;
    border: 2px solid #1f2937;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.team-member:hover {
    border-color: #FFD300;
    transform: translateY(-5px);
}

.team-member img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #FFD300;
    object-fit: cover;
    margin: 0 auto 16px;
    transition: transform 0.3s ease;
}

.team-member:hover img {
    transform: scale(1.1);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #000;
    border: 2px solid #FFD300;
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #FFD300;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    transform: rotate(90deg);
    background: #ffd300cc;
}

/* Loading Spinner */
.spinner {
    border: 4px solid rgba(255, 211, 0, 0.1);
    border-left-color: #FFD300;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .modal-content {
        padding: 24px;
    }
}

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

/* Selection Color */
::selection {
    background: #FFD300;
    color: #000;
}

/* Testimonial Cards */
.testimonial-card {
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 211, 0, 0.2);
}

/* FAQ Items */
.faq-item {
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #FFD300;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-answer {
    transition: max-height 0.3s ease;
}

/* Partner Logos */
.partner-logo {
    transition: all 0.3s ease;
}

.partner-logo:hover {
    transform: scale(1.05);
}

/* Stats Animation */
[data-stat] {
    transition: opacity 0.5s ease;
}

/* Testimonial Stars */
.testimonial-card .fa-star {
    font-size: 14px;
}

/* Featured Course Badge positioning */
.course-card .badge {
    backdrop-filter: blur(10px);
}

/* WhatsApp Testimonials */
.whatsapp-chat {
    background: #0d1117;
    border-radius: 16px;
    border: 2px solid #1f2937;
    overflow: hidden;
    transition: all 0.3s ease;
}

.whatsapp-chat:hover {
    border-color: #FFD300;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 211, 0, 0.2);
}

.whatsapp-header {
    background: #1f2937;
    padding: 16px;
    border-bottom: 2px solid #374151;
    display: flex;
    align-items: center;
    gap: 12px;
}

.whatsapp-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid #FFD300;
}

.whatsapp-body {
    padding: 20px;
    min-height: 200px;
    background: #0d1117;
}

.whatsapp-message {
    background: #1f2937;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 12px;
    position: relative;
    max-width: 80%;
    animation: slideInRight 0.3s ease;
    border-left: 4px solid #FFD300;
}

.whatsapp-message:last-child {
    margin-bottom: 0;
}

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

.whatsapp-time {
    font-size: 11px;
    color: #6b7280;
    margin-top: 4px;
    text-align: right;
}

.whatsapp-checkmarks {
    color: #3b82f6;
    font-size: 12px;
}

/* Course Dropdown Menu */
.course-menu-dropdown {
    position: relative;
}

.course-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
    min-width: 18rem;
    background: #1f2937;
    border-radius: 0.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 2px solid #374151;
    z-index: 1000;
}

.course-menu-dropdown:hover .course-dropdown {
    display: block;
}

.course-dropdown a {
    display: block;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
}

.course-dropdown a:hover {
    background: #374151;
}

/* Why Choose Cards */
.why-choose-card {
    background: #1f2937;
    padding: 24px;
    border-radius: 16px;
    border: 2px solid #374151;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.why-choose-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FFD300, #ffd300cc);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.why-choose-card:hover::before {
    transform: scaleX(1);
}

.why-choose-card:hover {
    border-color: #FFD300;
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(255, 211, 0, 0.2);
}

.why-choose-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 211, 0, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.why-choose-card:hover .why-choose-icon {
    background: #FFD300;
    transform: scale(1.1) rotate(5deg);
}

.why-choose-card:hover .why-choose-icon i {
    color: #000;
}

.why-choose-stats {
    display: inline-block;
    background: rgba(255, 211, 0, 0.1);
    color: #FFD300;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
}
