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

html{
    scroll-behavior: smooth;
}

body{
    font-family: 'Poppins', Arial, sans-serif;
    background: #0d0d0d;
    color: #E8D9C6;
    transition: background .3s ease, color .3s ease;
}

.fantasy-font{
    font-family: 'Cinzel', 'Poppins', serif;
}

/*  FLOATING EMBERS  */
.hero{
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 80px 6%;
    min-height: 80vh;
    flex-wrap: wrap;
}

.embers{
    position: absolute;
    inset: 0;
    pointer-events: none;
}
/* THE EMBER PARTICLES */
.embers span{
    position: absolute;
    bottom: -10px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #E2531A;
    box-shadow: 0 0 8px 2px rgba(226,83,26,.6);
    animation: emberRise 7s linear infinite;
    opacity: 0;
}

/* ANIMATIONS OF EACH EMBER SPAN PARTICLES */

.embers span:nth-child(1){ left: 8%;  animation-delay: 0s;   }
.embers span:nth-child(2){ left: 22%; animation-delay: 1.2s; }
.embers span:nth-child(3){ left: 40%; animation-delay: 2.4s; }
.embers span:nth-child(4){ left: 58%; animation-delay: .6s;  }
.embers span:nth-child(5){ left: 74%; animation-delay: 3s;   }
.embers span:nth-child(6){ left: 90%; animation-delay: 1.8s; }

@keyframes emberRise{
    0%   { transform: translate(0, 0);        opacity: 0;  }
    10%  { opacity: .9; }
    50%  { transform: translate(10px, -45vh); opacity: .6; }
    100% { transform: translate(-8px, -90vh); opacity: 0;  }
}

.hero__text,
.hero__photo{
    position: relative;
    z-index: 1;
}

/*  HUD corner brackets  */
.frame-corners{
    position: relative;
}

.frame-corners::before,
.frame-corners::after{
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    border: 2px solid #D4AF37;
}

.frame-corners::before{
    top: -1px;
    left: -1px;
    border-right: none;
    border-bottom: none;
}

.frame-corners::after{
    bottom: -1px;
    right: -1px;
    border-left: none;
    border-top: none;
}

/*  BUTTONS (USED BY PLENTY)  */
.btn{
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    font-size: 14px;
    transition: .3s;
}

.btn-round{
    background: #E2531A;
    color: #fff;
    padding: 10px 22px;
    border-radius: 30px;
}

