/* =========================
   RESET & ROOT
========================= */

:root{
    --primary:#165DFF;
    --primary-dark:#0040C9;
    --secondary:#00C2FF;

    --dark:#0F172A;
    --dark-card:#162033;

    --text:#1E293B;
    --text-light:#64748B;

    --white:#FFFFFF;
    --bg:#F8FAFC;

    --success:#22C55E;
    --danger:#EF4444;

    --shadow:
    0 10px 30px rgba(0,0,0,.08);

    --shadow-lg:
    0 20px 50px rgba(0,0,0,.15);

    --radius:20px;
    --transition:.3s ease;
}

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

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:var(--bg);
    color:var(--text);
    overflow-x:hidden;
    line-height:1.7;
}

.container{
    width:90%;
    max-width:1200px;
    margin:auto;
}

a{
    text-decoration:none;
    color:inherit;
}

img{
    max-width:100%;
    display:block;
}

ul{
    list-style:none;
}

section{
    padding:100px 0;
}

/* =========================
   LOADER
========================= */

#loader{
    position:fixed;
    inset:0;
    background:#fff;
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:99999;
}

.loader-circle{
    width:75px;
    height:75px;
    border:7px solid #E5E7EB;
    border-top:7px solid var(--primary);
    border-radius:50%;
    animation:spin 1s linear infinite;
}

@keyframes spin{
    to{
        transform:rotate(360deg);
    }
}

/* =========================
   BACKGROUND BLUR
========================= */

.bg-blur{
    position:fixed;
    border-radius:50%;
    filter:blur(140px);
    z-index:-1;
}

.blur-1{
    width:350px;
    height:350px;
    top:-100px;
    left:-100px;
    background:rgba(22,93,255,.25);
}

.blur-2{
    width:400px;
    height:400px;
    right:-120px;
    bottom:-120px;
    background:rgba(0,194,255,.20);
}

/* =========================
   GLASS NAVBAR
========================= */

.navbar{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    z-index:9999;

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

    backdrop-filter:blur(20px);
    -webkit-backdrop-filter:blur(20px);

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

    transition:.4s ease;
}

.nav-wrapper{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 0;
}

.logo{
    display:flex;
    align-items:center;
    gap:10px;

    font-size:1.4rem;
    font-weight:800;

    color:var(--primary);
}

.logo i{
    font-size:1.6rem;
}

.nav-menu{
    display:flex;
    gap:30px;
}

.nav-menu a{
    font-weight:600;
    position:relative;
}

.nav-menu a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-6px;

    width:0%;
    height:2px;

    background:var(--primary);

    transition:var(--transition);
}

.nav-menu a:hover::after{
    width:100%;
}

.nav-menu a:hover{
    color:var(--primary);
}

.nav-actions{
    display:flex;
    align-items:center;
    gap:15px;
}

#darkModeBtn{
    width:45px;
    height:45px;

    border:none;
    border-radius:50%;

    background:white;

    cursor:pointer;

    box-shadow:var(--shadow);

    transition:var(--transition);
}

#darkModeBtn:hover{
    transform:translateY(-3px);
}

.hamburger{
    display:none;
    font-size:1.6rem;
    cursor:pointer;
}

/* =========================
   HERO SECTION
========================= */

.hero{
    padding-top:170px;
    position:relative;
}

.hero-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:60px;
    align-items:center;
}

.badge{
    display:inline-flex;
    align-items:center;
    gap:10px;

    padding:10px 18px;

    border-radius:999px;

    background:
    rgba(22,93,255,.1);

    color:var(--primary);

    font-weight:600;

    margin-bottom:25px;
}

.hero-content h1{
    font-size:4rem;
    line-height:1.15;
    margin-bottom:20px;
}

.hero-content h1 span{
    color:var(--primary);
    position:relative;
}

.hero-content h1 span::after{
    content:"";

    position:absolute;
    left:0;
    bottom:5px;

    width:100%;
    height:12px;

    background:
    rgba(22,93,255,.15);

    z-index:-1;
}

