:root {
    --primary:#0b2239;
    --secondary:#f0f4f8;
    --accent:#00c6ff;
    --text-dark:#06283d;
    --text-light:#ffffff;
}

/* Global */
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family:'Poppins', sans-serif; background: var(--secondary); color: var(--text-dark); line-height:1.6; scroll-behavior:smooth; }

/* Navbar & Hero */
header.hero {
    background: linear-gradient(135deg,#0b2239,#004466);
    color: var(--text-light);
    padding:60px 20px 40px;
    text-align:center;
}
.navbar { display:flex; justify-content:center; gap:25px; flex-wrap:wrap; margin-bottom:30px; }
.navbar a { color:white; text-decoration:none; font-weight:600; padding:10px 20px; border-radius:5px; transition:0.3s; }
.navbar a:hover { background: var(--accent); }
.hero-content h1 { font-size:3em; margin-bottom:10px; }
.hero-content h2 { font-size:2em; margin-bottom:15px; transition:0.5s ease-in-out; }
.hero-content p { font-size:1.1em; max-width:700px; margin:auto; }

/* Sections */
.section { padding:50px 20px; max-width:1200px; margin:40px auto; background:white; border-radius:15px; box-shadow:0 12px 30px rgba(0,0,0,0.1); transform:translateY(20px); opacity:0; transition:transform 0.8s ease-out, opacity 0.8s ease-out; }
.section.visible { transform:translateY(0); opacity:1; }
h2 { text-align:center; margin-bottom:25px; color:var(--primary); font-size:2em; }

/* About Section */
.about-wrapper { display:flex; gap:40px; align-items:center; justify-content:center; flex-wrap:wrap; }
.about-left { flex:1 1 400px; display:flex; justify-content:center; }
.animated-bars { display:flex; gap:8px; align-items:flex-end; height:300px; width:80%; }
.animated-bars .bar { width:15%; background:var(--accent); animation: barMove 1.2s infinite ease-in-out alternate; border-radius:5px; }
.animated-bars .bar:nth-child(1){animation-delay:0s;}
.animated-bars .bar:nth-child(2){animation-delay:0.2s;}
.animated-bars .bar:nth-child(3){animation-delay:0.4s;}
.animated-bars .bar:nth-child(4){animation-delay:0.6s;}
.animated-bars .bar:nth-child(5){animation-delay:0.8s;}
@keyframes barMove { from {transform: scaleY(0.4);} to {transform: scaleY(1);} }

.about-right { flex:1 1 400px; display:flex; flex-direction:column; gap:25px; }
.about-card { background:#f8f9fa; padding:25px; border-radius:15px; box-shadow:0 8px 25px rgba(0,0,0,0.08); transition: transform 0.3s, box-shadow 0.3s; }
.about-card:hover { transform: translateY(-8px); box-shadow:0 15px 35px rgba(0,0,0,0.15); }
.about-card h3 { margin-bottom:12px; color: var(--primary); font-weight:700; font-size:1.5em; border-bottom: 3px solid var(--accent); padding-bottom:5px; width:fit-content; }
.about-card p { color:#333; font-size:1em; line-height:1.6; }
.slide-in { opacity:0; transform: translateX(50px); transition: transform 0.8s ease, opacity 0.8s ease; }
.section.visible .slide-in { opacity:1; transform: translateX(0); }

/* Services */
.services-container { display:flex; flex-wrap:wrap; gap:15px; justify-content:center; }
.service-card { background:#f8f9fa; color:var(--primary); padding:20px; border-radius:10px; flex:1 1 250px; text-align:center; font-weight:600; transition: transform 0.3s, box-shadow 0.3s; border:1px solid #e0e0e0; }
.service-card:hover { transform:translateY(-5px); box-shadow:0 8px 20px rgba(0,0,0,0.1); }

/* Tutoring Cards */
.tutoring-cards { display:flex; flex-wrap:wrap; gap:15px; justify-content:center; }
.tutor-card { color: var(--text-dark); padding: 20px; border-radius: 10px; flex: 1 1 250px; text-align: center; font-weight: 600; border: 2px solid #ccc; transition: transform 0.4s ease, box-shadow 0.4s ease; }
.price { font-size:1.3em; font-weight:bold; margin-top:10px; }

/* Card Colors */
.card-grade4-7 { background:#D1E8FF; border-color:#1E90FF; }
.card-grade8-12 { background:#D1FFD6; border-color:#32CD32; }
.card-stats { background:#FFF4E5; border-color:#FF8C00; }
.card-grade4-7:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 15px 35px rgba(30,144,255,0.3); }
.card-grade8-12:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 15px 35px rgba(50,205,50,0.3); }
.card-stats:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 15px 35px rgba(255,140,0,0.3); }

/* Apply Now */
.apply-heading { display:block; width:100%; text-align:center; font-size:1.8em; color:#0b2239; margin:30px 0 15px; }
.form { display:grid; gap:10px; max-width:500px; margin:20px auto; }
.form input, .form textarea, .form select { padding:10px; border-radius:5px; border:1px solid #ccc; }
button { background:var(--primary); color:white; padding:12px; border:none; border-radius:5px; font-weight:bold; cursor:pointer; transition:0.2s; }
button:hover { transform: scale(1.1); box-shadow:0 8px 20px rgba(0,198,255,0.4); }

/* Testimonials */
.testimonial-section { background: #004466; color:white; }
.testimonial-slider { max-width:700px; margin:auto; text-align:center; padding:15px; }
.testimonial { display:none; font-style:italic; font-size:1.1em; }

/* Footer */
footer { background:var(--primary); color:white; text-align:center; padding:20px 0; margin-top:40px; }

/* Responsive */
@media(max-width:768px){
    .services-container, .tutoring-cards, .about-wrapper { flex-direction:column; align-items:center; }
    .about-left, .about-right { flex:1 1 100%; }
    .about-left .animated-bars { width:60%; height:200px; }
    .hero-content h1 { font-size:2.5em; }
    .hero-content h2 { font-size:1.5em; }
}
