/* -------- Base Tokens -------- */
:root {
    --bg: #0f172a;
    --bg-alt: rgba(15, 23, 42, 0.85);
    --surface: #111c33;
    --surface-glass: rgba(15, 23, 42, 0.6);
    --border: rgba(148, 163, 184, 0.2);

    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --accent: #22d3ee;
    --text: #f8fafc;
    --text-muted: #cbd5f5;

    --font-family: 'Poppins', sans-serif;
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;

    --shadow-soft: 0 20px 60px -30px rgba(15, 23, 42, 0.7);
    --shadow-strong: 0 25px 80px -20px rgba(79, 70, 229, 0.45);
    --blur: blur(18px);
}

/* Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-family);
    color: var(--text);
    background: radial-gradient(circle at top left, #1d2761, #0b1228 65%);
    min-height: 100vh;
}

/* Utilities */
.container {
    width: min(1120px, 92vw);
    margin-inline: auto;
}

.section {
    padding: 8rem 0;
}

.section__title {
    font-size: clamp(2.25rem, 5vw, 2.8rem);
    font-weight: 600;
    margin-bottom: 1rem;
}

.section__subtitle {
    color: var(--text-muted);
    max-width: 560px;
    margin-inline: auto;
}

.center {
    text-align: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    border-radius: 999px;
    padding: 0.9rem 2.4rem;
    font-weight: 500;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.btn--primary {
    background: linear-gradient(120deg, var(--primary), var(--accent));
    box-shadow: var(--shadow-strong);
}

.btn--primary:hover {
    transform: translateY(-4px);
}

.btn--ghost {
    border: 1.5px solid rgba(99, 102, 241, 0.4);
    color: var(--text-muted);
    background: transparent;
}

.btn--ghost:hover {
    background: rgba(99, 102, 241, 0.12);
}

.btn--full {
    width: 100%;
}

/* -------- Navbar -------- */
.navbar {
    position: sticky;
    top: 0;
    backdrop-filter: blur(12px);
    background: rgba(8, 12, 28, 0.85);
    z-index: 10;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 0;
}

.nav__logo {
    color: rgba(248, 250, 252, 0.75);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-decoration: none;
}
.nav__logo:hover {
    color: rgba(248, 250, 252, 0.95);
}

.nav__menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav__link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--accent);
    left: 0;
    bottom: -6px;
    transition: width 0.25s ease;
}

.nav__link:hover,
.nav__link.active {
    color: var(--text);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 0.35rem;
    background: none;
    border: none;
    cursor: pointer;
}

.nav__toggle span {
    width: 1.8rem;
    height: 2px;
    background: var(--text);
    border-radius: 999px;
}

/* -------- Hero -------- */
.hero {
    padding-top: clamp(8rem, 12vw, 10rem);
}

.hero__grid {
    display: grid;
    gap: clamp(3rem, 6vw, 6rem);
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: center;
}

.hero__content {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.hero__subtitle {
    color: var(--text-muted);
    max-width: 520px;
}

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

.hero__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(100px, 1fr));
    gap: 1.5rem;
    margin-top: 0.75rem;
}

.hero__stats h3 {
    font-size: 1.8rem;
}

.hero__stats p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.hero__visual {
    display: grid;
    gap: 1.5rem;
}

.profile {
    position: relative;
    width: clamp(250px, 30vw, 340px);
    aspect-ratio: 1;
    margin-inline: auto;
}

.profile__ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 120deg, rgba(99, 102, 241, 0.2), rgba(37, 99, 235, 0.45));
    filter: blur(0);
    animation: rotate 12s linear infinite;
}

.profile__image {
    position: absolute;
    inset: 18px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
    display: grid;
    place-items: center;
}

.profile__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile__badge {
    position: absolute;
    bottom: 12%;
    left: -5%;
    padding: 0.65rem 1rem;
    background: rgba(99, 102, 241, 0.85);
    color: #fff;
    border-radius: var(--radius-sm);
    display: flex;
    gap: 0.6rem;
    align-items: center;
    box-shadow: var(--shadow-strong);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.hero__tags {
    display: grid;
    gap: 0.75rem;
    list-style: none;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-soft);
}

.hero__tags li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-muted);
}

.hero__tags i {
    color: var(--accent);
}

/* -------- About -------- */
.about {
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.15), transparent 55%);
    mix-blend-mode: screen;
}

.about__grid {
    position: relative;
    display: grid;
    gap: clamp(2.5rem, 6vw, 4rem);
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.about__card,
.about__timeline {
    background: var(--surface-glass);
    border-radius: var(--radius-lg);
    padding: clamp(2rem, 5vw, 3rem);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(24px);
}

.about__card p {
    color: var(--text-muted);
    margin-top: 1.3rem;
    line-height: 1.8;
}

.about__info {
    display: grid;
    gap: 1rem;
    margin: 2.4rem 0 1.8rem;
}

.about__info .label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.about__info a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.about__social {
    display: flex;
    gap: 1rem;
}

.about__social a {
    width: 42px;
    aspect-ratio: 1;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.1);
    display: grid;
    place-items: center;
    color: var(--text);
    transition: transform 0.2s ease, background 0.2s ease;
}

.about__social a:hover {
    background: rgba(99, 102, 241, 0.25);
    transform: translateY(-4px);
}

.about__timeline h3 {
    font-weight: 600;
    letter-spacing: 0.05em;
}

.timeline {
    margin-top: 2rem;
    border-left: 2px dashed rgba(99, 102, 241, 0.25);
    padding-left: 1.8rem;
    display: grid;
    gap: 2rem;
}

