:root {
    --bg: #080808;
    --surface: #111111;
    --surface-soft: #1a1a1a;
    --text: #f7f0de;
    --muted: #b8ad94;
    --primary: #d6a63a;
    --primary-dark: #b98517;
    --accent: #f3cf72;
    --border: rgba(214, 166, 58, 0.24);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 18% 0%, rgba(214, 166, 58, 0.18), transparent 26rem),
        radial-gradient(circle at 86% 12%, rgba(243, 207, 114, 0.08), transparent 22rem),
        linear-gradient(180deg, #15120b 0%, var(--bg) 34%, #0d0d0d 100%);
}

a {
    color: inherit;
}

.container {
    min-height: 100vh;
}

header,
.site-header {
    position: relative;
    overflow: hidden;
    max-width: 1120px;
    margin: 24px auto 30px;
    padding: clamp(32px, 7vw, 82px);
    color: var(--text);
    text-align: left;
    background:
        linear-gradient(135deg, rgba(214, 166, 58, 0.18), rgba(214, 166, 58, 0.03) 38%, rgba(255, 255, 255, 0.04)),
        #101010;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    isolation: isolate;
}

header::before,
.site-header::before {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(243, 207, 114, 0.18);
    border-radius: 12px;
    pointer-events: none;
    z-index: -1;
}

header::after,
.site-header::after {
    content: "";
    position: absolute;
    right: -90px;
    top: -130px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(243, 207, 114, 0.22), transparent 68%);
    pointer-events: none;
    z-index: -1;
}

header h1 {
    max-width: 900px;
    margin: 0;
    color: #fff8e7;
    font-size: clamp(2.35rem, 7vw, 5.8rem);
    line-height: 0.92;
    letter-spacing: 0;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.header-intro {
    max-width: 760px;
    margin: 22px 0 0;
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.7;
}

nav {
    position: sticky;
    top: 12px;
    z-index: 10;
    padding: 8px;
    background: rgba(10, 10, 10, 0.82);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(16px);
}

.site-header nav,
header nav {
    position: relative;
    top: auto;
    margin-top: 34px;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

nav a:hover,
.active {
    color: #15100a;
    background: linear-gradient(135deg, var(--accent), var(--primary));
}

main {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
}

section h2 {
    margin: 0 0 12px;
    font-size: clamp(1.7rem, 3vw, 2.6rem);
    line-height: 1.1;
}

section p,
section ul {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
}

section h2,
.project-info h3,
.timeline h3,
.language-list h3,
.skill p {
    color: #fff8e7;
}

.profile-container,
.portfolio-container,
.skills-container {
    display: grid;
    gap: 28px;
    padding-bottom: 36px;
}

.profile-image,
.profile-info,
.skills-left {
    padding: 28px;
}

.profile-image {
    display: flex;
    justify-content: center;
    background:
        linear-gradient(135deg, rgba(214, 166, 58, 0.22), rgba(255, 255, 255, 0.04)),
        var(--surface);
}

.profile-image img {
    width: min(260px, 70vw);
    aspect-ratio: 1;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid rgba(243, 207, 114, 0.72);
    box-shadow: var(--shadow);
}

.profile-info {
    text-align: left;
}

.profile-info h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
}

.profile-info p {
    max-width: 840px;
    margin: 0;
    font-size: 1.08rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    padding: 28px;
}

.detail-grid > div {
    min-width: 0;
}

.timeline {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.timeline article,
.language-list article {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(214, 166, 58, 0.04)), var(--surface-soft);
}

.timeline span {
    display: inline-flex;
    margin-bottom: 6px;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 800;
}

.timeline h3,
.language-list h3 {
    margin: 0 0 6px;
    font-size: 1rem;
}

.timeline p,
.language-list p,
.section-note {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.portfolio-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: end;
    padding: 32px;
    background:
        linear-gradient(135deg, rgba(214, 166, 58, 0.18), rgba(0, 0, 0, 0.18)),
        #101010;
    border-color: var(--border);
    color: #ffffff;
    box-shadow: var(--shadow);
}

.portfolio-hero h2 {
    color: #ffffff;
}

.pofo-text {
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

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

.project-img {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-img:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.pofo-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: var(--surface-soft);
    border-bottom: 1px solid var(--border);
}

.project-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
    text-align: left;
}

.project-tag {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #17110a;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.project-info h3 {
    margin: 0 0 10px;
    font-size: 1.35rem;
}

.project-info p {
    margin: 0 0 18px;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.project-meta span {
    padding: 6px 9px;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.82rem;
    font-weight: 700;
}

.project-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    margin-top: 18px;
    padding: 0 14px;
    border-radius: 6px;
    color: #15100a;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    font-weight: 800;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.project-link:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.featured-project {
    background: #0b0b0b;
    border-color: var(--border);
}

.featured-project .project-info h3,
.featured-project .project-info p {
    color: #ffffff;
}

.featured-project .project-info p {
    color: var(--muted);
}

.featured-project .project-meta span {
    border-color: rgba(255, 255, 255, 0.16);
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
}

.project-preview {
    min-height: 260px;
}

.dashboard-preview {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 18px;
    padding: 24px;
    background: linear-gradient(135deg, #080808, #33250d);
}

.preview-sidebar,
.preview-main {
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.12);
}

.preview-sidebar {
    min-height: 212px;
}

.preview-main {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding: 18px;
}

.preview-main span,
.preview-main div {
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.22);
}

