/* Custom CSS for additional styling */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* ============================================
   MODERN PRELOADER
   ============================================ */

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s cubic-bezier(0.645, 0.045, 0.355, 1),
        visibility 0.8s cubic-bezier(0.645, 0.045, 0.355, 1),
        transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
    overflow: hidden;
}

.preloader.loaded {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.1);
}

/* Preloader Background Effects */
.preloader::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(220, 38, 38, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(5, 150, 105, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
    animation: preloader-bg-pulse 4s ease-in-out infinite;
}

@keyframes preloader-bg-pulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Floating Orbs */
.preloader-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation: orb-float 6s ease-in-out infinite;
}

.preloader-orb-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
    top: -100px;
    left: -100px;
    opacity: 0.4;
    animation-delay: 0s;
}

.preloader-orb-2 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #059669 0%, #10B981 100%);
    bottom: -80px;
    right: -80px;
    opacity: 0.4;
    animation-delay: 2s;
}

.preloader-orb-3 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.3;
    animation-delay: 4s;
}

@keyframes orb-float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Main Loader Container */
.preloader-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

/* Modern Spinner */
.preloader-spinner {
    position: relative;
    width: 120px;
    height: 120px;
}

/* Outer Ring */
.spinner-ring {
    position: absolute;
    border-radius: 50%;
    border: 3px solid transparent;
}

.spinner-ring-1 {
    width: 100%;
    height: 100%;
    border-top-color: #DC2626;
    border-right-color: #DC2626;
    animation: spin-clockwise 1.5s linear infinite;
}

.spinner-ring-2 {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-bottom-color: #059669;
    border-left-color: #059669;
    animation: spin-counter 1.2s linear infinite;
}

.spinner-ring-3 {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    border-top-color: #F59E0B;
    border-right-color: #F59E0B;
    animation: spin-clockwise 0.9s linear infinite;
}

/* Center Logo Container */
.spinner-center {
    position: absolute;
    width: 50%;
    height: 50%;
    top: 25%;
    left: 25%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: pulse-glow 2s ease-in-out infinite;
}

.spinner-center img {
    width: 70%;
    height: 70%;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(220, 38, 38, 0.5));
}

.spinner-center i {
    font-size: 24px;
    background: linear-gradient(135deg, #DC2626, #F59E0B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes spin-clockwise {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes spin-counter {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(220, 38, 38, 0.3),
            0 0 40px rgba(5, 150, 105, 0.2),
            0 0 60px rgba(245, 158, 11, 0.1);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 30px rgba(220, 38, 38, 0.5),
            0 0 60px rgba(5, 150, 105, 0.3),
            0 0 90px rgba(245, 158, 11, 0.2);
        transform: scale(1.05);
    }
}

/* School Name */
.preloader-text {
    text-align: center;
}

.preloader-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    margin-bottom: 8px;
    animation: title-glow 2s ease-in-out infinite;
}

