/*==================================================
    PHK PREMIUM V3
    STYLE.CSS
    Author : HoangKhoi
==================================================*/

/* ==========================
        GOOGLE FONT
========================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');


/* ==========================
          RESET
========================== */

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

html{
    scroll-behavior:smooth;
}

body{

    font-family:"Poppins",sans-serif;

    background:#08080d;

    color:#ffffff;

    overflow-x:hidden;

    transition:.35s ease;
}


/* ==========================
        CSS VARIABLES
========================== */

:root{

    --primary:#7c5cff;

    --secondary:#38bdf8;

    --success:#00d084;

    --danger:#ff4d6d;

    --warning:#ffb703;

    --white:#ffffff;

    --black:#000000;

    --text:#d7d7d7;

    --glass:rgba(255,255,255,.08);

    --border:rgba(255,255,255,.12);

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

    --radius:22px;

    --transition:.35s ease;

}


/* ==========================
      LIGHT MODE
========================== */

body.light{

    background:#f5f7fb;

    color:#222;

}

body.light .glass{

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

}

body.light header{

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

}
body.light #theme-toggle{

    color:#222;

}
body.light .service-item p{

    color:#555;

}

body.light .section-title p{

    color:#555;

}

body.light footer p{

    color:#555;

}
body.light .sidebar-close{

    color:#222;

    background:#f1f1f1;

}


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

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#0e0e14;

}

::-webkit-scrollbar-thumb{

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

    border-radius:20px;

}

::-webkit-scrollbar-thumb:hover{

    background:#8d74ff;

}


/* ==========================
        HEADER
========================== */

header{

    position:fixed;

    top:0;

    left:0;

    width:100%;

    height:72px;

    display:flex;

    align-items:center;

    justify-content:space-between;

    padding:0 28px;

    backdrop-filter:blur(18px);

    background:rgba(10,10,18,.65);

    border-bottom:1px solid var(--border);

    z-index:9999;

    transition:var(--transition);

}

header.scrolled{

    height:64px;

    box-shadow:var(--shadow);

}


/* ==========================
          LOGO
========================== */

.logo{

    font-size:26px;

    font-weight:700;

    letter-spacing:1px;

    color:#fff;

    user-select:none;

}

.logo span{

    color:var(--primary);

}


/* ==========================
      HAMBURGER BUTTON
========================== */

.menu-btn{

    width:46px;
    height:46px;

    border:none;

    border-radius:14px;

    background:var(--glass);

    border:1px solid var(--border);

    color:#fff;

    font-size:22px;

    cursor:pointer;

    display:none;

    align-items:center;

    justify-content:center;

    transition:var(--transition);

}

.menu-btn:hover{

    transform:scale(1.08);

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

}
/*==========================
      THEME BUTTON
==========================*/

#theme-toggle{

    width:46px;

    height:46px;

    border:none;

    border-radius:14px;

    background:var(--glass);

    border:1px solid var(--border);

    color:#fff;

    font-size:20px;

    cursor:pointer;

    display:flex;

    align-items:center;

    justify-content:center;

    transition:var(--transition);

}

#theme-toggle:hover{

    transform:scale(1.08);

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

}


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

.navbar{

    display:flex;

    align-items:center;

    gap:20px;

}

.navbar a{

    color:#ffffff;

    text-decoration:none;

    font-size:15px;

    font-weight:500;

    transition:.3s;

    position:relative;

}

.navbar a::after{

    content:"";

    position:absolute;

    left:0;

    bottom:-6px;

    width:0;

    height:2px;

    background:var(--primary);

    transition:.3s;

}

.navbar a:hover::after,

