/* ======== FONT ======== */
*{
    -webkit-tap-highlight-color: transparent;
}
@font-face {
    font-family: 'Inter';
    src: url('/assets/fonts/inter-normal.ttf') format('truetype');
    font-weight: normal;
    font-display: swap;
}
/* ======== VARIABLES ======== */
:root {
    --bg-grad: linear-gradient(135deg,#0f0e0e,#1a1a1a);
    --clr-bg: #121212;
    --clr-fg: #e0e0e0;
    --clr-accent: #ffca28;
    --clr-link: #4fc3f7;
}
/* ======== RESET & BASE ======== */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}
body{
    font-family:'Inter',system-ui,Arial,sans-serif;
    background:var(--bg-grad);
    color:var(--clr-fg);
    line-height:1.6;
}
a{
    color:var(--clr-link);
    text-decoration:none;
}
a:hover{
    color:var(--clr-accent);
}
/* ======== MENU TOGGLE (HAMBURGER) ======== */
.menu-toggle{
    display:none;
    /* hidden on desktop */
    position:fixed;
    top:1.2rem;
    right:1.4rem;
    width:2.4rem;
    height:2.4rem;
    z-index:110;
    cursor:pointer;
}
.menu-toggle span{
    display:block;
    height:.25rem;
    background:var(--clr-fg);
    margin:.4rem 0;
    border-radius:2px;
    transition:transform .25s,opacity .25s;
}
#nav-toggle:checked ~ .mobile-nav{
transform:translateX(0);
}
#nav-toggle:checked ~ .menu-toggle span:nth-child(1){
transform:translateY(.9rem) rotate(45deg);
}
#nav-toggle:checked ~ .menu-toggle span:nth-child(2){
opacity:0;
}
#nav-toggle:checked ~ .menu-toggle span:nth-child(3){
transform:translateY(-.9rem) rotate(-45deg);
}
/* ======== NAVBAR (DESKTOP) ======== */
.navbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:1rem 2rem;
    background:rgba(0,0,0,0.4);
    backdrop-filter:blur(10px);
    position:sticky;
    top:0;
    z-index:100;
}
.logo{
    font-size:1.5rem;
    font-weight:bold;
    color:var(--clr-accent);
}
.nav-links{
    display:flex;
    gap:1.2rem;
}
.nav-links li{
    list-style:none;
}
.nav-links li a{
    font-weight:500;
    padding:.4rem .8rem;
    border-radius:999px;
    background:rgba(255,255,255,0.1);
    transition:background .2s,transform .2s;
}
.nav-links li a:hover{
    background:rgba(255,255,255,0.25);
    transform:scale(1.05);
}
/* ======== HERO (full screen) ======== */
.hero{
    height:100vh;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
    position:relative;
    /* needed for pseudo and balls */
    overflow:hidden;
    /* background removed – now fully transparent */
}
.hero::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:inherit;
    /* keeps the same gradient */
    filter:blur(8px);
    /* keeps the blur overlay */
    z-index:-3;
}
/* ======== BALL ANIMATION ======== */
.balls{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    z-index:-1;
    /* show above the blur overlay */
    pointer-events:none;
}
.ball{
    position:absolute;
    border-radius:50%;
    opacity:0.5;
    /* enough to keep black visible */
    filter:blur(50px);
    /* stronger blur for a soft glow */
    mix-blend-mode: overlay;
    /* gives that “glow” effect */
    /* huge, soft shadow – the light is “soft” */
    box-shadow: 0 0 250px 120px rgba(0,0,0,0.4);
    /* smooth speed changes at the corners */
    animation-timing-function: ease-in-out;
}
/* -------------- medium balls (using viewport units) -------------- */
.ball1{
    background:#ff0066;
    width:80vw;
    height:80vw;
    top:-40vw;
    left:-40vw;
    animation:move1 6s cubic-bezier(.42,0,.58,1) infinite alternate;
}
.ball2{
    background:#00ffcc;
    width:90vw;
    height:90vw;
    top:-45vw;
    right:-45vw;
    animation:move2 6s cubic-bezier(.42,0,.58,1) infinite alternate;
}
.ball3{
    background:#ffcc00;
    width:70vw;
    height:70vw;
    bottom:-35vw;
    left:-35vw;
    animation:move3 6s cubic-bezier(.42,0,.58,1) infinite alternate;
}
.ball4{
    background:#66ff66;
    width:75vw;
    height:75vw;
    bottom:-37.5vw;
    right:-37.5vw;
    animation:move4 6s cubic-bezier(.42,0,.58,1) infinite alternate;
}
.ball5{
    background:#cc66ff;
    width:85vw;
    height:85vw;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    animation:move5 6s cubic-bezier(.42,0,.58,1) infinite alternate;
}
/* -------------- keyframes – diagonal, corner‑to‑corner -------------- */
@keyframes move1{
    0%{transform:translate(0,0);}
    100%{transform:translate(calc(100vw - 80vw),calc(100vh - 80vh));}
}
@keyframes move2{
    0%{transform:translate(0,0);}
    100%{transform:translate(calc(-100vw + 90vw),calc(100vh - 90vh));}
}
@keyframes move3{
    0%{transform:translate(0,0);}
    100%{transform:translate(calc(100vw - 70vw),calc(-100vh + 70vh));}
}
@keyframes move4{
    0%{transform:translate(0,0);}
    100%{transform:translate(calc(-100vw + 75vw),calc(-100vh + 75vh));}
}
@keyframes move5{
    0%{transform:translate(0,0);}
    100%{transform:translate(200px,200px);}
}
/* ======== HERO TEXT & BUTTON ======== */
.hero h1{
    font-size:3rem;
    margin-bottom:.5rem;
    color:var(--clr-fg);
}
.hero p{
    font-size:1.2rem;
    margin-bottom:2rem;
    color:var(--clr-fg);
}
.btn-primary{
    background:var(--clr-accent);
    color:#000;
    padding:.75rem 1.5rem;
    border-radius:999px;
    font-weight:bold;
    transition:background .2s,transform .2s;
}
.btn-primary:hover{
    background:#e0a800;
    transform:scale(1.03);
    color:#000;
}
/* ======== ABOUT SECTION ======== */
.section{
    padding:3rem 2rem;
    max-width:1200px;
    margin:auto;
}
.section h2{margin-bottom:1rem;}
.about-links{
    display:flex;
    gap:1.5rem;
    flex-wrap:wrap;
    margin-top:1rem;
}
.about-links a{
    background:rgba(255,255,255,0.05);
    padding:.5rem 1rem;
    border-radius:5px;
}
.about-links a:hover{
    background:rgba(255,255,255,0.1);
}
/* ======== FOOTER ======== */
footer{
    text-align:center;
    padding:1.5rem 0;
    background:rgba(0,0,0,0.7);
    font-size:.9rem;
}
footer p{margin:.3rem 0;}
/* ======== MOBILE NAV ======== */
.mobile-nav{
    position:fixed;
    top:0;
    right:0;
    width:70%;
    max-width:260px;
    height:100vh;
    background:rgba(0,0,0,0.8);
    backdrop-filter:blur(15px);
    transform:translateX(100%);
    transition:transform .3s ease;
    z-index:105;
    padding-top:4rem;
}
.mobile-nav ul{list-style:none;}
.mobile-nav li{margin:1.5rem 0;}
.mobile-nav a{
    font-size:1.2rem;
    padding:.5rem 1.5rem;
    display:block;
    color:var(--clr-fg);
    transition:background .2s;
}
.mobile-nav a:hover{background:rgba(255,255,255,0.1);}
@media (max-width:900px){
    .navbar .nav-links{display:none;}
    .menu-toggle{display:block;}
    .hero h1{font-size:2.4rem;}
}
@media (max-width:600px){
    .logo{font-size:1.3rem;}
    .hero p{font-size:1rem;}
    .btn-primary{padding:.65rem 1.3rem;}
    .section{padding:2rem 1rem;}
}
/* ==================== SEARCH SECTION (header) ==================== */
.search-section{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    align-items:center;
    margin:2rem 0;
}
.search-section input{
    width:80%;
    max-width:500px;
    padding:.75rem 1.5rem;
    border-radius:999px;
    border:none;
    background:rgba(255,255,255,0.1);
    color:var(--clr-fg);
    font-size:1rem;
    transition:background .2s;
}
.search-section input::placeholder{color:rgba(255,255,255,0.4);}
.search-section input:focus{
    outline:none;
    background:rgba(255,255,255,0.15);
}
.search-section select{
    padding:.5rem 1rem;
    margin-left:.5rem;
    border-radius:5px;
    border:none;
    background:rgba(255,255,255,0.1);
    color:var(--clr-fg);
    transition:background .2s;
}
.search-section select:focus{
    outline:none;
    background:rgba(255,255,255,0.15);
}
/* ==================== PROJECT LIST & CARD STYLES ==================== */
.project-list{
    padding:3rem 2rem;
    max-width:1200px;
    margin:auto;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:1.5rem;
}
.project-card{
    display:flex;
    background:rgba(255,255,255,0.05);
    padding:1.5rem;
    border-radius:12px;
    transition:transform .2s,background .2s;
}
.project-card:hover{
    background:rgba(255,255,255,0.08);
    transform:translateY(-5px);
}
.project-icon{
    width:64px;height:64px;border-radius:8px;margin-right:1rem;
    object-fit:cover;
    box-shadow:0 0 20px rgba(0,0,0,0.2);
}
.project-info h3{
    margin-bottom:.4rem;
    color:var(--clr-accent);
    font-size:1.2rem;
}
.project-info p{
    margin-bottom:.8rem;
    color:var(--clr-fg);
    font-size:.95rem;
}
.project-tags span{
    display:inline-block;
    background:rgba(255,255,255,0.05);
    color:var(--clr-fg);
    padding:.25rem .5rem;
    border-radius:5px;
    font-size:.85rem;
    margin-right:.5rem;
    margin-bottom:.5rem;
}
@media (max-width:900px){.project-list{grid-template-columns:1fr;}}
@media (max-width:600px){.search-section input{width:90%;}}
/* ==================== PROJECT DETAIL PAGE STYLES ==================== */
/* Main container */
.project-detail{
    max-width: 90%;
    margin: 3rem auto;
    padding: 0 1.5rem;
    color: var(--clr-fg);
    font-size: 1rem;
    line-height: 1.6;
}
/* Header section */
.project-header{
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.project-logo{
    width: 96px;
    height: 96px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
}
.project-title{
    font-size: 2.8rem;
    color: var(--clr-fg);
    margin: 0;
}
/* Button styles (reuse .btn-primary etc.) */
.btn{
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    border-radius: 999px;
    transition: background .2s, transform .2s;
    padding: .75rem 1.5rem;
}
.btn-primary{
    background: var(--clr-accent);
    color: #000;
}
.btn-primary:hover{
    background: #e0a800;
    transform: scale(1.03);
}
.btn-secondary{
    background: rgba(255,255,255,0.1);
    color: var(--clr-link);
}
.btn-secondary:hover{
    background: rgba(255,255,255,0.25);
}
.btn-tertiary{
    background: rgba(255,255,255,0.05);
    color: var(--clr-link);
}
.btn-tertiary:hover{
    background: rgba(255,255,255,0.15);
}
/* Actions container */
.project-actions{
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}
/* Metadata */
.project-metadata ul{
    list-style: none;
    padding: 0;
    display: flex;
    gap: 2rem;
    flex-wrap: nowrap; /* stop wrapping */
}
.project-metadata li{
    font-size: .95rem;
    white-space: nowrap; /* keep each item on one line */
}
/* Description */
.project-description p{
    margin-bottom: 1rem;
    line-height: 1.6;
}
/* ==================== INSTALLATION COMMAND SECTION ==================== */
.command-section{
    background:rgba(255,255,255,0.05);
    border-radius:12px;
    padding:1.5rem;
    margin-top:2rem;
    position:relative;
}
.command-section h3{
    margin:0 0 .75rem 0;
    font-size:1.2rem;
    color:var(--clr-accent);
}
.command-block{
    background:rgba(0,0,0,0.8);
    color:#fff;
    font-family:'JetBrains Mono', monospace, monospace;
    padding:1rem;
    border-radius:8px;
    white-space:pre-wrap;
    overflow:auto;
}
.copy-btn{
    position:absolute;
    top:1rem;
    right:1rem;
    background:rgba(255,255,255,0.1);
    color:var(--clr-link);
    border:none;
    padding:.5rem .75rem;
    border-radius:999px;
    cursor:pointer;
    transition:background .2s;
}
.copy-btn:hover{
    background:rgba(255,255,255,0.25);
}
/* ==================== PAGE LAYOUT: FOOTER AT BOTTOM ==================== */
body{
    display:flex;
    flex-direction:column;
    min-height:100vh;          /* full viewport height */
    background:var(--bg-grad); /* keep existing gradient */
}
main.project-detail{
    flex:1;                    /* take all remaining space */
}



/* ======== PROJECT METADATA (new lines, yellow accents, spacing) ======== */
.project-metadata ul{
    list-style:none;          /* no bullets */
    padding:0;
    margin:0;
    /* keep each <li> on its own line */
    /* (default) */
}
.project-metadata li{
    margin-bottom:.6rem;       /* space between each line */
    font-size:.95rem;
    color:var(--clr-fg);
}
.project-metadata strong{
    color:var(--clr-accent);   /* yellow accent (your theme color) */
    font-weight:700;           /* make it pop a bit more */
}

/* ======== SPACE BETWEEN METADATA & DESCRIPTION ======== */
.project-description{
    margin-top:1.8rem;          /* give some breathing room */
}




/* ==================== MODAL STYLES ==================== */
.modal{
    position:fixed;
    inset:0;                     /* full‑screen overlay */
    background:rgba(0,0,0,0.6);
    display:none;                 /* hidden by default */
    align-items:center;
    justify-content:center;
    z-index:200;
}
.modal[aria-hidden="false"]{
    display:flex;                /* show when aria‑hidden is false */
}
.modal-content{
    background:var(--clr-bg);
    color:var(--clr-fg);
    padding:2rem;
    border-radius:12px;
    width:90%;
    max-width:420px;
    position:relative;
    box-shadow:0 4px 12px rgba(0,0,0,0.4);
}
.modal-close{
    position:absolute;
    top:.5rem; right:.5rem;
    background:transparent;
    border:none;
    font-size:1.5rem;
    color:var(--clr-fg);
    cursor:pointer;
}
.download-options{
    list-style:none;
    margin:1.5rem 0 0 0;
    padding:0;
}
.download-options li{
    margin-bottom:.75rem;
}
.download-options a{
    display:block;
    padding:.6rem .8rem;
    background:rgba(255,255,255,0.05);
    border-radius:5px;
    color:var(--clr-link);
    transition:background .2s;
}
.download-options a:hover{
    background:rgba(255,255,255,0.1);
}
