*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{

    font-family:var(--body);

    background-color:var(--bg);

    background-image:
        radial-gradient(circle at 20% 15%, rgba(255, 138, 0, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 60%, rgba(255, 215, 0, 0.12) 0%, transparent 45%),
        linear-gradient(rgba(11, 11, 15, 0.86), rgba(11, 11, 15, 0.92)),
        url("../images/circuit-bg.jpg");

    background-size: 100% 100%, 100% 100%, 100% 100%, cover;
    background-repeat: no-repeat;
    background-position: center top;
    background-attachment: fixed;

    color:var(--white);

    overflow-x:hidden;

    min-height: 100vh;

}

body.light-theme{

    background-color:var(--bg);

    background-image:
        radial-gradient(circle at 20% 15%, rgba(255, 138, 0, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 60%, rgba(255, 215, 0, 0.10) 0%, transparent 45%),
        linear-gradient(rgba(255, 248, 241, 0.90), rgba(255, 248, 241, 0.95)),
        url("../images/circuit-bg.jpg");

    background-size: 100% 100%, 100% 100%, 100% 100%, cover;
    background-repeat: no-repeat;
    background-position: center top;
    background-attachment: fixed;

}

a{
    text-decoration:none;
}

ul{
    list-style:none;
}

img{

    width:100%;
    display:block;

}

.container{

    width:min(1400px,90%);
    margin:auto;

}

/* ==========================================
   LOADER
========================================== */

#intro{
    position:fixed;
    inset:0;
    z-index:999999;
    display:flex;
    justify-content:center;
    align-items:center;
    background:#080808;
    overflow:hidden;
    transition: opacity .8s ease, visibility .8s ease;
}

/* Background Glow */

.intro-bg{
    position:absolute;
    width:900px;
    height:900px;
    border-radius:50%;
    background:radial-gradient(circle,
        rgba(255,170,0,.18) 0%,
        rgba(255,140,0,.08) 35%,
        transparent 70%);
    filter:blur(120px);
    animation:bgPulse 6s ease-in-out infinite;
}

/* ==========================
   GLASS BOX
========================== */

.glass-box{

    position:relative;

    width:460px;
    height:300px;

    display:flex;
    justify-content:center;
    align-items:center;

    background:rgba(255,255,255,.05);

    border:1px solid rgba(255,255,255,.08);

    border-radius:30px;

    backdrop-filter:blur(25px);
    -webkit-backdrop-filter:blur(25px);

    box-shadow:
        0 30px 80px rgba(0,0,0,.45),
        inset 0 1px 0 rgba(255,255,255,.08);

    overflow:hidden;

    animation:floatBox 5s ease-in-out infinite;
}

/* Moving Light */

.glass-light{

    position:absolute;

    width:140px;
    height:500px;

    background:rgba(255,255,255,.25);

    transform:rotate(25deg);

    filter:blur(18px);

    left:-180px;

    animation:lightSweep 3.5s linear infinite;
}

.glass-inner{

    position:relative;
    z-index:2;
    text-align:center;
}

.intro-logo{

    font-size:64px;
    color:#fff;
    font-family:var(--heading);
    margin-bottom:18px;
    letter-spacing:2px;
}

.intro-logo span{

    color:#FFB000;

}

.glass-inner p{

    color:#cfcfcf;

    letter-spacing:2px;

    margin-bottom:28px;
}

/* Loading Bar */

.loading-bar{

    width:260px;
    height:7px;

    margin:auto;

    border-radius:999px;

    overflow:hidden;

    background:rgba(255,255,255,.08);
}

.loading-fill{

    width:0%;
    height:100%;

    border-radius:999px;

    background:linear-gradient(90deg,#FF8A00,#FFD700);

    animation:loadBar 2.6s linear forwards;
}

/* ==========================
   PARTICLES
========================== */

.particles span{

    position:absolute;

    width:10px;
    height:10px;

    border-radius:50%;

    background:#FFB000;

    box-shadow:0 0 15px #FFB000;

    animation:particleFloat 7s linear infinite;
}

.particles span:nth-child(1){top:15%;left:20%;}
.particles span:nth-child(2){top:70%;left:18%;}
.particles span:nth-child(3){top:22%;right:20%;}
.particles span:nth-child(4){bottom:20%;right:18%;}
.particles span:nth-child(5){top:50%;left:8%;}
.particles span:nth-child(6){top:45%;right:8%;}
.particles span:nth-child(7){bottom:12%;left:45%;}
.particles span:nth-child(8){top:10%;left:55%;}

/* ==========================
   ANIMATIONS
========================== */

@keyframes loadBar{

    from{width:0%;}

    to{width:100%;}
}

@keyframes floatBox{

    0%,100%{

        transform:translateY(0px);
    }

    50%{

        transform:translateY(-10px);
    }

}

@keyframes bgPulse{

    0%,100%{

        transform:scale(1);
    }

    50%{

        transform:scale(1.15);
    }

}

@keyframes particleFloat{

    0%{

        transform:translateY(0px);
        opacity:.3;
    }

    50%{

        transform:translateY(-35px);
        opacity:1;
    }

    100%{

        transform:translateY(0px);
        opacity:.3;
    }

}

@keyframes lightSweep{

    from{

        left:-180px;
    }

    to{

        left:520px;
    }

}

.hide-loader{
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all .8s ease;
}

/* ==========================================
   SCROLL PROGRESS BAR
========================================== */

#progress-bar{

    position:fixed;

    top:0;
    left:0;

    width:0%;

    height:4px;

    z-index:999999;

    background:linear-gradient(
        90deg,
        #FF8A00,
        #FFD700
    );

    box-shadow:
        0 0 12px rgba(255,176,0,.8),
        0 0 25px rgba(255,176,0,.4);

    transition:width .1s linear;
}


/* ==========================================
   BACK TO TOP BUTTON
========================================== */

#backToTop{

    position:fixed;

    right:30px;
    bottom:30px;

    width:58px;
    height:58px;

    border:none;
    outline:none;

    border-radius:18px;

    background:linear-gradient(135deg,#FF8A00,#FFD700);

    color:#111;

    font-size:22px;

    cursor:pointer;

    display:flex;
    justify-content:center;
    align-items:center;

    box-shadow:
        0 10px 35px rgba(255,176,0,.35);

    transform:translateY(100px);

    opacity:0;

    transition:.35s ease;

    z-index:9999;
}

#backToTop.show{

    transform:translateY(0);

    opacity:1;
}

#backToTop:hover{

    transform:translateY(-6px) scale(1.08);

    box-shadow:
        0 15px 45px rgba(255,176,0,.55);
}

#backToTop i{

    transition:.3s;
}

#backToTop:hover i{

    transform:translateY(-2px);
}