/* ===========================
   CloudNova
   style.css
=========================== */

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

html{
    scroll-behavior:smooth;
}

body{

    font-family:'Inter',sans-serif;

    background:#08111f;

    color:#fff;

    overflow-x:hidden;

    line-height:1.7;

}

/* ========================= */

.container{

    width:90%;

    max-width:1300px;

    margin:auto;

}

/* ========================= */

.background-blur{

    position:fixed;

    border-radius:50%;

    filter:blur(180px);

    opacity:.45;

    z-index:-2;

}

.blur-1{

    width:500px;
    height:500px;

    background:#4f8cff;

    top:-180px;
    left:-150px;

}

.blur-2{

    width:600px;
    height:600px;

    background:#0bd6ff;

    bottom:-250px;
    right:-180px;

}

/* ========================= */

.header{

    position:fixed;

    width:100%;

    top:0;

    left:0;

    z-index:999;

    backdrop-filter:blur(25px);

    background:rgba(8,17,31,.75);

    border-bottom:1px solid rgba(255,255,255,.08);

}

/* ========================= */

.navbar{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:22px 0;

}

/* ========================= */

.logo{

    display:flex;

    align-items:center;

    gap:12px;

    font-size:30px;

    font-weight:800;

    color:white;

}

.logo-icon{

    font-size:36px;

}

/* ========================= */

.nav-menu{

    display:flex;

    gap:45px;

}

.nav-menu a{

    color:white;

    text-decoration:none;

    font-weight:500;

    transition:.3s;

    position:relative;

}

.nav-menu a:hover{

    color:#4fa3ff;

}

.nav-menu a::after{

    content:"";

    position:absolute;

    bottom:-6px;

    left:0;

    width:0;

    height:2px;

    background:#4fa3ff;

    transition:.3s;

}

.nav-menu a:hover::after{

    width:100%;

}

/* ========================= */

.login-btn{

    border:none;

    cursor:pointer;

    color:white;

    font-size:15px;

    padding:13px 30px;

    border-radius:50px;

    background:linear-gradient(135deg,#4f8cff,#1fd1ff);

    transition:.35s;

    font-weight:600;

    box-shadow:0 12px 40px rgba(79,140,255,.35);

}

.login-btn:hover{

    transform:translateY(-3px);

    box-shadow:0 20px 50px rgba(79,140,255,.55);

}

/* ========================= */

.hero{

    min-height:100vh;

    display:flex;

    align-items:center;

    text-align:center;

    padding-top:140px;

}

/* ========================= */

.hero-content{

    width:100%;

}

.hero-badge{

    display:inline-block;

    margin-bottom:35px;

    padding:12px 24px;

    border-radius:40px;

    border:1px solid rgba(255,255,255,.15);

    background:rgba(255,255,255,.05);

    font-size:15px;

    backdrop-filter:blur(15px);

}

/* ========================= */

.hero h1{

    font-size:72px;

    line-height:1.1;

    font-weight:900;

    max-width:950px;

    margin:auto;

}

.hero p{

    margin:40px auto;

    max-width:760px;

    font-size:22px;

    color:#c8d6ef;

}

/* ========================= */

.hero-buttons{

    display:flex;

    justify-content:center;

    gap:25px;

    flex-wrap:wrap;

}

/* ========================= */

.primary-btn{

    display:inline-block;

    text-decoration:none;

    color:white;

    background:linear-gradient(135deg,#4f8cff,#14c9ff);

    padding:18px 42px;

    border-radius:60px;

    font-weight:700;

    transition:.35s;

    box-shadow:0 18px 45px rgba(79,140,255,.4);

}

.primary-btn:hover{

    transform:translateY(-5px);

}

/* ========================= */

.secondary-btn{

    display:inline-block;

    text-decoration:none;

    color:white;

    border:1px solid rgba(255,255,255,.15);

    background:rgba(255,255,255,.05);

    padding:18px 42px;

    border-radius:60px;

    transition:.35s;

}

.secondary-btn:hover{

    background:rgba(255,255,255,.12);

}

/* ========================= */

section{

    padding:120px 0;

}

/* ========================= */

.section-title{

    text-align:center;

    font-size:52px;

    font-weight:800;

    margin-bottom:80px;

}

/* ========================= */

.feature-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));

    gap:35px;

}

/* ========================= */

.feature-card{

    padding:40px;

    border-radius:24px;

    background:rgba(255,255,255,.05);

    backdrop-filter:blur(20px);

    border:1px solid rgba(255,255,255,.08);

    transition:.35s;

}

