/* ================= HERO ================= */

.hero{
height:500px;
background:url("../images/Healthcare banner.png") center/cover no-repeat;
display:flex;
align-items:center;
justify-content:center;
text-align:center;
position:relative;
overflow:hidden;
}

.hero::after{
content:"";
position:absolute;
inset:0;
background: rgba(0,0,0,0.15);
}

.hero-content{
color:#fff;
position:relative;
animation:fadeUp 1s ease;
}

.hero-content h1{
font-size:44px;
font-weight:700;
margin-bottom:10px;
}

.hero-content p{
font-size:14px;
opacity:0.9;
}

/* ================= HEALTHCARE ================= */

.healthcare{
padding:50px 0;
}

.health-flex{
display:flex;
gap:60px;
align-items:center;
justify-content:center;
flex-wrap:wrap;
}

.health-left{
flex:1;
text-align:center;
animation:fadeLeft 1s ease;
}

.big-circle img{
max-width:320px;
width:100%;
transition:transform .4s ease;
}

.big-circle img:hover{
transform:scale(1.05) rotate(2deg);
}

.health-right{
flex:1;
animation:fadeRight 1s ease;
}

.health-right h2{
font-size:32px;
margin-bottom:20px;
}

.health-right p{
margin-bottom:15px;
line-height:1.8;
color:#666;
text-align:justify;
}

/* ================= SERVICES ================= */

.services{
padding:30px 0;
text-align:center;
}

.services h2{
font-size:30px;
margin-bottom:40px;
}

.service-grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:40px;
}

.service{
padding:20px;
border-radius:16px;
transition:.4s;
position:relative;
overflow:hidden;
}

.service::before{
content:"";
position:absolute;
inset:0;
background:linear-gradient(120deg,transparent,rgba(255,255,255,0.4),transparent);
transform:translateX(-100%);
transition:.6s;
}

.service:hover::before{
transform:translateX(100%);
}

.service:hover{
transform:translateY(-10px);
box-shadow:0 15px 30px rgba(0,0,0,0.1);
background:#f9fbff;
}

.gradient-number{
font-size:90px;
font-weight:800;
background:linear-gradient(to right,#4f91ee,#00c6ff);
-webkit-background-clip:text;
-webkit-text-fill-color:transparent;
}

.service p{
margin-top:10px;
color:#555;
font-size:14px;
}

/* ================= TERVYS ================= */

.tervys{
padding:30px 0;
text-align:center;
}

.tervys h2{
font-size:30px;
margin-bottom:30px;
}

.center-circle img{
max-width:500px;
width:100%;
transition:transform .5s ease;
animation:zoomIn 1s ease;
}

.center-circle img:hover{
transform:scale(1.05);
}

/* ================= ANIMATIONS ================= */

@keyframes fadeUp{
from{
opacity:0;
transform:translateY(40px);
}
to{
opacity:1;
transform:translateY(0);
}
}

@keyframes fadeLeft{
from{
opacity:0;
transform:translateX(-60px);
}
to{
opacity:1;
transform:translateX(0);
}
}

@keyframes fadeRight{
from{
opacity:0;
transform:translateX(60px);
}
to{
opacity:1;
transform:translateX(0);
}
}

@keyframes zoomIn{
from{
opacity:0;
transform:scale(0.8);
}
to{
opacity:1;
transform:scale(1);
}
}

/* ================= RESPONSIVE ================= */

/* tablets */
@media(max-width:992px){

.hero{
height:400px;
}

.hero-content h1{
font-size:34px;
}

.service-grid{
grid-template-columns:repeat(2,1fr);
}

.health-flex{
flex-direction:column;
text-align:center;
}

.health-right{
text-align:center;
}

}

/* mobiles */
@media(max-width:768px){

.hero{
height:350px;
}

.hero-content h1{
font-size:28px;
}

.service-grid{
grid-template-columns:1fr;
}

.gradient-number{
font-size:70px;
}

.center-circle img{
max-width:320px;
}

}

/* small mobiles */
@media(max-width:576px){

.hero{
height:300px;
}

.hero-content h1{
font-size:24px;
}

.hero-content p{
font-size:12px;
}

.services h2,
.tervys h2{
font-size:24px;
}

}