:root {
    --bg: #05070c;
    --card: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.08);
    --text: #e6edf3;
    --muted: #9ba3af;
    --blue: #1677ff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    /* background:
        radial-gradient(circle at 20% 30%, #0b3a7a 0%, transparent 40%),
        radial-gradient(circle at 70% 60%, #0f6b3e 0%, transparent 45%),
        var(--bg); */
    color: var(--text);
    min-height: 100vh;
}

/* ===== DYNAMIC BACKGROUNDS ===== */

body.bg-hero {
    background:
        radial-gradient(circle at 20% 30%, #0b3a7a 0%, transparent 40%),
        radial-gradient(circle at 70% 60%, #0f6b3e 0%, transparent 45%),
        var(--bg);
}

/* body.bg-about {
    background:
        radial-gradient(circle at 50% 20%, #1677ff 0%, transparent 45%),
        radial-gradient(circle at 30% 70%, #0b3a7a 0%, transparent 50%),
        var(--bg);
} */


/* ================= NAVBAR ================= */

.navbar {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 64px);
    max-width: 1200px;
    backdrop-filter: blur(14px);
    background: rgba(10, 12, 20, .6);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.nav-left {
    display: flex;
    gap: 12px;
    align-items: center;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--blue);
    display: grid;
    place-items: center;
    font-weight: 700;
}

.nav-left span {
    font-size: 12px;
    color: var(--muted);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 10px;
}

.nav-links li,
.nav-links a {
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    color: var(--muted);
    text-decoration: none;
}

.nav-links .active {
    background: var(--blue);
    color: white;
}

/* ================= HERO ================= */

.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 160px 32px 80px;
    display: grid;
    grid-template-columns: 1.3fr .9fr;
    gap: 80px;
}

.hero-left h1 {
    font-size: 56px;
    line-height: 1.1;
}

.hero-left h1 span {
    color: #3fa9ff;
}

.hero-left h2 {
    margin-top: 8px;
    font-weight: 500;
    color: var(--muted);
}

.hero-left p {
    margin-top: 24px;
    max-width: 520px;
    color: var(--muted);
}

.badge {
    display: inline-block;
    background: rgba(16, 185, 129, .15);
    color: #10b981;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    margin-bottom: 24px;
}

.stats {
    display: flex;
    gap: 24px;
    margin-top: 40px;
}

.stats div {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 16px 20px;
    border-radius: 14px;
}

.stats strong {
    font-size: 22px;
}

.stats span {
    display: block;
    font-size: 12px;
    color: var(--muted);
}

.actions {
    display: flex;
    gap: 16px;
    margin-top: 40px;
}

button {
    border: none;
    border-radius: 14px;
    padding: 14px 22px;
    font-size: 14px;
    cursor: pointer;
}

.action-primary {
    text-decoration: none;
    color: inherit;
}

.primary {
    background: var(--blue);
    color: white;
}

.secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

/* ================= PROFILE CARD ================= */

.profile-card {
    background: linear-gradient(180deg, rgba(22, 119, 255, .25), rgba(0, 0, 0, .4));
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 32px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--blue);
    display: grid;
    place-items: center;
    font-size: 36px;
    font-weight: 800;
    margin: 0 auto 16px;
}

.location {
    color: var(--muted);
    font-size: 13px;
}

.tags {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 16px 0;
}

.tags span {
    background: rgba(22, 119, 255, .15);
    color: #3fa9ff;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
}

.card-links a {
    display: block;
    padding: 12px;
    margin-top: 10px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    text-decoration: none;
}

/* ================= ABOUT ================= */

.about {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 32px;
}

.about-header {
    text-align: center;
    margin-bottom: 80px;
}

.pill {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(22, 119, 255, .15);
    color: #3fa9ff;
    font-size: 12px;
    margin-bottom: 16px;
}

.about-header h2 {
    font-size: 42px;
    color: #3fa9ff;
}

.about-header p {
    margin-top: 10px;
    color: var(--muted);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 64px;
}

.about-item {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.about-icon {
    background: rgba(22, 119, 255, .15);
    padding: 14px;
    border-radius: 14px;
    font-size: 20px;
}

.about-item h3 {
    margin-bottom: 6px;
}

/* ================= CODE SNIPPET ================= */

.code-card {
    background: #020617;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 0 40px rgba(22, 119, 255, .25);
    overflow: hidden;
}

.code-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.tab {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--muted);
    margin-right: 8px;
}

.tab.active {
    background: var(--blue);
    color: white;
}

.dots {
    margin-left: auto;
    display: flex;
    gap: 6px;
}

.dots i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #444;
}