.feature-card:hover{

    transform:translateY(-10px);

    background:rgba(255,255,255,.08);

}

.feature-icon{

    font-size:48px;

    margin-bottom:25px;

}

.feature-card h3{

    font-size:28px;

    margin-bottom:18px;

}

.feature-card p{

    color:#b9c9df;

}

/* ==========================================
   POSTS
========================================== */

.posts{

    position:relative;

}

.posts-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));

    gap:35px;

}

.post-card{

    background:rgba(255,255,255,.05);

    border:1px solid rgba(255,255,255,.08);

    border-radius:24px;

    padding:40px;

    transition:.35s;

    backdrop-filter:blur(20px);

    overflow:hidden;

    position:relative;

}

.post-card::before{

    content:"";

    position:absolute;

    top:0;

    left:0;

    width:100%;

    height:5px;

    background:linear-gradient(
        90deg,
        #4f8cff,
        #14d7ff
    );

}

.post-card:hover{

    transform:translateY(-12px);

    box-shadow:0 25px 60px rgba(0,0,0,.35);

}

.post-tag{

    display:inline-block;

    padding:8px 18px;

    border-radius:30px;

    background:#237bff;

    font-size:14px;

    margin-bottom:25px;

}

.post-card h3{

    font-size:30px;

    margin-bottom:20px;

}

.post-card p{

    color:#bdd0e5;

    font-size:17px;

}

/* ==========================================
   STATS
========================================== */

.stats{

    padding-top:50px;

    padding-bottom:120px;

}

.stats-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(230px,1fr));

    gap:30px;

}

.stat-card{

    text-align:center;

    padding:45px;

    border-radius:24px;

    background:rgba(255,255,255,.05);

    border:1px solid rgba(255,255,255,.08);

    transition:.3s;

}

.stat-card:hover{

    transform:translateY(-10px);

}

.stat-card h3{

    font-size:54px;

    color:#4ca9ff;

    margin-bottom:12px;

}

.stat-card p{

    color:#c0d2e8;

}

/* ==========================================
   REVIEWS
========================================== */

.reviews-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));

    gap:35px;

}

.review-card{

    background:rgba(255,255,255,.05);

    border-radius:24px;

    padding:40px;

    border:1px solid rgba(255,255,255,.08);

    transition:.35s;

}

.review-card:hover{

    transform:translateY(-10px);

}

.review-card p{

    font-size:19px;

    line-height:1.8;

    margin-bottom:30px;

    color:#d5e1ef;

}

.review-card span{

    color:#6fb8ff;

    font-weight:700;

}

/* ==========================================
   FAQ
========================================== */

.faq-list{

    display:flex;

    flex-direction:column;

    gap:25px;

}

.faq-item{

    background:rgba(255,255,255,.05);

    border-radius:22px;

    padding:35px;

    border:1px solid rgba(255,255,255,.08);

    transition:.35s;

}

.faq-item:hover{

    background:rgba(255,255,255,.08);

}

.faq-item h3{

    margin-bottom:15px;

    font-size:26px;

}

.faq-item p{

    color:#c8d5e6;

}

/* ==========================================
   CTA
========================================== */

.cta{

    padding:130px 0;

}

.cta-box{

    text-align:center;

    padding:90px 60px;

    border-radius:32px;

    background:linear-gradient(
        145deg,
        rgba(79,140,255,.15),
        rgba(20,215,255,.08)
    );

    border:1px solid rgba(255,255,255,.08);

}

.cta-box h2{

    font-size:56px;

    margin-bottom:30px;

}

.cta-box p{

    font-size:22px;

    color:#c7d5e6;

    margin-bottom:45px;

}

/* ==========================================
   FOOTER
========================================== */

.footer{

    padding-top:80px;

    padding-bottom:40px;

    border-top:1px solid rgba(255,255,255,.08);

}

.footer-content{

    display:grid;

    grid-template-columns:2fr 1fr 1fr;

    gap:60px;

    margin-bottom:60px;

}

.footer h3{

    font-size:34px;

    margin-bottom:20px;

}

.footer h4{

    margin-bottom:18px;

}

.footer p{

    color:#bfcfe2;

}

.footer ul{

    list-style:none;

}

.footer li{

    color:#bfcfe2;

    margin-bottom:14px;

}

.footer li:hover{

    color:white;

    cursor:pointer;

}

.copyright{

    text-align:center;

    color:#8fa7c2;

    padding-top:35px;

    border-top:1px solid rgba(255,255,255,.06);

}

/* ==========================================
   MODAL WINDOW
========================================== */

