/**
 * Tamalaki Junior Academy - Kindergarten Theme
 * Playful, vibrant, and child-friendly design with glassmorphism
 */

:root {
    --primary-blue: #1a237e;
    --primary-green: #4caf50;
    --accent-green: #00e676;
    --accent-pink: #ff4081;
    --accent-yellow: #ffd740;
    --accent-orange: #ff9800;
    --accent-purple: #9c27b0;
    --light-blue: #e3f2fd;
    --white: #ffffff;
    --gray-100: #f5f5f5;
    --gray-200: #eeeeee;
    --gray-600: #757575;
    --gray-800: #424242;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Comic Sans MS', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--white) 50%, #fff9c4 100%);
    min-height: 100vh;
    color: var(--gray-800);
    overflow-x: hidden;
}

/* Glassmorphism Card Style */
.glass-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 25px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
                inset 0 0 20px rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2),
                inset 0 0 30px rgba(255, 255, 255, 0.3);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-green), var(--accent-pink), var(--accent-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-green), var(--accent-green));
    color: white;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(76, 175, 80, 0.6);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-orange));
    color: white;
    box-shadow: 0 8px 25px rgba(255, 64, 129, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 64, 129, 0.6);
}

.btn-large {
    padding: 18px 40px;
    font-size: 18px;
}

.btn-link {
    color: var(--primary-green);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-link:hover {
    gap: 12px;
    color: var(--accent-green);
}

/* Hero Section */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    opacity: 0.15;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, var(--accent-pink), var(--accent-orange));
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, var(--accent-yellow), var(--accent-green));
    top: 60%;
    right: 15%;
    animation-delay: 3s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, var(--accent-purple), var(--accent-pink));
    bottom: 20%;
    left: 20%;
    animation-delay: 6s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--primary-green), var(--accent-green));
    top: 30%;
    right: 25%;
    animation-delay: 9s;
}

.shape-5 {
    width: 70px;
    height: 70px;
    background: radial-gradient(circle, var(--accent-orange), var(--accent-yellow));
    bottom: 40%;
    right: 40%;
    animation-delay: 12s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-30px) rotate(120deg);
    }
    66% {
        transform: translateY(30px) rotate(240deg);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
}

.hero-text {
    max-width: 800px;
    padding: 60px;
    margin: 0 auto;
    text-align: center;
    animation: bounceIn 1s ease-out;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--primary-green);
    font-weight: 600;
    margin-bottom: 15px;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--gray-600);
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Hero Decorations */
.hero-decorations {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.decoration {
    position: absolute;
    font-size: 3rem;
    animation: bounce 3s ease-in-out infinite;
}

.decoration-star {
    top: 15%;
    right: 10%;
    animation-delay: 0s;
}

.decoration-balloon {
    top: 25%;
    left: 5%;
    animation-delay: 1s;
}

.decoration-rocket {
    bottom: 20%;
    right: 8%;
    animation-delay: 2s;
}

.decoration-rainbow {
    bottom: 30%;
    left: 10%;
    animation-delay: 3s;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
}

.section-title i {
    color: var(--accent-yellow);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray-600);
}

/* Features Section */
.features-section {
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 40px 30px;
    text-align: center;
    position: relative;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-green), var(--accent-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    animation: spin 10s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.feature-card:hover .feature-icon {
    animation-play-state: paused;
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.4rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Programs Preview Section */
.programs-preview-section {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.5);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.program-card {
    padding: 40px;
    text-align: center;
    position: relative;
}

.program-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-orange));
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.program-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--accent-yellow), var(--accent-orange));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    animation: wiggle 3s ease-in-out infinite;
}

@keyframes wiggle {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-10deg);
    }
    75% {
        transform: rotate(10deg);
    }
}

.program-card h3 {
    font-size: 1.6rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.program-card p {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Gallery Preview Section */
.gallery-preview-section {
    padding: 80px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.gallery-card {
    overflow: hidden;
    aspect-ratio: 1;
    position: relative;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover img {
    transform: scale(1.15);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 20px;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
    transform: translateY(0);
}

/* Events Section */
.events-section {
    padding: 80px 0;
    background: rgba(255, 249, 196, 0.3);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.event-card {
    padding: 30px;
    display: flex;
    gap: 25px;
    align-items: start;
}

.event-date {
    background: linear-gradient(135deg, var(--primary-green), var(--accent-green));
    color: white;
    padding: 15px;
    border-radius: 15px;
    text-align: center;
    min-width: 80px;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.date-day {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.date-month {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 5px;
}

.event-details {
    flex: 1;
}

.event-details h3 {
    font-size: 1.4rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.event-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.event-meta i {
    color: var(--accent-pink);
}

.separator {
    color: var(--gray-600);
}

.event-description {
    color: var(--gray-600);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    opacity: 0.1;
}

.cta-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 60px;
    text-align: center;
    position: relative;
    z-index: 10;
}

.cta-content h2 {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
}

.cta-content h2 i {
    color: var(--accent-pink);
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.cta-content p {
    font-size: 1.3rem;
    color: var(--gray-600);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 992px) {
    .hero-text {
        padding: 40px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .features-grid,
    .programs-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .hero-section {
        min-height: 70vh;
    }
    
    .hero-text {
        padding: 30px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .feature-card,
    .program-card {
        padding: 30px 20px;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .event-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .cta-content {
        padding: 50px 30px;
    }
    
    .cta-content h2 {
        font-size: 2rem;
        flex-direction: column;
    }
    
    .cta-content p {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .decoration {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .btn-large {
        padding: 14px 28px;
        font-size: 16px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .shape {
        opacity: 0.5;
    }
}

/* Navigation Styles */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.navbar-brand img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.navbar-menu {
    display: flex;
    gap: 30px;
    list-style: none;
    align-items: center;
}

.navbar-menu a {
    text-decoration: none;
    color: var(--gray-800);
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-green), var(--accent-green));
    transition: width 0.3s ease;
}

.navbar-menu a:hover::after,
.navbar-menu a.active::after {
    width: 100%;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-blue);
    cursor: pointer;
}

@media (max-width: 992px) {
    .navbar-toggle {
        display: block;
    }
    
    .navbar-menu {
        position: fixed;
        top: 90px;
        right: -100%;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        padding: 30px;
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        transition: right 0.3s ease;
        min-width: 250px;
    }
    
    .navbar-menu.active {
        right: 20px;
    }
    
    .navbar-menu a {
        width: 100%;
        padding: 10px;
    }
}

.navbar-menu {
    display: flex;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .navbar-menu {
        display: none;
        flex-direction: column;
        background: white;
        position: absolute;
        top: 60px;
        right: 0;
        width: 200px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        border-radius: 8px;
        padding: 1rem;
    }

    .navbar-menu.active {
        display: flex;
    }

    .navbar-toggle {
        display: block;
        cursor: pointer;
    }
}



/* Footer Styles */
.footer {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    color: white;
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-yellow);
    padding-left: 5px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--accent-yellow);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

/* AOS Animation Overrides */
[data-aos] {
    pointer-events: auto;
}

/* Loading Animation */
.loading {
    text-align: center;
    padding: 50px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--gray-200);
    border-top: 5px solid var(--primary-green);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-green), var(--accent-green));
    color: white;
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(76, 175, 80, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(76, 175, 80, 0.6);
}

.scroll-to-top.show {
    display: flex;
}