/* Creative Enhancements */

/* Animated Particles in Hero */
.hero {
    position: relative;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: float 6s infinite ease-in-out;
}

.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; top: 60%; animation-delay: 1s; }
.particle:nth-child(3) { left: 30%; top: 40%; animation-delay: 2s; }
.particle:nth-child(4) { left: 40%; top: 70%; animation-delay: 0.5s; }
.particle:nth-child(5) { left: 50%; top: 30%; animation-delay: 1.5s; }
.particle:nth-child(6) { left: 60%; top: 80%; animation-delay: 2.5s; }
.particle:nth-child(7) { left: 70%; top: 50%; animation-delay: 1s; }
.particle:nth-child(8) { left: 80%; top: 25%; animation-delay: 3s; }
.particle:nth-child(9) { left: 90%; top: 65%; animation-delay: 0.7s; }
.particle:nth-child(10) { left: 15%; top: 85%; animation-delay: 2s; }

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0.3; }
    25% { transform: translateY(-20px) translateX(10px); opacity: 0.7; }
    50% { transform: translateY(-40px) translateX(-10px); opacity: 1; }
    75% { transform: translateY(-20px) translateX(10px); opacity: 0.7; }
}

/* Decorative Shapes */
.section-decoration {
    position: absolute;
    pointer-events: none;
    opacity: 0.05;
    z-index: 0;
}

.decoration-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 3px solid var(--blue);
    position: absolute;
}

.decoration-square {
    width: 150px;
    height: 150px;
    border: 3px solid var(--light-blue);
    position: absolute;
    transform: rotate(45deg);
}

.about-section {
    position: relative;
}

.about-section .decoration-circle {
    top: -50px;
    right: 10%;
}

.about-section .decoration-square {
    bottom: 50px;
    left: 5%;
}

/* Enhanced Event Card with Ribbon */
.event-card {
    position: relative;
}

.event-ribbon {
    position: absolute;
    top: 20px;
    right: -10px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
    padding: 8px 25px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(238, 90, 111, 0.4);
    z-index: 10;
}

.event-ribbon::before {
    content: '';
    position: absolute;
    right: 0;
    bottom: -10px;
    width: 0;
    height: 0;
    border-right: 10px solid #c4294d;
    border-bottom: 10px solid transparent;
}

/* Animated Date Badge Enhancement */
.head-image {
    position: relative;
}

.head-image::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: 15px;
    bottom: 15px;
    border: 3px solid var(--blue);
    border-radius: 20px;
    z-index: -1;
}

.head-image::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: -15px;
    bottom: -15px;
    background: linear-gradient(135deg, rgba(9, 146, 194, 0.1), rgba(10, 196, 224, 0.1));
    border-radius: 20px;
    z-index: -2;
}

/* Enhanced Teachers Section */
.faculty-photo {
    position: relative;
    overflow: hidden;
}

.faculty-photo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(9, 146, 194, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.faculty-photo:hover::before {
    opacity: 1;
}

.faculty-photo img {
    transition: transform 0.5s ease;
}

.faculty-photo:hover img {
    transform: scale(1.05);
}

/* Section Title Underline Animation */
.about-section h2,
.school-head h2,
.teachers-section h2,
.events-section h2 {
    position: relative;
    padding-bottom: 1rem;
}

.about-section h2::after,
.school-head h2::after,
.teachers-section h2::after,
.events-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--blue), var(--light-blue));
    border-radius: 2px;
}

/* Quote/Highlight Styling for Content */
.head-description p:first-of-type {
    position: relative;
    padding-left: 20px;
    border-left: 4px solid var(--blue);
    font-style: italic;
    color: var(--blue);
    font-weight: 500;
}

/* Animated Date Badge Enhancement */
.event-date {
    position: relative;
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(11, 45, 114, 0.3); }
    50% { box-shadow: 0 6px 25px rgba(11, 45, 114, 0.5); }
}

/* Scroll Reveal Animations Enhancement */
.hero-logo {
    animation: heroFloat 4s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Scroll Reveal Animations Enhancement */
.scroll-animate {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate.fade-in-up {
    transform: translateY(50px);
}

.scroll-animate.fade-in {
    transform: scale(0.95);
}

.scroll-animate.scale-up {
    transform: scale(0.9);
}

.scroll-animate.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Hover Glow Effect */
.event-card:hover {
    box-shadow: 0 10px 40px rgba(9, 146, 194, 0.3);
}

/* Creative Background Pattern */
.events-section {
    position: relative;
    overflow: hidden;
}

.events-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(10, 196, 224, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .decoration-circle,
    .decoration-square {
        display: none;
    }
    
    .event-ribbon {
        font-size: 0.7rem;
        padding: 6px 15px;
        top: 10px;
        right: -5px;
    }
    
    .head-image::before,
    .head-image::after {
        display: none;
    }
}
