:root {
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --primary-800: #1e40af;
    --accent-500: #06b6d4;
    --accent-600: #0891b2;

    --neutral-0: #ffffff;
    --neutral-50: #f8fafc;
    --neutral-100: #f1f5f9;
    --neutral-200: #e2e8f0;
    --neutral-600: #475569;
    --neutral-700: #334155;
    --neutral-900: #0b1220;
    --neutral-950: #050814;

    --text-main: #0f172a;
    --text-muted: #475569;

    --card-bg: rgba(255, 255, 255, 0.9);
    --card-border: rgba(15, 23, 42, 0.08);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 16px 40px -30px rgba(2, 6, 23, 0.45);
    --shadow-lg: 0 30px 60px -40px rgba(2, 6, 23, 0.6);

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 22px;

    --container: 1100px;
    --focus: 0 0 0 4px rgba(37, 99, 235, 0.18);
    --profile-photo-y: 18%;
    --profile-photo-y-mobile: 12%;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background:
        radial-gradient(1200px 800px at 10% -10%, rgba(37, 99, 235, 0.12), transparent 60%),
        radial-gradient(900px 700px at 90% 0%, rgba(6, 182, 212, 0.10), transparent 55%),
        linear-gradient(180deg, var(--neutral-50) 0%, var(--neutral-0) 60%, var(--neutral-50) 100%);
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    background:
        radial-gradient(900px 700px at 15% 20%, rgba(6, 182, 212, 0.28), transparent 55%),
        radial-gradient(800px 650px at 75% 30%, rgba(37, 99, 235, 0.34), transparent 60%),
        linear-gradient(135deg, var(--neutral-950) 0%, #0b1f4b 50%, #07152e 100%);
    color: white;
    padding: 38px 0 74px;
    margin-bottom: 56px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.22) 100%);
    pointer-events: none;
}

.topbar {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 8px 0 34px;
}

.brand {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.brand:focus-visible {
    outline: none;
    box-shadow: var(--focus);
    border-radius: 10px;
}

.nav {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-link {
    color: rgba(255, 255, 255, 0.86);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 10px;
    border-radius: 10px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
    color: rgba(255, 255, 255, 0.98);
    background-color: rgba(255, 255, 255, 0.08);
}

.nav-link:focus-visible {
    outline: none;
    box-shadow: var(--focus);
}

.profile-header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    gap: 44px;
}

.profile-image-container {
    flex-shrink: 0;
}

.profile-photo {
    width: 292px;
    height: 292px;
    object-fit: cover;
    object-position: 50% var(--profile-photo-y);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 28px 60px -40px rgba(0, 0, 0, 0.75);
    filter: saturate(1.02) contrast(1.02);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.profile-photo:hover {
    transform: translateY(-2px) scale(1.01);
    border-color: rgba(6, 182, 212, 0.55);
}

.eyebrow {
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 10px;
}

.profile-text h1 {
    font-size: 3.1rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.05rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.80);
    margin-bottom: 18px;
    max-width: 54ch;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.92rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

/* Buttons */
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary {
    background-color: var(--primary-600);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-700);
    transform: translateY(-1px);
    box-shadow: 0 16px 30px -20px rgba(37, 99, 235, 0.65);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: white;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.btn:focus-visible {
    outline: none;
    box-shadow: var(--focus);
}

/* Sections */
.section {
    padding: 64px 0;
}

.section-muted {
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.02) 0%, rgba(2, 6, 23, 0.03) 100%);
}

.section-title {
    font-size: 2.1rem;
    text-align: center;
    margin-bottom: 2.6rem;
    color: var(--text-main);
    position: relative;
    letter-spacing: -0.02em;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-600), var(--accent-500));
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 2rem;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, 0.18);
    box-shadow: var(--shadow-lg);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-card {
    text-align: center;
    border-top: 3px solid rgba(37, 99, 235, 0.55);
}

.skill-card:hover {
    transform: translateY(-3px);
}

.skill-card .icon {
    font-size: 3rem;
    color: var(--primary-600);
    margin-bottom: 1.5rem;
}

.skill-card h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* Lists */
.info-list {
    list-style: none;
    margin-top: 1.5rem;
}

.info-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.05rem;
}

.info-list i {
    color: var(--primary-600);
    width: 24px;
    text-align: center;
}

