*{
    box-sizing: border-box;
    margin: 0;
}
html, body{
    scroll-behavior: smooth;
    margin:0;
    padding:0;
    width:100%;
    min-height:100%;
    background: #000000; /* Pure Black Background */
    position: relative;
}

/* Fireflies Canvas Overlay - Above Body, Below Navbar & Cards */
#fireflies {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
}

/* Main Content Layer */
nav, main, footer, section {
    position: relative;
    z-index: 2;
}

html{
    font-family: "Inter", sans-serif;
    color: white;
}
nav, nav a, .logo{
    font-family:"Space Grotesk", sans-serif;
}

/* Floating Glass Capsule Navbar - Starts hidden top, slides down on .active */
nav {
    position: fixed;
    top: -90px; /* Hidden offscreen initially */
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 980px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    z-index: 1000;
    transition: top 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s ease;
}

nav.active {
    top: 15px; /* Slides down to top: 15px */
}

.nav-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

/* Clean, Sleek Logo */
.logo {
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: -0.5px;
    font-family: "Space Grotesk", sans-serif;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.85;
}

.logo-dot {
    color: #ffffff;
    opacity: 0.6;
}

/* Sliding Pill Indicator Nav Links */
.nav-links {
    display: flex;
    gap: 4px;
    position: relative;
}

.nav-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 34px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.05);
    pointer-events: none;
    transition: left 0.3s cubic-bezier(0.25, 1, 0.5, 1), width 0.3s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.2s ease;
    opacity: 0;
    z-index: 0;
}

.nav-link {
    position: relative;
    z-index: 1;
    text-decoration: none;
    color: #a0a0a0;
    font-size: 0.9rem;
    padding: 7px 16px;
    border-radius: 20px;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: #ffffff;
}

.menu-toggle {
    display: none;
}

#home {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 620px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-family: monospace;
    white-space: nowrap;
    overflow: hidden;
    border-right: 4px solid #ffffff;
    width: 0;
    color: white;
    margin: 0;
    display: inline-block;
    
    animation: 
        typing 2s steps(18) forwards, 
        blink 0.75s step-end infinite;
}

.hero-desc {
    color: #94a3b8;
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 540px;
    margin-top: 18px;
    font-family: "Space Grotesk", sans-serif;
    opacity: 0;
    animation: fadeIn 1.2s ease-out 2.2s forwards;
}

#about {
    height: auto; 
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 20px;
    padding-bottom:180px;
    scroll-margin-top: 25vh;
}

/* Glassmorphism About Card - Matching Project Card Border Hover */
.about-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    max-width: 800px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.about-card:hover {
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
}
.card-header {
    background: rgba(0, 0, 0, 0.4);
    padding: 12px 18px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }
.card-body {
    padding: 30px 40px;
    text-align: left; 
}
.card-body p {
    color: #e2e8f0;
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0;
    font-family: 'Consolas', 'Courier New', monospace;
}

