@import url('theme.css');
@import url('responsive.css');

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--inter);
    background:
        radial-gradient(circle at top left, rgba(255, 87, 34, 0.10), transparent 30%),
        radial-gradient(circle at top right, rgba(11, 165, 236, 0.08), transparent 32%),
        linear-gradient(180deg, #fffaf7 0%, var(--bg-base) 38%, #eef5ff 100%);
    color: var(--text-main);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dark body {
    background:
        radial-gradient(circle at top left, rgba(255, 87, 34, 0.16), transparent 30%),
        radial-gradient(circle at top right, rgba(11, 165, 236, 0.12), transparent 32%),
        linear-gradient(180deg, #09101f 0%, #0f172a 42%, #091220 100%);
    color: #f8fafc;
}

body::before,
body::after {
    content: '';
    position: fixed;
    inset: auto;
    border-radius: 999px;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
}

body::before {
    width: 18rem;
    height: 18rem;
    top: 8rem;
    right: -4rem;
    background: rgba(255, 87, 34, 0.12);
}

body::after {
    width: 20rem;
    height: 20rem;
    bottom: 8rem;
    left: -6rem;
    background: rgba(11, 165, 236, 0.12);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--poppins);
    letter-spacing: -0.02em;
}

a,
button {
    transition: all 0.3s ease;
}

section[id] {
    scroll-margin-top: 6.5rem;
}

.glass {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.56));
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid var(--surface-border);
    box-shadow: var(--shadow-soft);
}

.dark .glass {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.58));
    border-color: rgba(148, 163, 184, 0.16);
    box-shadow: 0 24px 80px rgba(2, 6, 23, 0.4);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.dark .text-gradient {
    background: linear-gradient(135deg, #ff9e7a 0%, #7cd4fd 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

#particles-js {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

#main-header {
    z-index: 60;
}

#main-header.is-scrolled {
    background: rgba(255, 255, 255, 0.68);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.dark #main-header.is-scrolled {
    background: rgba(15, 23, 42, 0.72);
    border-bottom-color: rgba(148, 163, 184, 0.12);
    box-shadow: 0 14px 40px rgba(2, 6, 23, 0.32);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.4rem;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.is-active::after {
    transform: scaleX(1);
}

#hero {
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    inset: 5rem 1.5rem 3rem;
    border-radius: 2rem;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.45;
    pointer-events: none;
}

#hero .container,
#services .container,
#experience .container,
#projects .container,
#skills .container,
#contact .container,
footer .container {
    max-width: var(--max-width);
}

.hero-metric {
    position: relative;
    overflow: hidden;
}

.hero-metric::after {
    content: '';
    position: absolute;
    inset: auto -25% -40% auto;
    width: 7rem;
    height: 7rem;
    background: radial-gradient(circle, rgba(255, 87, 34, 0.18), transparent 70%);
    pointer-events: none;
}

.section-heading {
    position: relative;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: rgba(255, 87, 34, 0.08);
    color: var(--primary-dark);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.dark .section-kicker {
    background: rgba(255, 87, 34, 0.14);
    color: #ffb39a;
}

.section-kicker::before {
    content: '';
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

#services,
#experience,
#projects,
#skills,
#contact {
    position: relative;
}

#services::after,
#projects::after,
#contact::after {
    content: '';
    position: absolute;
    inset: 3rem auto auto -8rem;
    width: 16rem;
    height: 16rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 87, 34, 0.08), transparent 70%);
    pointer-events: none;
}

#experience::after,
#skills::after {
    content: '';
    position: absolute;
    inset: auto -8rem 3rem auto;
    width: 18rem;
    height: 18rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(11, 165, 236, 0.1), transparent 70%);
    pointer-events: none;
}

#services .glass,
#experience .glass,
#projects .project-card,
#skills .glass,
#contact .glass {
    border-radius: var(--radius-xl);
}

#services .glass:hover,
#experience .glass:hover,
#skills .glass:hover,
#contact .glass:hover,
#projects .project-card:hover {
    box-shadow: var(--shadow-strong);
}

.experience-overview {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: end;
    position: relative;
    overflow: hidden;
}

.experience-overview::after {
    content: '';
    position: absolute;
    width: 14rem;
    height: 14rem;
    right: -5rem;
    top: -6rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 87, 34, 0.14), transparent 70%);
    pointer-events: none;
}

.experience-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--primary-dark);
    background: rgba(255, 87, 34, 0.1);
}

.experience-badge::before {
    content: '';
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.dark .experience-badge {
    color: #ffb39a;
    background: rgba(255, 87, 34, 0.15);
}

.experience-overview__meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.experience-stat {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem 1.1rem;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.dark .experience-stat {
    background: rgba(15, 23, 42, 0.54);
    border-color: rgba(148, 163, 184, 0.14);
}

.experience-stat strong {
    font-family: var(--poppins);
    font-size: 1.05rem;
    color: var(--text-main);
}

.dark .experience-stat strong {
    color: #f8fafc;
}

.experience-stat span {
    font-size: 0.84rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.experience-overview__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
    grid-column: 1 / -1;
}

.experience-source-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.16);
    color: var(--text-main);
    font-weight: 600;
}

