:root {
    --bg-main: #07111f;
    --bg-secondary: #101d33;
    --panel: rgba(15, 23, 42, 0.72);
    --panel-border: rgba(148, 163, 184, 0.18);
    --text: #e2e8f0;
    --muted: #b8c5d6;
    --primary: #7c3aed;
    --secondary: #22d3ee;
    --accent: #f59e0b;
    --shadow: 0 24px 80px rgba(15, 23, 42, 0.55);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(124, 58, 237, 0.35), transparent 25%),
        radial-gradient(circle at bottom right, rgba(34, 211, 238, 0.2), transparent 30%),
        linear-gradient(135deg, var(--bg-main), var(--bg-secondary));
    color: var(--text);
    position: relative;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

.background-blur {
    position: fixed;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    z-index: 0;
    animation: float 12s ease-in-out infinite alternate;
}

.blur-one {
    top: 8%;
    left: 5%;
    background: rgba(124, 58, 237, 0.8);
}

.blur-two {
    right: 8%;
    bottom: 10%;
    background: rgba(34, 211, 238, 0.7);
    animation-delay: 1.5s;
}

.page-shell {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
    padding: 32px 20px 80px;
}

.hero {
    padding: 18px 0 20px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 26px;
    margin-bottom: 40px;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid var(--panel-border);
    border-radius: 18px;
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.brand {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--secondary), #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
    color: var(--text);
    transform: translateY(-2px);
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
    align-items: center;
    padding: 28px 10px;
}

.eyebrow {
    display: inline-block;
    padding: 8px 14px;
    margin-bottom: 20px;
    background: rgba(124, 58, 237, 0.12);
    border: 1px solid rgba(167, 139, 250, 0.4);
    color: #d8c9ff;
    border-radius: 999px;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-text h1 {
    margin: 0;
    font-size: clamp(2.7rem, 5vw, 5rem);
    line-height: 0.96;
    letter-spacing: -0.06em;
}

.hero-text p {
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 620px;
    margin: 20px 0 28px;
}

.cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.primary-btn,
.secondary-btn,
.social-link {
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.primary-btn,
.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    border-radius: 12px;
    font-weight: 700;
}

.primary-btn {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: #ffffff;
    box-shadow: 0 16px 30px rgba(34, 211, 238, 0.28);
}

.secondary-btn {
    color: var(--text);
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid var(--panel-border);
}

.primary-btn:hover,
.secondary-btn:hover,
.social-link:hover,
.photo-card:hover {
    transform: translateY(-4px);
}

.hero-card {
    position: relative;
    padding: 28px 22px 18px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.84), rgba(15, 23, 42, 0.65));
    border: 1px solid var(--panel-border);
    border-radius: 26px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), transparent 48%, rgba(34, 211, 238, 0.18));
    pointer-events: none;
}

.mini-tag {
    position: relative;
    display: inline-block;
    margin-bottom: 18px;
    background: rgba(34, 211, 238, 0.12);
    color: var(--secondary);
    border: 1px solid rgba(34, 211, 238, 0.3);
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.profile-visual {
    position: relative;
    height: 220px;
    display: grid;
    place-items: center;
    margin: 10px 0 20px;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(18px);
}

.orb-one {
    width: 180px;
    height: 180px;
    background: rgba(124, 58, 237, 0.7);
    top: 18px;
    left: 50%;
    transform: translateX(-60%);
    animation: orbit 8s ease-in-out infinite alternate;
}

.orb-two {
    width: 150px;
    height: 150px;
    background: rgba(34, 211, 238, 0.7);
    bottom: 20px;
    right: 14%;
    animation: orbit 10s ease-in-out infinite alternate-reverse;
}

.code-window {
    position: relative;
    width: 160px;
    height: 160px;
    display: grid;
    place-items: center;
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: inset 0 0 40px rgba(124, 58, 237, 0.2);
    z-index: 1;
}

.code-window span {
    font-size: 3.2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff, var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-stats {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    text-align: center;
    z-index: 1;
}

.hero-stats div {
    padding: 12px 10px;
    border-radius: 14px;
    background: rgba(148, 163, 184, 0.05);
    border: 1px solid rgba(148, 163, 184, 0.08);
}

.hero-stats strong {
    display: block;
    font-size: 1.35rem;
    margin-bottom: 4px;
}

.hero-stats span {
    font-size: 0.72rem;
    color: var(--muted);
}

.panel {
    margin-top: 32px;
    padding: 32px 28px;
    border-radius: 24px;
    background: var(--panel);
    border: 1px solid var(--panel-border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.section-heading {
    margin-bottom: 28px;
}

.section-heading span {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 12px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.7rem, 2vw, 2.5rem);
    letter-spacing: -0.04em;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.skill-item {
    padding: 20px 18px 18px;
    background: rgba(148, 163, 184, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 18px;
}

.skill-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    margin-bottom: 10px;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(148, 163, 184, 0.12);
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar span {
    display: block;
    width: var(--value);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--secondary), var(--primary), var(--accent));
    transform-origin: left center;
    transform: scaleX(0);
    animation: fillBar 1s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
    animation-delay: var(--delay);
}

.timeline {
    display: grid;
    gap: 18px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 18px;
    align-items: start;
    padding: 18px 20px;
    background: rgba(148, 163, 184, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 18px;
}

.year {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 42px;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.12);
    border: 1px solid rgba(124, 58, 237, 0.3);
    color: #d8c9ff;
    font-weight: 700;
}

.timeline-item h3 {
    margin: 0 0 8px;
    font-size: 1.2rem;
}

.timeline-item p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.social-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.social-link {
    padding: 22px 18px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--text);
    background: rgba(148, 163, 184, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.social-link span {
    font-size: 0.74rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.social-link strong {
    font-size: 1.05rem;
}

.github:hover {
    box-shadow: 0 18px 35px rgba(124, 58, 237, 0.18);
}

.facebook:hover {
    box-shadow: 0 18px 35px rgba(34, 211, 238, 0.18);
}

.linktree:hover {
    box-shadow: 0 18px 35px rgba(245, 158, 11, 0.18);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.photo-card {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    background: rgba(148, 163, 184, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.2);
}

.photo-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.photo-card figcaption {
    padding: 16px 18px 18px;
    font-weight: 700;
    color: var(--text);
}

.photo-card:hover img {
    transform: scale(1.05);
}

.reveal {
    opacity: 0;
    transform: translateY(26px);
    animation: fadeUp 0.9s ease forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fillBar {
    to {
        transform: scaleX(1);
    }
}

@keyframes orbit {
    0% {
        transform: translateX(-60%) translateY(0px) scale(1);
    }
    100% {
        transform: translateX(-35%) translateY(-10px) scale(1.08);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px) translateX(0px);
    }
    100% {
        transform: translateY(-24px) translateX(18px);
    }
}

@media (max-width: 800px) {
    .hero-content,
    .skills-grid,
    .social-list,
    .gallery {
        grid-template-columns: 1fr;
    }

    .topbar {
        flex-direction: column;
        gap: 18px;
    }

    .timeline-item {
        grid-template-columns: 1fr;
    }

    .year {
        width: 100px;
    }
}