.hero-content p{
    font-size:1.1rem;
    color:var(--text-light);
    margin-bottom:30px;
}

.hero-buttons{
    display:flex;
    gap:15px;
    flex-wrap:wrap;
}

.btn-primary,
.btn-secondary{
    padding:15px 30px;
    border-radius:999px;

    font-weight:600;

    transition:var(--transition);
}

.btn-primary{
    background:
    linear-gradient(
    135deg,
    var(--primary),
    var(--primary-dark));

    color:white;

    box-shadow:
    0 10px 25px
    rgba(22,93,255,.30);
}

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

.btn-secondary{
    border:2px solid var(--primary);
    color:var(--primary);
}

.btn-secondary:hover{
    background:var(--primary);
    color:white;
}

.hero-features{
    display:flex;
    flex-wrap:wrap;
    gap:20px;

    margin-top:30px;
}

.hero-features div{
    display:flex;
    align-items:center;
    gap:8px;

    font-weight:600;
}

.hero-features i{
    color:var(--success);
}

.hero-image{
    position:relative;
}

.hero-image img{
    width:100%;
    border-radius:30px;

    box-shadow:
    0 25px 60px
    rgba(22,93,255,.18);
}

/* FLOATING ICONS */

.floating-card{
    position:absolute;

    width:70px;
    height:70px;

    background:white;

    border-radius:50%;

    display:flex;
    justify-content:center;
    align-items:center;

    font-size:1.5rem;

    color:var(--primary);

    box-shadow:var(--shadow);

    animation:float 4s ease-in-out infinite;
}

.card1{
    top:-20px;
    left:-20px;
}

.card2{
    right:-20px;
    top:45%;
}

.card3{
    bottom:-20px;
    left:40%;
}

@keyframes float{
    0%,100%{
        transform:translateY(0);
    }

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

/* =========================
   COUNTER SECTION
========================= */

.counter-section{
    padding:70px 0;
}

.counter-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
}

.counter-box{
    background:white;
    padding:35px 20px;
    border-radius:20px;
    text-align:center;
    box-shadow:var(--shadow);
    transition:var(--transition);
}

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

.counter-box h2{
    font-size:3rem;
    color:var(--primary);
    font-weight:800;
}

.counter-box p{
    color:var(--text-light);
    font-weight:500;
}

/* =========================
   SECTION TITLE
========================= */

.section-title{
    text-align:center;
    margin-bottom:60px;
}

.section-title h2{
    font-size:2.7rem;
    margin-bottom:10px;
}

.section-title p{
    color:var(--text-light);
    max-width:600px;
    margin:auto;
}

/* =========================
   SERVICES
========================= */

.services{
    background:white;
}

.services-grid{
    display:grid;
    grid-template-columns:
    repeat(auto-fit,minmax(260px,1fr));
    gap:30px;
}

.service-card{
    background:white;
    border-radius:25px;
    overflow:hidden;

    box-shadow:var(--shadow);

    transition:.4s ease;
}

.service-card:hover{
    transform:translateY(-12px);
    box-shadow:
    0 20px 50px rgba(0,0,0,.15);
}

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

.service-card h3{
    padding:20px 20px 10px;
    font-size:1.3rem;
}

.service-card p{
    padding:0 20px 25px;
    color:var(--text-light);
}

.service-card::before{
    content:"";

    display:block;

    width:100%;
    height:5px;

    background:
    linear-gradient(
    90deg,
    var(--primary),
    var(--secondary));
}

/* =========================
   PORTFOLIO FILTER
========================= */

.portfolio-filter{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:15px;
    margin-bottom:40px;
}

.filter-btn{
    border:none;
    padding:12px 24px;
    border-radius:999px;

    background:white;
    cursor:pointer;

    font-weight:600;

    box-shadow:var(--shadow);

    transition:.3s;
}

.filter-btn:hover,
.filter-btn.active{
    background:var(--primary);
    color:white;
}

/* =========================
   PORTFOLIO GRID
========================= */

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

