:root {
    --bg-color: #FFFDF7;
    --text-main: #2D3748;
    --text-light: #4A5568;
    
    --primary: #FF6B6B; /* Coral Red */
    --secondary: #4ECDC4; /* Teal */
    --accent-yellow: #FFE66D; /* Sunny Yellow */
    --accent-blue: #45B7D1; /* Sky Blue */
    --accent-purple: #9B5DE5; /* Playful Purple */
    
    --font-head: 'Quicksand', sans-serif;
    --font-body: 'Nunito', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: var(--font-head);
    font-weight: 700;
}

/* ---------------------------------
   Reveal Animations
----------------------------------*/
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ---------------------------------
   Background Decorative Shapes
----------------------------------*/
.bg-shape {
    position: absolute;
    z-index: -1;
    opacity: 0.4;
}

.shape-circle {
    top: -50px; left: -50px;
    width: 300px; height: 300px;
    background-color: var(--accent-yellow);
    border-radius: 50%;
    filter: blur(40px);
}

.shape-blob {
    top: 40%; right: -100px;
    width: 400px; height: 400px;
    background-color: var(--secondary);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    filter: blur(60px);
}

.shape-dots {
    bottom: 10%; left: 10%;
    width: 200px; height: 200px;
    background-image: radial-gradient(var(--accent-purple) 2px, transparent 2px);
    background-size: 20px 20px;
    opacity: 0.15;
}

/* ---------------------------------
   Navbar
----------------------------------*/
.navbar {
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 253, 247, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    padding: 15px 0;
}

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

.logo {
    font-family: var(--font-head);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    color: var(--accent-blue);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glow-on-hover:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 25px rgba(255, 107, 107, 0.5);
}

/* ---------------------------------
   Hero Section
----------------------------------*/
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 80px 20px;
}

.pill-badge {
    display: inline-block;
    background-color: #F7FAFC;
    color: var(--text-light);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 20px;
    border: 2px dashed #E2E8F0;
    transition: all 0.3s ease;
}

.pill-badge:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 25px;
    color: var(--text-main);
}

.highlight {
    position: relative;
    display: inline-block;
    color: var(--text-main);
    z-index: 1;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px; left: -5px; right: -5px;
    height: 40%;
    background-color: var(--accent-yellow);
    z-index: -1;
    border-radius: 10px;
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
}

.hero:hover .highlight::after {
    transform: rotate(1deg) scaleY(1.2);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 35px;
}

.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 15px 25px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 2px solid #FFF5F5;
    transition: transform 0.3s ease;
}

.rating-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 107, 107, 0.15);
}

.stars {
    color: #F6AD55;
    font-size: 1.2rem;
}

/* Hero Image & Stickers */
.hero-image-wrapper {
    position: relative;
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    top: 10%; left: 10%; right: 10%; bottom: 10%;
    background: var(--accent-purple);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    z-index: -1;
    animation: pulse 4s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.2; }
    100% { transform: scale(1.1); opacity: 0.4; }
}

.blob-mask {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 8px solid white;
    animation: morph 8s ease-in-out infinite;
    position: relative;
}

@keyframes morph {
    0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

.blob-mask img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 1/1;
    transition: transform 0.5s ease;
}

.blob-mask:hover img {
    transform: scale(1.05);
}

.floating-sticker {
    position: absolute;
    background: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-family: var(--font-head);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    font-size: 1.1rem;
    transition: transform 0.1s linear; /* Fast transition for parallax JS */
}

.sticker-1 {
    top: -10px; left: -10px;
    color: var(--primary);
    border: 2px solid var(--primary);
    transform: rotate(-5deg);
}

.sticker-2 {
    bottom: 5%; right: -10px;
    color: var(--accent-purple);
    border: 2px solid var(--accent-purple);
    transform: rotate(5deg);
}


/* ---------------------------------
   Subjects Section
----------------------------------*/
.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 50px;
    color: var(--text-main);
}

.subject-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 100px;
}

.card {
    background: white;
    padding: 40px 30px;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.04);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-bottom: 6px solid transparent;
}

.card:hover {
    transform: translateY(-15px) scale(1.02);
}

.icon-circle {
    width: 80px; height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
    color: white;
    transition: transform 0.4s ease;
}

.card:hover .icon-circle {
    transform: rotate(15deg) scale(1.1);
}

.card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.card p {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.6;
}

.card-math { border-color: var(--accent-yellow); }
.card-math .icon-circle { background: var(--accent-yellow); color: var(--text-main); }
.card-math:hover { box-shadow: 0 25px 50px rgba(255, 230, 109, 0.4); }

.card-physics { border-color: var(--accent-blue); }
.card-physics .icon-circle { background: var(--accent-blue); }
.card-physics:hover { box-shadow: 0 25px 50px rgba(69, 183, 209, 0.4); }