.muted {
    color: var(--text-muted);
}

/* About */
.about-card {
    padding: 2.2rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 26px;
    align-items: start;
}

.about-lead {
    font-size: 1.08rem;
    color: var(--neutral-700);
    margin-bottom: 18px;
}

.about-lines {
    display: grid;
    gap: 12px;
}

.about-line {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 14px;
    padding: 14px 14px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.65);
    box-shadow: var(--shadow-sm);
}

.about-label {
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text-main);
}

.about-value {
    color: var(--text-muted);
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 18px;
}

.highlight {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--radius-md);
    padding: 14px 14px;
    background: rgba(255, 255, 255, 0.65);
    box-shadow: var(--shadow-sm);
}

.highlight-title {
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 4px;
    color: var(--text-main);
}

.highlight-text {
    color: var(--text-muted);
    font-size: 0.98rem;
}

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

.tag {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.06);
    border: 1px solid rgba(37, 99, 235, 0.16);
    color: var(--neutral-700);
    font-size: 0.92rem;
    font-weight: 600;
}

.about-facts {
    border-radius: var(--radius-lg);
    padding: 18px 18px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: radial-gradient(900px 500px at 10% 10%, rgba(37, 99, 235, 0.10), transparent 55%), rgba(2, 6, 23, 0.02);
}

.facts-title {
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    color: var(--text-main);
}

.facts-list {
    list-style: none;
    display: grid;
    gap: 10px;
}

.facts-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--neutral-700);
}

.facts-item i {
    width: 22px;
    text-align: center;
    color: var(--primary-600);
    margin-top: 2px;
}

.facts-item strong {
    color: var(--text-main);
}

/* Contact */
.contact-card {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--neutral-100);
    color: var(--text-main);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    border: 1px solid rgba(15, 23, 42, 0.08);
    transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.social-btn:hover {
    background-color: var(--neutral-0);
    border-color: rgba(37, 99, 235, 0.18);
    transform: translateY(-1px);
    color: var(--primary-600);
}

.social-btn:focus-visible {
    outline: none;
    box-shadow: var(--focus);
}

/* Footer */
footer {
    background-color: var(--neutral-950);
    color: #94a3b8;
    text-align: center;
    padding: 3rem 0;
    margin-top: 60px;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .section {
        padding: 54px 0;
    }

    .section-title {
        font-size: 1.85rem;
        margin-bottom: 2.1rem;
    }

    .profile-text h1 {
        font-size: 2.5rem;
    }
    
    .hero {
        padding: 26px 0 56px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .card {
        padding: 1.6rem;
    }

    .skill-card .icon {
        font-size: 2.6rem;
        margin-bottom: 1.1rem;
    }

    .social-links {
        gap: 12px;
        flex-direction: column;
        align-items: stretch;
    }

    .social-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 900px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .topbar {
        padding-bottom: 22px;
    }

    .nav {
        justify-content: center;
        gap: 10px;
    }

    .cta-buttons {
        justify-content: center;
    }

    .badges {
        justify-content: center;
    }

    .profile-photo {
        width: 210px;
        height: 210px;
        object-position: 50% var(--profile-photo-y-mobile);
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-card {
        padding: 1.8rem;
    }

    .about-line {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

@media (max-width: 520px) {
    .topbar {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding-bottom: 18px;
    }

    .nav {
        width: 100%;
        justify-content: center;
        gap: 8px;
    }

    .nav-link {
        font-size: 0.92rem;
        padding: 8px 10px;
        background-color: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.10);
    }

    .eyebrow {
        font-size: 0.82rem;
        letter-spacing: 0.07em;
    }

    .profile-text h1 {
        font-size: 2.15rem;
    }

    .subtitle {
        font-size: 0.98rem;
    }

    .profile-photo {
        width: 188px;
        height: 188px;
    }

    .about-card {
        padding: 1.5rem;
    }

    .about-lead {
        font-size: 1.02rem;
    }

    .highlight {
        padding: 12px 12px;
    }
}

@media (max-width: 380px) {
    .container {
        padding: 0 14px;
    }

    .profile-text h1 {
        font-size: 2.0rem;
    }

    .badge {
        font-size: 0.88rem;
        padding: 6px 10px;
    }

    .tag {
        font-size: 0.88rem;
        padding: 6px 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