.preloader-title span {
    background: linear-gradient(135deg, #DC2626 0%, #F59E0B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes title-glow {

    0%,
    100% {
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
    }

    50% {
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
    }
}

.preloader-subtitle {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 4px;
    text-transform: uppercase;
}

/* Loading Bar */
.preloader-bar-container {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.preloader-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #DC2626, #F59E0B, #059669);
    background-size: 200% 100%;
    border-radius: 10px;
    animation: loading-bar 2s ease-out forwards, gradient-shift 1s linear infinite;
}

@keyframes loading-bar {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

/* Loading Dots */
.preloader-dots {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.preloader-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: dot-bounce 1.4s ease-in-out infinite;
}

.preloader-dot:nth-child(1) {
    background: #DC2626;
    animation-delay: 0s;
}

.preloader-dot:nth-child(2) {
    background: #F59E0B;
    animation-delay: 0.2s;
}

.preloader-dot:nth-child(3) {
    background: #059669;
    animation-delay: 0.4s;
}

@keyframes dot-bounce {

    0%,
    80%,
    100% {
        transform: scale(0.6);
        opacity: 0.5;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Particles */
.preloader-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.preloader-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    opacity: 0.6;
    animation: particle-rise 4s linear infinite;
}

.preloader-particle:nth-child(1) {
    left: 10%;
    background: #DC2626;
    animation-delay: 0s;
    animation-duration: 3s;
}

.preloader-particle:nth-child(2) {
    left: 25%;
    background: #059669;
    animation-delay: 0.5s;
    animation-duration: 3.5s;
}

.preloader-particle:nth-child(3) {
    left: 40%;
    background: #F59E0B;
    animation-delay: 1s;
    animation-duration: 4s;
}

.preloader-particle:nth-child(4) {
    left: 55%;
    background: #DC2626;
    animation-delay: 1.5s;
    animation-duration: 3.2s;
}

.preloader-particle:nth-child(5) {
    left: 70%;
    background: #059669;
    animation-delay: 2s;
    animation-duration: 3.8s;
}

.preloader-particle:nth-child(6) {
    left: 85%;
    background: #F59E0B;
    animation-delay: 2.5s;
    animation-duration: 4.2s;
}

@keyframes particle-rise {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
        transform: scale(1);
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(-20vh) scale(0);
        opacity: 0;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #DC2626, #059669);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #991B1B, #10B981);
}

/* Loading animation */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ============================================
   NAVIGATION BAR - GLASS PILL DESIGN
   ============================================ */

/* Nav Pill Container */
.nav-pill {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none !important;
    border: none !important;
}

.nav-pill:hover {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: none !important;
    border: none !important;
}

/* Nav on Scroll */
#navbar.scrolled .nav-pill {
    background: rgba(255, 255, 255, 1);
    box-shadow: none !important;
    border: none !important;
}

/* Increased header height on desktop only */
@media (min-width: 768px) {
    .nav-pill {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }
}

/* Nav Links */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #DC2626, #059669);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link:hover::after {
    width: 20px;
}

/* ============================================
   DESKTOP DROPDOWN MENU (Gallery & Games)
   ============================================ */

/* Dropdown Container */
.nav-dropdown {
    position: relative;
}

/* Dropdown Trigger Button */
.nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.nav-dropdown-trigger i {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .nav-dropdown-trigger i {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 180px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}

/* Show dropdown on hover */
.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Dropdown Items */
.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    text-decoration: none;
    color: #374151;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.nav-dropdown-item:hover {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.08) 0%, rgba(5, 150, 105, 0.08) 100%);
    color: #DC2626;
    transform: translateX(4px);
}

.nav-dropdown-item i {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    border-radius: 8px;
    color: #DC2626;
    font-size: 14px;
    transition: all 0.2s ease;
}

.nav-dropdown-item:hover i {
    background: linear-gradient(135deg, #DC2626 0%, #059669 100%);
    color: white;
    transform: rotate(-5deg) scale(1.1);
}

/* Active state for dropdown items */
.nav-dropdown-item.active {
    background: rgba(220, 38, 38, 0.12);
    color: #DC2626;
}

.nav-dropdown-item.active i {
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    color: white;
}

/* Dropdown Arrow Pointer */
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid rgba(255, 255, 255, 0.98);
}

/* Nav CTA Button */
.nav-cta-btn {
    position: relative;
    overflow: hidden;
}

.nav-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.nav-cta-btn:hover::before {
    left: 100%;
}

/* ============================================
   WEBFLOW-STYLE MOBILE MENU
   ============================================ */

/* Grid-Style Menu Icon (2x2 squares) */
.hamburger-icon {
    width: 22px;
    height: 22px;
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
}

.hamburger-square {
    width: 9px;
    height: 9px;
    background: #DC2626;
    border-radius: 3px;
    transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.hamburger-square-1 {
    transition-delay: 0s;
}

.hamburger-square-2 {
    transition-delay: 0.05s;
}

.hamburger-square-3 {
    transition-delay: 0.1s;
}

.hamburger-square-4 {
    transition-delay: 0.15s;
}

/* Grid Icon Hover State */
.hamburger-icon:hover .hamburger-square {
    background: #DC2626;
}

/* Grid Icon Active State - Transform to X */
.menu-open .hamburger-icon {
    gap: 0;
}

.menu-open .hamburger-square-1 {
    transform: translate(3px, 3px) rotate(45deg) scale(1.2);
    background: linear-gradient(135deg, #DC2626, #F59E0B);
    border-radius: 2px;
}

.menu-open .hamburger-square-2 {
    transform: translate(-3px, 3px) rotate(-45deg) scale(1.2);
    background: linear-gradient(135deg, #059669, #10B981);
    border-radius: 2px;
}

.menu-open .hamburger-square-3 {
    transform: translate(3px, -3px) rotate(-45deg) scale(1.2);
    background: linear-gradient(135deg, #059669, #10B981);
    border-radius: 2px;
}

.menu-open .hamburger-square-4 {
    transform: translate(-3px, -3px) rotate(45deg) scale(1.2);
    background: linear-gradient(135deg, #DC2626, #F59E0B);
    border-radius: 2px;
}

/* ============================================
   WEBFLOW-STYLE DROPDOWN MOBILE MENU
   ============================================ */

/* Dropdown Menu Container - Matching Header Style */
.mobile-dropdown-menu {
    margin-top: 12px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 24px;
    background: rgba(252, 228, 228, 0.96);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15),
        0 12px 24px -8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Menu Open State */
.mobile-dropdown-menu.active {
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    opacity: 1;
    transform: translateY(0);
}

/* Menu Content */
.mobile-dropdown-content {
    padding: 20px;
}

/* Navigation Links Container */
.mobile-dropdown-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Individual Navigation Link */
.mobile-dropdown-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    text-decoration: none;
    background: transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(-10px);
}

.mobile-dropdown-menu.active .mobile-dropdown-link {
    opacity: 1;
    transform: translateY(0);
    transition-delay: var(--delay, 0s);
}

.mobile-dropdown-link:hover {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.08) 0%, rgba(5, 150, 105, 0.08) 100%);
    transform: translateX(4px);
}

.mobile-dropdown-link:active {
    transform: scale(0.98);
}

/* Link Icon */
.mobile-dropdown-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    border-radius: 10px;
    color: #DC2626;
    font-size: 14px;
    transition: all 0.3s ease;
}

.mobile-dropdown-link:hover .mobile-dropdown-icon {
    background: linear-gradient(135deg, #DC2626 0%, #059669 100%);
    color: white;
    transform: rotate(-5deg) scale(1.1);
}

/* Link Text */
.mobile-dropdown-link span {
    flex: 1;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    transition: color 0.3s ease;
}

.mobile-dropdown-link:hover span {
    color: #DC2626;
}

/* Active Link State - Matches Desktop */
.mobile-dropdown-link.active {
    background: rgba(220, 38, 38, 0.15);
}

.mobile-dropdown-link.active .mobile-dropdown-icon {
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    color: white;
}

.mobile-dropdown-link.active span {
    color: #DC2626;
}

/* Link Arrow */
.mobile-dropdown-arrow {
    color: #6B7280;
    font-size: 12px;
    transition: all 0.3s ease;
    transform: translateX(-5px);
    opacity: 0;
}

.mobile-dropdown-link:hover .mobile-dropdown-arrow {
    color: #DC2626;
    transform: translateX(0);
    opacity: 1;
}

/* Divider */
.mobile-dropdown-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
    margin: 16px 0;
    opacity: 0;
    transition: opacity 0.3s ease 0.3s;
}

.mobile-dropdown-menu.active .mobile-dropdown-divider {
    opacity: 1;
}

/* CTA Button */
.mobile-dropdown-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
    border-radius: 14px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.25);
    opacity: 0;
    transform: translateY(-10px);
}