.modal{

    position:fixed;

    inset:0;

    display:none;

    justify-content:center;

    align-items:center;

    background:rgba(0,0,0,.75);

    backdrop-filter:blur(12px);

    z-index:5000;

    animation:fadeIn .35s ease;

}

.modal.active{

    display:flex;

}

.modal-content{

    width:90%;

    max-width:430px;

    background:#0f1b2d;

    border:1px solid rgba(255,255,255,.08);

    border-radius:24px;

    padding:40px;

    position:relative;

    box-shadow:0 30px 80px rgba(0,0,0,.45);

    animation:popup .35s ease;

}

.modal-content h2{

    text-align:center;

    margin-bottom:35px;

    font-size:34px;

}

.close-btn{

    position:absolute;

    top:18px;

    right:20px;

    width:38px;

    height:38px;

    border:none;

    border-radius:50%;

    background:rgba(255,255,255,.08);

    color:white;

    font-size:26px;

    cursor:pointer;

    transition:.3s;

}

.close-btn:hover{

    background:#ff4f6d;

    transform:rotate(90deg);

}

/* ==========================================
   FORM
========================================== */

#loginForm{

    display:flex;

    flex-direction:column;

    gap:18px;

}

#loginForm input{

    width:100%;

    padding:18px 20px;

    border-radius:14px;

    border:1px solid rgba(255,255,255,.08);

    background:#16243b;

    color:white;

    font-size:16px;

    outline:none;

    transition:.3s;

}

#loginForm input:focus{

    border-color:#4f8cff;

    box-shadow:0 0 0 4px rgba(79,140,255,.18);

}

#loginForm input::placeholder{

    color:#8ea5c0;

}

.modal-btn{

    margin-top:10px;

    border:none;

    cursor:pointer;

    font-size:17px;

}

/* ==========================================
   ERROR
========================================== */

.error-message{

    display:none;

    padding:15px;

    border-radius:12px;

    background:#ff3d3d22;

    border:1px solid #ff4f4f;

    color:#ff8e8e;

    text-align:center;

    font-weight:600;

}

.error-message.show{

    display:block;

    animation:shake .35s ease;

}

/* ==========================================
   ANIMATIONS
========================================== */

@keyframes popup{

    from{

        opacity:0;

        transform:translateY(40px) scale(.92);

    }

    to{

        opacity:1;

        transform:translateY(0) scale(1);

    }

}

@keyframes fadeIn{

    from{

        opacity:0;

    }

    to{

        opacity:1;

    }

}

@keyframes shake{

    0%{

        transform:translateX(0);

    }

    20%{

        transform:translateX(-8px);

    }

    40%{

        transform:translateX(8px);

    }

    60%{

        transform:translateX(-6px);

    }

    80%{

        transform:translateX(6px);

    }

    100%{

        transform:translateX(0);

    }

}

/* ==========================================
   SCROLLBAR
========================================== */

::-webkit-scrollbar{

    width:11px;

}

::-webkit-scrollbar-track{

    background:#09111f;

}

::-webkit-scrollbar-thumb{

    background:#337cff;

    border-radius:20px;

}

::-webkit-scrollbar-thumb:hover{

    background:#57a4ff;

}

/* ==========================================
   SELECTION
========================================== */

::selection{

    background:#3f89ff;

    color:white;

}

/* ==========================================
   RESPONSIVE
========================================== */

@media(max-width:1100px){

    .hero h1{

        font-size:56px;

    }

    .section-title{

        font-size:42px;

    }

    .cta-box h2{

        font-size:44px;

    }

    .footer-content{

        grid-template-columns:1fr;

        text-align:center;

    }

}

@media(max-width:860px){

    .navbar{

        flex-direction:column;

        gap:22px;

    }

    .nav-menu{

        flex-wrap:wrap;

        justify-content:center;

        gap:18px;

    }

    .hero{

        padding-top:190px;

    }

    .hero h1{

        font-size:46px;

    }

    .hero p{

        font-size:18px;

    }

    .hero-buttons{

        flex-direction:column;

        align-items:center;

    }

    .cta-box{

        padding:60px 30px;

    }

    .cta-box h2{

        font-size:34px;

    }

}

@media(max-width:600px){

    section{

        padding:80px 0;

    }

    .hero h1{

        font-size:36px;

    }

    .section-title{

        font-size:32px;

    }

    .feature-card,
    .post-card,
    .review-card,
    .faq-item{

        padding:28px;

    }

    .modal-content{

        padding:30px 24px;

    }

    .modal-content h2{

        font-size:28px;

    }

    .primary-btn,
    .secondary-btn{

        width:100%;

        text-align:center;

    }

}
