/*===== GOOGLE FONTS =====*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

/*===== ROOT VARIABLES =====*/
:root {
    --header-height: 3.5rem;

    --first-color: #7c5cff;
    --first-color-alt: #6344f5;
    --accent-glow: rgba(124, 92, 255, 0.45);

    --body-bg-1: #0d0b1a;
    --body-bg-2: #11082a;

    --glass: rgba(255, 255, 255, 0.05);
    --glass-hover: rgba(255, 255, 255, 0.09);
    --glass-border: rgba(255, 255, 255, 0.12);

    --text-color: #e8e6f4;
    --text-light: #9b96ba;
    --text-muted: #6b6585;

    --blur: 18px;

    --body-font: 'Poppins', sans-serif;

    --big-font-size: 2.6rem;
    --h2-font-size: 1.5rem;
    --normal-font-size: 0.95rem;
    --small-font-size: 0.82rem;

    --transition: all 0.35s ease;
    --radius: 16px;
}

/* LIGHT MODE */
body.light-theme {
    --body-bg-1: #f0edff;
    --body-bg-2: #e8e4ff;
    --glass: rgba(255, 255, 255, 0.55);
    --glass-hover: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(124, 92, 255, 0.2);
    --text-color: #1a1535;
    --text-light: #4a4270;
    --text-muted: #8a84aa;
}

/*===== RESET =====*/
*, ::before, ::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
ul { list-style: none; }
a { text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/*===== PARTICLE CANVAS =====*/
#particle-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    pointer-events: none;
}

/*===== BODY =====*/
body {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    color: var(--text-color);
    background: linear-gradient(135deg, var(--body-bg-1), var(--body-bg-2));
    min-height: 100vh;
    transition: var(--transition);
}

/*===== GLASS CARD =====*/
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    transition: var(--transition);
}
.glass-card:hover {
    background: var(--glass-hover);
    border-color: var(--first-color);
    box-shadow: 0 8px 32px var(--accent-glow);
    transform: translateY(-4px);
}

/*===== LAYOUT =====*/
.bd-grid {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.l-main { padding-top: var(--header-height); }

/*===== HEADER =====*/
.l-header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(13, 11, 26, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}
body.light-theme .l-header {
    background: rgba(240, 237, 255, 0.7);
}

/*===== NAV =====*/
.nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    color: var(--first-color);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav__link {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    transition: color 0.3s;
}
.nav__link:hover,
.nav__link.active {
    color: var(--first-color);
}
.nav__link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--first-color);
    border-radius: 2px;
}

.theme-toggle {
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s;
}
.theme-toggle:hover { color: var(--first-color); }

.nav__toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

/*===== MOBILE NAV =====*/
@media (max-width: 768px) {
    .nav__toggle { display: block; }

    .nav__menu {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 70%;
        height: 100vh;
        flex-direction: column;
        padding: 2rem 1.5rem;
        background: rgba(13, 11, 26, 0.95);
        backdrop-filter: blur(24px);
        border-left: 1px solid var(--glass-border);
        transition: right 0.4s ease;
    }
    .nav__menu.show { right: 0; }
    .nav__list { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
    .nav__link { font-size: 1rem; }
}

/*===== SECTION COMMON =====*/
.section { padding: 5rem 1.5rem; }
.section-title {
    text-align: center;
    font-size: var(--h2-font-size);
    color: var(--text-color);
    margin-bottom: 0.5rem;
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 52px;
    height: 3px;
    background: var(--first-color);
    margin: 0.6rem auto 2rem;
    border-radius: 2px;
}

/*===== BUTTONS =====*/
.button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.button--primary {
    background: linear-gradient(135deg, var(--first-color), var(--first-color-alt));
    color: #fff;
    box-shadow: 0 4px 20px var(--accent-glow);
}
.button--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.button--outline {
    background: transparent;
    color: var(--first-color);
    border: 2px solid var(--first-color);
}
.button--outline:hover {
    background: var(--first-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.button--send {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, var(--first-color), #a855f7);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 28px var(--accent-glow);
    border-radius: 50px;
    padding: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}
.button--send:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 36px rgba(124, 92, 255, 0.6);
}

/*===== HOME =====*/
.home {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
    min-height: 100vh;
    padding-top: 5rem;
}

.home__data {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.home__title {
    font-size: var(--big-font-size);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-color);
}
.home__title-color {
    color: var(--first-color);
    text-shadow: 0 0 30px var(--accent-glow);
}

.home__subtitle {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    line-height: 1.8;
}

.home__description {
    font-size: var(--normal-font-size);
    color: var(--text-light);
    line-height: 1.8;
}

.home__buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Social at bottom of text */
.home__social {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}
.home__social-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    font-size: 1.3rem;
    transition: var(--transition);
    backdrop-filter: blur(var(--blur));
}
.home__social-icon:hover {
    background: var(--first-color);
    color: #fff;
    border-color: var(--first-color);
    box-shadow: 0 4px 16px var(--accent-glow);
    transform: translateY(-3px);
}

/* Floating image */
.home__img {
    display: flex;
    justify-content: center;
    align-items: center;
}
.home__img-wrapper {
    animation: float 4s ease-in-out infinite;
    filter: drop-shadow(0 20px 60px var(--accent-glow));
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-18px); }
}

.home__blob {
    width: 100%;
    max-width: 400px;
    fill: var(--first-color);
}
.home__blob-img { width: 360px; }