.mobile-dropdown-menu.active .mobile-dropdown-cta {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.35s;
}

.mobile-dropdown-cta:hover {
    background: linear-gradient(135deg, #059669 0%, #10B981 100%);
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.25);
    transform: translateY(-2px);
}

.mobile-dropdown-cta i {
    transition: transform 0.3s ease;
}

.mobile-dropdown-cta:hover i {
    transform: translateX(4px);
}

/* Footer Section */
.mobile-dropdown-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease 0.4s;
}

.mobile-dropdown-menu.active .mobile-dropdown-footer {
    opacity: 1;
    transform: translateY(0);
}

/* Contact Link */
.mobile-dropdown-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    color: #4B5563;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-dropdown-contact:hover {
    color: #059669;
}

.mobile-dropdown-contact i {
    color: #059669;
    font-size: 12px;
}

/* Social Links */
.mobile-dropdown-social {
    display: flex;
    gap: 8px;
}

.mobile-dropdown-social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    color: #4B5563;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-dropdown-social-link:hover {
    background: linear-gradient(135deg, #DC2626 0%, #059669 100%);
    color: white;
    transform: translateY(-2px);
}

/* Body scroll lock when menu is open */
body.menu-open {
    overflow: hidden;
}

/* ============================================
   CONTACT SECTION ANIMATIONS
   ============================================ */

/* Floating Animation for Orbs */
@keyframes float-slow {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(30px, -30px) rotate(5deg);
    }

    50% {
        transform: translate(-20px, 20px) rotate(-5deg);
    }

    75% {
        transform: translate(20px, 30px) rotate(3deg);
    }
}

@keyframes float-slow-reverse {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(-30px, 30px) rotate(-5deg);
    }

    50% {
        transform: translate(20px, -20px) rotate(5deg);
    }

    75% {
        transform: translate(-20px, -30px) rotate(-3deg);
    }
}

@keyframes pulse-slow {

    0%,
    100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.animate-float-slow {
    animation: float-slow 15s ease-in-out infinite;
}

.animate-float-slow-reverse {
    animation: float-slow-reverse 18s ease-in-out infinite;
}

.animate-pulse-slow {
    animation: pulse-slow 8s ease-in-out infinite;
}

/* Gradient Animation */
@keyframes gradient-x {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.animate-gradient-x {
    animation: gradient-x 3s ease infinite;
    background-size: 200% 200%;
}

/* Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.animate-shimmer {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
}

/* Particle Animations */
.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #DC2626, #059669);
    opacity: 0.6;
    animation: particle-float 20s infinite;
}

.particle::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: inherit;
    border-radius: 50%;
    filter: blur(4px);
    opacity: 0.5;
}

@keyframes particle-float {

    0%,
    100% {
        opacity: 0;
        transform: translateY(100vh) rotate(0deg);
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        opacity: 0;
        transform: translateY(-100vh) rotate(720deg);
    }
}

