/* Style CSS for Index Page */

/* Global Inline Styles */
body {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

.text-indigo-primary { 
    color: #4F46E5; 
}

.bg-indigo-primary { 
    background-color: #4F46E5; 
}

.border-indigo-primary { 
    border-color: #4F46E5; 
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    display: flex;
    width: max-content;
    animation: marquee 30s linear infinite;
}

.animate-bounce-slow {
    animation: bounce 4s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(-5%); }
    50% { transform: translateY(0); }
}

/* Advanced Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(79, 70, 229, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(79, 70, 229, 0.6);
    }
}

@keyframes pulse-scale {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Animation Classes */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in-down {
    animation: fadeInDown 0.6s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out forwards;
}

.animate-slide-in-left {
    animation: slideInLeft 0.6s ease-out forwards;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

.animate-pulse-scale {
    animation: pulse-scale 2s ease-in-out infinite;
}

/* Floating Ranked Badge */
.floating-badge {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 40;
    animation: slideInUp 0.6s ease-out forwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.badge-content {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
    border: 2px solid #E2E8F0;
    border-radius: 20px;
    padding: 16px 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.badge-content:hover {
    border-color: #4F46E5;
    box-shadow: 0 12px 36px rgba(79, 70, 229, 0.25);
    transform: translateY(-5px) scale(1.05);
    background: linear-gradient(135deg, #EEF2FF 0%, #F8FAFC 100%);
}

.badge-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.badge-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.badge-label {
    font-size: 9px;
    font-weight: 900;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1;
    margin: 0;
}

.badge-title {
    font-size: 16px;
    font-weight: 900;
    color: #0F172A;
    margin: 4px 0 0 0;
}

.badge-content:hover .badge-title {
    color: #4F46E5;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .floating-badge {
        bottom: 20px;
        right: 20px;
    }
    
    .badge-content {
        padding: 12px 16px;
        border-radius: 16px;
    }
    
    .badge-icon {
        width: 40px;
        height: 40px;
    }
    
    .badge-label {
        font-size: 8px;
    }
    
    .badge-title {
        font-size: 14px;
    }
}

/* Fixed Navbar Enhancement */
#navbar {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

#navbar.scroll-down {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Enhanced Card Styling */
.card-hover {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #E2E8F0;
    background: #FFFFFF;
}

.card-hover::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(79, 70, 229, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.5s;
}

.card-hover:hover {
    border-color: #4F46E5;
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.15);
    transform: translateY(-8px);
}

.card-hover:hover::before {
    animation: shimmer 0.6s;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Step Cards with Animation */
.step-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #F8FAFC 0%, #FFFFFF 100%);
    padding: 35px;
    border-radius: 20px;
    border: 2px solid #E2E8F0;
    text-align: center;
    animation: fadeInUp 0.6s ease-out forwards;
}

.step-card:nth-child(1) { animation-delay: 0.1s; }
.step-card:nth-child(2) { animation-delay: 0.2s; }
.step-card:nth-child(3) { animation-delay: 0.3s; }
.step-card:nth-child(4) { animation-delay: 0.4s; }

.step-card:hover {
    border-color: #4F46E5;
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.1);
    transform: translateY(-5px);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4F46E5 0%, #4338CA 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    margin: 0 auto 20px;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
    transition: all 0.3s ease;
}

.step-card:hover .step-number {
    transform: scale(1.1) rotateZ(5deg);
}

/* Course Card Styling - Enhanced */
.course-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
    padding: 30px;
    border-radius: 20px;
    border: 2px solid #E2E8F0;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out forwards;
    display: flex;
    flex-direction: column;
}

.course-card:nth-child(1) { animation-delay: 0.05s; }
.course-card:nth-child(2) { animation-delay: 0.1s; }
.course-card:nth-child(3) { animation-delay: 0.15s; }
.course-card:nth-child(4) { animation-delay: 0.2s; }
.course-card:nth-child(5) { animation-delay: 0.25s; }
.course-card:nth-child(6) { animation-delay: 0.3s; }
.course-card:nth-child(7) { animation-delay: 0.35s; }
.course-card:nth-child(8) { animation-delay: 0.4s; }

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.course-card:hover::before {
    opacity: 1;
}

