/* Enhanced Footer Styles */
:root {
    --footer-primary: #0a2342;
    --footer-secondary: #126e82;
    --footer-accent: #ff8c42;
    --footer-text: #ffffff;
    --footer-light: rgba(255, 255, 255, 0.7);
    --footer-dark: #061a33;
    --footer-border: rgba(255, 255, 255, 0.1);
    --transition-slow: 0.5s ease;
    --transition-medium: 0.3s ease;
    --transition-fast: 0.2s ease;
    --footer-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
    --card-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    --input-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Footer Animation Keyframes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(255, 140, 66, 0.4);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 140, 66, 0.6);
    }
    100% {
        box-shadow: 0 0 5px rgba(255, 140, 66, 0.4);
    }
}

/* Main Footer Styles */
.site-footer {
    position: relative;
    background-color: var(--footer-primary);
    background-image: linear-gradient(135deg, var(--footer-primary) 0%, var(--footer-secondary) 100%);
    color: var(--footer-text);
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
    box-shadow: var(--footer-shadow);
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.02);
    opacity: 0.05;
    pointer-events: none;
    z-index: 1;
}

.footer-particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 3;
}

/* Footer Top Section */
.footer-top {
    padding: 80px 0 60px;
    position: relative;
    z-index: 3;
}

.footer-logo-section {
    text-align: center;
    margin-bottom: 30px;
}

.footer-logo {
    height: 150px;
    width: auto;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer-logo-section h2 {
    font-size: 24px;
    color: var(--footer-text);
    margin-bottom: 10px;
    font-weight: 600;
}

.footer-logo-section p {
    font-size: 16px;
    color: var(--footer-text-light);
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    color: var(--footer-text);
    font-size: 16px;
    transition: all var(--transition-medium);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease-out forwards;
}

.social-icon:nth-child(1) { animation-delay: 0.2s; }
.social-icon:nth-child(2) { animation-delay: 0.3s; }
.social-icon:nth-child(3) { animation-delay: 0.4s; }
.social-icon:nth-child(4) { animation-delay: 0.5s; }

.social-icon:hover {
    background: var(--footer-accent);
    color: var(--footer-dark);
    transform: translateY(-5px) rotate(360deg);
    animation: glow 2s infinite;
}

/* Footer Widgets */
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 30px;
}

.footer-widget {
    animation: fadeInUp 0.8s ease-out forwards;
}

.footer-widget:nth-child(1) { animation-delay: 0.2s; }
.footer-widget:nth-child(2) { animation-delay: 0.4s; }
.footer-widget:nth-child(3) { animation-delay: 0.6s; }

.footer-widget h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-divider {
    width: 100%;
    position: relative;
    height: 2px;
    background: linear-gradient(to right, var(--footer-accent), transparent);
    margin-bottom: 25px;
}

.footer-divider span {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--footer-accent);
    border-radius: 50%;
    top: -3px;
    left: 0;
    box-shadow: 0 0 10px rgba(255, 140, 66, 0.8);
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
    transition: transform var(--transition-fast);
    transform-origin: left;
}

.footer-links li:hover {
    transform: translateX(5px);
}

.footer-links a {
    color: var(--footer-light);
    text-decoration: none;
    font-size: 15px;
    display: flex;
    align-items: center;
    transition: color var(--transition-fast);
}

.footer-links a i {
    margin-right: 8px;
    font-size: 12px;
    color: var(--footer-accent);
    transition: transform var(--transition-fast);
}

.footer-links a:hover {
    color: var(--footer-text);
}

.footer-links a:hover i {
    transform: translateX(3px);
}

/* Contact Info Styles */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    transition: transform var(--transition-medium);
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item i {
    font-size: 18px;
    color: var(--footer-accent);
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-medium);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-item:hover i {
    background: var(--footer-accent);
    color: var(--footer-dark);
    transform: rotate(360deg);
}

.contact-item h4 {
    font-size: 16px;
    margin: 0 0 5px;
    color: var(--footer-text);
}

.contact-item p {
    font-size: 14px;
    margin: 0;
    color: var(--footer-light);
    line-height: 1.6;
}

.contact-link {
    text-decoration: none;
    color: var(--footer-light);
    transition: all var(--transition-medium);
    display: block;
    position: relative;
}

.contact-link:hover {
    color: var(--footer-accent);
    transform: translateX(5px);
}

.contact-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--footer-accent);
    transition: width var(--transition-medium);
}

.contact-link:hover::after {
    width: 100%;
}

/* Newsletter Styles */
.newsletter-form {
    margin: 20px 0;
}

.newsletter-form .form-group {
    position: relative;
    margin-bottom: 15px;
}

.newsletter-form input {
    width: 100%;
    padding: 15px 60px 15px 20px;
    border-radius: 50px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--footer-text);
    font-size: 14px;
    outline: none;
    transition: all var(--transition-medium);
    box-shadow: var(--input-shadow);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.newsletter-form input:focus {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(255, 140, 66, 0.3);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form button {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    width: 45px;
    border-radius: 50%;
    border: none;
    background: var(--footer-accent);
    color: var(--footer-dark);
    font-size: 16px;
    cursor: pointer;
    transition: all var(--transition-medium);
}

.newsletter-form button:hover {
    background: #fff;
    transform: translateX(3px);
}

.footer-widget p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--footer-light);
}

/* School Timing */
.school-timing {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-medium);
}

.school-timing:hover {
    transform: translateY(-5px);
}