.timeline__item {
    position: relative;
    padding-left: 0.4rem;
}

.timeline__bullet {
    position: absolute;
    left: -2rem;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    background: var(--bg);
    box-shadow: 0 0 0 6px rgba(34, 211, 238, 0.18);
}

.timeline__meta {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0.35rem 0 0.6rem;
}

/* -------- Skills -------- */
.skills__grid {
    margin-top: clamp(3rem, 6vw, 4.5rem);
    display: grid;
    gap: clamp(1.5rem, 4vw, 2.5rem);
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.skills__card {
    background: rgba(17, 28, 51, 0.65);
    border-radius: var(--radius-lg);
    padding: clamp(1.8rem, 4vw, 2.4rem);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 1.5rem;
}

.skills__card h3 {
    font-size: 1.2rem;
    letter-spacing: 0.04em;
}

.skills__card ul {
    list-style: none;
    display: grid;
    gap: 1rem;
}

.skills__card li {
    display: grid;
    gap: 0.6rem;
}

.skills__card li > span:first-child {
    color: var(--text);
}

.skills__card li > span:nth-child(2) {
    justify-self: flex-end;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.bar {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.25);
    overflow: hidden;
    position: relative;
}

.fill {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    width: 0;
    background: linear-gradient(120deg, var(--primary), var(--accent));
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.45);
    transition: width 1s ease-in-out;
}

.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    list-style: none;
}

.chip-list li {
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(99, 102, 241, 0.08);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.soft-skills h4 {
    font-weight: 500;
    margin-bottom: 0.75rem;
}

/* -------- Projects -------- */
.projects {
    position: relative;
}

.projects::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(79, 70, 229, 0.2), transparent 45%);
    z-index: -1;
}

.projects__grid {
    margin-top: clamp(3rem, 6vw, 4.2rem);
    display: grid;
    gap: clamp(1.5rem, 4vw, 2.5rem);
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.project {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: rgba(17, 28, 51, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-soft);
    display: grid;
}

.project__thumb {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.project__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.project__body {
    padding: clamp(1.6rem, 4vw, 2.2rem);
    display: grid;
    gap: 1.15rem;
}

.project__body p {
    color: var(--text-muted);
    line-height: 1.7;
}

.project__tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.project__tags li {
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--text-muted);
}
.contact__social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.5rem;
}

.contact__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact__chip i {
    font-size: 1.1rem;
    color: var(--accent);
}

.contact__chip:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(79, 70, 229, 0.25);
}
.project__link {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.project__link:hover {
    color: var(--accent);
    transform: translateX(4px);
}

/* -------- Contact -------- */
.contact__grid {
    display: grid;
    gap: clamp(2.5rem, 5vw, 3.5rem);
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    align-items: start;
}

.contact__info {
    display: grid;
    gap: 1.5rem;
}

.contact__info p {
    color: var(--text-muted);
    max-width: 420px;
}

.contact__cards {
    display: grid;
    gap: 1rem;
}

.contact__cards article {
    border-radius: var(--radius-md);
    padding: 1.6rem;
    background: rgba(17, 28, 51, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.18);
    display: grid;
    gap: 0.75rem;
    transition: transform 0.2s ease;
}

.contact__cards article:hover {
    transform: translateY(-4px);
}

.contact__cards span {
    width: 44px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.35), rgba(34, 211, 238, 0.35));
    display: grid;
    place-items: center;
}

.contact__cards a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
}

.contact__form {
    padding: clamp(1.8rem, 4vw, 2.4rem);
    border-radius: var(--radius-lg);
    background: rgba(17, 28, 51, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 1.4rem;
}

.form__group {
    display: grid;
    gap: 0.65rem;
}

.form__group label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form__group input,
.form__group textarea {
    padding: 0.9rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.55);
    color: var(--text);
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form__group input:focus,
.form__group textarea:focus {
    border-color: rgba(99, 102, 241, 0.6);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    outline: none;
}

.form__group textarea {
    resize: vertical;
    min-height: 160px;
}

/* -------- Footer -------- */
.footer {
    padding: 3rem 0;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
    background: rgba(8, 12, 28, 0.85);
    backdrop-filter: blur(15px);
}

.footer__grid {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    align-items: center;
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-weight: 500;
}

.footer__copy {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer__links {
    display: flex;
    gap: 0.75rem;
    justify-self: flex-end;
}

.footer__links a {
    width: 42px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.18);
    display: grid;
    place-items: center;
    color: var(--text);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer__links a:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 18px rgba(79, 70, 229, 0.25);
}

/* -------- Responsive -------- */
@media (max-width: 960px) {
    .nav__toggle { display: flex; }
    .nav__menu {
        position: absolute;
        inset: 100% 0 auto;
        background: rgba(8, 12, 28, 0.96);
        flex-direction: column;
        padding: 1.5rem 1.8rem 2rem;
        border-bottom: 1px solid rgba(99, 102, 241, 0.12);
        transform-origin: top;
        transform: scaleY(0);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }
    .nav__menu.open {
        transform: scaleY(1);
        opacity: 1;
        pointer-events: all;
    }
    .hero__stats {
        grid-template-columns: repeat(2, minmax(110px, 1fr));
    }
}

@media (max-width: 640px) {
    .hero__cta { width: 100%; }
    .hero__cta .btn { flex: 1 1 100%; }
    .footer__links { justify-self: flex-start; }
}

/* -------- Animations -------- */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.profile__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