#skills {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-margin-top: 18vh;
    margin-bottom:180px
}
.skills-container {
    display: flex;
    flex-direction: row;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Glassmorphism Skill Card */
.skill-card {
    width: 170px;
    height: 170px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.skill-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}
.skill-card i {
    font-size: 70px;
}
.skill-card span {
    color: #e2e2e2;
    font-family: monospace;
    font-size: 1.1rem;
    font-weight: bold;
}
.csharp { color: #9b5096; }
.html { color: #e34f26; }
.css { color: #1572b6; }
.js { color: #f7df1e; }

.skill-card.csharp:hover { border-color: #9b5096; }
.skill-card.html:hover { border-color: #e34f26; }
.skill-card.css:hover { border-color: #1572b6; }
.skill-card.javascript:hover { border-color: #f7df1e; }

#projects {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 50px;
    padding: 60px 20px;
    padding-bottom:180px;
    scroll-margin-top: 18vh;
}
.projects-header { text-align: center; }
.projects-header h2 { color: #fff; font-family: monospace; font-size: 2.5rem; margin: 0; }
.projects-header .underline { width: 80px; height: 3px; background: #fff; margin: 10px auto 0; }
.projects-container {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    max-width: 1000px;
}

/* Glassmorphism Project Card */
.project-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    width: 480px;
    padding: 30px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover {
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
}
.project-content h3 { color: #fff; font-family: monospace; font-size: 1.6rem; margin: 0 0 15px 0; }
.project-content p { color: #cbd5e1; font-size: 0.95rem; line-height: 1.6; margin-bottom: 25px; }
.project-footer {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.project-tags { 
    display: flex; 
    gap: 8px; 
}
.project-tags span { 
    background: rgba(255, 255, 255, 0.08); 
    color: #fff; 
    padding: 5px 10px; 
    border-radius: 20px; 
    font-size: 0.8rem; 
    border: 1px solid rgba(255, 255, 255, 0.12); 
    font-family: monospace;
    white-space: nowrap;
}
.project-links { 
    display: flex; 
    gap: 15px; 
}
.project-links a { 
    width: 100%;
    max-width: 140px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none; 
    border-radius: 8px; 
    font-weight: bold; 
    font-size: 0.88rem; 
    transition: all 0.3s ease; 
    font-family: monospace;
    box-sizing: border-box;
}

/* Unified, Sleek Glass Project Buttons */
.btn-live, .btn-github { 
    background: rgba(255, 255, 255, 0.05); 
    color: #e2e8f0; 
    border: 1px solid rgba(255, 255, 255, 0.18); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.btn-live:hover, .btn-github:hover { 
    background: rgba(255, 255, 255, 0.16); 
    color: #ffffff; 
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.08);
}

#contact {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 35px;
    padding: 60px 20px;
    scroll-margin-top: 18vh;
    margin-bottom:180px
}
.contact-header { text-align: center; }
.contact-header h2 { color: #fff; font-family: monospace; font-size: 2.5rem; margin: 0; }
.contact-header .underline { width: 80px; height: 3px; background: #fff; margin: 10px auto 0; }
.contact-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 500px;
    align-items: center;
}
.contact-description {
    color: #aaa;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 20px;
    font-family: monospace;
}
.contact-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #fff;
    font-family: monospace;
    font-size: 0.95rem;
    box-sizing: border-box;
    transition: border-color 0.4s ease;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #fff;
}
.btn-submit {
    height: 45px;
    background: #fff;
    color: #000;
    border: 1px solid #fff;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.95rem;
    font-family: monospace;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-submit:hover {
    background: #000;
    color: #fff;
}
.footer {
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 30px 20px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(16px);
}
.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.footer-content p {
    color: #777;
    font-size: 0.85rem;
    font-family: monospace;
    margin: 0;
}
.footer-logo {
    color: #fff;
    font-family: monospace;
    font-size: 0.95rem;
    font-weight: bold;
    letter-spacing: 1px;
}
.section-header{
    text-align:center;
    margin-bottom:50px;
}
.section-header h2{
    color:#fff;
    font-family:monospace;
    font-size:2.5rem;
    margin:0;
}
.section-header .underline{
    width:80px;
    height:3px;
    background:#fff;
    margin:12px auto 0;
    border-radius:20px;
}
#about{
    flex-direction:column;
    gap:50px;
}
#skills{
    flex-direction:column;
    gap:50px;
    padding:60px 20px;
}
@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}
@keyframes blink {
    from, to { border-color: transparent; }
    50% { border-color: #ffffff; }
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 992px){
    nav{
        width: calc(100% - 30px);
        padding: 0;
    }
    .nav-container {
        padding: 0 18px;
    }
    .projects-container{
        flex-direction: column;
        align-items: center;
    }
    .project-card{
        width: 100%;
        max-width: 700px;
    }
}

@media (max-width: 768px){
    html{
        overflow-x:hidden;
    }
    body{
        overflow-x:hidden;
    }
    section{
        width:100%;
    }
    nav{
        top: -90px!important;
        left: 50%!important;
        transform: translateX(-50%)!important;
        width: calc(100% - 20px)!important;
        padding: 0 15px!important;
        border-radius: 30px!important;
    }
    nav.active{
        top: 10px!important;
    }
    .logo{
        font-size: 18px;
    }
    .menu-toggle{
        display:block;
        font-size:22px;
        color:white;
        cursor:pointer;
    }
    .nav-links{
        position:absolute;
        top:60px;
        left:0;
        width:100%;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(20px);
        border-radius: 20px;
        display:none;
        flex-direction:column;
        align-items:center;
        padding:15px 0;
        border:1px solid rgba(255,255,255,0.15);
    }
    .nav-links.active{
        display:flex;
    }
    .nav-link{
        margin:5px 0;
    }
    .nav-indicator {
        display: none;
    }
    #home{
        padding:0 20px;
    }
    .hero-content h1{
        font-size:2rem;
        width:0;
        display:inline-block;
        animation:
            typing-mobile 2s steps(16) forwards,
            blink .75s step-end infinite;
    }
    @keyframes typing-mobile{
    from{
        width:0;
    }
    to{
        width:18ch;
    }
}

    .hero-desc{
        font-size:0.95rem;
        margin-top:12px;
    }

    #about{
        padding:40px 15px;
    }

    .about-card{
        width:100%;
    }

    .card-body{
        padding:20px;
    }

    .card-body p{
        font-size:.95rem;
        line-height:1.8;
    }

    #skills{
        padding:40px 15px;
    }

    .skills-container{
        gap:15px;
    }

    .skill-card{
        width:140px;
        height:140px;
    }

    .skill-card i{
        font-size:55px;
    }

    .skill-card span{
        font-size:1rem;
    }

    #projects{
        padding:40px 15px;
        gap:30px;
    }

    .projects-header h2{
        font-size:2rem;
    }

    .projects-container{
        flex-direction:column;
        gap:20px;
    }

    .project-card{
        width:100%;
        padding:20px;
    }

    .project-content h3{
        font-size:1.3rem;
    }

    .project-content p{
        font-size:.9rem;
    }

    .project-tags{
        flex-wrap:wrap;
    }

    .project-tags span{
        font-size:.75rem;
        padding:4px 8px;
    }

    .project-links{
        flex-direction:column;
        gap:10px;
    }

    .project-links a{
        width:100%;
        max-width:none;
    }

    #contact{
        padding:40px 15px;
    }

    .contact-header h2{
        font-size:2rem;
    }

    .contact-container{
        width:100%;
    }

    .contact-description{
        font-size:.9rem;
    }

    .form-group input,
    .form-group textarea{
        font-size:16px;
    }

    .btn-submit{
        width:100%;
    }

    .footer{
        padding:20px 15px;
    }

    .footer-content{
        flex-direction:column;
        text-align:center;
        gap:10px;
    }

    .footer-content p{
        font-size:.75rem;
    }

    .footer-logo{
        font-size:.85rem;
    }
}

::-webkit-scrollbar{
    width:5px;
}
::-webkit-scrollbar-track{
    background:#000000;
}
::-webkit-scrollbar-thumb{
    background:#ffffff;
    border-radius:20px;
}
::-webkit-scrollbar-thumb:hover{
    background:#ffffff;
}