:root {

    --background-color: #0f1117;
    --accent: #be1b1b;
    --text: #fff5e6;
    --weight: 400; 
}

@keyframes pulse {

    0% {
        box-shadow: 0 0 0px var(--accent),
                    0 0 0px var(--text);

    }
    50% {

        box-shadow: 0 0 10px var(--accent), 
                    0 0 20px var(--text); 
    }
    100% {
        box-shadow: 0 0 0px var(--accent), 
                    0 0 0px var(--text);
    }
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}
body, .powershell-body{
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    background-color: var(--background-color);
    color: var(--text);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    


}
/*Nav section */
.bar {
    width: 26px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
    transition: all 0.3s ease;
}
.hamburger {
    display:none; 
}
.logo-powershell {
    font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif
}
nav {

    position: sticky;
    top:0; 
    display:flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 0 20px;
    background-color: var(--background-color);
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    z-index: 98; 
}
.nav-links {
    display:flex;
    align-items: center; 
    list-style: none; 
}
.nav-links a {
    display: inline-block;
    padding: 5px 18px; 

}
.nav a:hover {
    transform: scale(1.1);
    animation: pulse 1s infinite;
}

.nav-link {
    color: var(--accent);
    text-decoration: none; 
}
.nav-link:hover {
     text-shadow: 0 0 8px var(--text),
                0 0 8px var(--accent);
}
.img-logo {
    padding: 5px; 
}
.navbar-logo {
 display: flex; 
 align-items: center; 
 gap: 10px; 
 flex-direction: row; 
}

.powershell-project {
    padding: 60px 32px;
}

.powershell-intro {
    padding: 60px 32px;
}

/*Project cards — carousel layout*/
.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
}

.carousel-track-container {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex: 1;
}

.carousel-track-container::-webkit-scrollbar {
    display: none;
}

.project-grid {
    display: flex;
    flex-direction: row;
    gap: 24px;
    padding: 10px 4px 20px;
}

.carousel-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--accent);
    background: transparent;
    color: var(--accent);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
    z-index: 2;
}

.carousel-btn:hover {
    background: var(--accent);
    color: #fff;
}

.project-card {
    flex: 0 0 300px;
    scroll-snap-align: start;
    background: linear-gradient(135deg,
     rgba(255, 255, 255, 0.05) 0%,
     rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(190, 27, 27, 0.3);
    border-radius: 16px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease,
                border-color 0.3s ease, opacity 0.3s ease;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    position: relative;
    opacity: 0.65;
}

.project-card:hover {
    transform: translateY(-5px);
    opacity: 1;
    box-shadow: 0 8px 16px rgba(190, 27, 27, 0.2);
}

.project-card i {
    font-size: 2rem;
    color: var(--accent);
}

.project-card h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--accent);
}

.project-card p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.7;
    color: var(--text);
}

.project-card a {
    align-self: flex-start;
    padding: 6px 16px;
    border: 1px solid var(--accent);
    border-radius: 20px;
    color: var(--accent);
    font-size: 0.75rem;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.project-card a:hover {
    background: var(--accent);
    color: #fff;
}
/* Footer */
.powershell-footer {
       text-align: center;
    padding: 24px 20px;
    border-top: 1px solid rgba(255, 107, 0, 0.15);
    font-family: "Saira Stencil", sans-serif;
    font-size: 0.72rem;
    font-style: italic;
    color: rgba(255, 245, 230, 0.4);
    bottom: 0;




}

footer {
    margin-top: auto;
}
/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {

    /* Navbar */
    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        z-index: 100;
    }

    .bar {
        width: 26px;
        height: 3px;
        background: var(--accent);
        border-radius: 3px;
        transition: all 0.3s ease;
        
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: center;
        background: var(--background-color);
        border-bottom: 1px solid rgba(255, 107, 0, 0.2);
        padding: 20px 0;
        gap: 6px;
        z-index: 99;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    nav {
        position: sticky;
        padding: 10px 20px;
    }
}