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

html{
    scroll-behavior:smooth;
}

body{
    background:#0f0f0f;
    color:white;
    opacity:0;
    transition:.5s;
}

/* Navbar */

.navbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 8%;
    background:#151515;
    position:sticky;
    top:0;
    z-index:1000;
}

.logo{
    font-size:30px;
    font-weight:bold;
}

.logo span{
    color:#ff2b2b;
}

.navbar a{
    color:white;
    text-decoration:none;
}

/* Hero */

.hero{
    min-height:80vh;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
    padding:20px;
}

.hero h1{
    font-size:65px;
    margin-bottom:15px;
}

.hero p{
    max-width:700px;
    color:#aaa;
    line-height:1.7;
    margin-bottom:35px;
}

.hero-btn{
    background:#ff2b2b;
    color:white;
    text-decoration:none;
    padding:15px 30px;
    border-radius:15px;
    transition:.3s;
}

.hero-btn:hover{
    transform:translateY(-5px);
}

/* Services */

.services{
    padding:80px 8%;
}

.services h2{
    text-align:center;
    margin-bottom:50px;
}

.service-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(270px,1fr));
    gap:25px;
}

.service-card{
    background:#171717;
    border-radius:25px;
    padding:35px;
    text-decoration:none;
    color:white;
    transition:.3s;
}

.service-card:hover{
    transform:translateY(-10px);
    box-shadow:0 0 20px rgba(255,43,43,.4);
}

.icon{
    font-size:50px;
    margin-bottom:20px;
}

.service-card h3{
    margin-bottom:15px;
}

.service-card p{
    color:#aaa;
    line-height:1.6;
    margin-bottom:25px;
}

.service-card span{
    color:#ff2b2b;
}

/* Footer */

footer{
    text-align:center;
    padding:40px;
    color:#888;
}

/* Responsive */

@media(max-width:768px){

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

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

.logo{
    font-size:24px;
}

}

.loader{    
    position:fixed;
    inset:0;
    background:#0f0f0f;
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:99999;
    transition:.5s;
}

.loader.hide{
    opacity:0;
    visibility:hidden;
}

.loader-content{
    text-align:center;
}

.loader-content h1{
    color:#ff2b2b;
    font-size:55px;
    margin-bottom:25px;
}

.loading-bar{
    width:250px;
    height:10px;
    background:rgba(255,255,255,.1);
    border-radius:999px;
    overflow:hidden;
    margin:auto;
}

.loading-fill{
    width:0;
    height:100%;
    background:#ff2b2b;
    animation:loading 2s linear forwards;
}

.loader-content p{
    margin-top:20px;
    color:#aaa;
}

@keyframes loading{

    from{
        width:0;
    }

    to{
        width:100%;
    }

}

.dashboard{
    padding:0 8% 60px;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:20px;
}

.dash-card{
    background:rgba(255,255,255,.07);
    border:1px solid rgba(255,255,255,.12);
    border-radius:24px;
    padding:28px;
    text-align:center;
}

.dash-card h3{
    color:#ff2b2b;
    font-size:38px;
    margin-bottom:10px;
}

.dash-card p{
    color:#aaa;
}

.nav-links{
    display:flex;
    align-items:center;
    gap:18px;
}

.nav-links a{
    color:white;
    text-decoration:none;
}

@media(max-width:600px){
    .nav-links{
        gap:10px;
        font-size:13px;
    }
}

.global-search{
    padding:0 8% 60px;
}

.global-search h2{
    text-align:center;
    margin-bottom:25px;
}

.global-search input{
    width:100%;
    max-width:600px;
    display:block;
    margin:auto;
    padding:18px;
    border:none;
    outline:none;
    border-radius:20px;
    background:rgba(255,255,255,.08);
    border:1px solid rgba(255,255,255,.15);
    color:white;
}

.search-results{
    margin-top:25px;
    display:grid;
    gap:15px;
}

.result-card{
    background:rgba(255,255,255,.07);
    border:1px solid rgba(255,255,255,.12);
    border-radius:20px;
    padding:20px;
}

.result-card a{
    color:white;
    text-decoration:none;
}

.result-card p{
    color:#aaa;
    margin-top:8px;
}

.search-results{
    display:none;
}

.mobile-nav{
    position:fixed;
    bottom:14px;
    left:50%;
    transform:translateX(-50%);
    width:calc(100% - 28px);
    max-width:500px;
    background:rgba(20,20,20,.9);
    border:1px solid rgba(255,255,255,.12);
    backdrop-filter:blur(18px);
    border-radius:26px;
    padding:12px 0;
    display:none;
    justify-content:space-around;
    z-index:9999;
}

.mobile-nav a{
    text-decoration:none;
    color:#aaa;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:4px;
    font-size:12px;
    font-weight:bold;
}

.mobile-nav span{
    font-size:22px;
}

.mobile-nav .active{
    color:#ff2b2b;
}

@media(max-width:768px){
    .mobile-nav{
        display:flex;
    }

    body{
        padding-bottom:90px;
    }
}