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

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

html{
    scroll-behavior:smooth;
}

body{

    background:#000;

    color:#fff;

    font-family:'Cinzel',serif;

    overflow-x:hidden;

}

/* =========================
   VIDEO
========================= */

#bg-video{

    position:fixed;

    top:0;
    left:0;

    width:100%;
    height:100%;

    object-fit:cover;

    z-index:-3;

}

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

.overlay{

    position:fixed;

    inset:0;

    background:
    linear-gradient(
        rgba(0,0,0,.25),
        rgba(0,0,0,.80)
    );

    z-index:-2;

}

/* =========================
   EMBERS
========================= */

.embers{

    position:fixed;

    inset:0;

    overflow:hidden;

    pointer-events:none;

    z-index:-1;

}

.embers span{

    position:absolute;

    bottom:-30px;

    width:8px;
    height:8px;

    background:#ffb347;

    border-radius:50%;

    box-shadow:
    0 0 10px #ffb347,
    0 0 25px #ff9900;

    animation:embers 12s linear infinite;

}

.embers span:nth-child(1){left:5%;animation-delay:0s;}
.embers span:nth-child(2){left:18%;animation-delay:2s;}
.embers span:nth-child(3){left:30%;animation-delay:5s;}
.embers span:nth-child(4){left:44%;animation-delay:3s;}
.embers span:nth-child(5){left:58%;animation-delay:6s;}
.embers span:nth-child(6){left:70%;animation-delay:4s;}
.embers span:nth-child(7){left:82%;animation-delay:7s;}
.embers span:nth-child(8){left:94%;animation-delay:1s;}

@keyframes embers{

    from{

        transform:translateY(0) scale(1);

        opacity:1;

    }

    to{

        transform:translateY(-120vh) translateX(80px) scale(.2);

        opacity:0;

    }

}

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

header{

    position:fixed;

    top:0;

    width:100%;

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:25px 8%;

    z-index:100;

}

.logo{

    font-size:34px;

    font-weight:900;

    color:#d8a74f;

    letter-spacing:4px;

}

nav{

    display:flex;

    gap:35px;

}

nav a{

    color:white;

    text-decoration:none;

    font-size:15px;

    transition:.3s;

    position:relative;

}

nav a:hover{

    color:#d8a74f;

}

nav a::after{

    content:"";

    position:absolute;

    left:0;
    bottom:-5px;

    width:0;

    height:2px;

    background:#d8a74f;

    transition:.3s;

}

nav a:hover::after{

    width:100%;

}

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

.hero{

    min-height:100vh;

    display:flex;

    justify-content:center;

    align-items:center;

    padding:120px 10%;

}

.hero-content{

    max-width:900px;

    text-align:center;

}

.small{

    color:#d8a74f;

    letter-spacing:6px;

    margin-bottom:20px;

}

.hero h1{

    font-size:clamp(3rem,9vw,7rem);

    letter-spacing:8px;

    text-shadow:4px 4px 15px #000;

}

.hero h2{

    margin-top:20px;

    min-height:40px;

    font-family:'Special Elite',cursive;

    color:#ddd;

}

.line{

    width:180px;

    height:3px;

    background:#d8a74f;

    margin:30px auto;

}

.description{

    font-size:18px;

    color:#ddd;

    line-height:1.9;

}

/* =========================
   BUTTONS
========================= */

.buttons{

    display:flex;

    justify-content:center;

    gap:20px;

    margin-top:45px;

    flex-wrap:wrap;

}

.btn{

    text-decoration:none;

    padding:15px 35px;

    border:2px solid #d8a74f;

    color:white;

    transition:.35s;

}

.btn:hover{

    background:#d8a74f;

    color:black;

    transform:translateY(-5px);

}

.secondary{

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

}

/* =========================
   SECTIONS
========================= */

.skills,
.projects{

    padding:100px 10%;

}

.skills h3,
.projects h3{

    text-align:center;

    color:#d8a74f;

    font-size:40px;

    margin-bottom:50px;

}

/* =========================
   SKILL GRID
========================= */

.skill-grid{

    display:grid;

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

    gap:30px;

}

.card{

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

    border:1px solid rgba(216,167,79,.5);

    padding:35px;

    text-align:center;

    backdrop-filter:blur(10px);

    transition:.4s;

    border-radius:10px;

    font-size:42px;

}

.card h4{

    margin-top:15px;

    font-size:22px;

}

.card:hover{

    transform:translateY(-10px);

    background:rgba(216,167,79,.15);

}

/* =========================
   PROJECT CARD
========================= */

.project-card{

    max-width:900px;

    margin:auto;

    text-align:center;

    padding:50px;

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

    border:1px solid rgba(216,167,79,.4);

    backdrop-filter:blur(8px);

    border-radius:15px;

}

.project-card h4{

    font-size:32px;

    margin-bottom:20px;

}

.project-card p{

    color:#ddd;

    line-height:1.8;

}

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

.loader{

    width:100%;

    height:10px;

    border:2px solid #d8a74f;

    margin:40px auto 20px;

    overflow:hidden;

    border-radius:20px;

}

.progress{

    width:0;

    height:100%;

    background:#d8a74f;

    animation:loading 5s linear infinite;

}

@keyframes loading{

    from{

        width:0;

    }

    to{

        width:100%;

    }

}

#status{

    color:#d8a74f;

    font-family:'Special Elite';

}

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

footer{

    padding:40px;

    text-align:center;

    color:#aaa;

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

}

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

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#111;

}

::-webkit-scrollbar-thumb{

    background:#8b5e2d;

}

::-webkit-scrollbar-thumb:hover{

    background:#d8a74f;

}

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

@media(max-width:900px){

header{

    flex-direction:column;

    gap:20px;

}

nav{

    flex-wrap:wrap;

    justify-content:center;

}

}

@media(max-width:768px){

.hero{

    padding-top:180px;

}

.hero h1{

    letter-spacing:2px;

}

.description{

    font-size:16px;

}

.skills,
.projects{

    padding:80px 25px;

}

.project-card{

    padding:30px;

}

}

@media(max-width:500px){

.logo{

    font-size:26px;

}

nav{

    gap:15px;

}

nav a{

    font-size:14px;

}

.buttons{

    flex-direction:column;

}

.btn{

    width:100%;

    text-align:center;

}

}

nav a.active{

    color:#d8a74f;

}

nav a.active::after{

    width:100%;

}