.course-card::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(79, 70, 229, 0.1), transparent);
    transition: top 0.5s;
    z-index: 0;
}

.course-card:hover::after {
    top: -50%;
}

.course-card:hover {
    border-color: #4F46E5;
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 24px 48px rgba(79, 70, 229, 0.2);
    background: linear-gradient(135deg, #EEF2FF 0%, #F8FAFC 100%);
}

.course-card h3 {
    font-size: 1.3rem;
    font-weight: 900;
    color: #0F172A;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.course-card:hover h3 {
    color: #4F46E5;
}

.course-card p {
    position: relative;
    z-index: 1;
}

.course-card button {
    position: relative;
    z-index: 1;
    margin-top: auto;
}

/* Stat Cards */
.stat-card {
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(79, 70, 229, 0.02) 100%);
    border-left: 4px solid #4F46E5;
    animation: fadeInUp 0.6s ease-out forwards;
}

.stat-card h2 {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #4F46E5 0%, #4338CA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

/* Hero Section Styles */
.hero-content {
    text-align: center;
    padding: 60px 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    color: #0F172A;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.hero-content p {
    font-size: 1.2rem;
    color: #64748B;
    margin-bottom: 30px;
    font-weight: 500;
}

/* Search Form Styles */
.search-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.search-form input,
.search-form select {
    padding: 14px 20px;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    background: #F8FAFC;
}

.search-form input:focus,
.search-form select:focus {
    outline: none;
    border-color: #4F46E5;
    background: white;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.search-form button {
    background: #4F46E5;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 700;
    padding: 14px 30px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.search-form button:hover {
    background: #4338CA;
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
}

/* Statistics Section */
.statistics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 60px 20px;
    text-align: center;
    background: #F8FAFC;
    border-top: 1px solid #E2E8F0;
    border-bottom: 1px solid #E2E8F0;
}

.stat-item h2 {
    font-size: 3rem;
    font-weight: 900;
    color: #4F46E5;
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 1rem;
    color: #64748B;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Courses Section */
.courses {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.courses h2 {
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.course-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    border: 2px solid #E2E8F0;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.course-card:hover {
    border-color: #4F46E5;
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(79, 70, 229, 0.15);
    background: linear-gradient(135deg, #4F46E5 0%, rgba(79, 70, 229, 0.05) 100%);
}

.course-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0F172A;
}

/* Steps Section */
.steps {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    background: white;
}

.steps h2 {
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.steps-intro {
    text-align: center;
    color: #64748B;
    font-weight: 500;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.step {
    background: linear-gradient(135deg, #F8FAFC 0%, #FFFFFF 100%);
    padding: 35px;
    border-radius: 20px;
    border: 2px solid #E2E8F0;
    text-align: center;
    transition: all 0.3s ease;
}

.step:hover {
    border-color: #4F46E5;
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.1);
    transform: translateY(-5px);
}

.step-number {
    width: 50px;
    height: 50px;
    background: #4F46E5;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #0F172A;
}

.step p {
    color: #64748B;
    font-weight: 500;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: #0F172A;
    color: #94A3B8;
    padding: 40px 20px;
    text-align: center;
    font-weight: 600;
    border-top: 1px solid #1E293B;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .search-form {
        grid-template-columns: 1fr;
    }
    
    .statistics {
        gap: 30px;
    }
    
    .stat-item h2 {
        font-size: 2rem;
    }
    
    .courses h2,
    .steps h2 {
        font-size: 1.8rem;
    }
}

/* University Carousel Styles */
.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-indicators {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.indicator.active {
    background-color: rgba(255, 255, 255, 0.9);
    width: 32px;
    border-radius: 6px;
}

.indicator:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.carousel-prev,
.carousel-next {
    background: rgba(255, 255, 255, 0.9);
    color: #4F46E5;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: white;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .carousel-prev,
    .carousel-next {
        padding: 8px 12px;
    }
    
    .carousel-indicators {
        gap: 6px;
    }
    
    .indicator {
        width: 8px;
        height: 8px;
    }
    
    .indicator.active {
        width: 24px;
    }
}
