/* ==========================
   Tiny Scholars - About Page
========================== */

*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:'Fredoka',sans-serif;
}

html{
scroll-behavior:smooth;
}

body{

background:linear-gradient(#c8f3ff,#e8fff3,#fff9d9);
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;
background:white;
width:60px;
height:60px;
left:15px;
top:-25px;
border-radius:50%;

}

.cloud:after{

content:'';
position:absolute;
background:white;
width:80px;
height:80px;
right:15px;
top:-35px;
border-radius:50%;

}

.cloud1{

width:140px;
height:55px;
top:70px;
left:-180px;
animation-duration:45s;

}

.cloud2{

width:180px;
height:65px;
top:170px;
left:-250px;
animation-duration:65s;

}

.cloud3{

width:120px;
height:50px;
top:300px;
left:-150px;
animation-duration:55s;

}

@keyframes cloudMove{

from{

transform:translateX(0);

}

to{

transform:translateX(1700px);

}

}

/* Balloons */

.balloon{

position:fixed;
font-size:45px;
animation:floatBalloon 6s ease-in-out infinite;
z-index:2;

}

.balloon1{

left:40px;
top:200px;

}

.balloon2{

right:50px;
top:320px;
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(12px);

box-shadow:0 8px 20px rgba(0,0,0,.08);

}

.logo{

font-size:34px;
font-weight:bold;
color:#ff6b6b;

}

nav a{

text-decoration:none;
margin-left:25px;
font-size:18px;
font-weight:bold;
color:#555;
transition:.3s;

}

nav a:hover,
nav .active{

color:#ff6b6b;

}

/* Hero */

.hero{

width:90%;
margin:70px auto;

display:flex;
justify-content:space-between;
align-items:center;

gap:50px;

}

.hero-text{

flex:1;

}

.hero-text h1{

font-size:60px;
color:#ff6b6b;
margin-bottom:20px;

}

.hero-text p{

font-size:22px;
line-height:40px;
color:#555;
margin-bottom:35px;

}

.hero-btn{

display:inline-block;

padding:16px 35px;

background:#FFD93D;

color:#333;

text-decoration:none;

font-size:20px;

font-weight:bold;

border-radius:50px;

transition:.3s;

box-shadow:0 10px 20px rgba(0,0,0,.15);

}

.hero-btn:hover{

transform:translateY(-5px);

background:#ffc107;

}

.hero-image{

flex:1;
text-align:center;

}

.hero-image img{

width:90%;
max-width:500px;

animation:floatImage 4s ease-in-out infinite;

}

@keyframes floatImage{

50%{

transform:translateY(-15px);

}

}
/* ==========================
   Rainbow
========================== */

.rainbow{

text-align:center;
font-size:90px;
margin:30px 0;

animation:rainbowMove 3s infinite alternate;

}

@keyframes rainbowMove{

0%{

transform:scale(1);

}

100%{

transform:scale(1.08);

}

}

/* ==========================
   Cards
========================== */

.cards{

width:90%;
margin:70px auto;

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;

border:4px solid transparent;

}

.card:nth-child(1){

border-color:#ffb347;

}

.card:nth-child(2){

border-color:#54a0ff;

}

.card:nth-child(3){

border-color:#10ac84;

}

.card:hover{

transform:translateY(-12px) rotate(-2deg);

box-shadow:0 20px 40px rgba(0,0,0,.15);

}

.card .icon{

font-size:70px;
margin-bottom:20px;

}

.card h2{

color:#ff6b6b;
margin-bottom:15px;
font-size:30px;

}

.card p{

font-size:19px;
line-height:34px;
color:#555;

}

/* ==========================
   Why Choose
========================== */

.why{

width:90%;
margin:90px auto;

display:flex;
justify-content:space-between;
align-items:center;
gap:60px;

background:white;
padding:50px;

border-radius:35px;

box-shadow:0 15px 30px rgba(0,0,0,.08);

}

.why .left{

flex:1;
text-align:center;

}

.why img{

width:90%;
max-width:420px;

animation:floatImage 4s infinite ease-in-out;

}

.why .right{

flex:1;

}

.why h2{

font-size:45px;
color:#ff6b6b;
margin-bottom:20px;

}

.why p{

font-size:21px;
line-height:38px;
color:#555;

}

/* ==========================
   Cartoon Friends
========================== */

.friends{

padding:80px 5%;
text-align:center;

}

.friends h1{

font-size:48px;
color:#10ac84;
margin-bottom:50px;

}

.friend-box{

display:grid;
grid-template-columns:repeat(auto-fit,minmax(220px,1fr));

gap:30px;

}

.friend{

background:white;
padding:30px;
border-radius:30px;

box-shadow:0 12px 25px rgba(0,0,0,.08);

transition:.4s;

}

.friend:hover{

transform:translateY(-10px);

}

.friend{

font-size:70px;

}

.friend h3{

margin-top:20px;
font-size:28px;
color:#ff6b6b;

}

.friend p{

margin-top:10px;
font-size:18px;
color:#666;

}
/* ==========================
   FEATURES
========================== */

.features{

width:90%;
margin:90px auto;
text-align:center;

}

.features h1{

font-size:48px;
color:#10ac84;
margin-bottom:60px;

}

.feature-grid{

display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));