.dots i:nth-child(1) {
    background: #ef4444;
}

.dots i:nth-child(2) {
    background: #facc15;
}

.dots i:nth-child(3) {
    background: #22c55e;
}

pre {
    padding: 20px;
    font-size: 14px;
    overflow-x: auto;
}

.kw {
    color: #c084fc;
}

.cls {
    color: #38bdf8;
}

.fn {
    color: #22d3ee;
}

.str {
    color: #facc15;
}

/* ================= SKILLS ================= */

.skills {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 32px;
}

.skills-header {
    text-align: center;
    margin-bottom: 80px;
}

.skills-btn {
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(22, 119, 255, .15);
    color: #3fa9ff;
    font-size: 12px;
    border: none;
    margin-bottom: 16px;
}

.skills-header h2 {
    font-size: 42px;
    color: #3fa9ff;
    margin-bottom: 10px;
}

.skills-header p {
    color: var(--muted);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.skill-card {
    background: linear-gradient(180deg, rgba(22, 119, 255, .15), rgba(0, 0, 0, .4));
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 32px;
    color: var(--text);
    backdrop-filter: blur(10px);
}

.skill-card h3 {
    margin: 16px 0;
    font-size: 20px;
}

.skill-icon {
    font-size: 28px;
}

.skill-item {
    margin-bottom: 16px;
}

.skill-item span:first-child {
    font-size: 14px;
}

.skill-item span:last-child {
    float: right;
    font-size: 14px;
}

.progress {
    background: var(--card);
    border-radius: 8px;
    overflow: hidden;
    height: 6px;
    margin-top: 4px;
}

.progress div {
    background: var(--blue);
    height: 6px;
    width: 0;
    border-radius: 8px;
}

/* ================= CONTACT ================= */

.contact {
    max-width: 1200px;
    margin: 0 auto;
    padding: 140px 32px 160px;
}

.contact-header {
    text-align: center;
    margin-bottom: 80px;
}

.contact-header h2 {
    font-size: 42px;
    color: #3fa9ff;
    margin-bottom: 12px;
}

.contact-header p {
    color: var(--muted);
    line-height: 1.6;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.contact-card {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 24px;
    background: linear-gradient(180deg, rgba(22, 119, 255, .15), rgba(0, 0, 0, .45));
    border: 1px solid var(--border);
    border-radius: 22px;
    backdrop-filter: blur(10px);
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 20px;
}

.contact-icon.email {
    background: #ef4444;
}

.contact-icon.github {
    background: #111;
}

.contact-icon.discord {
    background: #5865f2;
}

.contact-icon.location {
    background: #10b981;
}

.contact-card strong {
    display: block;
    font-size: 14px;
}

.contact-card span {
    display: block;
    font-size: 13px;
    color: var(--muted);
}

.contact-card small {
    font-size: 11px;
    color: var(--muted);
}

.contact-card a,
.copy-btn {
    margin-top: 6px;
    display: inline-block;
    font-size: 12px;
    color: #3fa9ff;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.footer {
    background: radial-gradient(circle at top, #0f172a 0%, #020617 60%);
    padding: 80px 8% 30px;
    color: #cbd5f5;
    font-size: 14px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 60px;
    max-width: 1400px;
    margin: auto;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 16px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
    opacity: 0.85;
}

.footer-col ul li a {
    color: inherit;
    text-decoration: none;
    transition: color .2s;
}

.footer-col ul li a:hover {
    color: #38bdf8;
}

/* Brand */

.brand-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.brand-logo {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #38bdf8, #2563eb);
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 20px;
    color: #fff;
}

.brand h3 {
    margin: 0;
    color: #fff;
}

.brand span {
    font-size: 13px;
    opacity: .7;
}

.brand p {
    margin-top: 14px;
    line-height: 1.6;
    opacity: .85;
}

/* Socials */

.socials {
    display: flex;
    gap: 14px;
}

.socials a {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    display: grid;
    place-items: center;
    color: #fff;
    transition: background .2s, transform .2s;
    text-decoration: none;
    color: inherit;
}

.socials a:hover {
    background: rgba(56, 189, 248, 0.2);
    transform: translateY(-3px);
}

/* Bottom */

.footer-bottom {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: 13px;
    opacity: .6;
}

/* Responsive */

@media (max-width: 1000px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
}


/* RESPONSIVE */
@media (max-width: 900px) {
    .contact-methods {
        grid-template-columns: 1fr;
    }
}


/* RESPONSIVE */
@media (max-width: 900px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
}


/* ================= RESPONSIVE ================= */

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .navbar {
        display: none;
    }
}