.school-timing h4 {
    font-size: 16px;
    margin: 0 0 10px;
    color: var(--footer-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.school-timing h4 i {
    color: var(--footer-accent);
}

.school-timing p {
    font-size: 13px;
    margin: 5px 0;
    color: var(--footer-light);
}

/* Footer Bottom */
.footer-bottom {
    background: var(--footer-dark);
    padding: 25px 0;
    position: relative;
    z-index: 3;
    backdrop-filter: blur(10px);
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.copyright p {
    font-size: 14px;
    margin: 0;
    color: var(--footer-light);
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: var(--footer-light);
    font-size: 13px;
    text-decoration: none;
    transition: color var(--transition-fast);
    position: relative;
}

.footer-bottom-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--footer-accent);
    transition: width var(--transition-medium);
}

.footer-bottom-links a:hover {
    color: var(--footer-text);
}

.footer-bottom-links a:hover::after {
    width: 100%;
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--footer-accent);
    color: var(--footer-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-medium);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    animation: pulse 2s infinite;
}

.scroll-top:hover {
    background: #fff;
    transform: translateY(-5px);
}

/* Enhanced Responsive Footer Styles */
@media (max-width: 1200px) {
    .footer-widgets {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    
    .footer-logo {
        height: 130px;
    }
}

@media (max-width: 992px) {
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .footer-logo-section {
        margin-bottom: 30px;
    }
    
    .footer-logo {
        height: 120px;
    }
    
    .footer-logo-section h2 {
        font-size: 22px;
    }
    
    .footer-logo-section p {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .footer-top {
        padding: 50px 0 30px;
    }
    
    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .footer-bottom-links {
        margin-top: 15px;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .footer-logo {
        height: 110px;
    }
    
    .footer-logo-section h2 {
        font-size: 20px;
    }
    
    .footer-logo-section p {
        font-size: 14px;
    }
    
    .footer-widget h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .footer-links a {
        font-size: 14px;
    }
    
    .contact-item {
        padding: 12px 0;
    }
    
    .contact-item i {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .contact-item h4 {
        font-size: 15px;
    }
    
    .contact-item p {
        font-size: 13px;
    }
    
    .newsletter-form input {
        padding: 12px 50px 12px 18px;
        font-size: 13px;
    }
    
    .newsletter-form button {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-widget {
        text-align: center;
        margin-bottom: 20px;
    }
    
    .footer-links li {
        transform-origin: center;
        margin-bottom: 8px;
    }
    
    .footer-links li:hover {
        transform: translateX(0) scale(1.05);
    }
    
    .footer-links a {
        justify-content: center;
        font-size: 13px;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 15px 0;
    }
    
    .contact-item:hover {
        transform: translateX(0) translateY(-5px);
    }
    
    .contact-item i {
        width: 40px;
        height: 40px;
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .contact-item h4 {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .contact-item p {
        font-size: 12px;
        line-height: 1.5;
    }
    
    .footer-logo {
        height: 100px;
    }
    
    .footer-logo-section h2 {
        font-size: 18px;
    }
    
    .footer-logo-section p {
        font-size: 13px;
    }
    
    .contact-link:hover {
        transform: translateX(0) translateY(-2px);
    }
    
    .footer-widget h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .footer-widget p {
        font-size: 13px;
        line-height: 1.6;
    }
    
    .newsletter-form {
        margin: 15px 0;
    }
    
    .newsletter-form input {
        padding: 10px 45px 10px 15px;
        font-size: 12px;
    }
    
    .newsletter-form button {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
    
    .social-icon {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .scroll-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

/* Extra Small Devices */
@media (max-width: 480px) {
    .footer-top {
        padding: 40px 0 25px;
    }
    
    .footer-logo {
        height: 90px;
    }
    
    .footer-logo-section h2 {
        font-size: 16px;
    }
    
    .footer-logo-section p {
        font-size: 12px;
    }
    
    .footer-widget h3 {
        font-size: 15px;
    }
    
    .footer-widget p {
        font-size: 12px;
    }
    
    .footer-links a {
        font-size: 12px;
    }
    
    .contact-item {
        padding: 12px 0;
    }
    
    .contact-item i {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .contact-item h4 {
        font-size: 13px;
    }
    
    .contact-item p {
        font-size: 11px;
    }
    
    .newsletter-form input {
        padding: 8px 40px 8px 12px;
        font-size: 11px;
    }
    
    .newsletter-form button {
        width: 32px;
        height: 32px;
        font-size: 11px;
    }
    
    .social-icon {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    
    .scroll-top {
        bottom: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
}

/* Landscape orientation for mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .footer-top {
        padding: 30px 0 20px;
    }
    
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .footer-logo {
        height: 80px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .footer-logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    .scroll-top {
        display: none !important;
    }
    
    .footer-top {
        padding: 20px 0;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
    }
}

/* Special Animation for Newsletter Button */
.newsletter-form button i {
    transition: transform var(--transition-medium);
}

.newsletter-form button:hover i {
    animation: sendArrow 0.6s ease;
}

@keyframes sendArrow {
    0% { transform: translateX(0); }
    50% { opacity: 0; transform: translateX(10px); }
    51% { opacity: 0; transform: translateX(-10px); }
    100% { opacity: 1; transform: translateX(0); }
}

/* Glossy Effect for Footer Links */
.footer-links li a {
    position: relative;
    overflow: hidden;
}

.footer-links li a::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.7s;
}

.footer-links li:hover a::before {
    left: 100%;
}

/* Footer Wave Animation */
.site-footer .wave-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 2;
}

.site-footer .wave-animation svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 59px;
}

.site-footer .wave-animation .shape-fill {
    fill: #FFFFFF;
    opacity: 0.1;
}