@media (max-width: 768px) {
    .home {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 6rem;
        min-height: auto;
        padding-bottom: 3rem;
    }
    .home__buttons, .home__social { justify-content: center; }
    .home__img { order: -1; }
    .home__blob { max-width: 280px; }
    .home__title { font-size: 2rem; }
}

/*===== ABOUT =====*/
.about__container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

.about__img img {
    width: 220px;
    border-radius: var(--radius);
    border: 2px solid var(--glass-border);
    box-shadow: 0 8px 32px var(--accent-glow);
}

.about__subtitle {
    font-size: 1.3rem;
    color: var(--first-color);
    margin-bottom: 1rem;
}

.about__text {
    color: var(--text-light);
    line-height: 1.9;
}

@media (max-width: 768px) {
    .about__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .about__img { justify-self: center; }
}

/*===== HIGHLIGHTS =====*/
.highlights__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.highlight__card {
    background: var(--glass);
    backdrop-filter: blur(var(--blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition);
}
.highlight__card:hover {
    background: var(--glass-hover);
    border-color: var(--first-color);
    box-shadow: 0 8px 32px var(--accent-glow);
    transform: translateY(-6px);
}
.highlight__card h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--first-color);
    text-shadow: 0 0 20px var(--accent-glow);
}
.highlight__card span {
    font-size: 0.88rem;
    color: var(--text-light);
    margin-top: 0.4rem;
    display: block;
}

/*===== TIMELINE =====*/
.timeline {
    position: relative;
    padding-left: 2.5rem;
    max-width: 700px;
    margin: 0 auto;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--first-color), transparent);
}

.timeline__item {
    position: relative;
    background: var(--glass);
    backdrop-filter: blur(var(--blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}
.timeline__item:hover {
    border-color: var(--first-color);
    box-shadow: 0 6px 24px var(--accent-glow);
}
.timeline__item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 1.4rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--first-color);
    box-shadow: 0 0 10px var(--accent-glow);
}

.timeline__year {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--first-color);
    background: rgba(124, 92, 255, 0.15);
    padding: 0.2rem 0.7rem;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 0.6rem;
    letter-spacing: 0.5px;
}
.timeline__item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.3rem;
}
.timeline__item h4 {
    font-size: 0.88rem;
    color: var(--first-color);
    margin-bottom: 0.6rem;
}
.timeline__item p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
}

/*===== SKILLS – MARQUEE =====*/
.skills__intro {
    text-align: center;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.skills__marquee-wrapper {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.skills__marquee {
    display: flex;
    width: 100%;
    overflow: hidden;
}

.skills__track {
    display: flex;
    gap: 1.2rem;
    animation: marquee 22s linear infinite;
    white-space: nowrap;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.skill__pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.6rem;
    border-radius: 50px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(var(--blur));
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: var(--transition);
}
.skill__pill i {
    font-size: 1.3rem;
    color: var(--first-color);
}
.skill__pill:hover {
    border-color: var(--first-color);
    background: var(--glass-hover);
    box-shadow: 0 4px 20px var(--accent-glow);
    transform: scale(1.05);
}

/* Pause on hover */
.skills__marquee-wrapper:hover .skills__track {
    animation-play-state: paused;
}

/*===== PROJECTS =====*/
.projects__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
}

.project__card {
    background: var(--glass);
    backdrop-filter: blur(var(--blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: var(--transition);
}
.project__card:hover {
    border-color: var(--first-color);
    box-shadow: 0 10px 40px var(--accent-glow);
    transform: translateY(-6px);
}

.project__card-top {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.project__icon {
    font-size: 2rem;
    color: var(--first-color);
}
.project__card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
}
.project__card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
}
.project__tech {
    font-size: 0.82rem !important;
    color: var(--text-muted) !important;
}
.project__card .button {
    margin-top: auto;
    align-self: flex-start;
    font-size: 0.85rem;
    padding: 0.6rem 1.2rem;
}

/*===== CONTACT =====*/
.contact__description {
    text-align: center;
    color: var(--text-light);
    max-width: 580px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

.contact__container {
    max-width: 600px;
    margin: 0 auto;
}

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

.contact__input {
    width: 100%;
    padding: 1rem 1.2rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: var(--glass);
    backdrop-filter: blur(var(--blur));
    color: var(--text-color);
    font-family: var(--body-font);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.contact__input:focus {
    border-color: var(--first-color);
    box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.2);
}
.contact__input::placeholder { color: var(--text-muted); }

/*===== FOOTER =====*/
.footer {
    text-align: center;
    padding: 3rem 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(var(--blur));
    border-top: 1px solid var(--glass-border);
}

.footer__title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--first-color);
    margin-bottom: 0.4rem;
}
.footer__subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}
.footer__quote {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-style: italic;
    max-width: 480px;
    margin: 0 auto 1.5rem;
    line-height: 1.7;
}
.footer__social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
}
.footer__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    font-size: 1.2rem;
    transition: var(--transition);
}
.footer__icon:hover {
    background: var(--first-color);
    color: #fff;
    border-color: var(--first-color);
    transform: translateY(-3px);
}
.footer__copy {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/*===== RESPONSIVE =====*/
@media (min-width: 768px) {
    :root {
        --big-font-size: 3.2rem;
        --h2-font-size: 1.8rem;
        --normal-font-size: 1rem;
    }
}
