/* ======================================
      Tiny Scholars - Home Page CSS
====================================== */

*{

margin:0;
padding:0;
box-sizing:border-box;
font-family:'Fredoka',sans-serif;

}

html{

scroll-behavior:smooth;

}

body{

background:linear-gradient(#b8ecff,#eafcff,#fff8dc);
overflow-x:hidden;
position:relative;

}

/* ================= Clouds ================= */

.cloud{

position:absolute;
background:white;
border-radius:50px;
opacity:.9;
animation:cloudMove linear infinite;

}

.cloud::before{

content:'';
position:absolute;
width:60px;
height:60px;
background:white;
border-radius:50%;
left:15px;
top:-25px;

}

.cloud::after{

content:'';
position:absolute;
width:80px;
height:80px;
background:white;
border-radius:50%;
right:15px;
top:-35px;

}

.cloud1{

width:140px;
height:55px;
top:70px;
left:-180px;
animation-duration:45s;

}

.cloud2{

width:180px;
height:65px;
top:180px;
left:-250px;
animation-duration:60s;

}

.cloud3{

width:120px;
height:50px;
top:320px;
left:-150px;
animation-duration:52s;

}

@keyframes cloudMove{

from{

transform:translateX(0);

}

to{

transform:translateX(1800px);

}

}

/* ================= Balloons ================= */

.balloon{

position:fixed;
font-size:45px;
z-index:2;
animation:floatBalloon 5s ease-in-out infinite;

}

.balloon1{

left:35px;
top:180px;

}

.balloon2{

right:45px;
top:250px;
animation-delay:2s;

}

.balloon3{

right:180px;
top:120px;
animation-delay:4s;

}

@keyframes floatBalloon{

0%,100%{

transform:translateY(0);

}

50%{

transform:translateY(-25px);

}

}

/* ================= Navbar ================= */

.navbar{

position:sticky;
top:0;
z-index:999;

display:flex;
justify-content:space-between;
align-items:center;

padding:18px 50px;

background:rgba(255,255,255,.92);

backdrop-filter:blur(10px);

box-shadow:0 10px 25px rgba(0,0,0,.08);

}

.logo{

font-size:34px;
font-weight:bold;
color:#ff6b6b;

}

nav a{

text-decoration:none;
margin:0 12px;
font-size:18px;
font-weight:bold;
color:#555;
transition:.3s;

}

nav a:hover{

color:#ff6b6b;

}

/* ================= Buttons ================= */

.buttons{

display:flex;
gap:15px;

}

.student-btn,
.teacher-btn{

padding:12px 24px;
border-radius:40px;
text-decoration:none;
font-weight:bold;
transition:.3s;
color:white;

}

.student-btn{

background:#ffb347;

}

.teacher-btn{

background:#54a0ff;

}

.student-btn:hover,
.teacher-btn:hover{

transform:translateY(-4px);

box-shadow:0 10px 20px rgba(0,0,0,.15);

}

/* ================= Hero ================= */

.hero{

width:90%;
margin:70px auto;

display:flex;
align-items:center;
justify-content:space-between;
gap:60px;

}

.left{

flex:1;

}

.left h1{

font-size:60px;
color:#ff6b6b;
margin-bottom:20px;

}

.left p{

font-size:22px;
line-height:40px;
color:#555;
margin-bottom:35px;

}

.start{

display:inline-block;

padding:16px 34px;

background:#FFD93D;

color:#333;

font-size:20px;

font-weight:bold;

text-decoration:none;

border-radius:50px;

transition:.3s;

box-shadow:0 12px 20px rgba(0,0,0,.15);

}

.start:hover{

background:#FFC107;

transform:translateY(-5px);

}

.right{

flex:1;
text-align:center;

}

.right img{

width:90%;
max-width:520px;

animation:kidsFloat 4s ease-in-out infinite;

}

@keyframes kidsFloat{

50%{

transform:translateY(-15px);

}

}

/* ================= Rainbow ================= */

.rainbow{

text-align:center;

font-size:90px;

margin:30px 0;

animation:rainbow 3s infinite alternate;

}

@keyframes rainbow{

100%{

transform:scale(1.08);

}

}
/* ======================================
          OUR CLASSES
====================================== */

#classes{

width:90%;
margin:90px auto;
text-align:center;

}

#classes h2{

font-size:48px;
color:#10ac84;
margin-bottom:50px;

}

.cards{

display:grid;
grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
gap:35px;

}

.card{

background:white;
padding:35px;
border-radius:30px;
text-align:center;

box-shadow:0 15px 30px rgba(0,0,0,.08);

transition:.4s;

position:relative;

overflow:hidden;

}

.card::before{

content:"";

position:absolute;

top:0;
left:0;

width:100%;
height:8px;

background:linear-gradient(90deg,#ff6b6b,#FFD93D,#54a0ff,#10ac84);

}

.card:hover{

transform:translateY(-12px) scale(1.03);

box-shadow:0 18px 35px rgba(0,0,0,.15);

}

.card{

font-size:70px;

}

.card h3{

margin:20px 0;

font-size:30px;

color:#ff6b6b;

}

.card p{

font-size:19px;

line-height:34px;

color:#666;

margin-bottom:25px;

}

.card a{

display:inline-block;

padding:12px 28px;

background:#FFD93D;

border-radius:35px;

text-decoration:none;

font-weight:bold;

color:#333;

transition:.3s;

}

.card a:hover{

background:#FFC107;

transform:scale(1.05);

}

/* ======================================
            FEATURES
====================================== */

#features{

width:90%;
margin:90px auto;

text-align:center;

}

#features h2{

font-size:48px;

color:#ff6b6b;

margin-bottom:50px;

}

.feature-box{

display:grid;

grid-template-columns:repeat(auto-fit,minmax(250px,1fr));

gap:30px;

}