.btn--filled{
    background: linear-gradient(135deg, #E2531A, #a5320d);
    color: #FFF3E6;
    padding: 13px 26px;
    border-radius: 6px;
    border: 1px solid rgba(255,180,120,.25);
    box-shadow: 0 6px 18px rgba(226,83,26,.3);
}

.btn--filled:hover{
    box-shadow: 0 8px 22px rgba(226,83,26,.45);
}

.btn--outline{
    background: transparent;
    color: #E8D9C6;
    padding: 13px 26px;
    border-radius: 6px;
    border: 1px solid #D4AF37;
}

.btn--outline:hover{
    background: rgba(212,175,55,.08);
}

.btn--pill:hover{
    opacity: .9;
}

/*  NAVIGATION BAR  */
.navbar{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 6%;
    background: #1c0f0b;
    border-bottom: 1px solid rgba(226,83,26,.18);
    position: sticky;
    top: 0;
    z-index: 20;
}

.logo{
    font-weight: 700;
    font-size: 19px;
    font-family: 'Cinzel', serif;
    letter-spacing: .5px;
    color: #FBEEDD;
    text-decoration: none;
}

.logo span{
    color: #E2531A;
}

.navbar ul{
    list-style: none;
    display: flex;
    gap: 30px;
}

.navbar ul li a{
    text-decoration: none;
    color: #B99C82;
    font-size: 15px;
    font-weight: 500;
    transition: .3s;
}

.navbar ul li a:hover,
.navbar ul li a.is-current{
    color: #FBEEDD;
}

.navbar__right{
    display: flex;
    align-items: center;
    gap: 16px;
}

/*  Hero  */
.hero__text{
    max-width: 560px;
}

.badge{
    display: inline-block;
    color: #E2531A;
    background: rgba(226,83,26,.14);
    border: 1px solid #E2531A;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.hero__text h1{
    font-family: 'Cinzel', serif;
    font-size: 42px;
    line-height: 1.3;
    color: #FBEEDD;
    margin-bottom: 14px;
    text-shadow: 0 0 24px rgba(226,83,26,.25);
}

.hero__text h1 span{
    color: #E2531A;
}

.hero__text h2{
    font-size: 20px;
    font-weight: 500;
    color: #B99C82;
    margin-bottom: 18px;
}

.hero__text p{
    font-size: 15px;
    line-height: 26px;
    color: #B99C82;
    max-width: 46ch;
    margin-bottom: 30px;
}

.hero__actions{
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero__photo{
    flex-shrink: 0;
}

.photo-card{
    position: relative;
    width: 260px;
    height: 320px;
    background: #241209;
    border: 1px solid #D4AF37;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(226,83,26,.15), inset 0 0 30px rgba(0,0,0,.4);
}

.photo-card__img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-card__tag{
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(0,0,0,.6);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
}

.photo-card__caption{
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    background: rgba(20,20,20,.85);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.photo-card__caption strong{
    color: #F5F5F5;
    font-size: 13px;
}

.photo-card__caption span{
    color: #d8d8d8;
    font-size: 12px;
}

/*  SKILLS AND ABOUT  */
.skills-section{
    display: flex;
    flex-wrap: wrap;
    background: #1c0f0b;
    border-top: 1px solid #D4AF37;
    border-bottom: 1px solid #D4AF37;
    opacity: .97; /* replaces the old gradient top/bottom lines */
}

.skills-sidebar{
    background: #1a0d09;
    padding: 60px 4%;
    flex: 0 0 260px;
}

.skills-sidebar h3{
    font-family: 'Cinzel', serif;
    color: #D4AF37;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.skills-sidebar ul{
    list-style: none;
}

.skills-sidebar li{
    background: #2c150c;
    color: #E8D9C6;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 10px;
    border: 1px solid rgba(226,83,26,.18);
    border-left: 3px solid #E2531A;
}

.skills-content{
    padding: 60px 6%;
    flex: 1 1 500px;
}

.eyebrow{
    display: inline-block;
    font-family: 'Cinzel', serif;
    color: #D4AF37;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.skills-content h2{
    font-family: 'Cinzel', serif;
    color: #FBEEDD;
    font-size: 26px;
    max-width: 20ch;
    margin-bottom: 30px;
}

.about-text{
    color: #B99C82;
    font-size: 15px;
    line-height: 26px;
    max-width: 60ch;
    margin-bottom: 30px;
}

/*  CARDS USED BY SKILLS / PROJECTS / CONTACT  */
.cards{
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.card{
    display: flex;
    background: #241209;
    border: 1px solid rgba(226,83,26,.18);
    border-radius: 12px;
    padding: 22px;
    text-decoration: none;
    transition: .3s;
}

.card:hover,
.card:active{
    border-color: #E2531A;
    transform: translateY(-4px);
}

/* card variants just tweak layout/width; text styling is shared below */
.skills-content .card,
.project-card,
.contact-card{
    flex-direction: column;
}

.skills-content .card,
.project-card{
    width: 230px;
}

.card h3{
    font-family: 'Cinzel', serif;
    color: #FBEEDD;
    font-size: 16px;
    margin-bottom: 8px;
}

.card p{
    color: #B99C82;
    font-size: 13px;
    line-height: 20px;
}

/*  SECTION SHELL FOR PROJECTS / CONTACTS  */
.page-section{
    padding: 80px 6%;
}

.page-section h1{
    font-family: 'Cinzel', serif;
    font-size: 32px;
    color: #FBEEDD;
    max-width: 22ch;
    margin-bottom: 24px;
}

.page-section h1 span{
    color: #B99C82;
    font-weight: 400;
}

.section-sub{
    color: #B99C82;
    font-size: 15px;
    font-weight: normal;
    margin-bottom: 30px;
}

/*  Task filter buttons  */
.task{
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.task-btn{
    background: #241209;
    color: #B99C82;
    border: 1px solid rgba(226,83,26,.18);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: .3s;
}

.task-btn:hover{
    border-color: #E2531A;
}

.task-btn.is-active{
    background: #E2531A;
    color: #fff;
    border-color: #E2531A;
}

/*  PROJECT CARDS  */
.project-card{
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

.project-card:hover,
.project-card:active{
    box-shadow: 0 0 24px rgba(226,83,26,.18);
}

.project-card_activity{
    color: #B99C82;
    font-size: 12px;
    margin-bottom: 12px;
}

.project-card p{
    margin-bottom: 14px;
}

.project-card_TOOLS{
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.project-card_TOOLS span{
    background: rgba(226,83,26,.14);
    color: #E2531A;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.project-card.is-hidden{
    display: none;
}

/*  CONTACT CARDS  */
.contact-card{
    min-width: 220px;
}

.contact-label{
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #E2531A;
    margin-bottom: 6px;
}

.contact-value{
    color: #E8D9C6;
    font-weight: 600;
}

/*  Footer  */
.footer{
    padding: 30px 6%;
    color: #B99C82;
    font-size: 13px;
    text-align: center;
    border-top: 1px solid rgba(226,83,26,.18);
}

/*  REVEAL TRANSITION ON SCROLL  */
.reveal{
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal.is-visible{
    opacity: 1;
    transform: translateY(0);
}

/*  Responsive  */
@media (max-width: 900px){
    .skills-section{
        flex-direction: column;
    }
    .skills-sidebar{
        flex: none;
    }
}

@media (max-width: 700px){
    .wing-decor{
        display: none;
    }
    .navbar{
        flex-wrap: wrap;
        gap: 14px;
    }
    .navbar ul{
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 18px;
        flex-wrap: wrap;
    }
    .hero{
        justify-content: center;
        text-align: center;
    }
    .hero__text p{
        margin-left: auto;
        margin-right: auto;
    }
    .hero__actions{
        justify-content: center;
    }
}
