:root {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --surface: rgba(15, 23, 42, 0.72);
    --surface-border: rgba(148, 163, 184, 0.25);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --accent: #38bdf8;
    --accent-strong: #0ea5e9;
    --shadow-soft: 0 10px 24px rgba(2, 6, 23, 0.28);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background:
        radial-gradient(circle at 14% 18%, rgba(56, 189, 248, 0.18) 0%, rgba(56, 189, 248, 0) 34%),
        radial-gradient(circle at 82% 90%, rgba(14, 165, 233, 0.14) 0%, rgba(14, 165, 233, 0) 34%),
        linear-gradient(155deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    padding: 110px 20px 40px;
    align-items: center;
}

.top-back-link {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid var(--surface-border);
    background: var(--surface);
    color: #dbeafe;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.2px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(10px);
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.top-back-link:hover {
    transform: translateX(-50%) translateY(-2px);
    background: rgba(56, 189, 248, 0.18);
    color: #f8fafc;
}

.intro-layout {
    width: min(95vw, 1700px);
    margin: 0 auto;
    padding-top: 10px;
}

.intro-card {
    width: max(800px, 80%);
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: 28px;
    box-shadow: 0 20px 40px rgba(2, 6, 23, 0.35);
    min-height: 230px;
    padding: 28px 32px 20px 250px;
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
    overflow: visible;
}

.profile-figure {
    position: absolute;
    left: -10px;
    bottom: 0;
    transform: translateX(-36%);
    margin: 0;
}

.profile-image {
    width: 300px;
    max-width: 38vw;
    height: auto;
    display: block;
    filter: drop-shadow(0 22px 24px rgba(2, 6, 23, 0.45));

}

.intro-copy {
    margin-left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}

.intro-brand {
    margin: 0 0 0 auto;
    width: 150px;
    height: 150px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(2, 6, 23, 0.5);
    box-shadow: 0 12px 24px rgba(2, 6, 23, 0.35);
    flex-shrink: 0;
}

.intro-brand-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.intro-label {
    margin: 0;
    color: var(--accent);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.intro-name {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.15;
    color: var(--text-primary);
}

.intro-role {
    margin: 0;
    color: var(--text-secondary);
    font-size: clamp(18px, 2.1vw, 24px);
    font-weight: 500;
    line-height: 1.5;
}

.gear-section {
    width: 100%;
    margin: 28px auto 0;
}

.gear-title {
    margin: 0 0 14px;
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.2;
    text-align: center;
}

.gear-badges {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.gear-badge {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    padding: 18px 20px;
}

.gear-badge-label {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.gear-badge-name {
    margin: 0 0 8px;
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    line-height: 1.3;
}

.gear-badge-text {
    margin: 0;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.65;
}

.showcase-section {
    width: 100%;
    margin: 30px auto 0;
}

.showcase-title {
    margin: 0;
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.2;
}

.showcase-intro {
    margin: 10px 0 16px;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.7;
}

.single-showcase-wrap {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.single-showcase-card {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    padding: 16px;
}

.single-showcase-media {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(2, 6, 23, 0.7);
}

.single-showcase-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.single-showcase-content .project-showcase-models {
    margin: 0;
}

.single-showcase-content .project-showcase-quote {
    margin-top: 8px;
}

@media (max-width: 1200px) {
    .single-showcase-wrap {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.single-showcase-content {
    margin-top: 10px;
}

.single-showcase-content .showcase-intro {
    margin: 8px 0 0;
}

.project-showcase-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.project-showcase-card {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    padding: 16px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.project-showcase-card:hover {
    transform: translateY(-2px);
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 14px 28px rgba(2, 6, 23, 0.35);
}

.project-showcase-head {
    display: grid;
    gap: 4px;
    margin-top: 10px;
}

.project-showcase-title {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    color: var(--text-primary);
    line-height: 1.3;
    letter-spacing: 0.2px;
}

.project-showcase-type,
.project-showcase-models {
    margin: 0;
    color: #dbeafe;
    font-size: 14px;
    line-height: 1.55;
}

.project-showcase-quote {
    margin: 2px 0 0;
    padding-left: 10px;
    border-left: 2px solid rgba(56, 189, 248, 0.55);
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.65;
}

.project-carousel {
    position: relative;
}

.project-carousel-viewport {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(2, 6, 23, 0.7);
}

.project-carousel-track {
    display: flex;
    transition: transform 0.3s ease;
    align-items: center;
}

.project-slide {
    margin: 0;
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(2, 6, 23, 0.28);
}

.project-slide img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.project-carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.9);
    color: #dbeafe;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    line-height: 1;
    z-index: 2;
}

.project-carousel-button:hover {
    background: rgba(56, 189, 248, 0.2);
}

.project-carousel-button.prev {
    left: 8px;
}

.project-carousel-button.next {
    right: 8px;
}

.project-carousel-counter {
    margin: 6px 2px 0 0;
    text-align: right;
    color: var(--text-secondary);
    font-size: 13px;
}

.hire-me-section {
    margin-top: 24px;
    display: flex;
    justify-content: center;
}

.hire-me-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, 0.45);
    background: rgba(15, 23, 42, 0.9);
    color: #dbeafe;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.hire-me-button:hover {
    transform: translateY(-2px);
    background: rgba(56, 189, 248, 0.2);
    color: #f8fafc;
}

.page-footer {
    text-align: center;
    margin-top: 34px;
    font-size: 14px;
    color: #94a3b8;
    font-family: 'Inter', sans-serif;
}

@media (max-width: 1400px) {
    .project-showcase-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .intro-layout {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding-inline: 4px;
    }

    body {
        padding-top: 95px;
    }

    .intro-card {
        width: 100%;
        max-width: 100%;
        min-height: 0;
        padding: 28px 22px;
        gap: 18px;
        flex-direction: column;
        text-align: center;
    }

    .profile-figure {
        position: static;
        transform: none;
    }

    .profile-image {
        width: min(260px, 64vw);
        max-width: none;
    }

    .intro-copy {
        margin-left: 0;
        align-items: center;
    }

    .intro-brand {
        width: 120px;
        height: 120px;
        margin: 4px 0 0;
    }

    .gear-badges {
        grid-template-columns: 1fr;
    }

    .single-showcase-wrap {
        grid-template-columns: 1fr;
    }

    .project-showcase-list {
        grid-template-columns: 1fr;
    }

    .project-carousel-button {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }

    .project-slide img {
        max-height: 56vh;
    }

    .hire-me-button {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 560px) {
    .top-back-link {
        width: calc(100% - 24px);
        top: 10px;
        font-size: 15px;
        padding: 11px 16px;
    }

    body {
        padding: 80px 12px 24px;
    }

    .intro-layout {
        padding-inline: 0;
    }

    .intro-card {
        border-radius: 20px;
    }
}
