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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background: #0a0a0a;
    color: #fff;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    font-size: 3rem;
    color: #00d4ff;
    font-weight: 800;
    cursor: pointer;
    transition: 0.5s ease;
}

.navbar a {
    font-size: 1.8rem;
    color: #fff;
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}

.navbar a:hover,
.navbar a.active {
    color: #00d4ff;
    border-bottom: 3px solid #00d4ff;
}

#menu {
    font-size: 3.6rem;
    color: #00d4ff;
    display: none;
}

/* Blogs Section */
.work {
    padding: 10rem 9% 5rem;
    min-height: 100vh;
}

.heading {
    font-size: 4rem;
    margin-bottom: 3rem;
    text-align: center;
}

.heading span {
    color: #00d4ff;
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.button-group .btn {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 212, 255, 0.05));
    border: 2px solid rgba(0, 212, 255, 0.3);
    color: #00d4ff;
    padding: 1.2rem 2.5rem;
    border-radius: 2rem;
    font-size: 1.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.button-group .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: 0.5s;
}

.button-group .btn:hover::before {
    left: 100%;
}

.button-group .btn:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 212, 255, 0.1));
    border-color: rgba(0, 212, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}

.button-group .btn.is-checked {
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    color: #0a0a0a;
    border-color: #00d4ff;
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
    transform: translateY(-2px);
}

.box-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

.backbtn {
    text-align: center;
    margin-top: 4rem;
}

.backbtn .btn {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 212, 255, 0.05));
    border: 2px solid rgba(0, 212, 255, 0.3);
    color: #00d4ff;
    padding: 1.5rem 3rem;
    border-radius: 2rem;
    font-size: 1.8rem;
    font-weight: 500;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.backbtn .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: 0.5s;
}

.backbtn .btn:hover::before {
    left: 100%;
}

.backbtn .btn:hover {
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    color: #0a0a0a;
    border-color: #00d4ff;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

/* Scroll Top Button */
#scroll-top {
    position: fixed;
    bottom: 3rem;
    right: 3rem;
    z-index: 100;
    display: none;
    place-items: center;
    height: 4.5rem;
    width: 4.5rem;
    border-radius: 50%;
    background: #00d4ff;
    color: #0a0a0a;
    cursor: pointer;
    transition: 0.3s ease;
}

#scroll-top.active {
    display: grid;
}

#scroll-top:hover {
    background: #0099cc;
}

/* Responsive */
@media (max-width: 991px) {
    header {
        padding: 2rem 3%;
    }
    
    .work {
        padding: 10rem 3% 5rem;
    }
}

@media (max-width: 768px) {
    #menu {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        right: 0;
        width: 50%;
        border-left: 3px solid #00d4ff;
        border-bottom: 3px solid #00d4ff;
        border-bottom-left-radius: 2rem;
        padding: 1rem 3%;
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(20px);
        display: none;
    }

    .navbar.active {
        display: block;
    }

    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    .heading {
        font-size: 3rem;
    }

    .button-group {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .button-group .btn {
        width: 200px;
        text-align: center;
    }
}