/* ========================================
   HOMEPAGE STYLES - Taska & Tadika MBPJ
   ======================================== */

/* Modern Kindergarten Design Variables */
:root {
    --primary-pink: #FF6B9D;
    --primary-blue: #4ECDC4;
    --primary-yellow: #FFE66D;
    --primary-orange: #FF8C42;
    --primary-purple: #A8E6CF;
    --primary-green: #88D8A3;
    --white: #FFFFFF;
    --light-gray: #F8F9FA;
    --dark-gray: #2C3E50;
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
}

/* ========================================
   HERO SECTION WITH IMAGE SLIDER
   ======================================== */

.kindergarten-hero {
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

/* Overlay for better text readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.7) 0%, rgba(78, 205, 196, 0.7) 50%, rgba(255, 230, 109, 0.7) 100%);
    z-index: 1;
}

/* Floating elements animation */
.hero-slider::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="70" cy="10" r="1.2" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="70" r="1.8" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: float 20s infinite linear;
    z-index: 2;
}

@keyframes float {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-100px); }
}

/* ========================================
   SLIDER NAVIGATION DOTS
   ======================================== */

.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 3;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: white;
    transform: scale(1.2);
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* ========================================
   HERO CONTENT
   ======================================== */

.hero-content {
    position: relative;
    z-index: 4;
    text-align: center;
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    opacity: 0.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-kindergarten {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary-kindergarten {
    background: var(--white);
    color: var(--primary-pink);
    box-shadow: var(--shadow);
}

.btn-primary-kindergarten:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    color: var(--primary-pink);
}

.btn-secondary-kindergarten {
    background: rgba(255,255,255,0.2);
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary-kindergarten:hover {
    background: var(--white);
    color: var(--primary-blue);
    transform: translateY(-3px);
}

/* ========================================
   FEATURES SECTION
   ======================================== */

.features-section {
    padding: 3rem 0;
    background: var(--light-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    overflow-x: auto;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-pink), var(--primary-blue), var(--primary-yellow));
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--white);
}

.feature-icon.pink { background: var(--primary-pink); }
.feature-icon.blue { background: var(--primary-blue); }
.feature-icon.yellow { background: var(--primary-yellow); }
.feature-icon.green { background: var(--primary-green); }
.feature-icon.purple { background: var(--primary-purple); }
.feature-icon.orange { background: var(--primary-orange); }

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.feature-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.feature-link {
    color: var(--primary-pink);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    margin-top: auto;
    align-self: flex-start;
}

.feature-link:hover {
    color: var(--primary-blue);
}

/* ========================================
   DECORATIVE ELEMENTS
   ======================================== */

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-shape {
    position: absolute;
    opacity: 0.1;
    animation: float-shape 15s infinite ease-in-out;
}

.floating-shape:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.floating-shape:nth-child(2) { top: 20%; right: 10%; animation-delay: 2s; }
.floating-shape:nth-child(3) { bottom: 20%; left: 15%; animation-delay: 4s; }
.floating-shape:nth-child(4) { bottom: 10%; right: 15%; animation-delay: 6s; }

@keyframes float-shape {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* ========================================
   STATS SECTION
   ======================================== */

.stats-section {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-green) 100%);
    padding: 4rem 0;
    color: var(--white);
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    padding: 1.5rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ========================================
   MARQUEE SECTION
   ======================================== */

.marquee-section {
    background: linear-gradient(135deg, #FF6B9D 0%, #4ECDC4 50%, #FFE66D 100%);
    padding: 0;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: relative;
}

.marquee-container {
    padding: 15px 0;
    background: rgba(0,0,0,0.1);
}

.marquee-content {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
    padding-left: 100%;
}

.marquee-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    display: inline-block;
}

.marquee-icon {
    margin: 0 15px;
    font-size: 1.5rem;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.marquee-section:hover .marquee-content {
    animation-play-state: paused;
}

/* Hide old carousel and marquee */
#myCarousel,
.carousel,
.row .col-md-4 {
    display: none;
}

/* ========================================
   RESPONSIVE DESIGN - TABLETS
   ======================================== */

@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .kindergarten-hero {
        min-height: 60vh;
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .slider-dots {
        bottom: 1rem;
    }
    
    .slider-dot {
        width: 10px;
        height: 10px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .feature-card {
        padding: 2rem;
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .feature-title {
        font-size: 1.3rem;
    }
    
    .feature-description {
        flex-grow: 1;
        margin-bottom: 1.5rem;
    }
    
    .feature-link {
        margin-top: auto;
        align-self: flex-start;
    }
    
    .marquee-text {
        font-size: 1.1rem;
    }
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE
   ======================================== */

@media (max-width: 480px) {
    .kindergarten-hero {
        min-height: 50vh;
        padding: 1.5rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-kindergarten {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    
    .feature-description {
        flex-grow: 1;
        margin-bottom: 1.5rem;
    }
    
    .feature-link {
        margin-top: auto;
        align-self: flex-start;
    }
}