.preview-main div {
    grid-column: 1 / -1;
    min-height: 118px;
    background: linear-gradient(90deg, rgba(243, 207, 114, 0.95), rgba(214, 166, 58, 0.8));
}

.skills-container {
    align-items: stretch;
}

.skills-left {
    width: 100%;
}

.skill {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 18px;
    align-items: center;
    margin: 18px 0;
}

.skill p {
    margin: 0;
    color: var(--text);
    font-weight: 800;
}

.progress-bar {
    min-height: 34px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
}

.html,
.css,
.js,
.php {
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #15100a;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    font-size: 0.9rem;
    font-weight: 800;
}

.html {
    width: 90%;
}

.css {
    width: 80%;
    background: linear-gradient(135deg, #d6a63a, #8f6414);
}

.js {
    width: 65%;
    background: linear-gradient(135deg, #f3cf72, #a77618);
}

.php {
    width: 70%;
    background: linear-gradient(135deg, #e1bb55, #6f4d12);
}

.skill-cloud,
.contact-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.skill-cloud span,
.contact-highlights span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.9rem;
    font-weight: 800;
}

.language-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.section-note {
    margin-top: 18px;
}

#contact-info,
#contact-form,
#location,
#social-media {
    width: min(960px, calc(100% - 32px));
    margin: 24px auto;
    padding: 28px;
}

#contact-info {
    background: var(--surface);
}

#contact-info .my-contact {
    display: grid;
    gap: 12px;
}

#contact-info a,
#social-media a {
    color: var(--primary);
    font-weight: 800;
    text-decoration: none;
}

#contact-form form {
    display: grid;
    gap: 12px;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    background: #0c0c0c;
    font: inherit;
}

#contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

#contact-form button {
    min-height: 44px;
    border: 0;
    border-radius: 6px;
    color: #15100a;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

#contact-form button:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

#map-container iframe {
    width: 100%;
    min-height: 320px;
    border: 0;
    border-radius: var(--radius);
    background: var(--surface-soft);
}

#social-media ul {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

footer {
    width: min(1120px, calc(100% - 32px));
    margin: 28px auto;
    padding: 24px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    text-align: center;
}

.skill-footer {
    margin-top: 28px;
}

@media (min-width: 761px) and (max-width: 1040px) {
    header,
    .site-header,
    main,
    footer {
        width: min(100% - 40px, 920px);
    }

    header h1 {
        max-width: 760px;
        font-size: clamp(3.2rem, 8vw, 5rem);
    }

    .projects {
        gap: 18px;
    }
}

@media (max-width: 760px) {
    header,
    .site-header {
        width: calc(100% - 24px);
        margin-top: 12px;
        margin-bottom: 20px;
        padding: 34px 20px;
        border-radius: 14px;
    }

    header::before,
    .site-header::before {
        inset: 10px;
        border-radius: 10px;
    }

    header::after,
    .site-header::after {
        right: -150px;
        top: -150px;
    }

    header h1 {
        font-size: clamp(2.35rem, 14vw, 4.2rem);
        line-height: 0.95;
    }

    .header-intro {
        font-size: 1rem;
        line-height: 1.65;
    }

    nav {
        position: static;
        border-radius: 14px;
    }

    nav ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    nav a {
        width: 100%;
        padding: 0 10px;
        font-size: 0.88rem;
        border-radius: 10px;
    }

    .portfolio-hero,
    .projects,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-hero,
    .profile-image,
    .profile-info,
    .skills-left,
    .detail-grid {
        padding: 22px;
    }

    .project-preview {
        min-height: 220px;
    }

    .dashboard-preview {
        grid-template-columns: 52px 1fr;
        gap: 12px;
        padding: 18px;
    }

    .preview-main {
        grid-template-columns: 1fr;
    }

    .skill {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}