gap:30px;

}

.feature{

background:white;

padding:35px;

border-radius:30px;

box-shadow:0 12px 25px rgba(0,0,0,.08);

transition:.35s;

position:relative;

overflow:hidden;

}

.feature::before{

content:'';

position:absolute;

top:0;
left:-100%;

width:100%;
height:100%;

background:rgba(255,255,255,.3);

transform:skewX(-25deg);

transition:.6s;

}

.feature:hover::before{

left:130%;

}

.feature:hover{

transform:translateY(-10px);

}

.feature{

font-size:65px;

}

.feature h3{

margin-top:18px;

font-size:28px;

color:#ff6b6b;

}

/* ==========================
   LEARNING JOURNEY
========================== */

.journey{

padding:90px 5%;

text-align:center;

}

.journey h1{

font-size:50px;

color:#ff6b6b;

margin-bottom:60px;

}

.steps{

display:flex;

justify-content:center;

align-items:center;

gap:25px;

flex-wrap:wrap;

}

.steps div{

background:white;

width:180px;

padding:30px;

border-radius:25px;

box-shadow:0 10px 20px rgba(0,0,0,.08);

transition:.3s;

}

.steps div:hover{

transform:scale(1.08);

background:#fff8d9;

}

.steps div{

font-size:60px;

}

.steps p{

margin-top:15px;

font-size:20px;

font-weight:bold;

color:#444;

}

/* ==========================
   FOOTER
========================== */

footer{

margin-top:90px;

background:linear-gradient(90deg,#54a0ff,#6ec6ff);

padding:60px 20px;

text-align:center;

color:white;

position:relative;

overflow:hidden;

}

footer::before{

content:"🌈";

position:absolute;

left:40px;

top:20px;

font-size:70px;

opacity:.2;

}

footer::after{

content:"⭐";

position:absolute;

right:50px;

bottom:20px;

font-size:60px;

opacity:.2;

}

footer h2{

font-size:40px;

margin-bottom:15px;

}

footer p{

font-size:20px;

margin-top:10px;

}

/* ==========================
   RESPONSIVE
========================== */

@media(max-width:992px){

.hero{

flex-direction:column-reverse;

text-align:center;

}

.why{

flex-direction:column;

text-align:center;

}

.hero h1{

font-size:45px;

}

.hero p{

font-size:20px;

line-height:34px;

}

}

@media(max-width:768px){

.navbar{

flex-direction:column;

padding:20px;

}

nav{

margin-top:15px;

}

nav a{

display:inline-block;

margin:8px;

}

.logo{

font-size:28px;

}

.hero h1{

font-size:38px;

}

.features h1,
.friends h1,
.journey h1{

font-size:38px;

}

.card,
.friend,
.feature{

padding:25px;

}

.steps div{

width:150px;

}

footer h2{

font-size:32px;

}

}

/* ==========================
   FLOATING STARS
========================== */

body::before{

content:"⭐ ⭐ 🌟 ⭐ ✨";

position:fixed;

top:20px;

right:20px;

font-size:24px;

animation:twinkle 4s infinite;

opacity:.4;

pointer-events:none;

}

@keyframes twinkle{

0%{

opacity:.2;

transform:scale(1);

}

50%{

opacity:.8;

transform:scale(1.2);

}

100%{

opacity:.2;

transform:scale(1);

}

}