.portfolio-item{
    position:relative;
    overflow:hidden;

    border-radius:25px;

    box-shadow:var(--shadow);
}

.portfolio-item img{
    width:100%;
    height:280px;
    object-fit:cover;

    transition:.5s ease;
}

.portfolio-item:hover img{
    transform:scale(1.12);
}

.overlay{
    position:absolute;
    inset:0;

    background:
    linear-gradient(
    to top,
    rgba(22,93,255,.92),
    transparent);

    display:flex;
    align-items:flex-end;
    justify-content:flex-start;

    padding:25px;

    color:white;

    opacity:0;
    transition:.4s;
}

.portfolio-item:hover .overlay{
    opacity:1;
}

.overlay h4{
    font-size:1.2rem;
}

/* =========================
   PRICING
========================= */

.pricing{
    background:white;
}

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

    gap:30px;
}

.price-card{
    position:relative;

    background:white;

    border-radius:30px;

    padding:40px 30px;

    text-align:center;

    box-shadow:var(--shadow);

    transition:.4s ease;
}

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

.price-card h3{
    font-size:1.5rem;
}

.price{
    font-size:3rem;
    font-weight:800;

    color:var(--primary);

    margin:20px 0;
}

.price-card ul{
    margin:25px 0;
}

.price-card li{
    padding:12px 0;
    border-bottom:
    1px solid #ececec;
}

.price-card li:last-child{
    border-bottom:none;
}

/* =========================
   FEATURED PLAN
========================= */

.featured{

    border:
    2px solid var(--primary);

    transform:scale(1.04);

    background:
    linear-gradient(
    180deg,
    rgba(22,93,255,.03),
    white);

    animation:
    glowCard 2s infinite alternate;
}

.featured:hover{
    transform:
    scale(1.06)
    translateY(-10px);
}

@keyframes glowCard{

    from{
        box-shadow:
        0 0 15px
        rgba(22,93,255,.25);
    }

    to{
        box-shadow:
        0 0 45px
        rgba(22,93,255,.55);
    }
}

.popular{

    position:absolute;

    top:15px;
    right:15px;

    background:
    linear-gradient(
    135deg,
    var(--primary),
    var(--secondary));

    color:white;

    padding:8px 15px;

    font-size:.8rem;

    border-radius:999px;

    font-weight:700;
}

.price-card .btn-primary,
.price-card .btn-secondary{
    display:block;
    width:100%;
}

/* =========================
   TESTIMONIAL
========================= */

.testimonial{
    background:var(--bg);
}

.testimonial-slider{
    max-width:800px;
    margin:auto;

    background:white;

    padding:50px;

    border-radius:30px;

    text-align:center;

    box-shadow:var(--shadow);
}

.testimonial-item{
    display:none;
}

.testimonial-item.active{
    display:block;
    animation:fadeIn .5s ease;
}

.testimonial-item p{
    font-size:1.1rem;
    color:var(--text-light);
    margin-bottom:20px;
}

.testimonial-item h4{
    color:#f59e0b;
}

