@import url(https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700&lang=en);

*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:'poppins',sans-serif;
}

body{
background-color:#0f0538;
color:#ededed;
}

/* HEADER */

.header{
position:fixed;
top:0;
left:0;
width:100%;
padding:20px 10%;
display:flex;
justify-content:space-between;
align-items:center;
z-index:100;
}

.header h2{
position:relative;
font-size:30px;
color:#252839;
-webkit-text-stroke:2px #383d52;
text-transform:uppercase;
font-family:georgia;
}

.header h2::before{
content:attr(data-text);
position:absolute;
top:0;
left:0;
width:0;
height:100%;
color:#04adff;
border-right:2px solid #04adff;
overflow:hidden;
animation:animate 6s linear infinite;
}

@keyframes animate{
0%,10%,100%{width:0;}
70%{width:100%;}
}

/* Navbar */

.navbar{
display:flex;
}

.navbar a{
font-size:19px;
color:#ededed;
text-decoration:none;
margin-left:35px;
transition:.3s;
font-family:georgia;
}

.navbar a:hover,
.navbar a.active{
color:#00abf0;
}

/* Menu button */

.menu-btn{
display:none;
font-size:26px;
color:white;
cursor:pointer;
}

/* Section Titles */

.infoSection{
width:100%;
text-align:center;
margin-top:100px;
}

.infoSection h1{
color:#dedce1;
font-size:30px;
text-transform:uppercase;
display:inline-block;
position:relative;
margin-bottom:30px;
}

.infoSection h1::before{
content:'';
position:absolute;
width:100%;
height:1px;
top:110%;
background:#00abf0;
}

.infoSection h1::after{
content:'';
position:absolute;
width:40%;
height:3px;
top:calc(110% - 1px);
left:0;
background:#00abf0;
}

/* Wrapper & Cards */

.wrapper{
display:flex;
flex-wrap:wrap;
justify-content:space-around;
margin-top:50px; /* فاصله بین عنوان و کارت‌ها */
gap:30px; /* فاصله بین کارت‌ها */
}

.card{
width:280px;
height:360px;
padding:2rem 1rem;
background:#fff;
position:relative;
display:flex;
align-items:flex-end;
box-shadow:0px 7px 10px rgba(0,0,0,0.5);
transition:0.5s ease-in-out;
}

.card:hover{
transform: translateY(-10px);
}

.card:before{
content:'';
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
background:linear-gradient(to bottom,rgba(0,176,155,0.5),rgba(0,139,218,1));
z-index:2;
opacity:0;
transition:0.5s all;
}

.card:hover:before{
opacity:1;
}

.card img{
width:100%;
height:100%;
object-fit:cover;
position:absolute;
top:0;
left:0;
}

.card .info{
position:relative;
z-index:3;
color:#fff;
opacity:0;
transform:translateY(30px);
transition:0.5s all;
}

.card:hover .info{
opacity:1;
transform:translateY(0px);
}

.card .info h1{
margin:0;
font-family:cursive;
}

.card .info p{
letter-spacing:1px;
font-size:15px;
margin-top:8px;
margin-bottom:20px;
font-family:cursive;
}

.card .info .btn{
text-decoration:none;
padding:0.5rem 1rem;
background-color:#fff;
color:#000;
font-size:14px;
font-weight:bold;
cursor:pointer;
transition:0.4s ease-in-out;
}

.card .info .btn:hover{
box-shadow:0px 7px 10px rgba(0,0,0,0.5);
}

/* Mobile Responsive */

@media(max-width:768px){

.menu-btn{
display:block;
}

.navbar{
position:absolute;
top:100%;
left:0;
width:100%;
background:#081b29;
flex-direction:column;
display:none;
text-align:center;
}

.navbar.active{
display:flex;
}

.navbar a{
margin:12px 0;
font-size:18px;
}

.wrapper{
flex-direction:column;
align-items:center;
}

.card{
width:90%;
margin-bottom:30px;
}

.infoSection h1{
font-size:26px;
}

}