.navbar a.active::after{

    width:100%;

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

.hero{

    min-height:100vh;

    display:flex;

    align-items:center;

    justify-content:center;

    text-align:center;

    padding:140px 20px 80px;

    position:relative;

    overflow:hidden;

}

.hero::before{

    content:"";

    position:absolute;

    width:550px;

    height:550px;

    background:radial-gradient(circle,
    rgba(124,92,255,.35),
    transparent 70%);

    top:-180px;

    right:-180px;

    border-radius:50%;

}

.hero::after{

    content:"";

    position:absolute;

    width:450px;

    height:450px;

    background:radial-gradient(circle,
    rgba(56,189,248,.25),
    transparent 70%);

    bottom:-180px;

    left:-180px;

    border-radius:50%;

}

.hero-content{

    max-width:900px;

    position:relative;

    z-index:2;

}

.hero h1{

    font-size:60px;

    font-weight:800;

    margin-bottom:18px;

    line-height:1.2;

}

.hero h1 span{

    color:var(--primary);

}

.hero p{

    color:var(--text);

    font-size:18px;

    line-height:1.9;

    margin-bottom:35px;

}



/*==================================================
            PREMIUM BUTTON
==================================================*/

.btn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    gap:10px;

    padding:15px 34px;

    border-radius:999px;

    text-decoration:none;

    color:#fff;

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

    font-weight:600;

    transition:.35s;

    box-shadow:0 15px 40px rgba(124,92,255,.35);

}

.btn:hover{

    transform:translateY(-5px);

    box-shadow:0 25px 50px rgba(124,92,255,.45);

}



/*==================================================
            MAIN CONTAINER
==================================================*/

.container{

    width:min(1180px,92%);

    margin:auto;

}



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

.section{

    padding:90px 0;

}

.section-title{

    text-align:center;

    margin-bottom:55px;

}

.section-title h2{

    font-size:38px;

    margin-bottom:12px;

}

.section-title p{

    color:var(--text);

}



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

.services{

    display:grid;

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

    gap:30px;

}



/*==================================================
            PREMIUM CARD
==================================================*/

.service-item{

    background:var(--glass);

    border:1px solid var(--border);

    backdrop-filter:blur(18px);

    border-radius:var(--radius);

    padding:35px;

    transition:.35s;

    position:relative;

    overflow:hidden;

}

.service-item::before{

    content:"";

    position:absolute;

    inset:0;

    background:linear-gradient(
    135deg,
    transparent,
    rgba(255,255,255,.06),
    transparent);

    transform:translateX(-100%);

    transition:.7s;

}

.service-item:hover::before{

    transform:translateX(100%);

}

.service-item:hover{

    transform:translateY(-10px);

    box-shadow:var(--shadow);

}

.service-item h3{

    font-size:24px;

    margin-bottom:15px;

}

.service-item p{

    color:var(--text);

    line-height:1.8;

    margin-bottom:20px;

}



/*==================================================
            PREMIUM LINK
==================================================*/

.service-item a{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:13px 26px;

    border-radius:14px;

    text-decoration:none;

    color:#fff;

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

    transition:.35s;

}

.service-item a:hover{

    transform:scale(1.06);

}



/*==================================================
            IMAGE CARD
==================================================*/

.image-card{

    margin-top:45px;

    border-radius:26px;

    overflow:hidden;

    background:var(--glass);

    border:1px solid var(--border);

    backdrop-filter:blur(18px);

    box-shadow:var(--shadow);

}

.image-card img{

    width:100%;

    display:block;

    object-fit:cover;

    transition:.6s;

}

.image-card:hover img{

    transform:scale(1.05);

}



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

footer{

    margin-top:90px;

    padding:50px 20px;

    text-align:center;

    border-top:1px solid var(--border);

    background:rgba(10,10,18,.65);

    backdrop-filter:blur(16px);

}

footer h3{

    font-size:28px;

    margin-bottom:10px;

}

footer p{

    color:var(--text);

    line-height:1.8;

}



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

.back-top{

    position:fixed;

    right:25px;

    bottom:25px;

    width:52px;

    height:52px;

    border-radius:50%;

    border:none;

    cursor:pointer;

    color:#fff;

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

    box-shadow:0 15px 40px rgba(124,92,255,.4);

    opacity:0;

    visibility:hidden;

    transition:.35s;

}

.back-top.show{

    opacity:1;

    visibility:visible;

}
/*==================================================
        MOBILE MENU
==================================================*/

