:root {
    --primary: #4d2ccb;
    --primary-light: #6b4df5;
    --dark: #111111;
    --text: #444444;
    --gray: #888888;
    --white: #ffffff;
    --transition: .3s ease;
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: "Space Grotesk", sans-serif;
    background: #0a0a0a;
    color: #f5f5f5;
    overflow-x: hidden;
    position: relative;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 25px 0;
    transition: 0.3s ease;
}

.navbar.scrolled {
    background: rgba(17, 17, 17, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.logo {
    text-decoration: none;
    color: #f5f5f5;
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 35px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #A1A1AA;
    transition: .3s;
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: .3s;
}

.nav-links a:hover::after {
    width: 100%;
    background: var(--primary);
}

.nav-links a:hover {
    color: var(--primary);
    position: relative;
}

/* HERO */
.hero {
    min-height: calc(100vh - 90px);
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 500px;
    align-items: center;
    gap: 70px;
}

.hero::before {
    content: "";
    position: absolute;
    width: 350px;
    height: 350px;
    background: rgba(98, 70, 234, .12);
    filter: blur(120px);
    border-radius: 50%;
    top: -120px;
    right: -100px;
    z-index: -1;
}

.hero-tag {
    color: var(--primary);
    letter-spacing: 4px;
    font-size: .9rem;
    margin-bottom: 18px;
}

.hero h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero h1 span {
    color: var(--primary);
    text-shadow: 0 0 18px rgba(98, 70, 234, .45);
}

.hero-text {
    width: 550px;
    color: #a1a1aa;
    line-height: 1.8;
    margin-bottom: 35px;
}

.hero-graphics {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@keyframes fadeUp {

    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

.code-card {
    width: 480px;
    background: #111;
    border-radius: 18px;
    overflow: hidden;

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    border: 1px solid rgba(255, 255, 255, .08);

    box-shadow:
        0 20px 45px rgba(0, 0, 0, .45),
        0 0 35px rgba(98, 70, 234, .15);

    transition: .4s ease;
}

.code-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow:
        0 30px 55px rgba(0, 0, 0, .55),
        0 0 45px rgba(98, 70, 234, .25);
}

.code-header {
    display: flex;
    gap: 8px;
    padding: 15px;
    background: #1b1b1b;
}

.code-line {
    transition: .25s ease;
}

.code-line:hover {
    transform: translateX(6px);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

.code-card pre {
    margin: 0;
    padding: 25px;
    color: #d6d6d6;
    font-size: .95rem;
    line-height: 1.8;
    overflow-x: auto;
}

.cursor {
    animation: blink .8s infinite;
    font-weight: 600;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.code-bg {
    font-size: 12rem;
    color: #991B1B;
    opacity: .06;
    user-select: none;
    font-weight: 700;
    transition: .4s;
}

.code-bg:hover {
    transform: scale(1.05);
    opacity: .12;
}

/* BUTTONS */
.hero-buttons {
    display: flex;
    gap: 20px;
}

.primary {
    background: var(--primary);
    color: white;
}

.secondary {
    border: 1px solid var(--primary);
    color: white;
}

.btn {
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 10px;
    transition: 0.35s ease;
}

.btn:hover {
    transform: translateY(-4px);
    background: var(--primary);
    box-shadow: 0 15px 35px rgba(98, 70, 234, .35);
}

.circle {
    position: absolute;
    top: 40px;
    right: 90px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: var(--primary);
    opacity: .15;
    filter: blur(90px);
}

.square {
    position: absolute;
    bottom: 90px;
    left: 70px;
    width: 110px;
    height: 110px;
    border: 2px solid var(--primary);
    transform: rotate(20deg);
}

.diamond {
    position: absolute;
    top: 220px;
    right: 180px;
    width: 80px;
    height: 80px;
    border: 2px solid var(--primary);
    transform: rotate(45deg);
}

/* ABOUT */
.about {
    width: 90%;
    max-width: 1200px;
    margin: 120px auto;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 70%;
    height: 3px;
    background: var(--primary);
}

.about-content {
    max-width: 750px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-content p {
    color: #A1A1AA;
    line-height: 1.9;
    font-size: 1.1rem;
}

.about-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-badges {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;

}

.about-badges span {
    padding: 8px 14px;
    background: rgba(98, 70, 234, .12);
    border-radius: 999px;
    color: var(--primary);
    font-size: .9rem;

}

.info-card {
    background: #111111;
    border: 1px solid #262626;
    border-radius: 18px;
    padding: 30px;
    transition: .3s;
}

.info-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary)
}

.info-item {
    margin-bottom: 28px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item h4 {
    color: var(--primary);
    margin-bottom: 8px;
}

.info-item p {
    color: var(--white);
}

/* TECH STACK CARDS*/
.skills {
    width: 90%;
    max-width: 1200px;
    margin: 120px auto;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
}

.skill-card {
    background: #121212;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 18px;
    padding: 30px 20px;
    text-align: center;
    transition: .35s ease;
    cursor: pointer;
}

.skill-card:hover {
    transform: translateY(-8px);
    border-color: rgba(98, 70, 234, .35);
    box-shadow:
        0 15px 35px rgba(98, 70, 234, .15);
}

.skill-card i,
.skill-card img {

    font-size: 3rem;
    margin-bottom: 18px;
    color: var(--primary);
    transition: .35s;
}

.skill-card:hover i,
.skill-card:hover img {

    transform: scale(1.15) rotate(-5deg);

}

.skill-card h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.skill-card p {
    color: #A1A1AA;
    font-size: .9rem;
    margin: 12px 0;
    line-height: 1.5;
}

.skill-card span {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(77, 44, 203, .15);
    color: var(--primary-light);
    font-size: .8rem;
    font-weight: 600;
}

.section-subtitle {
    color: #A1A1AA;
    margin-top: 15px;
    margin-bottom: 45px;
    max-width: 550px;
    line-height: 1.7;
}

/* PROJECTS */
.projects {
    width: 90%;
    max-width: 1200px;
    margin: 120px auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
    justify-items: center;
}

.project-card {
    width: 100%;
    max-width: 850px;
    background: #121212;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 22px;
    overflow: hidden;
    transition: .35s ease;

    box-shadow:
        0 10px 25px rgba(0, 0, 0, .18);

    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);

    border-color: rgba(98, 70, 234, .35);

    box-shadow:
        0 18px 45px rgba(0, 0, 0, .35),
        0 0 30px rgba(98, 70, 234, .18);
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.project-card p {
    color: var(--white);
    line-height: 1.7;
    margin-bottom: 25px;
}

.project-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: .45s ease;
}

.project-tech {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.project-tech span {

    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(98, 70, 234, .12);
    color: var(--primary);
    font-size: .9rem;
    font-weight: 600;
}

.project-links {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.project-links a {
    text-decoration: none;
    color: var(--white);
    border: 1px solid var(--primary);
    padding: 10px 18px;
    border-radius: 8px;
    transition: .3s;
}

.project-links a:hover {
    background: var(--primary);
}

.project-content {
    padding: 24px;
}

/* CONTACT */
.contact {
    padding: 100px 10%;
    text-align: center;
}

.contact-container h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-container p {
    color: #777;
    max-width: 600px;
    margin: auto;
    line-height: 1.6;
}

.contact-links {
    margin-top: 35px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.contact-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    background: #111;
    padding: 12px 25px;
    border-radius: 30px;
    transition: 0.3s;
}

.contact-links a:hover {
    transform: translateY(-5px);
}

.footer {
    background: #111;
    color: white;
    padding: 50px 10%;
    text-align: center;
}

.footer-container h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.footer-container h3 span {
    color: var(--primary);
}

.footer-container p {
    color: #aaa;
    margin-bottom: 25px;
}

.copyright {
    font-size: 0.9rem;
    margin-top: 20px;
}

.menu-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgb(0, 0, 0);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        display: none;
    }

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

    .navbar {
        padding: 20px;
    }

    .nav-links {
        gap: 15px;
        font-size: 0.9rem;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 120px 20px 80px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .about-container {
        flex-direction: column;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

/* ===========================
   LOADING SCREEN
=========================== */

#loader {
    position: fixed;
    inset: 0;
    background: #0d0b16;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity .6s ease, visibility .6s ease;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.loader-content img {
    width: 85px;
    border-radius: 22px;
    animation: float 2s ease-in-out infinite;
}

.loader-content h2 {
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 2px;
}

.loader-bar {
    width: 180px;
    height: 6px;
    background: #252338;
    border-radius: 999px;
    overflow: hidden;
}

.loader-bar span {
    display: block;
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, #6b4df5, #b18cff);
    animation: loading 1.2s ease forwards;
}

@keyframes loading {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* ===========================
   CURSOR GLOW
=========================== */

.cursor-glow {

    position: fixed;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;

    background: radial-gradient(circle,
            rgba(124, 92, 255, .22) 0%,
            rgba(124, 92, 255, .08) 40%,
            transparent 75%);

    filter: blur(20px);

    transform: translate(-50%, -50%);
    transition:
        left .08s linear,
        top .08s linear;
}

.cursor-glow {
    z-index: 0;
}

/* ===========================
   SCROLL PROGRESS BAR
=========================== */

#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    z-index: 999999;

    background: linear-gradient(90deg,
            #6b4df5,
            #8b5cf6,
            #b18cff);

    box-shadow: 0 0 15px rgba(139, 92, 246, .6);
}

.availability {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    margin-bottom: 20px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
}

.hero-description {
    max-width: 560px;
    margin-top: 18px;
    margin-bottom: 35px;
    color: #b8b8b8;
    font-size: 1.05rem;
    line-height: 1.8;
}

footer {
    padding: 40px 0;
    text-align: center;
    color: #8f8f8f;
    font-size: .95rem;

}
.section-title h2{
    font-size:2.8rem;
    font-weight:700;
    margin-bottom:15px;
    position:relative;
    display:inline-block;
}
.section-title h2::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-10px;
    width:60px;
    height:4px;
    border-radius:999px;

    background:var(--primary);
}
::selection{
    background:var(--primary);
    color:#fff;
}
::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:#111;
}

::-webkit-scrollbar-thumb{
    background:var(--primary);
    border-radius:999px;
}

::-webkit-scrollbar-thumb:hover{
    background:#7b5cff;
}