/*
 * Gitakshmi Technolabs - Front Page Stylesheet
 */

/* Hero Floating & Glowing Animations */
@keyframes heroFloat1 {
    0%, 100% { transform: translateY(0) rotate(15deg); }
    50% { transform: translateY(-20px) rotate(20deg); }
}
@keyframes heroFloat2 {
    0%, 100% { transform: translateY(0) rotate(-10deg); }
    50% { transform: translateY(15px) rotate(-5deg); }
}
@keyframes pulseGlow {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.7; }
}

/* Category Item Hover Styles */
.category-item:hover {
    transform: translateY(-4px);
}
.category-item:hover .cat-icon-wrap {
    background: #f1f5f9 !important;
}
.category-item:hover div[style*="grid"] > div {
    background: #3b82f6 !important;
}
.category-item:hover span {
    color: #0f172a !important;
}

@keyframes fadeInModal {
    to { opacity: 1; }
}
@keyframes slideUpModal {
    to { transform: translateY(0); }
}

/* Modal Styles */
.popup-contact-form input,
.popup-contact-form select,
.popup-contact-form textarea {
    width: 100%;
    padding: 0.65rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-family: var(--font-inter);
    font-size: 0.9rem;
    color: #334155;
    outline: none;
    transition: border-color 0.3s ease;
    background-color: white;
}

/* Fix intl-tel-input wrapper */
.popup-contact-form .iti {
    width: 100%;
    display: block;
}

.popup-contact-form input::placeholder {
    color: #94a3b8;
}

.popup-contact-form select {
    color: #64748b;
}

.popup-contact-form input:focus,
.popup-contact-form select:focus,
.popup-contact-form textarea:focus {
    border-color: #092ea0;
    box-shadow: 0 0 0 2px rgba(9,46,160,0.1);
}

.popup-contact-form .phone-input-group input {
    border-radius: 4px !important;
}

#homeRegistrationModal {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#homeRegistrationModal.show {
    opacity: 1;
    visibility: visible;
}

#homeRegistrationModal .modal-content {
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

#homeRegistrationModal.show .modal-content {
    transform: scale(1);
}

/* Custom Responsive Media Queries for Front Page */
@media (max-width: 1400px) {
    .learning-grid, .featured-courses-grid, .popular-courses-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    .learning-grid > .card-3d-wrapper:nth-child(7),
    .learning-grid > .card-3d-wrapper:nth-child(8),
    .popular-courses-grid > .popular-course-card:nth-child(7),
    .popular-courses-grid > .popular-course-card:nth-child(8) {
        display: none !important;
    }
    .hide-on-responsive {
        display: none !important;
    }
}

@media (max-width: 992px) {
    .learning-grid, .featured-courses-grid, .popular-courses-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .categories-bar-wrapper {
        flex-direction: column;
        padding: 1rem !important;
        gap: 1.5rem !important;
        margin-top: 1.5rem !important;
    }
    .categories-list-inner {
        width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 0.5rem;
        gap: 1.5rem !important;
        scroll-behavior: smooth;
    }
    .categories-list-inner::-webkit-scrollbar {
        height: 4px;
    }
    .categories-list-inner::-webkit-scrollbar-thumb {
        background-color: #cbd5e1;
        border-radius: 10px;
    }
    .start-quiz-wrapper {
        padding-left: 0 !important;
        border-left: none !important;
        width: 100%;
        text-align: center;
    }
    .start-quiz-wrapper button {
        width: 100%;
    }
}

@media (max-width: 768px) {
    body, html { overflow-x: hidden !important; }
    .hero-section { padding-top: 3.5rem !important; }
    .hero-title-responsive {
        font-size: 2rem !important;
    }
    .learning-grid, .featured-courses-grid, .popular-courses-grid, .recent-blogs-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    #btn-load-more-courses {
        width: 100%;
    }
    .section-title h2 {
        font-size: 1.8rem !important;
    }
    .section-padding {
        padding: 3rem 0 !important;
    }
    .premium-cta-box {
        padding: 2.5rem 1.5rem !important;
        flex-direction: column !important;
        text-align: center;
        gap: 1.5rem !important;
    }
    .premium-cta-content {
        min-width: 0 !important;
        width: 100% !important;
    }
    .premium-cta-title {
        font-size: 1.8rem !important;
    }
    .premium-cta-box p {
        font-size: 0.95rem !important;
        margin: 0 auto !important;
    }
    .premium-cta-btn {
        width: 100% !important;
        justify-content: center !important;
    }
    .review-card {
        min-width: 280px !important;
        max-width: 100% !important;
        padding: 1.5rem !important;
    }
    #homeRegistrationModal .modal-content {
        flex-direction: column;
        overflow-y: auto;
        max-height: 95vh;
    }
    #homeRegistrationModal .modal-left {
        width: 100% !important;
        padding: 1.5rem !important;
    }
    #homeRegistrationModal .modal-left > div:not(:first-child) {
        display: none !important;
    }
    #homeRegistrationModal .modal-left > div:first-child {
        margin-bottom: 0 !important;
    }
    #homeRegistrationModal .modal-right {
        width: 100% !important;
        padding: 2rem 1.5rem !important;
    }
}
