body {
    color: var(--primary-text-color);
    background: var(--primary-background-color);
    overflow: hidden;
}

/* preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-background-color);
    z-index: 1100;
    display: flex;
    justify-content: center;
    align-items: center;
}

#preloader.hide {
    animation: hide-preloader 1s ease-in-out forwards;
    transform: scale(100);
}

@keyframes hide-preloader {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        display: none;
    }
}

#preloader .loader {
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    border-radius: 50%;
    position: relative;
    animation: preloader-spin 1.5s linear infinite;
}

#preloader .loader::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border: 24px solid;
    border-color: transparent #000000;
    border-radius: 50%;
}

@keyframes preloader-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    border-bottom: 1px solid transparent;
}

.header.active {
    background: rgba(6, 8, 13, 0.05);
    backdrop-filter: blur(15px);
    border-color: var(--primary-border-color);
}

.header nav {
    padding: 1rem 0;
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.header nav a {
    color: var(--secondary-text-color);
    font-size: 1rem;
    text-transform: capitalize;
    font-weight: 500;
    position: relative;
    transition: .5s;
    overflow: hidden;
    padding-bottom: .3rem;
}

.header nav a.active {
    color: var(--primary-text-color);
}

.header nav a::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 3px;
    border-radius: 4px;
    background: var(--secondary-color);
    bottom: 0;
    left: 0px;
    transform-origin: center;
    transform: scaleX(0);
    transition: transform 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;
}

.header nav a.active::after {
    transform-origin: center;
    transform: scaleX(1);
}

/* section */
.section {
    width: 100%;
    max-width: 1380px;
    padding: 0 1rem;
    margin: auto;
    margin-bottom: 5rem;
    position: relative;
}

/* home */
#home {
    display: flex;
    align-items: center;
    height: 100vh;
}

#home .left,
#home .right {
    width: 100%;
}

#ani-txt {
    height: 67px;
    overflow: hidden;
}

#ani-txt small {
    text-transform: none;
}

#home .left .hero-subtitle::after {
    content: url(../images/bug.gif);
    margin-left: -3rem;
}

#home .left .latest-focus {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border-radius: 8px;
    border: 2px solid var(--primary-border-color);
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    overflow: hidden;
    color: var(--secondary-text-color);
}

#home .left .latest-focus .label {
    background: var(--secondary-background-color);
    padding: .5rem;
    flex: 1;
    text-align: center;
}

#home .left .latest-focus a {
    flex: 2;
    color: var(--secondary-text-color);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    text-transform: capitalize;
}

#home .left .social-btns {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1rem;
    justify-content: center;
}

#home .left .social-btns h5 {
    margin: .8rem 0;
}

#home .left .social-btns a {
    display: grid;
    place-items: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    border: 2px solid var(--primary-border-color);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--primary-background-color);
}

#home .left .social-btns a:hover {
    border-color: var(--primary-color);
}

#home .right {
    height: 86%;
    background: url(../images/profile/madhan-hacker.webp);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

/* identity */
#identity .hero-title {
    text-align: center;
}

#identity .hero-lead {
    margin: 2rem;
    text-align: center;
}

#identity .ability {
    position: relative;
    overflow: hidden;
}

#identity .ability::before {
    content: "";
    width: 100%;
    height: var(--data-height, 0);
    background: linear-gradient(to left, var(--primary-color), var(--tertiary-color));
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    transition: transform 0.3s ease-in-out, height 0.3s ease-in-out;
    transform: translateY(var(--data-top, 0));
}

#identity .ability .ability-block {
    display: flex;
    align-items: center;
    padding: 2rem;
    border-bottom: 3px solid var(--tertiary-color);
}

#identity .ability .ability-block .title {
    font-size: 1.5rem;
    flex: 1;
    text-transform: uppercase;
}

#identity .ability .ability-block .title sup {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-right: 1rem;
}

#identity .ability .ability-block p {
    color: var(--secondary-text-color);
    flex: 2;
}

#identity .ability .ability-block:last-child {
    border: none;
}

