:root {
    --bg: #0f0f14;
    --surface: #15151d;
    --glass: rgba(255, 255, 255, 0.06);
    --text: #f7f7fb;
    --muted: #b7b7c9;
    --accent: #6c63ff;
    --accent-2: #ff6b9a;
    --border: rgba(255, 255, 255, 0.10);
    --shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background: radial-gradient(1200px 600px at 20% 0%, #1a1a24, 0%, #0f0f14 60%), #0f0f14;
    color: var(--text);
    font-family: "Inter", sans-serif;
    font-style: normal;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* Header/Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(180deg, rgba(15, 15, 20, 0.85), rgba(15, 15, 20, 0.65));
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.logo {
    width: 130px;
    height: 35px;
    border-radius: 8px;
}

.menu {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.menu a {
    padding: 8px 12px;
    border-radius: 10px;
    color: var(--muted);
    transition: .25s;
    border: 1px solid transparent;
}

.menu a:hover {
    color: var(--text);
    background: var(--glass);
    border-color: var(--border);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 10px;
    border-radius: 10px;
}

@media(max-width: 820px){.menu{display: none;}
    .menu-toggle{display: block;}
    .menu.open{display: flex;flex-direction: column;width: 100%;}}

/* Hero */
header.hero {
    padding: 64px 20px 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.halo {
    position: absolute;
    inset: -10% -10% auto auto;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(108, 99, 255, 0.35), transparent 70%);
    filter: blur(20px);
    opacity: .6;
    pointer-events: none;
    animation: float 12s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0)
    }
    50% {
        transform: translateY(18px)
    }
    100% {
        transform: translateY(0)
    }
}

.title {
    font-size: clamp(28px, 6vw, 52px);
    line-height: 1.15;
    margin: 0 0 10px;
    font-weight: 700;
}

.subtitle {
    font-size: clamp(14px, 3.5vw, 18px);
    color: var(--muted);
    margin: 0 auto;
    max-width: 760px;
}

.cta {
    margin-top: 18px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    color: var(--text);
    cursor: pointer;
    transition: .25s;
}

.btn:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.12);
}

/* Section */
section {
    padding: 28px 20px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;margin-bottom: 14px;
}

.section-head h2 {
    margin: 0;
    font-size: clamp(20px, 4.5vw, 28px);
}

.section-head p {
    margin: 0;
    color: var(--muted);
}

/* Grid & Cards */
.grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(12, 1fr);
}

.card {
    grid-column: span 12;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 20px;
    box-shadow: var(--shadow);
    backdrop-filter: saturate(140%) blur(6px);
    position: relative;
    overflow: hidden;
}

.card h3 {
    margin: 0 0 8px;
    font-size: clamp(18px, 3.8vw, 22px);
}

.card p{
    color: var(--muted);
    margin: 0 0 12px;
}

.accent-bar {
    position: absolute;
    inset: auto 0 0 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

@media(min-width: 900px) {
    .span-6 {
        grid-column: span 6;
    }
    .span-4 {
        grid-column: span 4;
    }
    .span-8 {
        grid-column: span 8;
    }
}

/* List inside cards */
.list {
    display: grid;
    gap: 10px;
}

.item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
}

/*.badge {
    min-width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 6px 18px rgba(108, 99, 255, 0.35);
}*/

.item h4 {
    margin: 0 0 4px;
    font-size: 16px;
}

.meta {
    font-size: 13px;
    color: var(--muted);
}

/* Skills chips */
.chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.chip {
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--glass);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
}

/* Portfolio Gallery */
.gallery {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(12, 1fr);
}

.work {
    grid-column: span 12;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
}

.work img {
    aspect-ratio: 16/9;
    object-fit: cover;
}

.work .info {
    padding: 12px;
}

@media(min-width: 900px) {
    .work.span-6 {
        grid-column: span 6;
    }
    .work.span-4 {
        grid-column: span 4;
    }
}

/* Footer */
footer {
    padding: 28px 20px;
    text-align: center;
    color: var(--muted);
    border-top: 1px solid var(--border);
}