/*
Theme Name: MHZuel Portfolio
Theme URI: https://mhzuel.com/
Author: Mehedi Hasan Zuel
Author URI: https://mhzuel.com/
Description: Modern personal portfolio theme for a freelance web designer, developer and domain investor.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: mhzuel
*/

/* =========================================================
   01. DESIGN TOKENS
   Change colors, spacing and sizing here first.
   ========================================================= */

:root {
    --mhz-bg: #06121d;
    --mhz-bg-2: #081827;
    --mhz-card: #091a29;
    --mhz-card-2: #101f32;

    --mhz-text: #f6f8ff;
    --mhz-muted: #c0cadb;
    --mhz-line: rgba(74, 155, 220, 0.25);

    --mhz-accent: #00f0cf;
    --mhz-accent-2: #347dff;
    --mhz-purple: #7146ff;
    --mhz-pink: #ff13d0;

    --mhz-max: 1180px;
    --mhz-radius: 22px;

    --mhz-header-bg: rgba(4, 15, 25, 0.92);
    --mhz-button-gradient: linear-gradient(100deg, #00eacb 0%, #238fff 52%, #6942ff 100%);
}

/* =========================================================
   02. RESET / GLOBAL
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 75% 18%, rgba(0, 205, 255, 0.055), transparent 27%),
        var(--mhz-bg);
    color: var(--mhz-text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.7;
}

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

img {
    max-width: 100%;
    height: auto;
}

button,
input,
textarea,
select {
    font: inherit;
}

.container {
    width: min(calc(100% - 72px), var(--mhz-max));
    margin-inline: auto;
}

.section {
    padding: 90px 0;
}

.grid {
    display: grid;
    gap: 22px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* =========================================================
   03. HEADER / NAVIGATION
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--mhz-header-bg);
    border-bottom: 1px solid rgba(74, 155, 220, 0.22);
    backdrop-filter: blur(15px);
}

.header-inner {
    min-height: 108px;
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    align-items: center;
    gap: 28px;
}

.brand {
    font-weight: 900;
    letter-spacing: -0.04em;
    white-space: nowrap;
}

.site-header .brand {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: center;
    gap: 13px;
    font-size: 28px;
}

.brand-name b,
.brand-code {
    color: var(--mhz-accent);
}

.brand-code {
    font-size: 30px;
    font-weight: 900;
}

.main-nav {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    position: relative;
    display: block;
    color: #dce5f4;
    font-size: 14px;
    font-weight: 700;
    padding: 39px 0 35px;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--mhz-accent);
}

.nav-menu a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 23px;
    height: 3px;
    border-radius: 99px;
    background: var(--mhz-accent);
}

.menu-toggle {
    grid-column: 4;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    width: 42px;
    height: 42px;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 31px;
    height: 3px;
    border-radius: 9px;
    background: #f6f8ff;
}

.header-cta {
    grid-column: 3;
    grid-row: 1;
    width: 120px;
    padding: 8px 30px;
    border-radius: 12px;
    font-size: 16px;
    box-sizing: border-box;
    text-align: center;
}

/* =========================================================
   04. BUTTONS
   ========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border: 1px solid rgba(0, 240, 207, 0.55);
    border-radius: 999px;
    font-size: 15px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-primary {
    color: #fff;
    background: var(--mhz-button-gradient);
    border-color: transparent;
    box-shadow: 0 10px 28px rgba(0, 176, 255, 0.13);
}

.btn-secondary {
    color: #fff;
    background: rgba(4, 20, 34, 0.5);
    border-color: #00cfd1;
}

.btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 10px 30px rgba(0, 220, 255, 0.12);
}

/* =========================================================
   05. HOMEPAGE — HERO
   ========================================================= */

.hero {
    overflow: hidden;
}

.hero-reference {
    position: relative;
    padding: 82px 0 80px;
}

.hero-reference::after,
.reference-section::before {
    content: "";
    position: absolute;
    left: -5%;
    right: -5%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(31, 101, 165, 0.42), transparent);
    transform: rotate(-3deg);
    bottom: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(350px, 0.94fr);
    gap: 50px;
    align-items: center;
}