@keyframes fadeIn{
    from{
        opacity:0;
        transform:translateY(20px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}

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

.faq{
    background:white;
}

.faq-item{
    background:white;

    border-radius:20px;

    overflow:hidden;

    margin-bottom:15px;

    box-shadow:var(--shadow);
}

.faq-question{

    width:100%;

    border:none;

    background:white;

    padding:22px;

    text-align:left;

    cursor:pointer;

    font-size:1rem;

    font-weight:600;

    transition:.3s;
}

.faq-question:hover{
    background:#f8fafc;
}

.faq-answer{

    max-height:0;

    overflow:hidden;

    transition:max-height .4s ease;

    padding:0 22px;
}

.faq-item.active .faq-answer{
    max-height:300px;
    padding:0 22px 22px;
}

/* =========================
   CONTACT
========================= */

.contact{
    background:var(--bg);
}

.contact-box{

    background:white;

    max-width:800px;

    margin:auto;

    padding:50px;

    border-radius:30px;

    text-align:center;

    box-shadow:var(--shadow);
}

.contact-btn{

    display:inline-flex;

    align-items:center;

    gap:10px;

    padding:15px 30px;

    margin:10px;

    border-radius:999px;

    color:white;

    font-weight:600;

    transition:.3s;
}

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

.contact-btn i{
    font-size:1.2rem;
}

.contact-btn:first-child{
    background:
    linear-gradient(
    135deg,
    #2563eb,
    #1d4ed8);
}

.contact-btn.whatsapp{
    background:
    linear-gradient(
    135deg,
    #25D366,
    #128C7E);
}

.contact-box p{
    margin-top:15px;
    color:var(--text-light);
}

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

footer{

    background:var(--dark);

    color:white;

    padding:40px 0;

    text-align:center;
}

footer p{
    opacity:.8;
}

/* =========================
   FLOATING WHATSAPP
========================= */

.floating-wa{

    position:fixed;

    right:25px;

    bottom:25px;

    width:65px;

    height:65px;

    border-radius:50%;

    background:#25D366;

    display:flex;

    justify-content:center;

    align-items:center;

    color:white;

    font-size:2rem;

    z-index:999;

    box-shadow:
    0 10px 30px rgba(0,0,0,.2);

    animation:pulse 2s infinite;
}

@keyframes pulse{

    0%{
        transform:scale(1);
    }

    50%{
        transform:scale(1.1);
    }

    100%{
        transform:scale(1);
    }
}

/* =========================
   BACK TO TOP
========================= */

#topBtn{

    position:fixed;

    right:25px;

    bottom:105px;

    width:55px;

    height:55px;

    border:none;

    border-radius:50%;

    background:var(--primary);

    color:white;

    font-size:1rem;

    cursor:pointer;

    display:none;

    z-index:999;

    box-shadow:var(--shadow);
}

#topBtn:hover{
    transform:translateY(-5px);
}

/* =========================
   DARK MODE
========================= */

body.dark{

    background:#020617;

    color:#e2e8f0;
}

body.dark .navbar{
    background:
    rgba(15,23,42,.8);
}

body.dark .service-card,
body.dark .price-card,
body.dark .counter-box,
body.dark .testimonial-slider,
body.dark .contact-box,
body.dark .faq-item{
    background:#0f172a;
    color:white;
}

body.dark .section-title p,
body.dark .service-card p,
body.dark .testimonial-item p,
body.dark .contact-box p{
    color:#cbd5e1;
}

body.dark .faq-question{
    background:#0f172a;
    color:white;
}

body.dark .btn-secondary{
    border-color:white;
    color:white;
}

body.dark .btn-secondary:hover{
    background:white;
    color:#0f172a;
}

/* =========================
   MOBILE
========================= */

@media(max-width:992px){

    .hero-grid,
    .counter-grid{
        grid-template-columns:1fr;
    }

    .hero-image{
        order:-1;
    }

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

    .hero-features{
        justify-content:center;
    }

    .hero-buttons{
        justify-content:center;
    }

    .featured{
        transform:none;
    }
}

@media(max-width:768px){

    .nav-menu{
        position:absolute;

        top:80px;
        left:-100%;

        width:100%;

        background:white;

        flex-direction:column;

        padding:25px;

        transition:.3s;
    }

    .nav-menu.active{
        left:0;
    }

    .hamburger{
        display:block;
    }

    .hero h1{
        font-size:2.5rem;
    }

    .section-title h2{
        font-size:2rem;
    }

    .contact-box{
        padding:30px 20px;
    }

    .testimonial-slider{
        padding:30px 20px;
    }
}

@media(max-width:480px){

    section{
        padding:70px 0;
    }

    .container{
        width:94%;
    }

    .hero h1{
        font-size:2rem;
    }

    .btn-primary,
    .btn-secondary{
        width:100%;
        text-align:center;
    }

    .contact-btn{
        width:100%;
        justify-content:center;
    }

    .floating-wa{
        width:58px;
        height:58px;
    }

    #topBtn{
        width:50px;
        height:50px;
    }
}
