:root {
    --bg: #08111d;
    --bg-secondary: #0d1726;
    --card: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.10);
    --card-border-hover: rgba(255, 255, 255, 0.18);
    --text: #f8fafc;
    --muted: #b6c2d4;
    --muted-soft: #8fa1b8;
    --accent: #7c3aed;
    --accent-2: #06b6d4;
    --white: #ffffff;
    --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.18);
    --shadow-md: 0 20px 60px rgba(0, 0, 0, 0.28);
    --shadow-lg: 0 28px 80px rgba(0, 0, 0, 0.34);
    --radius: 18px;
    --max-width: 1180px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(124, 58, 237, 0.08), transparent 32%),
        radial-gradient(circle at top right, rgba(6, 182, 212, 0.07), transparent 26%),
        linear-gradient(180deg, #0a1422 0%, #08111d 100%);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(92%, var(--max-width));
    margin: 0 auto;
}

.bg-blur {
    position: fixed;
    border-radius: 999px;
    filter: blur(130px);
    z-index: -1;
    opacity: 0.22;
    pointer-events: none;
}

.bg-blur-1 {
    top: -120px;
    left: -120px;
    width: 300px;
    height: 300px;
    background: var(--accent);
}

.bg-blur-2 {
    right: -120px;
    top: 280px;
    width: 280px;
    height: 280px;
    background: var(--accent-2);
}

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(8, 17, 29, 0.78);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
    gap: 20px;
}

.logo {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    flex-shrink: 0;
}

.logo span {
    color: var(--accent-2);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.nav-links li {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: var(--muted-soft);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.25s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--white);
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
    width: 100%;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.98rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
    border: 1px solid transparent;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(6, 182, 212, 0.18);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    box-shadow: none;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--card-border-hover);
}

.btn-sm {
    padding: 11px 18px;
    font-size: 0.94rem;
}

.hero {
    padding: 120px 0 96px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 44px;
    align-items: center;
}

.eyebrow,
.section-tag,
.project-type,
.card-label {
    font-size: 0.79rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent-2);
    margin-bottom: 14px;
    font-weight: 700;
}

.hero h1 {
    font-size: clamp(2.7rem, 6vw, 5rem);
    line-height: 1.02;
    letter-spacing: -0.055em;
    max-width: 11.5ch;
}

.hero-description {
    margin-top: 22px;
    max-width: 640px;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 34px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 42px;
}

.stat-card,
.hero-card,
.glass-card,
.project-card,
.service-card,
.contact-card {
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.055) 0%,
            rgba(255, 255, 255, 0.035) 100%);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius);
}

.stat-card,
.glass-card,
.project-card,
.service-card {
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.stat-card:hover,
.glass-card:hover,
.project-card:hover,
.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--card-border-hover);
    box-shadow: var(--shadow-sm);
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.075) 0%,
            rgba(255, 255, 255, 0.045) 100%);
}

.stat-card {
    padding: 22px;
}

.stat-card h3 {
    font-size: 1.45rem;
    margin-bottom: 6px;
    letter-spacing: -0.03em;
}

.stat-card p {
    color: var(--muted-soft);
    font-size: 0.93rem;
    line-height: 1.5;
}

.hero-card {
    padding: 26px;
    box-shadow: var(--shadow-md);
}

.hero-card-inner {
    padding: 6px;
}

.hero-card h3 {
    font-size: 1.55rem;
    line-height: 1.28;
    margin-bottom: 18px;
    letter-spacing: -0.03em;
}

.hero-card ul {
    display: grid;
    gap: 14px;
    margin-top: 10px;
}

.hero-card li {
    color: var(--muted);
    padding-left: 18px;
    position: relative;
}

.hero-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.35);
}

.hero-note {
    margin-top: 18px;
    color: var(--muted-soft);
    font-size: 0.95rem;
    line-height: 1.7;
}

.section {
    padding: 104px 0;
}

.section-heading {
    margin-bottom: 38px;
}

.section-heading h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.045em;
    max-width: 14ch;
}

.section-intro {
    color: var(--muted);
    max-width: 700px;
    margin-top: 14px;
    line-height: 1.8;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.glass-card {
    padding: 30px;
}

.glass-card p {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.8;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.skill-pill {
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--card-border);
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.skill-pill:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--card-border-hover);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.project-card {
    padding: 30px;
    min-height: 270px;
}

.project-card.featured {
    grid-column: span 2;
    box-shadow: var(--shadow-md);
    background:
        linear-gradient(135deg, rgba(124, 58, 237, 0.16), rgba(6, 182, 212, 0.09)),
        linear-gradient(180deg,
            rgba(255, 255, 255, 0.055) 0%,
            rgba(255, 255, 255, 0.035) 100%);
}

.project-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-content h3 {
    font-size: 1.55rem;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
}

.project-content p {
    color: var(--muted);
    max-width: 56ch;
    line-height: 1.75;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 20px;
}

.project-tech span {
    font-size: 0.88rem;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: var(--muted);
}

.project-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: auto;
}

.project-links a {
    color: var(--white);
    font-weight: 600;
    position: relative;
    font-size: 0.96rem;
}

.project-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    transition: width 0.25s ease;
}

.project-links a:hover::after,
.project-links a:focus-visible::after {
    width: 100%;
}

.coming-soon-link {
    color: var(--muted-soft);
    font-weight: 600;
    opacity: 0.85;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.service-card {
    padding: 30px;
}

.service-card h3 {
    margin-bottom: 12px;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.service-card p {
    color: var(--muted);
    line-height: 1.75;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: 3px;
    border-radius: 10px;
}

.github-card {
    text-align: center;
    overflow: hidden;
}

.github-stats {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-section {
    padding-bottom: 110px;
}

.contact-card {
    padding: 48px 36px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.contact-card h2 {
    font-size: clamp(2rem, 5vw, 3.1rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
    margin-bottom: 16px;
}

.contact-card p {
    color: var(--muted);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.8;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 24px 0 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: var(--muted-soft);
    font-size: 0.94rem;
}

::selection {
    background: rgba(6, 182, 212, 0.25);
    color: var(--white);
}

@media (max-width: 980px) {
    .nav {
        flex-wrap: wrap;
        justify-content: center;
        padding: 14px 0;
    }

    .logo {
        margin-bottom: 4px;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 18px;
        padding-bottom: 8px;
    }

    .hero-grid,
    .about-grid,
    .services-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card.featured {
        grid-column: span 1;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .section-heading h2,
    .hero h1 {
        max-width: none;
    }
}

@media (max-width: 640px) {
    .hero {
        padding-top: 84px;
    }

    .section {
        padding: 76px 0;
    }

    .hero-description,
    .glass-card p,
    .project-content p,
    .service-card p,
    .contact-card p {
        font-size: 0.98rem;
    }

    .contact-card,
    .hero-card,
    .glass-card,
    .project-card,
    .service-card,
    .stat-card {
        padding: 22px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}
