:root {
    --primary: #FF0000;
    --secondary: #2B7FFF;
    --accent: #10b981;
    --dark: #1f2937;
    --light: #f3f4f6;
}

body.loading {
    overflow: hidden !important;
    height: 100vh;
}

* {
    font-family: 'Nunito', sans-serif;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
}

.page {
    display: contents;
    animation: fadeIn 0.5s ease-in-out;
}

.page.active {
    display: contents;
}

.hero-pattern {
    background-color: #FF0000;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--secondary);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.testimonial-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.course-card .overlay {
    opacity: 0;
    transition: all 0.4s ease;
}

.course-card:hover .overlay {
    opacity: 1;
}

.facility-item {
    transition: all 0.4s ease;
}

.facility-item:hover {
    z-index: 10;
}

.facility-item:hover .facility-content {
    transform: translateY(-50%);
    opacity: 1;
}

.facility-content {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.mobile-menu {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu.open {
    transform: translateX(0);
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-slide-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slide-right {
    animation: slideInRight 0.8s ease-out forwards;
}

.animate-scale {
    animation: scaleIn 0.6s ease-out forwards;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #FF0000);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), #2B7FFA);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 30px #2B7FFA;
}

.btn-secondaryt {
    background: linear-gradient(135deg, #fa2b70, #fa2b70);
    transition: all 0.3s ease;
}

.btn-secondaryt:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px #fa2b70;
}

.btn-secondaryp {
    background: linear-gradient(135deg, #f8e802, #f8e802);
    transition: all 0.3s ease;
}

.btn-secondaryp:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px #f8e802;
}

.carousel-container {
    position: relative;
    overflow: hidden;
}

.carousel-slide {
    display: none;
    animation: fadeIn 1s ease-in-out;
}

.carousel-slide.active {
    display: block;
}

.scroll-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

.card-hover {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-hover:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.img-hover {
    transition: all 0.5s ease;
    overflow: hidden;
}

.img-hover img {
    transition: transform 0.5s ease;
}

.img-hover:hover img {
    transform: scale(1.1);
}

.blob {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: blob 8s ease-in-out infinite;
}

@keyframes blob {
    0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
}

.counter {
    font-variant-numeric: tabular-nums;
}

.profile-scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #888 #e0e0e0;
}

.profile-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.profile-scroll-container::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 4px;
}

.profile-card {
    flex: 0 0 auto;
    width: 120px;
    text-align: center;
    scroll-snap-align: start;
}

.profile-pic {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #555;
    border: 3px solid #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin: 0 auto;
    object-fit: cover;
}

.profile-name {
    margin-top: 10px;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.coming {
    color: #fa2b70;
    text-align: center;
    font-size: larger;
    background-color: aliceblue;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

#preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease-in-out, visibility 0.4s;
}

#preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: white !important; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease-in-out;
}

#preloader.fade-out {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

body.loading {
    overflow: hidden !important;
}