/* ops */
#ops .hero-title {
    text-align: center;
}

#ops .ops-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    justify-content: center;
    margin: 2rem auto;
}

#ops .ops-header.reverse {
    flex-direction: row-reverse;
    text-align: right;
}

#ops .ops-header img {
    width: 80px;
    height: 80px;
}

#ops .ops-header .hero-lead {
    width: 100%;
    max-width: 1100px;
}

#ops .ops-body {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr 1fr;
}

#ops .ops-body a {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--secondary-background-color);
    border-radius: 10px;
    border: 2px solid var(--tertiary-color);
    color: var(--text);
    padding: .5rem;
}

#ops .ops-body a:hover {
    border-color: var(--primary-color);
}

#ops .ops-body a img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

#ops .ops-body a h4 {
    margin-bottom: .2rem;
    text-transform: capitalize;
}

#ops .ops-body a p {
    font-size: .9rem;
    line-height: normal;
}

/* loadouts */
#loadouts .hero-title {
    text-align: center;
}

#loadouts .loadout-body {
    text-align: center;
}

#loadouts .loadout-body .loadout-block {
    cursor: pointer;
    margin: .5rem;
    display: inline-block;
}

#loadouts .loadout-body .loadout-block .icon {
    width: 140px;
    height: 140px;
    border-radius: 20px;
    background-color: var(--secondary-background-color);
    border: 2px solid var(--primary-border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 2rem rgba(0, 0, 0, 0.5);
}

#loadouts .loadout-body .loadout-block:hover .icon {
    border-color: var(--primary-color);
}

#loadouts .loadout-body .loadout-block .icon img {
    width: 80px;
    filter: grayscale(90%);
    -webkit-filter: grayscale(90%);
}

#loadouts .loadout-body .loadout-block:hover .icon img {
    filter: none;
    -webkit-filter: none;
    transform: scale(1.1);
}

#loadouts .loadout-body .loadout-block p {
    margin-top: .5rem;
    text-transform: capitalize;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-text-color);
}

#loadouts .loadout-body .loadout-block:hover p {
    color: var(--primary-color);
}

/* intel */
#intel .hero-title {
    text-align: center;
}

#intel .hero-lead {
    text-align: center;
}

#intel .intel-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 2rem auto;
}

#intel .intel-container .intel-block {
    width: 100%;
    position: relative;
    border: 5px solid var(--primary-border-color);
    border-radius: 10px;
    overflow: hidden;
}

#intel .intel-container .intel-block img {
    width: 100%;
}

#intel .intel-container .intel-block:hover {
    transform: scale(1.01);
}

#intel .intel-container .intel-block p {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.0) 0%, #000000 100%);
    padding: .8rem;
    padding-top: 5rem;
    position: absolute;
    bottom: 0;
    left: 0;
    margin: 0;
    width: 100%;
    text-align: center;
}

#intel .more-intel {
    width: 100%;
    height: 300px;
    border-radius: 10px;
    border: 1px solid #ae38ff;
    background-size: cover;
    background-image: url(../images/bg-grid-hero-m.svg), linear-gradient(to right, rgba(174, 56, 255, .4), var(--secondary-background-color));
    padding: 1rem;
    display: grid;
    place-items: center;
}

#intel .more-intel h1 {
    font-size: 4rem;
    text-transform: uppercase;
}

#intel .more-intel a {
    display: block;
    padding: 1rem;
    background: var(--primary-background-color);
    color: var(--primary-text-color);
    border-radius: 10px;
}

/* comms */
#comms {
    position: unset;
}

#comms::before {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(var(--primary-background-color), rgba(0, 0, 0, 0.7)), url(../images/contact-bg.webp);
    background-position: center;
    background-size: cover;
    z-index: -1;
}

#comms .hero-title {
    text-align: center;
}

#comms .hero-subtitle {
    text-transform: capitalize;
}

#comms .social-btns {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
}

#comms .social-btns a {
    width: 500px;
    display: flex;
    align-items: center;
    padding: .5rem;
    gap: .8rem;
    white-space: nowrap;
}