.sidebar{

    position:fixed;

    top:0;

    left:-320px;

    width:300px;

    height:100vh;

    background:rgba(12,12,20,.96);

    backdrop-filter:blur(20px);

    border-right:1px solid var(--border);

    padding:90px 25px;

    transition:.4s ease;

    z-index:99999;

}

.sidebar.active{

    left:0;

}

.sidebar a{

    display:flex;

    align-items:center;

    gap:14px;

    color:#fff;

    text-decoration:none;

    padding:16px 18px;

    margin-bottom:12px;

    border-radius:14px;

    transition:.3s;

    font-weight:500;

}

.sidebar a:hover{

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

    transform:translateX(8px);

}

.sidebar-close{

    position:absolute;

    top:22px;

    right:20px;

    width:42px;

    height:42px;

    border:none;

    border-radius:12px;

    cursor:pointer;

    color:#fff;

    background:var(--glass);

}


/*==================================================
            OVERLAY
==================================================*/

.overlay{

    position:fixed;

    inset:0;

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

    opacity:0;

    visibility:hidden;

    transition:.3s;

    z-index:9990;

}

.overlay.active{

    opacity:1;

    visibility:visible;

}


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

#loader{

    position:fixed;

    inset:0;

    display:flex;

    justify-content:center;

    align-items:center;

    background:#08080d;

    z-index:999999;

    transition:.6s;

}

.loader-circle{

    width:70px;

    height:70px;

    border:6px solid rgba(255,255,255,.12);

    border-top-color:var(--primary);

    border-radius:50%;

    animation:spin .9s linear infinite;

}

@keyframes spin{

    to{

        transform:rotate(360deg);

    }

}


/*==================================================
            SCROLL REVEAL
==================================================*/

.reveal{

    opacity:0;

    transform:translateY(45px);

    transition:1s;

}

.reveal.show{

    opacity:1;

    transform:none;

}


/*==================================================
            ANIMATION
==================================================*/

.fade-in{

    animation:fadeIn .8s ease forwards;

}

@keyframes fadeIn{

    from{

        opacity:0;

        transform:translateY(25px);

    }

    to{

        opacity:1;

        transform:none;

    }

}

.zoom{

    animation:zoom .7s ease;

}

@keyframes zoom{

    from{

        transform:scale(.9);

        opacity:0;

    }

    to{

        transform:scale(1);

        opacity:1;

    }

}


/*==================================================
            RIPPLE
==================================================*/

.ripple{

    position:relative;

    overflow:hidden;

}

.ripple span{

    position:absolute;

    border-radius:50%;

    transform:scale(0);

    animation:ripple .6s linear;

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

}

@keyframes ripple{

    to{

        transform:scale(4);

        opacity:0;

    }

}


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

@media(max-width:1100px){

.hero h1{

font-size:48px;

}

.section-title h2{

font-size:34px;

}

}

@media(max-width:768px){

    header{
        padding:0 18px;
        height:65px;
    }

    .navbar{
        display:none;
    }

    .menu-btn{
        display:flex;
    }

    .hero{
        padding-top:120px;
    }

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

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

    .section{
        padding:70px 0;
    }

    .services{
        grid-template-columns:1fr;
    }

    .image-card img{
        height:280px;
    }

    footer{
        padding:35px 18px;
    }

}

@media(max-width:480px){

.logo{

font-size:22px;

}

.hero h1{

font-size:30px;

}

.hero p{

font-size:15px;

line-height:1.8;

}

.btn{

width:100%;

}

.service-item{

padding:25px;

}

.back-top{

right:15px;

bottom:15px;

}

}

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


body.light header{

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

}

body.light .sidebar{

background:#ffffff;

}

body.light .sidebar a{

color:#222;

}

body.light .service-item{

background:#ffffff;

color:#222;

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

}

body.light footer{

background:#ffffff;

color:#222;

}

body.light .image-card{

background:#ffffff;

}


/*==================================================
        END OF FILE
==================================================*/