:root {
    --electric-blue: #007bff;
    --bg-dark: #0a0a0a;
    --text-light: #f5f5f5;
    --accent: #00d4ff;
    --transition: 0.3s ease;
    --gap: 1.25rem;
}

/* SCROLLBAR STYLING */
::-webkit-scrollbar {
    width: 8px;
    border-radius: 10px;
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: var(--accent);
    cursor: pointer;
}


/* GLOBAL RESET + SMOOTH SCROLL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Audiowide", Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    position: relative;
}

aside {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    background: var(--bg-dark);
    padding: 2em 2.5em;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    z-index: 9999;
    transform: translateX(-100%);
    transform-origin: right;
    transition: transform var(--transition);
}

aside.active {
    transform: translateX(0);
}

.close-nav {
    position: absolute;
    top: 1em;
    right: 1.2em;
    color: var(--text-light);
    z-index: 9999;
    font-size: xx-large;
}

.close-nav:active {
    color: var(--accent);
}

aside .logo {
    margin: 2em auto 1em;
}

.sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    list-style: none;
    width: 100%;
}

.sidebar li {
    width: 100%;
    margin: 1em auto;
}

.sidebar li a {
    color: var(--accent);
    padding: 30px auto;
    text-decoration: none;
}

header {
    position: fixed;
    top: 1.25rem;
    right: 1rem;
    left: 1rem;
    
    border: 1px solid var(--electric-blue);
    border-radius: 10px;
    padding: 0.8rem 1.5rem;
    
    display: flex;
    justify-content: center;
    align-items: center;
    
    background: rgba(200,200,200,0.05);
    opacity: 0;
    backdrop-filter: blur(2px);
    transition: opacity 1.2s ease-in-out, backdrop-filter 1s ease-in-out, background 1s ease-in-out;
    z-index: 999;
}

header:hover {
    background: rgba(200,200,200,0.5);
}

header.slide-in {
    opacity: 1;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(18px);
}

nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--electric-blue);
    font-size: 1.8rem;
    font-weight: 700;
}

.hamburger {
    display: none;
    border-radius: 5px;
    font-size: 40px;
    color: var(--electric-blue);
    transition: border var(--transition);
}

.hamburger:active {
    border: 2px solid var(--electric-blue);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent);
}

#hero {
    position: relative;
    height: 100vh;
    width: 100%;
    padding: auto 2rem;
    background: radial-gradient(circle at center, #001f3f 0%, #000 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 999;
    gap: 1.5em;
}

.hero-text h2 {
    font-size: 3rem;
}

.hero-text p {
    font-size: 1.2rem;
}

.hero-nav {
    display: flex;
    gap: 10px;
}

.hero-nav a {
    font-family: "Orbitron", sans-serif;
    text-align: center;
    color: var(--text-light);
}

.hero-text span {
    color: var(--accent);
}

/* PARTICLES CANVAS */
#particles {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 0;
}

.btn {
    margin: 0.5em auto;
    display: inline-block;
    padding: 12px 28px;
    border: 2px solid var(--electric-blue);
    color: var(--electric-blue);
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: .3s ease-out;
}

.btn:hover {
    background-color: var(--electric-blue);
    color: #0a0a0a;
    box-shadow: 0 0 18px var(--electric-blue);
}

section#about,
section#projects,
section#contact,
section#skills {
    margin: calc(var(--gap) * 3) auto;
    padding: 1em 2em;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-family: "Orbitron", sans-serif;
    color: var(--accent);
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: var(--electric-blue);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.about-content p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
    color: #dcdcdc;
}

.about-content img {
    width: 100%;
    border-radius: 1.5rem;
    filter: brightness(0.5);
    box-shadow: 0 0 20px rgba(0,212,255, 0.25);
    pointer-events: none;
    transition: transform var(--transition);
}

.about-content img:hover {
    transform: scale(1.03);
}






/*  SKILLSSSSSSSSSSSS */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 
    minmax(200px, 1fr));
    gap: 1.25rem;
}

.skill {
    padding: var(--gap);
    background: var(--electric-blue);
    color: var(--bg-dark);
    border-radius: 15px;
    width: 100%;
    font-size: 45px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.skill-text {
    font-size: 25px;
    font-family: "Orbitron", sans-serif, system-ui;
    margin-top: 0.5em;
}





/*  PROJECTSSSSSSSSSSSS */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.project-card {
    background: #111;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0,212,255, 0.15);
    transition: transform var(--transition), box-shadow var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(0,212,255, 0.25);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    columns: var(--accent);
    margin-bottom: 0.5rem;
}

.project-info p {
    color: #ccc;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.project-btn {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 0.6rem 1.2rem;
    margin: 1.5rem;
}

.project-btn:hover {
    background: var(--accent);
    color: #000;
}


/*  CONTACT SECTION SHA */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto 3rem;
}

.contact-text p {
    margin-bottom: 1rem;
    color: #dcdcdc;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    background: #111;
    border: 2px solid #222;
    color: var(--text-light);
    padding: 0.8rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
    outline: none;
}

.contact-form button {
    align-self: start;
    cursor: pointer;
}


.social-links {
    display: flex;
    justify-content: center;
    text-align: center;
    margin-top: 1rem;
}

.social-links a {
    margin: 0 1rem;
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
    font-size: 25px;
}

.social-links a:hover {
    color: var(--electric-blue);
    transform: translateY(-2px);
}

footer {
    text-align: center;
    padding: calc(var(--gap) * 2.5);
    border-top: 1px solid #222;
    font-size: 0.9rem;
    color: var(--text-light);

    display: flex;
    flex-direction: column;
    gap: var(--gap);
}

footer p a {
    text-decoration: none;
    cursor: pointer;
    color: var(--text-light);
    transition: .3s ease-out;
}

footer p a:hover {
    color: var(--electric-blue);
}

.back-to-top {
    position: fixed;
    right: 1em;
    bottom: 0.5em;
    z-index: 9999;
    color: var(--electric-blue);
    font-size: 40px;
    cursor: pointer;
    opacity: 0;
    transition: color var(--transition);
}

.back-to-top:hover {
    color: var(--accent);
}


/* MOBILE OVERRIDESSSSSSSSSSS */
@media (max-width: 525px) {
    .hero-text p {
        max-width: 300px;
    }
    header {
        padding: 10px 15px;
    }
    .hero-nav {
        flex-direction: column;
    }
    .hero-nav a {
        width: 170px;
}
}

@media (max-width: 900px) {
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image {
        order: -1;
    }

    .about-text {
        text-align: justify;
    }
    .contact-content {
        grid-template-columns: 1fr;
    }
    .contact-form button {
        align-self: center;
    }
    .hamburger {
        display: block;
    }
    .nav-links {
        display: none;
    }
}

@media (max-width: 320px) {
    .hero-text h2 {
        font-size: 2rem;
    }
    .hero-text p {
        font-size: 0.8rem;
    }
}