/*
 * style.css
 * Custom styles for Kosmic Kingdom Website - Professional Theme v3
*/

/* --- CSS Variables for Theming --- */
:root {
    --primary-color: #6A44FF; /* Vibrant Purple */
    --secondary-color: #FF5E85; /* Bright Pink/Coral */
    --accent-color: #FFD200; /* Sunny Yellow */
    --green-color: #4CAF50; /* Playful Green */
    --text-color: #6c757d; /* Softer Grey */
    --heading-color: #1a0a3c;
    --bg-light: #F9F7FF; /* Light Lavender BG */
    --heading-font: 'Nunito', sans-serif;
    --body-font: 'Poppins', sans-serif;
}

/* --- General & Typography --- */
body {
    font-family: var(--body-font);
    padding-top: 80px;
    color: var(--text-color);
    background-color: #fff;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 800;
    color: var(--heading-color);
}
.section-title h2 {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 1rem;
}
.section-title p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}
.section-padding {
    padding: 100px 0;
}
.bg-light {
    background-color: var(--bg-light) !important;
}

/* --- Buttons --- */
.btn-primary {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    border: none;
    padding: 14px 35px;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(106, 68, 255, 0.3);
    color: white !important;
}
.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(106, 68, 255, 0.4);
}

/* --- Header & Navigation --- */
.navbar {
    padding: 1rem 0;
    transition: all 0.4s ease;
}
.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}
.navbar .nav-link {
    font-weight: 600;
    color: var(--heading-color);
    position: relative;
}
.navbar .nav-link.active,
.navbar .nav-link:hover {
    color: var(--primary-color);
}

/* --- Hero Section --- */
.hero-section {
    padding: 100px 0;
    background-color: var(--bg-light);
    position: relative;
}
.hero-section h1 {
    font-size: 4rem;
    font-weight: 900;
}
.hero-section .hero-img {
    animation: float 6s ease-in-out infinite;
    border-radius: 30px;
}

/* --- Section Dividers --- */
.section-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}
.section-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
}
.section-divider .shape-fill { fill: #FFFFFF; }
.bg-light .section-divider .shape-fill { fill: var(--bg-light); }


/* --- Why Choose Us Section --- */
.choose-us-card {
    text-align: center;
    padding: 20px;
}
.choose-us-card .icon {
    height: 90px;
    width: 90px;
    line-height: 90px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--bg-light);
    font-size: 35px;
    color: var(--primary-color);
    transition: all .3s ease;
}
.choose-us-card:hover .icon {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.1) rotate(15deg);
}

/* --- Program Section --- */
.program-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.07);
    transition: all .3s ease;
    background: #fff;
}
.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(106, 68, 255, 0.2);
}
.program-card .card-body {
    position: relative;
}
.program-card .age-group {
    position: absolute;
    top: -20px;
    right: 20px;
    background: var(--accent-color);
    color: var(--heading-color);
    padding: 5px 15px;
    border-radius: 50px;
    font-weight: 700;
}

/* --- Testimonials Section --- */
.testimonial-card {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    position: relative;
    margin: 20px;
}
.testimonial-card .quote-icon {
    font-size: 50px;
    color: var(--primary-color);
    opacity: 0.1;
    position: absolute;
    top: 20px;
    left: 20px;
}
.testimonial-card .rating i {
    color: var(--accent-color);
}
.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 20px;
}
.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

/* --- CTA Section --- */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-section h2 {
    color: #fff;
    font-size: 2.8rem;
}
.cta-section::before {
    content: "\f1d8"; /* fa-paper-plane */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 20rem;
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%) rotate(-20deg);
    color: rgba(255,255,255,0.1);
}

/* --- Pricing Table --- */
.pricing-table {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    text-align: center;
    border: 3px solid transparent;
    transition: all .3s ease;
}
.pricing-table:hover, .pricing-table.featured {
    border-color: var(--primary-color);
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(106, 68, 255, 0.2);
}
.pricing-table .price {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary-color);
}
.pricing-table .price sup {
    font-size: 1.5rem;
}

/* --- Footer --- */
.footer-dark {
    padding: 120px 0 0;
    background-color: var(--heading-color);
    color: rgba(255,255,255,0.7);
    position: relative;
}
.footer-wave {
    position: absolute;
    top: -1px; left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}
.footer-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 120px;
}
.footer-wave .shape-fill {
    fill: var(--heading-color);
}
.footer-bottom {
    padding: 1.5rem 0;
    margin-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* --- Animations --- */
@keyframes float {
	0% { transform: translatey(0px); }
	50% { transform: translatey(-20px); }
	100% { transform: translatey(0px); }
}
.reveal {
  position: relative;
  transform: translateY(100px);
  opacity: 0;
  transition: 1s all ease;
}
.reveal.visible {
  transform: translateY(0);
  opacity: 1;
}