.hero-copy {
    position: relative;
    z-index: 3;
}

.hello {
    margin-bottom: 16px;
    color: #cbd5e8;
    font-size: 30px;
}

.wave {
    font-size: 31px;
}

.hero h1 {
    margin: 0;
    font-size: clamp(54px, 6.2vw, 60px);
    line-height: 1;
    letter-spacing: -0.055em;
    font-weight: 900;
}

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

.hero-rule {
    width: 76px;
    height: 7px;
    margin: 25px 0 28px;
    border-radius: 9px;
    background: linear-gradient(90deg, var(--mhz-accent), #28a9ff);
}

.hero h2 {
    max-width: 720px;
    margin: 0 0 30px;
    font-size: clamp(30px, 3.7vw, 47px);
    line-height: 1.25;
    font-weight: 850;
    background: linear-gradient(90deg, #2aa8ff, #6948ff, #ff16c9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    max-width: 700px;
    margin: 0;
    color: #d0d8e8;
    font-size: 20px;
    line-height: 1.78;
}

.reference-photo-wrap {
    position: relative;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reference-photo-wrap::before {
    content: "";
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 235, 205, 0.11), transparent 68%);
    filter: blur(4px);
}

.photo-ring {
    position: absolute;
    width: 370px;
    height: 370px;
    padding: 8px;
    border-radius: 50%;
    background: conic-gradient(
        #00f1cf,
        #2d91ff,
        #7346ff,
        #ff29a8,
        #ffac3d,
        #00f1cf
    );
    box-shadow: 0 0 45px rgba(0, 217, 255, 0.13);
}

.photo-ring-2 {
    width: 386px;
    height: 386px;
    padding: 0;
    background: transparent;
    border: 1px solid rgba(0, 238, 211, 0.24);
    box-shadow: none;
}

.hero-photo,
.photo-placeholder {
    position: relative;
    z-index: 2;
    width: 350px;
    height: 350px;
    border: 0;
    border-radius: 50%;
    object-fit: cover;
    background: #12283b;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.45);
}

.photo-placeholder {
    display: grid;
    place-items: center;
    padding: 0;
    color: #aab9cc;
    text-align: center;
}

.photo-placeholder strong {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-size: 24px;
}

.photo-placeholder span {
    font-size: 13px;
    line-height: 1.5;
}

/* =========================================================
   06. HOMEPAGE — HERO SKILLS / CTA / SOCIAL
   ========================================================= */

.hero-bottom-reference {
    position: relative;
    z-index: 5;
    width: 100%;
    margin-top: 28px;
}

.skill-pills {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    margin: 0 0 28px;
}

.skill-pills span {
    display: inline-flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 72px;
    gap: 14px;
    padding: 10px 18px;
    border: 2px solid rgba(35, 101, 164, 0.38);
    border-radius: 999px;
    background: rgba(4, 22, 37, 0.56);
    color: #f4f7fb;
    font-size: 20px;
    line-height: 1;
    white-space: nowrap;
    box-shadow:
        inset 0 0 25px rgba(0, 130, 255, 0.025),
        0 0 0 1px rgba(0, 0, 0, 0.08);
}

.pill-icon {
    display: grid;
    flex: 0 0 40px;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    color: #00f0d5;
    font-size: 28px;
    font-style: normal;
}

.skill-pills span:nth-child(2) .pill-icon {
    flex: 0 0 48px;
    width: 48px;
    height: 28px;
    color: #fff;
    background: #239de9;
    border-radius: 50%;
    font-size: 15px;
    font-style: italic;
}

.hero-actions {
    display: grid;
    grid-template-columns: 1.13fr 1fr;
    gap: 20px;
    width: min(736px, 100%);
    margin: 0;
}

.hero-work-btn,
.hero-domains-btn,
.hero-contact-btn {
    width: 100%;
    min-width: 0;
    height: 64px;
    padding: 15px 28px;
    border-radius: 999px;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    white-space: nowrap;
}

.hero-work-btn,
.hero-domains-btn {
    background: linear-gradient(100deg, #08e9ca 0%, #2498ee 54%, #6840f5 100%);
    box-shadow: 0 10px 35px rgba(0, 180, 255, 0.12);
}

.hero-contact-btn {
    color: #00e9d3;
    background: rgba(4, 20, 34, 0.38);
    border: 2px solid #00cfd1;
}

.hero-actions span {
    font-size: 28px;
    line-height: 1;
}

.social-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 22px;
    margin: 44px 0 0;
}

.social-row a {
    display: grid;
    flex: 0 0 68px;
    place-items: center;
    width: 68px;
    height: 68px;
    border: 2px solid rgba(37, 94, 150, 0.34);
    border-radius: 50%;
    background: rgba(6, 25, 43, 0.72);
    color: #fff;
    font-size: 28px;
    box-shadow: inset 0 0 22px rgba(20, 110, 190, 0.06);
}

.social-row a:hover {
    border-color: #00e6d0;
    color: #00f0d0;
}

/* =========================================================
   07. HOMEPAGE — ABOUT / SERVICES
   ========================================================= */

.reference-section {
    position: relative;
    padding: 105px 0;
}

.about-reference-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.section-kicker {
    color: #00e8d0;
    font-size: 18px;
    letter-spacing: 0.04em;
}

.section-title {
    margin: 12px 0 28px;
    font-size: clamp(38px, 4.7vw, 42px);
    line-height: 1.08;
    letter-spacing: -0.045em;
    font-weight: 900;
}

.section-title span {
    background: linear-gradient(90deg, #00e9cf, #336eff, #8c43ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-desc {
    max-width: 650px;
    color: #c4cfdf;
    font-size: 18px;
    line-height: 1.75;
}

.outline-green {
    margin-top: 22px;
}

.about-features {
    display: grid;
    gap: 28px;
    padding-left: 38px;
    border-left: 1px solid rgba(67, 139, 205, 0.26);
}

.feature-item {
    display: flex;
    gap: 18px;
    align-items: center;
}

.feature-icon {
    display: grid;
    flex: 0 0 55px;
    place-items: center;
    width: 55px;
    height: 55px;
    border: 1px solid rgba(0, 234, 209, 0.35);
    border-radius: 50%;
    background: rgba(4, 35, 50, 0.5);
    color: #00f0d0;
    font-size: 22px;
}

.feature-item strong {
    display: block;
    margin-bottom: 3px;
    font-size: 18px;
}

.feature-item small {
    display: block;
    color: #aebbd0;
    font-size: 14px;
}

.service-heading {
    margin-bottom: 30px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.service-card {
    min-height: 190px;
    padding: 32px 24px;
    border: 1px solid rgba(51, 131, 202, 0.3);
    border-radius: 14px;
    background: linear-gradient(160deg, rgba(6, 29, 48, 0.72), rgba(5, 20, 34, 0.46));
    text-align: center;
}

.service-icon {
    height: 58px;
    color: #00e9d1;
    font-size: 39px;
    font-weight: 900;
}

.service-card h3 {
    margin: 7px 0 8px;
    font-size: 18px;
}

.service-card p {
    margin: 0;
    color: #9eabc0;
    font-size: 13px;
    line-height: 1.6;
}

/* =========================================================
   08. CARDS / PROJECTS / DOMAINS
   ========================================================= */

.card {
    background: linear-gradient(145deg, rgba(10, 33, 52, 0.82), rgba(4, 20, 34, 0.72));
    border: 1px solid rgba(52, 132, 202, 0.28);
    border-radius: 17px;
}

.project-card,
.domain-card {
    overflow: hidden;
    padding: 0;
}

.card-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0b2134;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .card-image img,
.domain-card:hover .card-image img {
    transform: scale(1.035);
}

.card-content {
    padding: 23px;
}

.card h3 {
    margin: 0 0 8px;
    font-size: 21px;
}

.card p {
    margin: 0;
    color: var(--mhz-muted);
}

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0;
}

.badge {
    display: inline-flex;
    padding: 5px 9px;
    border: 1px solid rgba(0, 232, 208, 0.2);
    border-radius: 999px;
    background: rgba(0, 232, 208, 0.09);
    color: #00ebd2;
    font-size: 11px;
    font-weight: 900;
}

.tags {
    color: var(--mhz-muted);
    font-size: 13px;
}

.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 20px;
}

.empty {
    padding: 50px;
    border: 1px dashed var(--mhz-line);
    border-radius: 20px;
    color: var(--mhz-muted);
    text-align: center;
}

/* =========================================================
   09. PROJECT / DOMAIN DETAIL PAGES
   ========================================================= */

.page-hero {
    padding: 75px 0 55px;
    border-bottom: 1px solid var(--mhz-line);
}

.page-hero h1 {
    margin: 10px 0;
    font-size: clamp(38px, 6vw, 65px);
    line-height: 1.05;
}

.page-hero p {
    color: var(--mhz-muted);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border: 1px solid var(--mhz-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--mhz-accent);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.breadcrumb {
    color: var(--mhz-muted);
    font-size: 13px;
}

.single-layout {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 40px;
}

.content-box {
    padding: 30px;
    border: 1px solid var(--mhz-line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.025);
}

.content-box img {
    border-radius: 16px;
}

.content-box h2,
.content-box h3 {
    line-height: 1.25;
}

.sidebar-card {
    position: sticky;
    top: 100px;
}

.info-list {
    display: grid;
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.info-list li {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--mhz-line);
}

.info-list small {
    display: block;
    color: var(--mhz-muted);
}

.domain-name {
    font-size: clamp(34px, 5vw, 65px);
    font-weight: 950;
    letter-spacing: -0.05em;
    line-height: 1.05;
}

.price {
    margin: 15px 0;
    color: var(--mhz-accent);
    font-size: 28px;
    font-weight: 900;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 28px;
}

.filter-bar a {
    padding: 8px 13px;
    border: 1px solid var(--mhz-line);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.filter-bar a.active,
.filter-bar a:hover {
    border-color: var(--mhz-accent);
    color: var(--mhz-accent);
}

.project-detail-image {
    margin-bottom: 32px;
    overflow: hidden;
    border-radius: 20px;
}

.project-detail-image img {
    display: block;
    width: 100%;
    height: auto;
}

.project-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 48px;
    align-items: start;
}

.project-sidebar {
    position: sticky;
    top: 100px;
    padding: 22px;
    border: 1px solid rgba(36, 48, 71, 1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.02);
}

.detail-item {
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(36, 48, 71, 1);
}

.detail-item strong {
    display: block;
    margin-bottom: 6px;
}

.detail-item span {
    color: #9aa7bd;
    line-height: 1.6;
}

.feature-list {
    padding-left: 20px;
}

.feature-list li {
    margin-bottom: 10px;
    color: #9aa7bd;
}

.project-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.project-actions .btn {
    text-align: center;
}

/* =========================================================
   10. CONTACT
   ========================================================= */

.contact-reference {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 55px;
    align-items: center;
}

.contact-card {
    padding: 30px;
}

.contact-form {
    display: grid;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid rgba(64, 137, 202, 0.3);
    border-radius: 10px;
    outline: none;
    background: #061827;
    color: #fff;
}

.contact-form textarea {
    min-height: 155px;
    resize: vertical;
}

.notice {
    padding: 15px;
    margin-bottom: 18px;
    border: 1px solid rgba(114, 230, 165, 0.2);
    border-radius: 12px;
    background: rgba(114, 230, 165, 0.08);
}

/* =========================================================
   11. FOOTER
   ========================================================= */

.site-footer {
    padding: 55px 0 25px;
    border-top: 1px solid rgba(67, 139, 205, 0.2);
    background: #04101a;
    color: var(--mhz-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 35px;
}

.site-footer .brand {
    font-size: 25px;
}

.site-footer .brand span {
    color: var(--mhz-accent);
}

.footer-title {
    margin-bottom: 12px;
    color: #fff;
    font-weight: 900;
}

.footer-links {
    display: grid;
    gap: 7px;
}

.copyright {
    padding-top: 20px;
    margin-top: 35px;
    border-top: 1px solid var(--mhz-line);
    font-size: 13px;
}

/* =========================================================
   12. FONT AWESOME
   ========================================================= */

.pill-icon {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.pill-icon.fa-brands,
.service-icon.fa-brands {
    font-family: "Font Awesome 6 Brands";
    font-weight: 400;
}

.service-icon.fa-solid,
.feature-icon.fa-solid {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.feature-icon.fa-regular {
    font-family: "Font Awesome 6 Free";
    font-weight: 400;
}

/* =========================================================
   13. RESPONSIVE — TABLET / MOBILE
   Keep breakpoint-specific changes here so they are easy to find.
   ========================================================= */

@media (max-width: 900px) {
    .container {
        width: min(calc(100% - 36px), var(--mhz-max));
    }

    .header-inner {
        min-height: 86px;
        gap: 16px;
    }

    .site-header .brand {
        font-size: 22px;
        gap: 8px;
    }

    .brand-code {
        font-size: 23px;
    }

    .header-cta {
        padding: 9px 20px;
        font-size: 14px;
    }

    .main-nav {
        position: absolute;
        top: 78px;
        left: 18px;
        right: 18px;
        display: none;
        padding: 14px;
        border: 1px solid rgba(56, 129, 199, 0.3);
        border-radius: 14px;
        background: #071725;
    }

    .main-nav.nav-open {
        display: block;
    }

    .nav-menu {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
    }

    .nav-menu a {
        padding: 11px 12px;
    }

    .nav-menu a.active::after {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-reference {
        padding-top: 55px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .reference-photo-wrap {
        order: -1;
        min-height: 350px;
    }

    .photo-ring {
        width: 310px;
        height: 310px;
    }

    .photo-ring-2 {
        width: 326px;
        height: 326px;
    }

    .hero-photo,
    .photo-placeholder {
        width: 294px;
        height: 294px;
    }

    .about-reference-grid,
    .contact-reference {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .about-features {
        padding-left: 0;
        border-left: 0;
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sidebar-card,
    .project-sidebar {
        position: static;
    }

    .project-detail-layout {
        grid-template-columns: 1fr;
    }

    .hero-bottom-reference {
        margin-top: 25px;
    }
}

@media (max-width: 600px) {
    .container {
        width: min(calc(100% - 28px), var(--mhz-max));
    }

    .header-inner {
        min-height: 78px;
        gap: 10px;
    }

    .site-header .brand {
        font-size: 18px;
    }

    .brand-code {
        font-size: 19px;
    }

    .header-cta {
        padding: 5px 18px;
        font-size: 13px;
    }

    .menu-toggle {
        width: 34px;
    }

    .menu-toggle span {
        width: 26px;
        height: 2px;
    }

    .main-nav {
        top: 70px;
    }

    .hero-reference {
        padding: 48px 0 65px;
    }

    .hero-grid {
        position: relative;
        display: block;
    }

    .reference-photo-wrap {
        position: absolute;
        top: 20px;
        right: -2px;
        z-index: 2;
        display: flex;
        width: 150px;
        height: 150px;
        min-height: 150px;
        pointer-events: none;
    }

    .reference-photo-wrap::before {
        width: 155px;
        height: 155px;
    }

    .photo-ring {
        width: 151px;
        height: 151px;
        padding: 4px;
    }

    .photo-ring-2 {
        width: 160px;
        height: 160px;
    }

    .hero-photo,
    .photo-placeholder {
        width: 143px;
        height: 143px;
    }

    .hello {
        max-width: 58%;
        margin-bottom: 0;
        font-size: 23px;
        white-space: nowrap;
    }

    .wave {
        font-size: 24px;
    }

    .hero h1 {
        width: 66%;
        max-width: 225px;
        margin-top: 8px;
        font-size: 34px;
        line-height: 1.03;
        letter-spacing: -0.045em;
    }

    .hero-rule {
        margin: 20px 0 24px;
    }

    .hero h2 {
        margin-bottom: 23px;
        font-size: 30px;
    }

    .hero p {
        font-size: 16px;
        line-height: 1.75;
    }

    .hero-bottom-reference {
        width: 100%;
        margin-top: 22px;
    }

    .skill-pills {
        gap: 4px;
        margin-bottom: 18px;
    }

    .skill-pills span {
        height: 48px;
        padding: 5px;
        gap: 4px;
        border-width: 1px;
        font-size: 9.5px;
        letter-spacing: -0.02em;
    }

    .pill-icon {
        flex: 0 0 20px;
        width: 20px;
        height: 20px;
        font-size: 14px;
    }

    .skill-pills span:nth-child(2) .pill-icon {
        flex: 0 0 24px;
        width: 24px;
        height: 16px;
        font-size: 9px;
    }

    .hero-actions {
        grid-template-columns: 1.13fr 1fr;
        gap: 9px;
        width: 100%;
    }

    .hero-work-btn,
    .hero-contact-btn {
        height: 54px;
        min-width: 0;
        padding: 9px 6px;
        border-width: 1px;
        font-size: 14px;
        gap: 7px;
    }

    .hero-actions span {
        font-size: 18px;
    }

    .social-row {
        gap: 10px;
        margin-top: 24px;
    }

    .social-row a {
        flex: 0 0 47px;
        width: 47px;
        height: 47px;
        border-width: 1px;
        font-size: 19px;
    }

    .reference-section {
        padding: 72px 0;
    }

    .section-kicker {
        font-size: 15px;
    }

    .section-title {
        font-size: 38px;
    }

    .section-desc {
        font-size: 16px;
    }

    /* About Me — mobile: full-width heading, then balanced two-column content */
    .about-reference-grid {
        grid-template-columns: minmax(0, 1.22fr) minmax(145px, 0.78fr);
        gap: 16px;
        align-items: start;
    }

    /* Let the heading sit across the entire About section while the
       description/button remain on the left and the feature list stays right. */
    .about-copy {
        display: contents;
    }

    .about-copy .section-kicker {
        grid-column: 1 / -1;
        font-size: 15px;
        letter-spacing: 0.04em;
        margin-bottom: 0;
    }

    .about-copy .section-title {
        grid-column: 1 / -1;
        margin: 8px 0 18px;
        font-size: 31px;
        line-height: 1.08;
        letter-spacing: -0.045em;
        max-width: 100%;
    }

    .about-copy .section-desc {
        grid-column: 1;
        grid-row: 3 / span 2;
        align-self: start;
        margin: 0;
        max-width: none;
        font-size: 15px;
        line-height: 1.68;
    }

    .about-copy .outline-green {
        grid-column: 1;
        grid-row: 4;
        align-self: end;
        justify-self: start;
        margin-top: 20px;
        padding: 10px 16px;
        font-size: 13px;
        white-space: nowrap;
    }

    .about-features {
        grid-column: 2;
        grid-row: 3 / span 2;
        min-width: 0;
        display: grid;
        gap: 22px;
        padding: 4px 0 8px 16px;
        border-left: 1px solid rgba(67, 139, 205, 0.26);
        align-self: stretch;
    }

    .feature-item {
        min-width: 0;
        gap: 11px;
        align-items: center;
    }

    .feature-icon {
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .feature-item strong {
        margin-bottom: 2px;
        font-size: 16px;
        line-height: 1.15;
    }

    .feature-item small {
        display: block;
        font-size: 12px;
        line-height: 1.35;
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .service-card {
        min-height: 170px;
        padding: 23px 12px;
    }

    .service-icon {
        font-size: 31px;
    }

    .service-card h3 {
        font-size: 15px;
    }

    .service-card p {
        font-size: 11px;
    }

    .reference-head {
        display: flex;
        gap: 15px;
    }

    .reference-head .section-title {
        margin-bottom: 0;
    }

    .reference-head .btn {
        padding: 10px 15px;
    }

    .contact-reference {
        gap: 30px;
    }

    .contact-card,
    .content-box {
        padding: 20px;
    }

    .grid-3,
    .grid-2,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 65px 0;
    }
}

@media (max-width: 360px) {
    .reference-photo-wrap {
        top: 40px;
        width: 132px;
        height: 132px;
    }

    .reference-photo-wrap::before {
        width: 137px;
        height: 137px;
    }

    .photo-ring {
        width: 133px;
        height: 133px;
    }

    .photo-ring-2 {
        width: 142px;
        height: 142px;
    }

    .hero-photo,
    .photo-placeholder {
        width: 125px;
        height: 125px;
    }

    .hello {
        font-size: 21px;
    }

    .hero h1 {
        width: 67%;
        max-width: 205px;
        font-size: 31px;
    }

    .skill-pills {
        gap: 3px;
    }

    .skill-pills span {
        height: 44px;
        padding: 4px 3px;
        gap: 2px;
        font-size: 8px;
    }

    .pill-icon {
        flex-basis: 17px;
        width: 17px;
        height: 17px;
        font-size: 11px;
    }

    .skill-pills span:nth-child(2) .pill-icon {
        flex-basis: 20px;
        width: 20px;
        height: 14px;
        font-size: 8px;
    }

    .hero-actions {
        gap: 6px;
    }

    .hero-work-btn,
    .hero-contact-btn {
        height: 50px;
        padding-inline: 4px;
        font-size: 11px;
    }

    .social-row {
        gap: 7px;
    }

    .social-row a {
        flex-basis: 43px;
        width: 43px;
        height: 43px;
        font-size: 17px;
    }
}


/* =========================================================
   14. COMPATIBILITY HELPERS
   Kept for existing content/templates that may use these classes.
   ========================================================= */

.about-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 50px;
    align-items: center;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 25px;
}

.stat {
    padding: 18px;
    border: 1px solid var(--mhz-line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
}

.stat strong {
    display: block;
    font-size: 28px;
}

.stat span {
    color: var(--mhz-muted);
    font-size: 13px;
}

.cta {
    padding: 50px;
    border: 1px solid rgba(114, 230, 165, 0.22);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(114, 230, 165, 0.08), rgba(84, 184, 255, 0.06));
}

.cta h2 {
    margin: 0 0 10px;
    font-size: 38px;
    line-height: 1.1;
}

.cta p {
    max-width: 650px;
    color: var(--mhz-muted);
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .cta {
        padding: 30px;
    }

    .cta h2 {
        font-size: 30px;
    }
}


/* =========================================================
   15. SKILL PILLS — CONTENT WIDTH / COMPACT HEIGHT
   Keep each pill sized to its icon and label instead of equal widths.
   ========================================================= */
.skill-pills {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
}
.skill-pills span {
    flex: 0 0 auto;
    width: auto;
    min-width: max-content;
    height: auto;
    min-height: 0;
    padding: 7px 14px;
    gap: 9px;
    font-size: 22px;
    line-height: 1.15;
}
.skill-pills .pill-icon {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    font-size: 30px;
}
.skill-pills span:nth-child(2) .pill-icon {
    flex: 0 0 32px;
    width: 32px;
    height: 24px;
    font-size: 17px;
}
@media (max-width: 900px) {
    .skill-pills { gap: 7px; }
    .skill-pills span {
        padding: 5px 9px;
        gap: 6px;
        font-size: 13px;
        letter-spacing: 0;
    }
    .skill-pills .pill-icon {
        flex: 0 0 22px;
        width: 22px;
        height: 22px;
        font-size: 21px;
    }
    .skill-pills span:nth-child(2) .pill-icon {
        flex: 0 0 24px;
        width: 24px;
        height: 18px;
        font-size: 12px;
    }
}
@media (max-width: 480px) {
    .skill-pills { gap: 6px; }
    .skill-pills span { padding: 5px 7px; gap: 5px; font-size: 12px; }
    .skill-pills .pill-icon { flex-basis: 20px; width: 20px; height: 20px; font-size: 19px; }
    .skill-pills span:nth-child(2) .pill-icon { flex-basis: 22px; width: 22px; height: 16px; font-size: 11px; }
}

/* =========================================================
   MOBILE-ONLY FIX: prevent accidental horizontal page scrolling.
   Desktop layout and the original header/navigation are untouched.
   ========================================================= */
@media (max-width: 600px) {
    html,
    body {
        max-width: 100%;
        overflow-x: clip;
    }

    .site-header,
    .header-inner,
    main,
    .container,
    .section,
    .hero-reference,
    .hero-grid,
    .hero-content,
    .reference-head,
    .about-reference-grid,
    .contact-reference,
    .grid-2,
    .grid-3,
    .footer-grid {
        max-width: 100%;
        min-width: 0;
    }

    img,
    video,
    iframe,
    svg {
        max-width: 100%;
    }

    .skill-pills,
    .hero-actions,
    .social-row {
        min-width: 0;
        max-width: 100%;
        flex-wrap: wrap;
    }
}


/* DESKTOP-ONLY FIX: hide the hamburger menu button on desktop.
   Mobile/tablet menu behavior remains unchanged. */
@media (min-width: 901px) {
    .menu-toggle {
        display: none !important;
    }
}


/* Mobile-only: keep the Hire Me button compact instead of stretching across its grid cell. */
@media (max-width: 600px) {
    .site-header .header-inner > a.header-cta.btn.btn-primary {
        justify-self: end !important;
transform: translateX(-8px);
        align-self: center;
        width: max-content !important;
        min-width: 0 !important;
        padding-left: 18px !important;
        padding-right: 18px !important;
        box-sizing: border-box;
    }
}


/* Keep the three hero buttons inside their boxes on desktop. */
@media (min-width: 601px) {
    .hero-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
        width: min(736px, 100%);
    }

    .hero-work-btn,
    .hero-domains-btn,
    .hero-contact-btn {
        box-sizing: border-box;
        min-width: 0;
        padding-left: 12px;
        padding-right: 12px;
        gap: 8px;
        font-size: 20px;
    }

    .hero-actions span {
        flex: 0 0 auto;
        font-size: 22px;
    }
}

/* Keep Available Domains visible on desktop; use compact three-button layout only on mobile. */

@media (max-width: 600px) {
    .hero-actions {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 6px !important;
        width: 100%;
        max-width: 100%;
        flex-wrap: nowrap !important;
    }

 

    .hero-work-btn,
    .hero-domains-btn,
    .hero-contact-btn {
        width: 100%;
        min-width: 0;
        height: 40px;
        padding: 4px 2px;
        font-size: 10px;
        line-height: 1.1;
        gap: 3px;
        white-space: normal;
        box-sizing: border-box;
    }

    .hero-actions span {
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .hero-actions { gap: 4px !important; }
    .hero-work-btn,
    .hero-domains-btn,
    .hero-contact-btn { font-size: 9px; }
}


/* MOBILE ONLY: keep all four hero skill labels on a single line. Desktop remains unchanged. */
@media (max-width: 600px) {
    .hero-bottom-reference .skill-pills {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        align-items: center;
        gap: 3px !important;
        width: 100%;
        max-width: 100%;
        overflow: visible;
    }
    .hero-bottom-reference .skill-pills > span {
        flex: 0 1 auto !important;
        min-width: 0 !important;
        width: auto !important;
        white-space: nowrap !important;
        padding: 5px 4px !important;
        gap: 3px !important;
        font-size: clamp(8px, 2.9vw, 12px) !important;
        line-height: 1 !important;
        box-sizing: border-box;
    }
    .hero-bottom-reference .skill-pills .pill-icon {
        flex: 0 0 auto !important;
        width: 12px !important;
        height: 14px !important;
        font-size: 12px !important;
        line-height: 1 !important;
    }
    .hero-bottom-reference .skill-pills span:nth-child(2) .pill-icon {
        flex: 0 0 auto !important;
        width: 12px !important;
        height: 14px !important;
        font-size: 9px !important;
    }
}







.section-head.reference-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


@media (max-width: 600px) {
    .section-head.reference-head {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }

    .section-head.reference-head > div {
        min-width: 0;
    }

    .section-head.reference-head > .btn {
        flex-shrink: 0;
        white-space: nowrap;
    }
}



@media (max-width: 600px) {
    .section-head.reference-head .section-title {
        font-size: 24px;
    }
}


@media (max-width: 600px) {
    .section-head.reference-head .section-title {
        margin-bottom: 10px;
    }
}
