/* SHEKINAH EDUCATIONAL SERVICES LIMITED - Animated Main Stylesheet */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(-45deg, #fff, #f8f9fa, #fff, #f0f2ff);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

/* Animated background gradient */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    25% { background-position: 100% 50%; }
    50% { background-position: 100% 0%; }
    75% { background-position: 0% 100%; }
    100% { background-position: 0% 50%; }
}

/* Floating animation for decorative elements */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(1deg); }
    66% { transform: translateY(-5px) rotate(-1deg); }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% { transform: translate3d(0,0,0); }
    40%, 43% { transform: translate3d(0,-15px,0); }
    70% { transform: translate3d(0,-8px,0); }
    90% { transform: translate3d(0,-3px,0); }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 100%, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translate3d(-100%, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translate3d(100%, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

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

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(102, 126, 234, 0.3); }
    50% { box-shadow: 0 0 40px rgba(102, 126, 234, 0.6); }
}

/* Page load animation */
.fade-in {
    animation: slideInUp 0.8s ease-out;
}

.slide-left {
    animation: slideInLeft 1s ease-out;
}

.slide-right {
    animation: slideInRight 1s ease-out;
}

/* Accessibility: Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero::after,
    header::before,
    footer::before {
        animation: none !important;
    }
    
    body {
        animation: none !important;
        background: #fff;
    }
    
    header {
        animation: none !important;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }
    
    footer {
        animation: none !important;
        background: linear-gradient(135deg, #2c3e50, #34495e);
    }
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%, #667eea 200%);
    background-size: 200% 200%;
    animation: headerGradient 8s ease infinite;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

@keyframes headerGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Animated header decoration */
header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: float 20s linear infinite;
    pointer-events: none;
}

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

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    animation: slideInUp 1s ease-out;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.logo:hover {
    transform: scale(1.1) rotate(-2deg);
    text-shadow: 0 4px 8px rgba(0,0,0,0.4);
    animation: pulse 0.6s ease-in-out;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

nav ul li {
    position: relative;
    overflow: hidden;
}

nav ul li a {
    color: white;
    text-decoration: none;
    transition: all 0.4s ease;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    position: relative;
    display: block;
}

nav ul 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.5s ease;
}

nav ul li a:hover::before {
    left: 100%;
}

nav ul li a:hover {
    color: #ffd700;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero {
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.7), rgba(102, 126, 234, 0.9)), url('../images/hero-bg.jpg');
    background-size: cover, cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
    animation: slideInUp 1.5s ease-out;
}

/* Animated particles in hero */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 40% 40%, rgba(255, 215, 0, 0.1) 1px, transparent 1px);
    background-size: 100px 100px, 80px 80px, 60px 60px;
    animation: particleMove 25s linear infinite;
    pointer-events: none;
}

@keyframes particleMove {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-100px) rotate(360deg); }
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: slideInLeft 1s ease-out 0.5s both;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
    position: relative;
    z-index: 3;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: slideInRight 1s ease-out 0.8s both;
    position: relative;
    z-index: 3;
}

.btn {
    display: inline-block;
    background: linear-gradient(45deg, #ffd700, #ffed4e, #ffd700);
    background-size: 200% 200%;
    color: #333;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    border: 2px solid transparent;
    animation: bounce 2s ease-out 1.2s both;
    z-index: 3;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background-position: 100% 100%;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5);
    border-color: #fff;
    animation: glow 0.6s ease-in-out infinite alternate;
}

/* Main Content */
main {
    padding: 4rem 0;
    position: relative;
}

.section {
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #667eea;
    font-size: 2.5rem;
    animation: fadeInUp 1s ease-out;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 2px;
    animation: scaleX 1.5s ease-out;
}

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

@keyframes scaleX {
    from { transform: translateX(-50%) scaleX(0); }
    to { transform: translateX(-50%) scaleX(1); }
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    background: linear-gradient(145deg, #ffffff, #f5f7fa);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.8s ease-out;
    border: 2px solid transparent;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.05), transparent);
    transition: left 0.8s ease;
}

.feature:hover::before {
    left: 100%;
}

.feature:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
    background: linear-gradient(145deg, #ffffff, #f8f9ff);
}

.feature img {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    transition: all 0.4s ease;
    animation: float 6s ease-in-out infinite;
    filter: brightness(1.1) saturate(1.2);
}

.feature:hover img {
    transform: scale(1.05) rotate(-2deg);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    filter: brightness(1.2) saturate(1.3);
}

.feature h3 {
    color: #667eea;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.feature:hover h3 {
    color: #764ba2;
    transform: translateY(-2px);
}

.feature p {
    transition: all 0.3s ease;
    line-height: 1.6;
}

.feature:hover p {
    transform: translateY(-2px);
    color: #555;
}

/* Contact Info */
.contact-info {
    background: #f8f9fa;
    padding: 3rem 0;
    text-align: center;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.contact-item h4 {
    color: #667eea;
    margin-bottom: 1rem;
}

/* Form Styles */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(145deg, #ffffff, #f8f9ff);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.1);
    position: relative;
    overflow: hidden;
    animation: slideInUp 1s ease-out;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.form-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #667eea, #764ba2, #667eea);
    background-size: 400% 400%;
    border-radius: 20px;
    z-index: -1;
    animation: borderGlow 4s ease infinite;
}

@keyframes borderGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: bold;
    color: #667eea;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.4s ease;
    background: rgba(255, 255, 255, 0.9);
    position: relative;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #667eea;
    outline: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
    background: rgba(255, 255, 255, 1);
    animation: inputGlow 0.6s ease-out;
}

@keyframes inputGlow {
    0% { box-shadow: 0 0 5px rgba(102, 126, 234, 0.3); }
    50% { box-shadow: 0 0 20px rgba(102, 126, 234, 0.4), 0 8px 25px rgba(102, 126, 234, 0.2); }
    100% { box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2); }
}

.form-group textarea {
    height: 120px;
    resize: vertical;
    font-family: inherit;
}

.form-group input:valid,
.form-group textarea:valid,
.form-group select:valid {
    border-color: #28a745;
    animation: validPulse 0.6s ease-out;
}

@keyframes validPulse {
    0% { border-color: #28a745; transform: scale(1); }
    50% { border-color: #20c997; transform: scale(1.02); }
    100% { border-color: #28a745; transform: scale(1); }
}

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(51, 51, 51, 0.95);
    color: white;
    padding: 1rem;
    text-align: center;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-consent p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.cookie-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.accept-cookies {
    background: #28a745;
    color: white;
}

.accept-cookies:hover {
    background: #218838;
}

.decline-cookies {
    background: #dc3545;
    color: white;
}

.decline-cookies:hover {
    background: #c82333;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2c3e50, #34495e, #2c3e50);
    background-size: 200% 200%;
    animation: footerGradient 10s ease infinite;
    color: white;
    text-align: center;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

@keyframes footerGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(102, 126, 234, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.1) 1px, transparent 1px);
    background-size: 50px 50px, 30px 30px;
    animation: float 30s linear infinite;
    pointer-events: none;
}

footer p {
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    animation: slideInUp 1s ease-out 0.3s both;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.4s ease;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.footer-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.2), transparent);
    transition: left 0.6s ease;
}

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

.footer-links a:hover {
    color: #667eea;
    transform: translateY(-3px);
    text-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .cookie-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .section h2 {
        font-size: 2rem;
    }
}