*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    background:#111;
    color:#fff;
    font-family:'Poppins',sans-serif;
    overflow-x:hidden;
}

header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:80px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0 60px;
    background:rgba(0,0,0,.6);
    backdrop-filter:blur(12px);
    z-index:1000;
}

.logo{
    font-size:28px;
    font-weight:700;
    color:#f46717;
    letter-spacing:2px;
}

nav{
    display:flex;
    gap:30px;
}

nav a{
    color:white;
    text-decoration:none;
    font-weight:500;
    transition:.3s;
}

nav a:hover{
    color:#f46717;
}

.hero{
    height:100vh;
    background:url("./img/home/home-1.jpg") center/cover;
    position:relative;
    display:flex;
    justify-content:center;
    align-items:center;
}

.overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.55);
}

.hero-content{
    position:relative;
    text-align:center;
    z-index:5;
}

.hero h1{
    font-size:72px;
    letter-spacing:5px;
    margin-bottom:15px;
}

.hero p{
    font-size:20px;
    opacity:.85;
    margin-bottom:30px;
}

.hero button{
    padding:16px 40px;
    border:none;
    background:#f46717;
    color:white;
    border-radius:50px;
    cursor:pointer;
    transition:.3s;
    font-size:18px;
}

.hero button:hover{
    transform:translateY(-4px);
    background:#ff5656;
}

.search-area{
    padding:70px 20px;
    display:flex;
    justify-content:center;
}

.search-area input{
    width:500px;
    max-width:95%;
    padding:18px;
    border:none;
    outline:none;
    border-radius:50px;
    background:#1d1d1d;
    color:white;
    font-size:17px;
}

section h2{
    text-align:center;
    margin-bottom:45px;
    font-size:40px;
}

.section-divider{
    text-align:center;
    font-size:40px;
    margin:60px 0 30px;
    color:#f46717;
}

.characters{
    width:90%;
    margin:auto;
    padding-bottom:80px;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.card {
    width: 280px; 
    background: #1a1a1a;
    border-radius: 20px;
    overflow: hidden;
    transition: .35s;
    cursor: pointer;
}

.card:hover{
    transform:translateY(-10px);
    box-shadow:0 15px 35px rgba(235, 91, 9);
}

.card img{
    width:100%;
    height:320px;
    object-fit:cover;
}

.card h3{
    text-align:center;
    margin:20px 0;
}

.card button{
    width:80%;
    display:block;
    margin:20px auto 30px;
    padding:14px;
    border:none;
    border-radius:50px;
    background:#f46717;
    color:white;
    cursor:pointer;
    transition:.3s;
}

.card button:hover{
    background:#ff5b5b;
}

.gallery{
    width:90%;
    margin:auto;
    padding:90px 0;
}

.gallery-grid {
    column-count: 3; 
    column-gap: 20px; 
}

.gallery-grid img {
    width: 100%;
    margin-bottom: 20px; 
    break-inside: avoid; 
    border-radius: 15px;
    transition: .4s;
    cursor: pointer;
    display: block;
}

.gallery-grid img:hover {
    transform: scale(1.04);
}

footer{
    background:#0b0b0b;
    padding:40px 20px;
    text-align:center;
    color:#bdbdbd;
    font-size:15px;
}

.about{
    width:90%;
    margin:auto;
    padding:80px 0;
    text-align:center;
}

.about p{
    max-width:800px;
    margin:auto;
    font-size:18px;
    line-height:1.8;
    color:#d8d8d8;
}

.modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.75);
    display:flex;
    justify-content:center;
    align-items:center;
    opacity:0;
    visibility:hidden;
    transition:.35s;
    z-index:2000;
}

.modal.active{
    opacity:1;
    visibility:visible;
}

.modal-box{
    width:90%;
    max-width:600px;
    background:#1a1a1a;
    padding:40px;
    border-radius:20px;
    position:relative;
    transform:translateY(30px);
    transition:.35s;
}

.modal.active .modal-box{
    transform:translateY(0);
}

.modal-box h2{
    margin-bottom:20px;
    color:#f46717;
}

.modal-box p{
    color:#ddd;
    line-height:1.8;
    font-size:16px;
}

#close{
    position:absolute;
    top:15px;
    right:20px;
    font-size:32px;
    cursor:pointer;
    transition:.3s;
}

#close:hover{
    color:#f46717;
}

#topButton{
    position:fixed;
    right:25px;
    bottom:25px;
    width:55px;
    height:55px;
    border:none;
    border-radius:50%;
    background:#f46717;
    color:#fff;
    font-size:22px;
    cursor:pointer;
    opacity:0;
    visibility:hidden;
    transition:.3s;
    z-index:1500;
}

#topButton.show{
    opacity:1;
    visibility:visible;
}

#topButton:hover{
    transform:translateY(-5px);
    background:#ff5a5a;
}

::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:#111;
}

::-webkit-scrollbar-thumb{
    background:#f46717;
    border-radius:20px;
}

::-webkit-scrollbar-thumb:hover{
    background:#ff5b5b;
}

.fade{
    opacity:0;
    transform:translateY(40px);
    transition:1s;
}

.fade.show{
    opacity:1;
    transform:translateY(0);
}

@keyframes float{

    0%{
        transform:translateY(0);
    }

    50%{
        transform:translateY(-8px);
    }

    100%{
        transform:translateY(0);
    }

}

.card:hover img{
    animation:float 2s infinite;
}

@media(max-width:1000px){

    header{
        padding:0 30px;
    }

    nav{
        gap:18px;
    }

    .hero h1{
        font-size:54px;
    }

}

@media(max-width:768px){

    header{
        flex-direction:column;
        height:auto;
        padding:20px;
    }

    nav{
        margin-top:15px;
        flex-wrap:wrap;
        justify-content:center;
    }

    .hero h1{
        font-size:42px;
    }

    .hero p{
        font-size:17px;
    }

    section h2{
        font-size:32px;
    }

    .section-divider{
        font-size:32px;
    }

    .card img{
        height:280px;
    }

    .gallery-grid{
        column-count: 2;
    }

}

@media(max-width:500px){

    .hero h1{
        font-size:34px;
    }

    .hero p{
        font-size:15px;
    }

    .hero button{
        padding:14px 30px;
    }

    .search-area input{
        font-size:15px;
    }

    .modal-box{
        padding:25px;
    }

    .gallery-grid{
        column-count: 1;
    }

}