:root {
    --bg: #050816;
    --bg-muted: #0b1020;
    --card: #111827;
    --card-hover: #172033;
    --text: #f8fafc;
    --text-muted: #cbd5e1;
    --text-soft: #94a3b8;
    --primary: #38bdf8;
    --primary-dark: #0284c7;
    --border: rgba(148, 163, 184, 0.18);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    --radius: 22px;
    --container: 1120px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.16), transparent 32rem),
    radial-gradient(circle at top right, rgba(99, 102, 241, 0.14), transparent 32rem),
    var(--bg);
    color: var(--text);
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style-position: inside;
}

.container {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
}

.section {
    padding: 96px 0;
}

.section-muted {
    background: rgba(15, 23, 42, 0.48);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(5, 8, 22, 0.82);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
}

.navbar {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.03em;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-cta {
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
}

.menu-toggle {
    display: none;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px 12px;
    font-size: 1.3rem;
    cursor: pointer;
}

.hero {
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
}

.hero-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 64px;
    align-items: center;
}

.hero-image-wrap {
    position: relative;
    width: min(320px, 100%);
    aspect-ratio: 1 / 1;
    margin-left: 0;
}

.hero-image-wrap::before {
    content: "";
    position: absolute;
    inset: -12px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.45), rgba(99, 102, 241, 0.25));
    border-radius: 50%;
    z-index: -1;
    filter: blur(2px);
}

.hero-image {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(148, 163, 184, 0.35);
    box-shadow: var(--shadow);
    display: block;
}

.hero-content {
    max-width: 920px;
}

.eyebrow,
.section-label {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.8rem;
    margin-bottom: 14px;
}

.hero h1 {
    font-size: clamp(2.7rem, 8vw, 6.5rem);
    line-height: 1.02;
    letter-spacing: -0.07em;
    margin-bottom: 28px;
}

.hero h1 span {
    color: var(--primary);
}

.hero-text {
    max-width: 780px;
    color: var(--text-muted);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    margin-bottom: 24px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 30px;
}

.hero-meta span {
    color: var(--text-muted);
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 0.9rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--primary);
    color: #06111f;
}

.btn-primary:hover {
    background: #7dd3fc;
}

.btn-secondary {
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.btn-secondary:hover {
    border-color: rgba(56, 189, 248, 0.6);
    color: var(--text);
}

.btn-with-icon {
    gap: 8px;
}

.btn-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.grid-two {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 64px;
    align-items: start;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.12;
    letter-spacing: -0.05em;
    margin-bottom: 28px;
}

.section-text {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.section-text p + p {
    margin-top: 20px;
}

.skills-grid,
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 36px;
}

.card,
.project-card,
.contact-card {
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.94), rgba(15, 23, 42, 0.94));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.card {
    padding: 26px;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    background: var(--card-hover);
    border-color: rgba(56, 189, 248, 0.32);
}

.card h3,
.project-card h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tags span {
    color: var(--text-muted);
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 0.9rem;
}

.project-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    min-height: 420px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.32);
}

.project-card p {
    color: var(--text-muted);
    margin-bottom: 18px;
}

.project-card ul {
    color: var(--text-soft);
}

.project-card li + li {
    margin-top: 8px;
}

.project-link {
    color: var(--primary);
    font-weight: 800;
}

.company-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 8px;
    color: var(--text-soft);
    font-size: 0.82rem;
    font-weight: 700;
    vertical-align: middle;
    transition: color 0.2s ease, transform 0.2s ease;
}

.company-link:hover {
    color: var(--primary);
    transform: translateY(-1px);
}

.company-link-icon {
    font-size: 0.9rem;
    line-height: 1;
}

.company-link-type {
    color: var(--primary);
}

.company-link-meta {
    color: var(--text-soft);
    font-size: 0.78rem;
    font-weight: 600;
}

.experience-list {
    display: grid;
    gap: 22px;
    margin-top: 36px;
}

.experience-card {
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.94), rgba(15, 23, 42, 0.94));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.experience-card:hover {
    transform: translateY(-3px);
    border-color: rgba(56, 189, 248, 0.32);
}

.experience-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

.experience-card h3 {
    font-size: 1.25rem;
    margin-bottom: 4px;
}
.experience-title-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.company-logo {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 12px;
    overflow: hidden;
}

.company-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.company-info {
    min-width: 0;
}

.company {
    color: var(--primary);
    font-weight: 700;
}

.date {
    color: var(--text-soft);
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 0.85rem;
    white-space: nowrap;
}

.experience-card ul {
    color: var(--text-muted);
    padding-left: 20px;
    list-style-position: outside;
}

.experience-card li + li {
    margin-top: 10px;
}

.contact-card {
    padding: 44px;
    text-align: center;
}

.contact-card p {
    max-width: 700px;
    color: var(--text-muted);
    margin: 0 auto 28px;
}

.contact-list {
    display: grid;
    gap: 14px;
    max-width: 760px;
    margin: 0 auto;
    text-align: left;
}

.contact-item {
    display: grid;
    grid-template-columns: 44px 110px 1fr;
    align-items: center;
    gap: 14px;
    color: var(--text);
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 16px 18px;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.contact-item:hover {
    transform: translateY(-2px);
    border-color: rgba(56, 189, 248, 0.6);
    background: rgba(17, 32, 51, 0.9);
}

.contact-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 14px;
    font-size: 1.35rem;
}
.contact-icon img {
    width: 24px;
    height: 24px;
    display: block;
}
.contact-icon svg {
    width: 24px;
    height: 24px;
    display: block;
}

.github-icon {
    color: #ffffff;
}

.linkedin-icon {
    color: #0a66c2;
}

.gmail-icon {
    color: #ea4335;
}

.phone-icon {
    color: var(--text);
}

.contact-label {
    color: var(--primary);
    font-weight: 800;
}

.contact-value {
    color: var(--text-muted);
    word-break: break-word;
}

@media (max-width: 620px) {
    .contact-list {
        text-align: left;
    }

    .contact-item {
        grid-template-columns: 44px 1fr;
        gap: 6px 14px;
    }

    .contact-icon {
        grid-row: span 2;
    }

    .contact-label {
        grid-column: 2;
    }

    .contact-value {
        grid-column: 2;
    }
}

.footer {
    border-top: 1px solid var(--border);
    padding: 28px 0;
    color: var(--text-soft);
    text-align: center;
}

@media (max-width: 820px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 76px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: rgba(15, 23, 42, 0.98);
        border: 1px solid var(--border);
        border-radius: 18px;
        padding: 12px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 12px;
    }

    .hero {
        min-height: auto;
        padding-top: 70px;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image-wrap {
        order: -1;
        width: min(260px, 100%);
        aspect-ratio: 1 / 1;
        margin: 0 auto 24px;
    }

    .hero-actions,
    .hero-meta {
        justify-content: center;
    }

    .grid-two,
    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 72px 0;
    }

    .project-card {
        min-height: auto;
    }

    .experience-header {
        flex-direction: column;
        gap: 10px;
    }
    .experience-title-row {
        gap: 12px;
    }

    .company-logo {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }
    .date {
        white-space: normal;
    }

    .contact-card {
        padding: 30px 22px;
    }
}

@media (max-width: 480px) {
    .container {
        width: min(100% - 24px, var(--container));
    }

    .hero h1 {
        font-size: clamp(2.4rem, 16vw, 3.8rem);
    }

    .hero-text {
        font-size: 1rem;
    }

    .btn {
        width: 100%;
    }

    .hero-actions {
        width: 100%;
    }

    .card,
    .project-card,
    .experience-card {
        padding: 22px;
    }

}