.feature{

background:white;

padding:35px;

border-radius:25px;

box-shadow:0 12px 25px rgba(0,0,0,.08);

transition:.35s;

}

.feature:hover{

transform:translateY(-10px);

background:#fffbe8;

}

.feature{

font-size:60px;

}

.feature h3{

margin-top:18px;

font-size:24px;

color:#10ac84;

}

/* ======================================
       WHY PARENTS LOVE US
====================================== */

.parents{

width:90%;

margin:100px auto;

text-align:center;

}

.parents h2{

font-size:46px;

color:#ff6b6b;

margin-bottom:45px;

}

.parent-box{

display:grid;

grid-template-columns:repeat(auto-fit,minmax(250px,1fr));

gap:25px;

}

.parent-box div{

background:white;

padding:30px;

border-radius:25px;

font-size:20px;

font-weight:bold;

color:#555;

box-shadow:0 10px 20px rgba(0,0,0,.08);

transition:.3s;

}

.parent-box div:hover{

background:#dfffe7;

transform:translateY(-8px);

}

/* ======================================
         REVIEW SECTION
====================================== */

.reviews{

width:90%;

margin:100px auto;

text-align:center;

}

.reviews h2{

font-size:46px;

color:#ff9800;

margin-bottom:45px;

}

.review-container{

display:grid;

grid-template-columns:repeat(auto-fit,minmax(300px,1fr));

gap:30px;

}

.review{

background:white;

padding:35px;

border-radius:30px;

box-shadow:0 12px 25px rgba(0,0,0,.08);

transition:.35s;

}

.review:hover{

transform:translateY(-10px);

}

.review p{

font-size:20px;

line-height:34px;

color:#666;

}

.review h4{

margin-top:20px;

color:#ff6b6b;

}

.view-btn{

display:inline-block;

margin-top:40px;

padding:15px 35px;

background:#54a0ff;

color:white;

font-weight:bold;

text-decoration:none;

border-radius:40px;

transition:.3s;

}

.view-btn:hover{

background:#2e86de;

transform:translateY(-5px);

}
/* ======================================
              GALLERY
====================================== */

.gallery{

width:90%;
margin:100px auto;
text-align:center;

}

.gallery h2{

font-size:48px;
color:#10ac84;
margin-bottom:50px;

}

.gallery-box{

display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:25px;

}

.gallery-box img{

width:100%;
height:250px;
object-fit:cover;

border-radius:25px;

box-shadow:0 10px 20px rgba(0,0,0,.12);

transition:.4s;

cursor:pointer;

}

.gallery-box img:hover{

transform:scale(1.08) rotate(2deg);

box-shadow:0 18px 35px rgba(0,0,0,.18);

}

/* ======================================
           CONTACT / FOOTER
====================================== */

footer{

margin-top:100px;

background:linear-gradient(135deg,#54a0ff,#6ec6ff,#7bed9f);

color:white;

padding:70px 20px;

text-align:center;

position:relative;

overflow:hidden;

}

footer::before{

content:"🌈";

position:absolute;

left:40px;
top:20px;

font-size:70px;

opacity:.25;

}

footer::after{

content:"⭐";

position:absolute;

right:40px;
bottom:20px;

font-size:60px;

opacity:.25;

}

footer h2{

font-size:40px;

margin-bottom:15px;

}

footer p{

font-size:20px;

margin:12px 0;

}

/* ======================================
         FLOATING DECORATION
====================================== */

body::before{

content:"🌸";

position:fixed;

left:25px;

bottom:30px;

font-size:45px;

animation:flowerFloat 4s ease-in-out infinite;

opacity:.8;

pointer-events:none;

z-index:1;

}

body::after{

content:"🦋";

position:fixed;

right:25px;

bottom:60px;

font-size:40px;

animation:butterfly 5s linear infinite;

pointer-events:none;

z-index:1;

}

@keyframes flowerFloat{

0%,100%{

transform:translateY(0);

}

50%{

transform:translateY(-20px);

}

}

@keyframes butterfly{

0%{

transform:translate(0,0);

}

25%{

transform:translate(-30px,-20px);

}

50%{

transform:translate(-10px,-40px);

}

75%{

transform:translate(20px,-20px);

}

100%{

transform:translate(0,0);

}

}

/* ======================================
         SCROLL BAR
====================================== */

::-webkit-scrollbar{

width:12px;

}

::-webkit-scrollbar-track{

background:#eafcff;

}

::-webkit-scrollbar-thumb{

background:#54a0ff;

border-radius:20px;

}

::-webkit-scrollbar-thumb:hover{

background:#2e86de;

}

/* ======================================
         RESPONSIVE
====================================== */

@media(max-width:992px){

.hero{

flex-direction:column-reverse;

text-align:center;

}

.left h1{

font-size:45px;

}

.left p{

font-size:20px;

line-height:34px;

}

}

@media(max-width:768px){

.navbar{

flex-direction:column;

padding:20px;

}

nav{

margin:18px 0;

}

nav a{

display:inline-block;

margin:8px;

}

.buttons{

margin-top:15px;

}

.logo{

font-size:30px;

}

.left h1{

font-size:38px;

}

#classes h2,
#features h2,
.parents h2,
.reviews h2,
.gallery h2{

font-size:36px;

}

.card,
.feature,
.review{

padding:25px;

}

footer h2{

font-size:30px;

}

footer p{

font-size:17px;

}

}

/* ======================================
      HOVER EFFECTS
====================================== */

.card,
.feature,
.review,
.parent-box div{

transition:all .35s ease;

}

.card:hover,
.feature:hover,
.review:hover,
.parent-box div:hover{

box-shadow:0 18px 35px rgba(0,0,0,.18);

}