/* Global Variables */
:root {
    --perspective: 1000px;
    /* Vivid Pastel Palette */
    --primary-color: #FFB7B2;
    /* Soft Coral/Pink */
    --secondary-color: #B5EAD7;
    /* Mint Green */
    --accent-color: #FFDAC1;
    /* Peach/Orange */
    --purple-soft: #E2F0CB;
    /* Soft Lime/Greenish */
    --blue-sky: #C7CEEA;
    /* Periwinkle Blue */

    --text-color: #555555;
    --heading-color: #4A4A4A;
    --bg-color: #FFFDF9;
    /* Warm White */
    --white: #FFFFFF;

    --font-main: 'Quicksand', sans-serif;

    --border-radius: 20px;
    --box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy transition */
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes wiggle {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-5deg);
    }

    50% {
        transform: rotate(5deg);
    }

    75% {
        transform: rotate(-5deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-soft {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.7;
    overflow-x: hidden;
    background-image: radial-gradient(#FFDAC1 1px, transparent 1px);
    background-size: 40px 40px;
    /* Polka dot pattern */
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--heading-color);
    letter-spacing: -0.5px;
}

h1 {
    font-size: 3rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

.highlight {
    color: #FF9AA2;
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background-color: var(--secondary-color);
    opacity: 0.4;
    border-radius: 10px;
    z-index: -1;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    font-size: 1.1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #FF9AA2;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(255, 183, 178, 0.4);
}

.btn-secondary {
    background-color: var(--blue-sky);
    color: white;
}

.btn-secondary:hover {
    background-color: #B5B9FF;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(199, 206, 234, 0.4);
}

/* Glassmorphic Button */
.btn-glass {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--heading-color);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-5px) scale(1.05);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.25);
}

/* Header Transparent Button */
.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 183, 178, 0.3);
}

/* Desktop/Mobile Visibility Utilities */
.desktop-only {
    display: inline-block;
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: inline-block !important;
        margin-top: 15px;
    }
}

/* Header */
.main-header {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 3px solid var(--purple-soft);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 140px;
    /* Increased from 90px */
    width: auto;
    object-fit: contain;
    animation: wiggle 4s infinite ease-in-out;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 100;
    /* Ensure it pops out */
    position: relative;
    transform-style: preserve-3d;
}

.logo-img:hover {
    transform: scale(1.15) rotate(5deg) translateZ(20px);
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.25));
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--heading-color);
    background: linear-gradient(45deg, #FFB7B2, #C7CEEA);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-nav ul {
    display: flex;
    gap: 25px;
    align-items: center;
}

.main-nav a {
    font-weight: 600;
    color: #666;
    font-size: 1.1rem;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
    border-radius: 5px;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #fff5f5 0%, #f0fff4 100%);
}

/* Hero background shapes moved to HTML for parallax control */

.hero-content {
    position: relative;
    z-index: 2;
    animation: slideUp 1s ease-out;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #666;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Page Header (Subpages) */
.page-header {
    background: linear-gradient(120deg, var(--primary-color), var(--accent-color));
    padding: 80px 0;
    color: white;
    text-align: center;
    border-radius: 0 0 50% 50% / 20px;
    margin-bottom: 50px;
    position: relative;
}

.page-header h1 {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Sections */
.section {
    padding: 80px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    animation: slideUp 0.8s ease-out;
}

.section-title h2 {
    font-size: 2.8rem;
    color: var(--heading-color);
    position: relative;
    display: inline-block;
}

.section-title h2::before {
    content: '★';
    font-size: 1.5rem;
    color: var(--accent-color);
    position: absolute;
    top: -20px;
    right: -20px;
    animation: wiggle 2s infinite;
    transform: rotate(15deg);
}

/* Cards */
.card {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-15px) rotate(1deg);
    border-color: var(--blue-sky);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Branch Cards Specifics */
.branch-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.branch-image {
    height: 220px;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.branch-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.branch-card:hover .branch-image img {
    transform: scale(1.1);
}

.branch-content h3 {
    color: var(--primary-color);
    font-size: 1.6rem;
}

.branch-actions {
    margin-top: auto;
    display: flex;
    gap: 15px;
}

.branch-actions .btn {
    flex: 1;
    padding: 10px;
    font-size: 1rem;
}

/* Program Items */
.program-item {
    text-align: center;
    background-color: white;
    border: 2px dashed #eee;
}

.program-item:hover {
    border-color: var(--secondary-color);
    border-style: solid;
}

.program-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: inline-block;
    animation: float 4s infinite ease-in-out;
}

.program-item:nth-child(even) .program-icon {
    animation-delay: 2s;
}

/* Features/Why Us */
.feature-box {
    text-align: center;
    background: linear-gradient(to bottom right, #fff, #f9f9f9);
}

.feature-box h3 {
    color: #6A0572;
    /* Deep playful purple */
}

/* Testimonials */
.testimonial-card {
    background-color: #FFFCE8;
    /* Very light yellow */
    border: none;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-size: 5rem;
    color: var(--accent-color);
    position: absolute;
    top: 10px;
    left: 20px;
    opacity: 0.5;
    font-family: serif;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

/* Utilities */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

/* Footer */
.main-footer {
    background-color: var(--blue-sky);
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-top: 80px;
    position: relative;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 40px;
    background-color: var(--blue-sky);
    border-radius: 50% 50% 0 0;
}

.main-footer p {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.hamburger-menu span {
    width: 30px;
    height: 4px;
    background-color: var(--heading-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    .main-nav {
        display: none;
        /* Add JS toggle later if needed, mostly handled by existing JS */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
    }

    .main-nav a {
        display: block;
        padding: 10px 0;
        text-align: center;
    }

    .hamburger-menu {
        display: flex;
        z-index: 1001;
        /* Above mobile menu background */
    }

    .hero-buttons {
        flex-direction: column;
        padding: 0 20px;
    }

    .hero {
        padding: 80px 0 60px;
    }

    .logo-img {
        height: 80px;
        /* Smaller logo on mobile */
    }

    .logo-text {
        font-size: 1rem;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* 4D Animation Utilities */
.tilt-element {
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

.tilt-inner {
    transform: translateZ(20px);
}

.js-tilt-glare {
    border-radius: var(--border-radius);
}

/* Mouse Parallax Defaults */
[data-parallax-strength] {
    transition: transform 0.1s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform;
}