.dark .experience-source-link {
    background: rgba(15, 23, 42, 0.74);
    color: #f8fafc;
    border-color: rgba(148, 163, 184, 0.16);
}

.experience-source-link:hover {
    transform: translateY(-2px);
    color: var(--primary);
}

.experience-stack {
    position: relative;
    display: grid;
    gap: 1.25rem;
    max-width: 60rem;
    margin: 0 auto;
}

.experience-stack::before {
    content: '';
    position: absolute;
    left: 1.1rem;
    top: 1rem;
    bottom: 1rem;
    width: 1px;
    background: linear-gradient(180deg, rgba(255, 87, 34, 0.42), rgba(11, 165, 236, 0.42));
}

.experience-entry {
    position: relative;
    display: grid;
    gap: 1.1rem;
    margin-left: 2.4rem;
    padding: 1.5rem 1.5rem 1.5rem 1.65rem;
    border-radius: 1.6rem;
}

.experience-entry--current {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.62)),
        linear-gradient(135deg, rgba(255, 87, 34, 0.08), rgba(11, 165, 236, 0.06));
}

.dark .experience-entry--current {
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.64)),
        linear-gradient(135deg, rgba(255, 87, 34, 0.1), rgba(11, 165, 236, 0.08));
}

.experience-entry__marker {
    position: absolute;
    left: -2rem;
    top: 1.6rem;
    width: 1rem;
    height: 1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 0 0 7px rgba(255, 87, 34, 0.12);
}

.dark .experience-entry__marker {
    box-shadow: 0 0 0 7px rgba(255, 87, 34, 0.16);
}

.experience-entry__header {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.experience-entry__period,
.experience-entry__type {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.experience-entry__period {
    color: var(--primary-dark);
    background: rgba(255, 87, 34, 0.1);
}

.dark .experience-entry__period {
    color: #ffb39a;
    background: rgba(255, 87, 34, 0.14);
}

.experience-entry__type {
    color: var(--accent-dark);
    background: rgba(11, 165, 236, 0.1);
}

.dark .experience-entry__type {
    color: #a7e3ff;
    background: rgba(11, 165, 236, 0.15);
}

.experience-entry__body {
    display: grid;
    gap: 0.9rem;
}

.experience-entry__title {
    font-size: clamp(1.3rem, 2vw, 1.65rem);
    line-height: 1.2;
    color: var(--text-main);
}

.dark .experience-entry__title,
.dark .experience-entry__company {
    color: #f8fafc;
}

.experience-entry__company {
    font-size: 0.98rem;
    font-weight: 600;
    color: #334155;
}

.experience-entry__summary {
    color: var(--text-muted);
    line-height: 1.75;
}

.experience-entry__highlights {
    list-style: none;
    display: grid;
    gap: 0.65rem;
}

.experience-entry__highlights li {
    position: relative;
    padding-left: 1.2rem;
    color: var(--text-main);
    line-height: 1.65;
}

.experience-entry__highlights li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.72rem;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.dark .experience-entry__highlights li {
    color: #e2e8f0;
}

.experience-entry__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.experience-entry__tags span {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
    background: rgba(148, 163, 184, 0.12);
}

.dark .experience-entry__tags span {
    color: #cbd5e1;
    background: rgba(148, 163, 184, 0.14);
}

#projects .project-card {
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.5rem;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 87, 34, 0.85), rgba(11, 165, 236, 0.85));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.project-card>* {
    position: relative;
    z-index: 1;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card img {
    transition: transform 0.45s ease, filter 0.45s ease;
    filter: saturate(0.95) contrast(1.02);
}

.project-card:hover img {
    transform: scale(1.04);
    filter: saturate(1.05) contrast(1.05);
}

.skill-card .fa-brands,
.skill-card .fa-solid,
.tool-card .fa-solid {
    font-size: 1.8rem;
}

#skills .glass span:last-child,
#skills .tool-card span:last-child {
    line-height: 1.5;
}

#contact .glass a:hover,
footer a:hover {
    text-decoration: none;
}

footer {
    background:
        radial-gradient(circle at top left, rgba(255, 87, 34, 0.18), transparent 35%),
        linear-gradient(180deg, #101828 0%, #0f172a 100%);
}

[data-scroll] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-scroll].in-view {
    opacity: 1;
    transform: translateY(0);
}

#scroll-top,
#theme-toggle-button {
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.14);
}

/* ─── Skills Categories ─────────────────────────────── */
.skills-category__label {
    font-family: var(--poppins);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-main);
    margin-bottom: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.skills-category__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skills-category__tags span {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 87, 34, 0.07);
    color: var(--text-main);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(255, 87, 34, 0.15);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.dark .skills-category__tags span {
    background: rgba(255, 87, 34, 0.12);
    border-color: rgba(255, 87, 34, 0.2);
}

.skills-category__tags span:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ─── What I Do Cards ───────────────────────────────── */
.whatido-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatido-card:hover {
    transform: translateY(-4px);
}