.card-science { border-color: var(--secondary); }
.card-science .icon-circle { background: var(--secondary); }
.card-science:hover { box-shadow: 0 25px 50px rgba(78, 205, 196, 0.4); }


/* ---------------------------------
   Info Grid (Timings & Location)
----------------------------------*/
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 100px;
}

.info-box {
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.04);
    transition: box-shadow 0.3s ease;
}

.info-box:hover {
    box-shadow: 0 20px 45px rgba(0,0,0,0.08);
}

.box-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.header-icon-wrapper {
    width: 50px; height: 50px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-icon-wrapper i {
    font-size: 1.5rem;
    color: var(--primary);
}

.box-header h3 {
    font-size: 2rem;
}

/* Schedule */
.box-schedule {
    padding: 40px;
    border: 3px solid #FFF5F5;
}

.schedule-list {
    list-style: none;
}

.schedule-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 15px;
    background: #F7FAFC;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.2s ease, background 0.2s ease;
}

.schedule-list li:hover {
    transform: translateX(5px);
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.highlight-row {
    background: rgba(255, 230, 109, 0.3) !important;
    border: 2px dashed var(--accent-yellow);
}

.highlight-row:hover {
    background: rgba(255, 230, 109, 0.5) !important;
}

.schedule-list .time {
    color: var(--primary);
    font-weight: 700;
}

/* Location */
.box-location {
    display: flex;
    flex-direction: column;
}

.img-zoom-wrapper {
    overflow: hidden;
    height: 250px;
}

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

.box-location:hover .location-img {
    transform: scale(1.05);
}

.location-details {
    padding: 30px 40px;
}

.location-details p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ---------------------------------
   Reviews / Speech Bubbles
----------------------------------*/
.reviews {
    margin-bottom: 100px;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.speech-bubble {
    background: white;
    padding: 30px;
    border-radius: 30px;
    border-bottom-left-radius: 5px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    position: relative;
    border: 2px solid #EDF2F7;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.speech-bubble:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.speech-bubble::before {
    content: '';
    position: absolute;
    bottom: -20px;
    left: -2px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 20px 20px 0 0;
    border-color: #EDF2F7 transparent transparent transparent;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 1px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 16px 16px 0 0;
    border-color: white transparent transparent transparent;
}

.speech-bubble p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

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

.avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    font-size: 1.2rem;
}

.bg-yellow { background: var(--accent-yellow); }
.bg-blue { background: var(--accent-blue); color: white; }
.bg-purple { background: var(--accent-purple); color: white; }

.author span {
    font-weight: 700;
    font-family: var(--font-head);
}

/* ---------------------------------
   Footer
----------------------------------*/
footer {
    text-align: center;
    padding: 40px;
    background: var(--text-main);
    color: white;
    font-family: var(--font-head);
    font-size: 1.1rem;
}

/* ---------------------------------
   Responsive
----------------------------------*/
@media (max-width: 1024px) {
    .hero {
        gap: 30px;
        padding: 60px 20px;
    }
    .hero h1 {
        font-size: 3.2rem;
    }
    .subject-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    .review-grid {
        gap: 20px;
    }
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 20px 0;
    }
    .hero h1 { 
        font-size: 2.8rem; 
    }
    .hero p {
        margin: 0 auto 25px auto;
        max-width: 100%;
    }
    .hero-image-wrapper { 
        max-width: 400px; 
        margin: 40px auto 0 auto; 
    }
    
    .subject-cards, .review-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2.4rem;
        margin-bottom: 40px;
    }
}

@media (max-width: 600px) {
    .navbar .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero {
        padding: 10px 0;
        gap: 40px;
    }
    
    .hero h1 {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .hero p {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }
    
    .pill-badge {
        font-size: 0.85rem;
        padding: 6px 15px;
        margin-bottom: 15px;
    }
    
    .rating-badge {
        flex-direction: column;
        gap: 5px;
        padding: 15px;
        width: 100%;
    }
    
    .hero-image-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-top: 20px;
    }
    
    /* Change stickers to inline blocks on mobile so they don't break the layout */
    .floating-sticker {
        position: relative;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        font-size: 1rem;
        padding: 10px 20px;
        transform: none !important;
        animation: none !important;
        width: 100%;
        text-align: center;
    }
    
    .blob-mask {
        border-width: 4px;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .subject-cards, .review-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .card {
        padding: 30px 20px;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .box-schedule {
        padding: 20px;
    }
    
    .location-details {
        padding: 20px;
    }
    
    .schedule-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        padding: 12px;
    }
    
    .box-header h3 {
        font-size: 1.5rem;
    }
    
    .img-zoom-wrapper {
        height: 200px;
    }
    
    /* Hide background shapes on mobile to prevent scrolling issues and improve performance */
    .bg-shape {
        display: none;
    }
}