#comms .social-btns a i {
    color: var(--primary-color);
    font-size: 1.5rem;
    text-align: center;
    width: 40px;
}

#comms .social-btns a button {
    font-size: 1rem;
    color: var(--primary-text-color);
    cursor: pointer;
}

#comms .social-btns a button span {
    color: rgba(255, 255, 255, 0.4);
}

#comms .youtube-container {
    margin-top: 2rem;
    width: 100%;
    padding: 4rem 1.5rem;
    display: flex;
    gap: 3rem;
    align-items: center;
    background-image: linear-gradient(to left,
            rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 1)), url(../images/banner.webp);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid var(--tertiary-color);
}

#comms .youtube-container img {
    width: 150px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
}

#comms .youtube-container a {
    color: var(--text-primary);
}

#comms .youtube-container button {
    background: linear-gradient(to right, #ff3600, #d90429);
    border-radius: 24px;
    padding: .5rem 1.8rem;
    font-size: 1.3rem;
    text-transform: capitalize;
    color: var(--text-primary);
    cursor: pointer;
}

/* up button */
#up-btn {
    position: fixed;
    bottom: -100%;
    right: 0;
    height: 46px;
    width: 46px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: inset 0 0 0 2px rgba(135, 80, 247, 0.5);
    z-index: 999;
}

#up-btn.active {
    margin: 2rem;
    bottom: 0;
}

#up-btn i {
    color: var(--primary-color);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.3rem;
}

#up-btn svg.progress-circle path {
    stroke: var(--primary-color);
    stroke-width: 4;
    box-sizing: border-box;
    -webkit-transition: all 200ms linear;
    transition: all 200ms linear;
}








/* media queries */
@media(max-width: 1320px) {
    .hero-title {
        font-size: 35px !important;
    }

    #ani-txt {
        height: 50px !important;
    }
}

@media(max-height: 1000px) {
    #home .right {
        margin-top: -2rem;
    }
}


@media(max-width: 800px) {

    /* header */
    .header nav {
        gap: 1.3rem;
    }

    .hero-subtitle {
        font-size: 25px !important;
    }

    .hero-lead {
        font-size: 1rem;
    }

    .section {
        margin-bottom: 4rem;
    }

    /* home */
    #home {
        display: block;
        padding-top: 4rem;
    }

    #home .left {
        text-align: center;
    }

    #home .left .social-btns {
        gap: 1rem;
    }

    #home .left .social-btns .hero-lead {
        margin: .8rem 0 !important;
    }

    #home .left .social-btns a {
        background: transparent;
    }

    #ani-txt {
        height: 35px !important;
        font-size: 25px !important;
    }

    /* identity */
    #identity .ability .ability-block {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    #identity .ability .ability-block .title {
        font-size: 1.1rem;
        margin-bottom: .5rem;
    }

    /* ops */
    #ops .ops-header {
        gap: 1rem;
    }

    #ops .ops-body {
        grid-template-columns: 1fr;
    }

    /* loadouts */
    #loadouts .loadout-body {
        display: flex;
        overflow: hidden;
        overflow-x: scroll;
    }

    #loadouts .loadout-body .loadout-block .icon {
        width: 100px;
        height: 100px;
    }

    #loadouts .loadout-body .loadout-block .icon img {
        width: 50px;
    }

    /* intel */
    #intel .intel-container {
        grid-template-columns: auto;
        gap: 1rem;
    }

    #intel .more-intel {
        height: 200px;
    }

    #intel .more-intel h1 {
        font-size: 1.8rem;
    }

    /* comms */
    #comms {
        margin-bottom: 1.8rem;
    }

    #comms .youtube-container {
        padding: 2rem 1.5rem;
        margin-top: 1rem;
        flex-wrap: wrap;
    }
}

@media(max-width: 550px) {
    #home .left {
        position: relative;
        z-index: 10;
    }

    #home .latest-focus {
        font-size: .9rem;
    }
}