.particle-1 {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 25s;
    background: linear-gradient(135deg, #DC2626, #F59E0B);
}

.particle-2 {
    left: 20%;
    animation-delay: 2s;
    animation-duration: 22s;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #059669, #10B981);
}

.particle-3 {
    left: 35%;
    animation-delay: 4s;
    animation-duration: 28s;
    width: 4px;
    height: 4px;
    background: linear-gradient(135deg, #F59E0B, #DC2626);
}

.particle-4 {
    left: 50%;
    animation-delay: 1s;
    animation-duration: 20s;
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #DC2626, #059669);
}

.particle-5 {
    left: 65%;
    animation-delay: 3s;
    animation-duration: 26s;
    background: linear-gradient(135deg, #10B981, #059669);
}

.particle-6 {
    left: 75%;
    animation-delay: 5s;
    animation-duration: 23s;
    width: 7px;
    height: 7px;
    background: linear-gradient(135deg, #F59E0B, #10B981);
}

.particle-7 {
    left: 85%;
    animation-delay: 2.5s;
    animation-duration: 27s;
    width: 5px;
    height: 5px;
    background: linear-gradient(135deg, #DC2626, #991B1B);
}

.particle-8 {
    left: 95%;
    animation-delay: 4.5s;
    animation-duration: 21s;
    width: 9px;
    height: 9px;
    background: linear-gradient(135deg, #059669, #F59E0B);
}

/* Contact Card Styling */
.contact-card {
    position: relative;
    cursor: pointer;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 1rem;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.05) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-card:hover::before {
    opacity: 1;
}

/* Form Input Focus Animation */
.form-group input:focus,
.form-group textarea:focus {
    box-shadow: 0 0 30px rgba(220, 38, 38, 0.15);
}

/* Submit Button Ripple Effect */
.contact-submit-btn {
    position: relative;
    overflow: hidden;
}

.contact-submit-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.6s, height 0.6s;
}

.contact-submit-btn:active::after {
    width: 300px;
    height: 300px;
}

/* Social Icon Hover Effects */
.social-icon-link {
    transition: transform 0.3s ease;
}

.social-icon-link:hover {
    transform: translateY(-3px);
}

/* Glow Effect on Input Focus */
.form-group input:focus+div,
.form-group textarea:focus+div {
    opacity: 1 !important;
    background: linear-gradient(90deg, rgba(220, 38, 38, 0.2), rgba(5, 150, 105, 0.2));
}

/* Contact Section Background Animation */
.contact-section {
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(220, 38, 38, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(5, 150, 105, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Typing Cursor Animation for Form Labels */
@keyframes blink {

    0%,
    50%,
    100% {
        opacity: 1;
    }

    25%,
    75% {
        opacity: 0;
    }
}

/* Hover glow for cards */
@keyframes particle-float {

    0%,
    100% {
        opacity: 0;
        transform: translateY(100vh) rotate(0deg);
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        opacity: 0;
        transform: translateY(-100vh) rotate(720deg);
    }
}

.particle-1 {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 25s;
    background: linear-gradient(135deg, #DC2626, #F59E0B);
}

.particle-2 {
    left: 20%;
    animation-delay: 2s;
    animation-duration: 22s;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #059669, #10B981);
}

.particle-3 {
    left: 35%;
    animation-delay: 4s;
    animation-duration: 28s;
    width: 4px;
    height: 4px;
    background: linear-gradient(135deg, #F59E0B, #DC2626);
}

.particle-4 {
    left: 50%;
    animation-delay: 1s;
    animation-duration: 20s;
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #DC2626, #059669);
}

.particle-5 {
    left: 65%;
    animation-delay: 3s;
    animation-duration: 26s;
    background: linear-gradient(135deg, #10B981, #059669);
}

.particle-6 {
    left: 75%;
    animation-delay: 5s;
    animation-duration: 23s;
    width: 7px;
    height: 7px;
    background: linear-gradient(135deg, #F59E0B, #10B981);
}

.particle-7 {
    left: 85%;
    animation-delay: 2.5s;
    animation-duration: 27s;
    width: 5px;
    height: 5px;
    background: linear-gradient(135deg, #DC2626, #991B1B);
}

.particle-8 {
    left: 95%;
    animation-delay: 4.5s;
    animation-duration: 21s;
    width: 9px;
    height: 9px;
    background: linear-gradient(135deg, #059669, #F59E0B);
}

/* Contact Card Styling */
.contact-card {
    position: relative;
    cursor: pointer;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 1rem;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.05) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-card:hover::before {
    opacity: 1;
}

/* Form Input Focus Animation */
.form-group input:focus,
.form-group textarea:focus {
    box-shadow: 0 0 30px rgba(220, 38, 38, 0.15);
}

/* Submit Button Ripple Effect */
.contact-submit-btn {
    position: relative;
    overflow: hidden;
}

.contact-submit-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.6s, height 0.6s;
}

.contact-submit-btn:active::after {
    width: 300px;
    height: 300px;
}

/* Social Icon Hover Effects */
.social-icon-link {
    transition: transform 0.3s ease;
}

.social-icon-link:hover {
    transform: translateY(-3px);
}

/* Glow Effect on Input Focus */
.form-group input:focus+div,
.form-group textarea:focus+div {
    opacity: 1 !important;
    background: linear-gradient(90deg, rgba(220, 38, 38, 0.2), rgba(5, 150, 105, 0.2));
}

/* Contact Section Background Animation */
.contact-section {
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(220, 38, 38, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(5, 150, 105, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Typing Cursor Animation for Form Labels */
@keyframes blink {

    0%,
    50%,
    100% {
        opacity: 1;
    }

    25%,
    75% {
        opacity: 0;
    }
}

/* Hover glow for cards */
.contact-card:hover .relative.bg-gradient-to-br {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Smooth scale on form card hover */
.contact-section .group:hover>.relative {
    transform: scale(1.01);
}

/* ============================================
   HERO SECTION ANIMATIONS
   ============================================ */

/* Hero Floating Animation */
@keyframes hero-float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(40px, -30px) scale(1.05);
    }

    50% {
        transform: translate(-30px, 40px) scale(0.95);
    }

    75% {
        transform: translate(30px, 20px) scale(1.02);
    }
}

@keyframes hero-float-reverse {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(-40px, 30px) scale(0.95);
    }

    50% {
        transform: translate(30px, -40px) scale(1.05);
    }

    75% {
        transform: translate(-30px, -20px) scale(0.98);
    }
}

.animate-hero-float {
    animation: hero-float 20s ease-in-out infinite;
}

.animate-hero-float-reverse {
    animation: hero-float-reverse 25s ease-in-out infinite;
}

/* Floating Shapes */
.hero-shape {
    position: absolute;
    border-radius: 8px;
    opacity: 0.15;
    animation: shape-float 15s ease-in-out infinite;
}

.hero-shape-1 {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #DC2626, #F59E0B);
    top: 15%;
    left: 5%;
    animation-delay: 0s;
    transform: rotate(45deg);
}

.hero-shape-2 {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #059669, #10B981);
    top: 60%;
    left: 8%;
    animation-delay: 2s;
    transform: rotate(30deg);
}

.hero-shape-3 {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #F59E0B, #DC2626);
    bottom: 20%;
    right: 10%;
    animation-delay: 4s;
    transform: rotate(60deg);
}

@keyframes shape-float {

    0%,
    100% {
        transform: translateY(0) rotate(45deg);
        opacity: 0.15;
    }

    50% {
        transform: translateY(-30px) rotate(90deg);
        opacity: 0.25;
    }
}

/* Floating Circles */
.hero-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: circle-float 18s ease-in-out infinite;
}

.hero-circle-1 {
    width: 100px;
    height: 100px;
    border: 3px solid #DC2626;
    top: 10%;
    right: 15%;
    animation-delay: 0s;
}

.hero-circle-2 {
    width: 60px;
    height: 60px;
    border: 2px solid #059669;
    top: 40%;
    left: 3%;
    animation-delay: 3s;
}

.hero-circle-3 {
    width: 80px;
    height: 80px;
    border: 3px solid #F59E0B;
    bottom: 15%;
    left: 15%;
    animation-delay: 6s;
}

@keyframes circle-float {

    0%,
    100% {
        transform: scale(1) translateY(0);
        opacity: 0.1;
    }

    50% {
        transform: scale(1.1) translateY(-20px);
        opacity: 0.2;
    }
}

/* Floating Triangles */
.hero-triangle {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0.12;
    animation: triangle-float 20s ease-in-out infinite;
}

.hero-triangle-1 {
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 40px solid #DC2626;
    top: 25%;
    right: 5%;
    animation-delay: 1s;
}

.hero-triangle-2 {
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 35px solid #059669;
    bottom: 30%;
    left: 10%;
    animation-delay: 5s;
}

@keyframes triangle-float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.12;
    }

    50% {
        transform: translateY(-25px) rotate(180deg);
        opacity: 0.2;
    }
}

/* Slide Up Animation for Text */
@keyframes slide-up {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-slide-up {
    animation: slide-up 0.8s ease-out forwards;
    opacity: 0;
}

/* Hero Gradient Text */
.hero-gradient-text {
    background: linear-gradient(135deg, #DC2626 0%, #F59E0B 50%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradient-shift 4s ease infinite;
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Fade In Up Animation */
@keyframes fade-in-up {
    0% {
        transform: translateY(30px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-fade-in-up {
    animation: fade-in-up 1s ease-out forwards;
    opacity: 0;
}

/* Float Animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* Slow Spin Animation */
@keyframes spin-slow {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.animate-spin-slow {
    animation: spin-slow 20s linear infinite;
}

/* Scroll Down Animation */
@keyframes scroll-down {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 20px);
        opacity: 0;
    }
}

.animate-scroll-down {
    animation: scroll-down 1.5s ease-in-out infinite;
}

/* Hero Image Container Effects */
.hero-image-container {
    transition: transform 0.5s ease;
}

.hero-image-container:hover {
    transform: translateY(-5px);
}

/* Hero Button Primary */
.hero-btn-primary {
    position: relative;
    z-index: 1;
}

/* Hero Button Secondary */
.hero-btn-secondary {
    position: relative;
    z-index: 1;
}

/* Hero Buttons - Mobile Responsive */
@media (max-width: 640px) {

    .hero-btn-primary,
    .hero-btn-secondary {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.875rem !important;
    }

    .hero-btn-primary span.relative,
    .hero-btn-secondary span.relative {
        gap: 0.375rem;
    }

    .hero-btn-primary i,
    .hero-btn-secondary i {
        font-size: 0.75rem;
    }
}

/* Stat Card Hover */
.stat-card {
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

/* Hero Section Background */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(220, 38, 38, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(5, 150, 105, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

/* Hero Stat Number Pulse */
.hero-stat-number {
    display: inline-block;
}

@keyframes number-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.hero-stat-number:hover {
    animation: number-pulse 0.5s ease-in-out;
}

/* ============================================
   FLOATING EDUCATION ICONS
   ============================================ */

/* Container for floating icons */
.floating-icons-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Base floating icon styles */
.floating-edu-icon {
    position: absolute;
    opacity: 0.12;
    font-size: 2rem;
    color: #DC2626;
    animation: edu-float 20s ease-in-out infinite;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    transition: opacity 0.3s ease, transform 0.3s ease;
    /* GPU acceleration for smooth performance */
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.floating-edu-icon:hover {
    opacity: 0.3;
    transform: scale(1.2) translateZ(0);
}

/* Different sizes */
.floating-edu-icon.icon-sm {
    font-size: 1.2rem;
    opacity: 0.08;
}

.floating-edu-icon.icon-md {
    font-size: 1.8rem;
    opacity: 0.1;
}

.floating-edu-icon.icon-lg {
    font-size: 2.5rem;
    opacity: 0.15;
}

.floating-edu-icon.icon-xl {
    font-size: 3.5rem;
    opacity: 0.08;
}

/* Color variations */
.floating-edu-icon.icon-red {
    color: #DC2626;
}

.floating-edu-icon.icon-green {
    color: #059669;
}

.floating-edu-icon.icon-gold {
    color: #F59E0B;
}

.floating-edu-icon.icon-blue {
    color: #3B82F6;
}

.floating-edu-icon.icon-purple {
    color: #8B5CF6;
}

.floating-edu-icon.icon-gradient {
    background: linear-gradient(135deg, #DC2626, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Main floating animation */
@keyframes edu-float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }

    25% {
        transform: translateY(-30px) rotate(5deg) scale(1.05);
    }

    50% {
        transform: translateY(-15px) rotate(-3deg) scale(0.95);
    }

    75% {
        transform: translateY(-40px) rotate(8deg) scale(1.02);
    }
}

/* Alternative floating animation - diagonal */
@keyframes edu-float-diagonal {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(20px, -25px) rotate(10deg);
    }

    50% {
        transform: translate(-15px, -50px) rotate(-5deg);
    }

    75% {
        transform: translate(25px, -30px) rotate(15deg);
    }
}

/* Spinning float animation */
@keyframes edu-float-spin {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-40px) rotate(180deg);
    }
}

/* Gentle bounce animation */
@keyframes edu-float-bounce {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    25% {
        transform: translateY(-20px) scale(1.1);
    }

    50% {
        transform: translateY(-35px) scale(1);
    }

    75% {
        transform: translateY(-15px) scale(0.95);
    }
}

/* Sway animation */
@keyframes edu-float-sway {

    0%,
    100% {
        transform: translateX(0) rotate(0deg);
    }

    25% {
        transform: translateX(15px) rotate(5deg);
    }

    50% {
        transform: translateX(-15px) rotate(-5deg);
    }

    75% {
        transform: translateX(10px) rotate(3deg);
    }
}

/* Rising animation */
@keyframes edu-float-rise {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.15;
    }

    90% {
        opacity: 0.15;
    }

    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Apply different animations to specific icons */
.floating-edu-icon.anim-diagonal {
    animation-name: edu-float-diagonal;
}

.floating-edu-icon.anim-spin {
    animation-name: edu-float-spin;
}

.floating-edu-icon.anim-bounce {
    animation-name: edu-float-bounce;
}

.floating-edu-icon.anim-sway {
    animation-name: edu-float-sway;
}

.floating-edu-icon.anim-rise {
    animation-name: edu-float-rise;
    animation-duration: 30s;
}

/* Position variations for icons */
.edu-icon-1 {
    top: 8%;
    left: 5%;
    animation-delay: 0s;
    animation-duration: 18s;
}

.edu-icon-2 {
    top: 15%;
    right: 8%;
    animation-delay: 2s;
    animation-duration: 22s;
}

.edu-icon-3 {
    top: 25%;
    left: 12%;
    animation-delay: 4s;
    animation-duration: 25s;
}

.edu-icon-4 {
    top: 35%;
    right: 15%;
    animation-delay: 1s;
    animation-duration: 20s;
}

.edu-icon-5 {
    top: 45%;
    left: 3%;
    animation-delay: 3s;
    animation-duration: 24s;
}

.edu-icon-6 {
    top: 55%;
    right: 5%;
    animation-delay: 5s;
    animation-duration: 19s;
}

.edu-icon-7 {
    top: 65%;
    left: 8%;
    animation-delay: 2.5s;
    animation-duration: 21s;
}

.edu-icon-8 {
    top: 75%;
    right: 12%;
    animation-delay: 4.5s;
    animation-duration: 23s;
}

.edu-icon-9 {
    top: 85%;
    left: 15%;
    animation-delay: 1.5s;
    animation-duration: 26s;
}

.edu-icon-10 {
    top: 20%;
    left: 50%;
    animation-delay: 3.5s;
    animation-duration: 17s;
}

.edu-icon-11 {
    top: 40%;
    left: 45%;
    animation-delay: 0.5s;
    animation-duration: 28s;
}

.edu-icon-12 {
    top: 60%;
    left: 55%;
    animation-delay: 6s;
    animation-duration: 22s;
}

.edu-icon-13 {
    top: 10%;
    left: 25%;
    animation-delay: 7s;
    animation-duration: 24s;
}

.edu-icon-14 {
    top: 50%;
    right: 25%;
    animation-delay: 3s;
    animation-duration: 19s;
}

.edu-icon-15 {
    top: 70%;
    left: 35%;
    animation-delay: 5.5s;
    animation-duration: 21s;
}

.edu-icon-16 {
    top: 30%;
    left: 70%;
    animation-delay: 2s;
    animation-duration: 25s;
}

.edu-icon-17 {
    top: 80%;
    right: 30%;
    animation-delay: 4s;
    animation-duration: 20s;
}

.edu-icon-18 {
    top: 5%;
    left: 40%;
    animation-delay: 1s;
    animation-duration: 23s;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .floating-edu-icon {
        opacity: 0.05;
        font-size: 1rem !important;
    }

    /* Show only select icons on mobile for performance */
    .edu-icon-2,
    .edu-icon-4,
    .edu-icon-6,
    .edu-icon-8,
    .edu-icon-10,
    .edu-icon-12,
    .edu-icon-14,
    .edu-icon-16,
    .edu-icon-18 {
        display: none;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .floating-edu-icon {
        opacity: 0.07;
    }

    /* Hide some icons on tablet */
    .edu-icon-10,
    .edu-icon-11,
    .edu-icon-12,
    .edu-icon-17,
    .edu-icon-18 {
        display: none;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .floating-edu-icon {
        animation: none;
    }
}

/* ============================================
   ROTATING GRADIENT BORDER ANIMATION
   ============================================ */

/* Rotating border animation keyframes */
@keyframes rotate-border {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Feature card with rotating border */
.feature-card-glow {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    overflow: hidden;
}

.feature-card-glow::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg,
            #DC2626,
            #F59E0B,
            #059669,
            #10B981,
            #3B82F6,
            #8B5CF6,
            #EC4899,
            #DC2626);
    animation: rotate-border 4s linear infinite;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.feature-card-glow:hover::before {
    opacity: 1;
}

.feature-card-glow::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.98), rgba(31, 41, 55, 0.98));
    border-radius: calc(1rem - 2px);
    z-index: 1;
}

.feature-card-glow .card-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
}

/* Alternative: Always visible rotating border */
.feature-card-glow-always::before {
    opacity: 0.6;
}

.feature-card-glow-always:hover::before {
    opacity: 1;
}

/* Slower rotation variant */
.rotate-slow::before {
    animation-duration: 6s;
}

/* Faster rotation variant */
.rotate-fast::before {
    animation-duration: 2s;
}

/* Touch screen / Mobile support - always show the rotating border */
@media (hover: none) and (pointer: coarse) {
    .feature-card-glow::before {
        opacity: 0.7;
    }

    .feature-card-glow:active::before {
        opacity: 1;
    }
}

/* Also for small screens (mobile) */
@media (max-width: 768px) {
    .feature-card-glow::before {
        opacity: 0.6;
    }

    .feature-card-glow:active::before {
        opacity: 1;
    }
}

/* ============================================
   3D GLASS CAROUSEL SECTION
   ============================================ */

/* Carousel Wrapper */
.carousel-3d-wrapper {
    perspective: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 450px;
    padding: 40px 0;
    position: relative;
}

/* 3D Carousel Container */
.carousel-3d {
    position: relative;
    width: 200px;
    height: 280px;
    transform-style: preserve-3d;
    animation: carousel-rotate 25s linear infinite;
}

.carousel-3d.paused {
    animation-play-state: paused;
}

@keyframes carousel-rotate {
    from {
        transform: rotateY(0deg);
    }

    to {
        transform: rotateY(360deg);
    }
}

/* Individual Carousel Cards */
.carousel-card {
    position: absolute;
    width: 180px;
    height: 240px;
    left: 50%;
    top: 50%;
    margin-left: -90px;
    margin-top: -120px;
    border-radius: 20px;
    background: var(--card-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 20px var(--card-glow),
        inset 0 0 30px rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

/* Position cards in a circle */
.carousel-card:nth-child(1) {
    transform: rotateY(0deg) translateZ(320px);
}

.carousel-card:nth-child(2) {
    transform: rotateY(45deg) translateZ(320px);
}

.carousel-card:nth-child(3) {
    transform: rotateY(90deg) translateZ(320px);
}

.carousel-card:nth-child(4) {
    transform: rotateY(135deg) translateZ(320px);
}

.carousel-card:nth-child(5) {
    transform: rotateY(180deg) translateZ(320px);
}

.carousel-card:nth-child(6) {
    transform: rotateY(225deg) translateZ(320px);
}

.carousel-card:nth-child(7) {
    transform: rotateY(270deg) translateZ(320px);
}

.carousel-card:nth-child(8) {
    transform: rotateY(315deg) translateZ(320px);
}

/* Card Hover State */
.carousel-card:hover {
    transform: rotateY(inherit) translateZ(360px) scale(1.1);
    box-shadow:
        0 12px 48px rgba(0, 0, 0, 0.4),
        0 0 40px var(--card-glow),
        inset 0 0 40px rgba(255, 255, 255, 0.1);
    z-index: 100;
}

/* Card Inner Content */
.card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 24px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.carousel-card:hover .card-icon {
    transform: scale(1.1) rotate(10deg);
    background: rgba(255, 255, 255, 0.25);
}

.card-icon i {
    font-size: 26px;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.card-inner h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.card-inner p {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

/* Card Shine Effect */
.card-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.carousel-card:hover .card-shine {
    left: 150%;
}

/* Glass Reflection on Top */
.carousel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.15) 0%,
            rgba(255, 255, 255, 0.05) 50%,
            transparent 100%);
    border-radius: 20px 20px 0 0;
    pointer-events: none;
}

/* Carousel Controls */
.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.carousel-btn:active {
    transform: scale(0.95);
}

.carousel-pause {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.3), rgba(103, 232, 249, 0.3));
}

.carousel-pause:hover {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.5), rgba(103, 232, 249, 0.5));
}

/* Responsive Design for 3D Carousel */
@media (max-width: 1024px) {
    .carousel-3d-wrapper {
        min-height: 400px;
    }

    .carousel-card {
        width: 160px;
        height: 220px;
        margin-left: -80px;
        margin-top: -110px;
    }

    .carousel-card:nth-child(1) {
        transform: rotateY(0deg) translateZ(280px);
    }

    .carousel-card:nth-child(2) {
        transform: rotateY(45deg) translateZ(280px);
    }

    .carousel-card:nth-child(3) {
        transform: rotateY(90deg) translateZ(280px);
    }

    .carousel-card:nth-child(4) {
        transform: rotateY(135deg) translateZ(280px);
    }

    .carousel-card:nth-child(5) {
        transform: rotateY(180deg) translateZ(280px);
    }

    .carousel-card:nth-child(6) {
        transform: rotateY(225deg) translateZ(280px);
    }

    .carousel-card:nth-child(7) {
        transform: rotateY(270deg) translateZ(280px);
    }

    .carousel-card:nth-child(8) {
        transform: rotateY(315deg) translateZ(280px);
    }

    .carousel-card:hover {
        transform: rotateY(inherit) translateZ(320px) scale(1.08);
    }
}

@media (max-width: 768px) {
    .carousel-3d-wrapper {
        min-height: 380px;
        perspective: 1000px;
    }

    .carousel-card {
        width: 140px;
        height: 200px;
        margin-left: -70px;
        margin-top: -100px;
        border-radius: 16px;
    }

    .carousel-card:nth-child(1) {
        transform: rotateY(0deg) translateZ(220px);
    }

    .carousel-card:nth-child(2) {
        transform: rotateY(45deg) translateZ(220px);
    }

    .carousel-card:nth-child(3) {
        transform: rotateY(90deg) translateZ(220px);
    }

    .carousel-card:nth-child(4) {
        transform: rotateY(135deg) translateZ(220px);
    }

    .carousel-card:nth-child(5) {
        transform: rotateY(180deg) translateZ(220px);
    }

    .carousel-card:nth-child(6) {
        transform: rotateY(225deg) translateZ(220px);
    }

    .carousel-card:nth-child(7) {
        transform: rotateY(270deg) translateZ(220px);
    }

    .carousel-card:nth-child(8) {
        transform: rotateY(315deg) translateZ(220px);
    }

    .card-icon {
        width: 50px;
        height: 50px;
    }

    .card-icon i {
        font-size: 22px;
    }

    .card-inner h3 {
        font-size: 1rem;
    }

    .card-inner p {
        font-size: 0.75rem;
    }

    .carousel-btn {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .carousel-3d-wrapper {
        min-height: 340px;
        perspective: 800px;
    }

    .carousel-card {
        width: 120px;
        height: 180px;
        margin-left: -60px;
        margin-top: -90px;
        border-radius: 14px;
    }

    .carousel-card:nth-child(1) {
        transform: rotateY(0deg) translateZ(180px);
    }

    .carousel-card:nth-child(2) {
        transform: rotateY(45deg) translateZ(180px);
    }

    .carousel-card:nth-child(3) {
        transform: rotateY(90deg) translateZ(180px);
    }

    .carousel-card:nth-child(4) {
        transform: rotateY(135deg) translateZ(180px);
    }

    .carousel-card:nth-child(5) {
        transform: rotateY(180deg) translateZ(180px);
    }

    .carousel-card:nth-child(6) {
        transform: rotateY(225deg) translateZ(180px);
    }

    .carousel-card:nth-child(7) {
        transform: rotateY(270deg) translateZ(180px);
    }

    .carousel-card:nth-child(8) {
        transform: rotateY(315deg) translateZ(180px);
    }

    .card-inner {
        padding: 16px;
    }

    .card-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 12px;
    }

    .card-icon i {
        font-size: 18px;
    }

    .card-inner h3 {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }

    .card-inner p {
        font-size: 0.7rem;
    }

    .carousel-controls {
        gap: 12px;
        margin-top: 30px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

/* ============================================
   SOURCE CODE PROTECTION STYLES
   ============================================ */

/* Disable text selection globally (except input fields) */
body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Allow selection in form elements */
input,
textarea,
select,
[contenteditable="true"] {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Disable image dragging */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    pointer-events: auto;
}

/* Disable print styling */
@media print {
    body {
        display: none !important;
    }

    html::before {
        content: "Printing is disabled for this website.";
        display: block;
        font-size: 24px;
        text-align: center;
        padding: 100px 20px;
        font-family: 'Plus Jakarta Sans', sans-serif;
    }
}