/* Haile Yilma portfolio — external stylesheet. Page-specific classes keep sections independent. */
:root {
    --ink: #101d49;
    --muted: #667493;
    --purple: #594bff;
    --purple2: #7867ff;
    --blue: #35b8f4;
    --line: #e7ebf7;
    --surface: #fff;
    --soft: #f7f9ff;
    --shadow: 0 14px 38px rgba(54, 75, 140, .09);
    --radius: 20px
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, sans-serif;
    color: var(--ink);
    background: #fff;
    font-size: 14px;
    line-height: 1.65
}

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

button,
input,
textarea {
    font: inherit
}

button {
    cursor: pointer
}

.site-header {
    height: 76px;
    padding: 0 clamp(22px, 5vw, 76px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid #eef1fa;
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(16px)
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 800;
    white-space: nowrap
}

.brand-mark {
    width: 30px;
    height: 30px;
    display: inline-grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #7765ff, #4537ee);
    border-radius: 9px;
    font-weight: 800;
    font-size: 19px;
    box-shadow: 0 5px 12px #594bff30
}

.main-nav {
    display: flex;
    align-items: center;
    gap: clamp(16px, 3vw, 38px)
}

.main-nav a,
.footer-nav a {
    font-size: 12px;
    color: #596785;
    font-weight: 600;
    transition: color .2s
}

.main-nav a:hover,
.main-nav a.active,
.footer-nav a:hover {
    color: var(--purple)
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px
}

.icon-link,
.theme-toggle {
    border: 0;
    background: transparent;
    color: #566589;
    font-size: 23px;
    padding: 5px
}

.theme-toggle {
    font-size: 20px
}

.button {
    min-height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
    transition: transform .2s, box-shadow .2s, background .2s
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 20px #594bff25
}

.button-primary {
    color: white;
    background: linear-gradient(115deg, #6555ff, #5041f5);
    box-shadow: 0 6px 14px #594bff25
}

.button-outline {
    border-color: #766aff;
    color: #594bff;
    background: white
}

.button-small {
    min-height: 35px;
    padding: 0 17px;
    border-radius: 22px;
    font-size: 11px
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: 0;
    font-size: 24px;
    color: var(--ink)
}

.hero-section {
    min-height: 430px;
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    align-items: center;
    padding: 56px clamp(24px, 6vw, 90px) 45px;
    background: radial-gradient(ellipse at 78% 42%, #f0edff 0, transparent 36%), linear-gradient(110deg, #f8fbff, #fff 70%);
    overflow: hidden
}

.hero-copy {
    max-width: 590px;
    position: relative;
    z-index: 1
}

.eyebrow-pill {
    display: inline-flex;
    background: #eeeaff;
    color: #6555f5;
    padding: 5px 14px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700
}

.hero-copy h1,
.page-hero h1 {
    font-size: clamp(43px, 5.4vw, 70px);
    line-height: 1.08;
    letter-spacing: -3px;
    margin: 13px 0 5px;
    font-weight: 800
}

.hero-copy h1 span,
.page-hero h1 span {
    color: var(--purple)
}

.hero-copy h2 {
    font-size: clamp(17px, 2vw, 22px);
    font-weight: 600;
    margin: 8px 0 14px
}

.year-label {
    color: #7164fa
}

.hero-copy>p,
.section-copy>p,
.contact-cta p {
    max-width: 490px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 25px;
    font-size: 16px;
    font-weight: 800
}

.social-links a:hover {
    color: var(--purple)
}

.hero-visual {
    min-height: 330px;
    position: relative;
    display: grid;
    place-items: center
}

.hero-orb {
    position: absolute;
    border-radius: 48% 52% 59% 41%;
    transform: rotate(-22deg)
}

.orb-one {
    width: 265px;
    height: 255px;
    background: linear-gradient(140deg, #d9d4ff, #d3f1ff);
    right: 14%;
    top: 10%
}

.orb-two {
    width: 180px;
    height: 200px;
    background: #bfc9ff;
    opacity: .52;
    right: 8%;
    top: 18%;
    transform: rotate(32deg)
}

.portrait-placeholder {
    width: min(300px, 76%);
    height: 300px;
    border-radius: 48% 48% 38% 38%;
    background: linear-gradient(145deg, #edf2ff, #dfe8ff);
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border: 8px solid #ffffffa8;
    box-shadow: 0 20px 55px #8c9bdb22
}

.portrait-initials {
    font-size: 82px;
    font-weight: 800;
    color: #7b72e9;
    letter-spacing: -7px
}

.portrait-caption {
    font-size: 10px;
    letter-spacing: 2px;
    color: #7782a8;
    font-weight: 700
}

.dot-pattern {
    position: absolute;
    top: 10%;
    right: 6%;
    width: 70px;
    height: 65px;
    background-image: radial-gradient(#b9b1ff 2px, transparent 2px);
    background-size: 10px 10px
}

.hand-note {
    position: absolute;
    right: 0;
    top: 30%;
    font-size: 13px;
    line-height: 1.4;
    color: #5c56bc;
    font-weight: 700;
    transform: rotate(8deg)
}

.section-shell {
    padding: 52px clamp(24px, 6vw, 90px)
}

.about-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background: #fff
}

.section-kicker {
    color: #6555ff;
    font-size: 10px;
    letter-spacing: 1.4px;
    font-weight: 800
}

.section-copy h2,
.section-heading h2,
.contact-cta h2,
.contact-info-panel h2 {
    font-size: 27px;
    line-height: 1.2;
    letter-spacing: -.8px;
    margin: 7px 0 13px
}

.section-copy h2:after,
.section-heading h2:after {
    content: "";
    display: block;
    width: 27px;
    height: 3px;
    border-radius: 3px;
    background: var(--purple);
    margin-top: 11px
}

.section-copy>p {
    max-width: 510px
}

.stat-row {
    display: flex;
    gap: 0;
    margin: 25px 0 18px
}

.stat-row>div {
    padding: 0 16px;
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column
}

.stat-row>div:first-child {
    padding-left: 0
}

.stat-row>div:last-child {
    border: 0
}

.stat-row strong {
    font-size: 22px;
    color: #4338d9
}

.stat-row span {
    font-size: 10px;
    color: var(--muted);
    margin-top: 4px
}

.text-link {
    color: var(--purple);
    font-weight: 700;
    font-size: 12px
}

.workspace-visual {
    min-height: 230px;
    display: grid;
    place-items: center;
    position: relative
}

.workspace-shape {
    position: absolute;
    inset: 10px 5% 10px 9%;
    border-radius: 38% 20% 38% 22%;
    background: linear-gradient(120deg, #dedbff, #d8f6ff);
    transform: rotate(-3deg)
}

.workspace-card {
    position: relative;
    width: 85%;
    height: 190px;
    background: #ffffffc9;
    border: 1px solid #fff;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    box-shadow: var(--shadow)
}

.workspace-plant {
    font-size: 40px;
    align-self: flex-start;
    margin-top: 30px
}

.laptop {
    width: 58%;
    margin-top: 15px
}

.laptop-screen {
    height: 112px;
    background: #172449;
    border: 6px solid #d3d9e7;
    border-bottom-width: 9px;
    border-radius: 8px 8px 3px 3px;
    padding: 17px 13px;
    display: flex;
    flex-direction: column;
    gap: 8px
}

.code-line {
    height: 4px;
    border-radius: 4px;
    background: #6bcebd
}

.code-line.long {
    width: 90%
}

.code-line.medium {
    width: 65%;
    background: #9c92ff
}

.code-line.short {
    width: 42%;
    background: #f6c17c
}

.laptop-base {
    height: 8px;
    width: 110%;
    margin-left: -5%;
    background: linear-gradient(#e5e9f3, #bcc6da);
    border-radius: 0 0 8px 8px
}

.notebook {
    font-size: 30px;
    color: #7064ff;
    align-self: flex-end;
    margin-bottom: 30px
}

.featured-section {
    background: linear-gradient(180deg, #fcfdff, #fff);
    border-top: 1px solid #f4f6fc
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 25px
}

.section-heading h2 {
    margin-bottom: 0
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 17px
}

.project-card {
    border: 1px solid #edf0fa;
    border-radius: 14px;
    overflow: hidden;
    background: white;
    box-shadow: 0 8px 24px #6474a40d;
    transition: transform .2s, box-shadow .2s
}

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

.project-thumb {
    height: 132px;
    position: relative;
    overflow: hidden
}

.thumb-portfolio {
    background: linear-gradient(120deg, #101d49, #292c7c 60%, #5d53f9);
    color: #fff;
    padding: 14px
}

.mini-logo {
    font-weight: 800;
    border: 1px solid #a5aaff;
    border-radius: 5px;
    padding: 2px 6px;
    font-size: 10px
}

.mini-title {
    margin-top: 20px;
    font-size: 11px;
    line-height: 1.6
}

.mini-title b {
    font-size: 15px
}

.mini-button {
    height: 9px;
    width: 56px;
    background: #786bff;
    border-radius: 4px;
    margin-top: 10px
}

.thumb-task {
    background: linear-gradient(135deg, #edf3ff, #dce6ff);
    display: grid;
    place-items: center
}

.mock-window {
    width: 72%;
    height: 105px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 20px #425d9b22;
    padding: 12px
}

.mock-bar {
    height: 8px;
    width: 40%;
    background: #5e55f7;
    border-radius: 4px;
    margin-bottom: 12px
}

.mock-row {
    height: 13px;
    border: 1px solid #edf0fa;
    border-radius: 4px;
    margin: 6px 0;
    background: linear-gradient(90deg, #e3e8ff 35%, white 35%)
}

.thumb-weather {
    background: linear-gradient(135deg, #4ca7ff, #a5dcff);
    color: #fff;
    padding: 15px
}

.sun-icon {
    font-size: 38px
}

.weather-temp {
    font-size: 36px;
    font-weight: 800;
    position: absolute;
    right: 16px;
    top: 20px
}

.weather-lines {
    height: 4px;
    width: 70%;
    background: #ffffff99;
    margin-top: 10px;
    border-radius: 5px;
    box-shadow: 0 9px #ffffff77, 0 18px #ffffff55
}

.thumb-shop {
    background: linear-gradient(135deg, #edf0ff, #fff0e8);
    display: flex;
    padding: 14px;
    gap: 10px
}

.shop-side {
    width: 24%;
    background: #c9c4ff;
    border-radius: 5px
}

.shop-products {
    display: flex;
    gap: 7px;
    align-items: center;
    flex: 1
}

.shop-products i {
    height: 72px;
    flex: 1;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 3px 10px #4454a020
}

.shop-products i:nth-child(2) {
    background: #ffe0bf
}

.shop-products i:nth-child(3) {
    background: #d6edff
}

.project-card-body {
    padding: 14px
}

.project-card h3 {
    font-size: 13px;
    margin: 0 0 9px
}

.tag-list {
    display: flex;
    gap: 5px;
    flex-wrap: wrap
}

.tag-list span {
    background: #f0efff;
    color: #6255e9;
    border-radius: 5px;
    padding: 3px 6px;
    font-size: 9px;
    font-weight: 700
}

.project-card p {
    font-size: 10px;
    color: var(--muted);
    line-height: 1.7;
    min-height: 50px
}

.project-links {
    display: flex;
    gap: 13px;
    font-size: 10px;
    font-weight: 700;
    color: #5c51ee
}

.skills-section {
    background: #fbfcff
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px
}

.skill-card {
    padding: 16px 10px 13px;
    border: 1px solid #edf0fa;
    background: #fff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 7px 20px #5e6c9c0a
}

.skill-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    font-size: 20px;
    font-weight: 800;
    border-radius: 10px
}

.html-icon {
    background: #fff0e9;
    color: #e85c32
}

.css-icon {
    background: #e8f3ff;
    color: #1675d1
}

.js-icon {
    background: #fff7c9;
    color: #4c4310;
    font-size: 14px
}

.firebase-icon {
    background: #fff1dc
}

.git-icon {
    background: #f1f1f1;
    color: #252525
}

.code-icon {
    background: #e6f5ff;
    color: #1684c4
}

.skill-card b {
    font-size: 11px
}

.skill-card small {
    font-size: 9px;
    color: var(--muted);
    text-align: center
}

.skill-track {
    height: 5px;
    width: 80%;
    background: #e9edfa;
    border-radius: 9px;
    margin-top: 5px;
    overflow: hidden
}

.skill-track i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #5b4aff, #26bde8);
    border-radius: 9px
}

.contact-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(110deg, #f8f9ff, #f1faff);
    border-top: 1px solid #edf0fa
}

.contact-cta p {
    margin-bottom: 20px
}

.cta-art {
    width: 170px;
    height: 130px;
    border-radius: 40% 60% 50% 30%;
    background: linear-gradient(140deg, #e4deff, #d9f6ff);
    display: grid;
    place-items: center;
    color: #5e51f3;
    font-size: 30px;
    position: relative
}

.cta-art span:nth-child(2) {
    position: absolute;
    right: 24px;
    top: 16px;
    color: #36b7d9
}

.cta-art span:nth-child(3) {
    position: absolute;
    bottom: 15px;
    left: 20px
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px clamp(24px, 6vw, 90px);
    border-top: 1px solid #edf0fa;
    background: #fff
}

.site-footer>span {
    font-size: 10px;
    color: #7b86a1
}

.footer-nav {
    display: flex;
    gap: 20px
}

.inner-page {
    min-height: 70vh
}

.page-hero {
    text-align: center;
    padding: 78px 24px 52px;
    background: radial-gradient(ellipse at 50% 0, #efedff, transparent 65%), linear-gradient(#fbfcff, #fff)
}

.page-hero h1 {
    font-size: clamp(40px, 5vw, 58px);
    margin: 14px 0
}

.page-hero p {
    color: var(--muted);
    margin: 0 auto;
    max-width: 560px
}

.about-detail {
    display: grid;
    grid-template-columns: .75fr 1.25fr;
    gap: 65px;
    align-items: center;
    max-width: 1100px;
    margin: auto
}

.about-avatar {
    min-height: 300px;
    border-radius: 38% 38% 25% 25%;
    background: linear-gradient(140deg, #dcd8ff, #d5f5ff);
    display: grid;
    place-items: center;
    box-shadow: inset 0 0 0 12px #ffffff90
}

.about-avatar span {
    font-size: 80px;
    font-weight: 800;
    color: #7569e8;
    letter-spacing: -6px
}

.about-detail-copy h2 {
    font-size: 28px;
    margin: 8px 0
}

.about-detail-copy p {
    color: var(--muted);
    line-height: 1.9
}

.info-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 22px 0
}

.info-chips span {
    background: #f2f1ff;
    color: #5145c9;
    padding: 8px 11px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600
}

.inner-skills {
    background: #fafbff
}

.inner-skills .skills-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr))
}

.projects-page-grid {
    max-width: 1200px;
    margin: auto
}

.filter-row {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin-bottom: 25px
}

.filter-button {
    padding: 9px 16px;
    border: 1px solid #e7eafa;
    background: #fff;
    color: #6c7897;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700
}

.filter-button.active,
.filter-button:hover {
    background: var(--purple);
    border-color: var(--purple);
    color: #fff
}

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

.projects-page-grid .project-thumb {
    height: 180px
}

.projects-page-grid .project-card-body {
    padding: 19px
}

.projects-page-grid .project-card h3 {
    font-size: 15px
}

.projects-page-grid .project-card p {
    font-size: 12px;
    min-height: 42px
}

.contact-layout {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 28px;
    max-width: 1100px;
    margin: auto
}

.contact-info-panel,
.contact-form {
    padding: clamp(22px, 4vw, 40px);
    border: 1px solid #edf0fa;
    border-radius: 20px;
    box-shadow: var(--shadow);
    background: white
}

.contact-info-panel {
    background: linear-gradient(145deg, #fbfbff, #f0faff)
}

.contact-info-panel h2 {
    margin-top: 10px
}

.contact-info-panel>p,
.contact-form>p {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.8
}

.contact-detail {
    display: flex;
    gap: 13px;
    align-items: center;
    margin: 23px 0
}

.contact-detail-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #e9e7ff;
    color: #5b4bff;
    font-size: 19px
}

.contact-detail div {
    display: flex;
    flex-direction: column
}

.contact-detail small {
    font-size: 10px;
    color: #7c87a2
}

.contact-detail div>span,
.contact-detail a {
    font-size: 12px;
    font-weight: 600
}

.contact-art {
    height: 130px;
    border-radius: 16px;
    background: linear-gradient(130deg, #e7e3ff, #dff7ff);
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    color: #5c51ec;
    font-weight: 800
}

.contact-art span:first-child {
    font-size: 35px
}

.contact-art span:last-child {
    font-size: 26px
}

.contact-form h2 {
    margin: 0;
    font-size: 24px
}

.contact-form label,
.auth-card label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
    color: #334064;
    margin-top: 17px
}

.contact-form input,
.contact-form textarea,
.auth-card input {
    width: 100%;
    border: 1px solid #e3e8f5;
    border-radius: 8px;
    padding: 12px 13px;
    background: #fcfdff;
    color: var(--ink);
    outline: none;
    font-size: 12px;
    resize: vertical;
    transition: border .2s, box-shadow .2s
}

.contact-form input:focus,
.contact-form textarea:focus,
.auth-card input:focus {
    border-color: #8c82ff;
    box-shadow: 0 0 0 3px #766aff18
}

.form-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px
}

.form-submit {
    width: 100%;
    margin-top: 20px
}

.form-status {
    font-size: 10px !important;
    color: #7984a0 !important;
    margin: 12px 0 0 !important
}

.auth-page {
    min-height: 100vh;
    background: radial-gradient(ellipse at 15% 20%, #e9e7ff, transparent 35%), radial-gradient(ellipse at 85% 80%, #e1f6ff, transparent 38%), #f9faff
}

.auth-layout {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 70px 20px;
    position: relative;
    overflow: hidden
}

.auth-brand {
    position: absolute;
    top: 28px;
    left: clamp(24px, 6vw, 80px)
}

.auth-card {
    width: min(100%, 420px);
    position: relative;
    z-index: 1;
    background: #ffffffed;
    border: 1px solid #fff;
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 24px 70px #5263a522;
    text-align: center
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 800
}

.auth-card h1 {
    font-size: 25px;
    margin: 23px 0 3px
}

.auth-subtitle {
    font-size: 12px;
    color: var(--muted);
    margin: 0 0 23px
}

.auth-card label {
    text-align: left
}

.auth-submit {
    width: 100%;
    margin-top: 23px
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 25px 0;
    color: #8a94ad;
    font-size: 9px;
    letter-spacing: 1px
}

.auth-divider:before,
.auth-divider:after {
    content: "";
    height: 1px;
    flex: 1;
    background: #e9edf7
}

.auth-footnote {
    position: absolute;
    bottom: 20px;
    font-size: 10px;
    color: #7884a0
}

.auth-decoration {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
    opacity: .6
}

.decor-a {
    width: 240px;
    height: 240px;
    background: #dcd8ff;
    top: 16%;
    left: 12%
}

.decor-b {
    width: 190px;
    height: 190px;
    background: #d2f3ff;
    right: 12%;
    bottom: 14%
}

body.soft-dark {
    --ink: #edf0ff;
    --muted: #aeb9d6;
    --line: #313b5e;
    --surface: #1b2340;
    --soft: #171e37;
    background: #12182d;
    color: var(--ink)
}

body.soft-dark .site-header,
body.soft-dark .site-footer,
body.soft-dark .project-card,
body.soft-dark .skill-card,
body.soft-dark .contact-form,
body.soft-dark .contact-info-panel,
body.soft-dark .about-preview {
    background: #1b2340;
    border-color: #2d3759
}

body.soft-dark .hero-section,
body.soft-dark .featured-section,
body.soft-dark .skills-section,
body.soft-dark .contact-cta,
body.soft-dark .page-hero,
body.soft-dark .inner-skills {
    background: #171e37
}

body.soft-dark .button-outline,
body.soft-dark .filter-button {
    background: #202949;
    color: #c5caff;
    border-color: #4b4b8c
}

body.soft-dark input,
body.soft-dark textarea {
    background: #151d35;
    color: #fff;
    border-color: #394365
}

body.soft-dark .main-nav a,
body.soft-dark .footer-nav a {
    color: #b9c4e0
}

@media(max-width:1000px) {
    .main-nav {
        gap: 15px
    }

    .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .skills-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr))
    }

    .hero-section {
        padding-left: 5vw;
        padding-right: 5vw
    }

    .hero-copy h1 {
        font-size: 52px
    }

    .stat-row>div {
        padding: 0 10px
    }

    .site-header {
        padding: 0 25px
    }
}

@media(max-width:760px) {
    .site-header {
        height: 68px;
        gap: 12px
    }

    .mobile-menu-toggle {
        display: block;
        order: 3
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 67px;
        left: 12px;
        right: 12px;
        padding: 18px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 14px;
        box-shadow: var(--shadow);
        flex-direction: column;
        align-items: stretch;
        gap: 0
    }

    .main-nav.open {
        display: flex
    }

    .main-nav a {
        padding: 12px
    }

    .header-actions {
        margin-left: auto
    }

    .header-actions .icon-link {
        display: none
    }

    .hero-section {
        grid-template-columns: 1fr;
        padding-top: 45px
    }

    .hero-copy {
        max-width: 620px
    }

    .hero-copy h1 {
        font-size: clamp(43px, 12vw, 62px)
    }

    .hero-visual {
        min-height: 280px;
        margin-top: 15px
    }

    .portrait-placeholder {
        height: 250px;
        width: 245px
    }

    .orb-one {
        right: 25%;
        width: 230px;
        height: 225px
    }

    .orb-two {
        right: 20%
    }

    .hand-note {
        right: 8%
    }

    .about-preview,
    .about-detail,
    .contact-layout {
        grid-template-columns: 1fr
    }

    .workspace-visual {
        order: -1
    }

    .about-preview {
        gap: 12px
    }

    .section-shell {
        padding: 42px 22px
    }

    .project-grid,
    .projects-page-grid .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .projects-page-grid .project-thumb {
        height: 145px
    }

    .skills-grid,
    .inner-skills .skills-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr))
    }

    .about-detail {
        gap: 30px
    }

    .about-avatar {
        min-height: 220px
    }

    .contact-layout {
        gap: 18px
    }

    .site-footer {
        flex-wrap: wrap
    }

    .site-footer>span {
        width: 100%
    }

    .auth-card {
        padding: 28px 23px
    }
}

@media(max-width:480px) {
    .brand {
        font-size: 14px
    }

    .brand-mark {
        width: 27px;
        height: 27px
    }

    .header-actions .button {
        padding: 0 12px
    }

    .hero-buttons .button {
        padding: 0 14px
    }

    .hero-copy h2 {
        font-size: 17px
    }

    .stat-row {
        justify-content: space-between
    }

    .stat-row>div {
        padding: 0 8px
    }

    .stat-row strong {
        font-size: 18px
    }

    .stat-row span {
        font-size: 9px
    }

    .section-heading {
        align-items: start;
        flex-direction: column
    }

    .project-grid,
    .projects-page-grid .project-grid {
        grid-template-columns: 1fr
    }

    .project-thumb,
    .projects-page-grid .project-thumb {
        height: 175px
    }

    .skills-grid,
    .inner-skills .skills-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .cta-art {
        width: 100px;
        height: 100px;
        flex-shrink: 0
    }

    .contact-cta h2 {
        font-size: 23px
    }

    .footer-nav {
        gap: 13px
    }

    .footer-nav a {
        font-size: 10px
    }

    .form-two-columns {
        grid-template-columns: 1fr;
        gap: 0
    }

    .contact-info-panel,
    .contact-form {
        padding: 23px
    }

    .page-hero {
        padding: 55px 20px 38px
    }

    .page-hero h1 {
        letter-spacing: -2px
    }

    .about-avatar span {
        font-size: 65px
    }
}


/* Real Android app project thumbnails — separate visual styles per project */
.thumb-freshman {
    background: linear-gradient(135deg, #e9fff6 0%, #d6f4eb 45%, #dfe9ff 100%);
    padding: 15px 16px;
    color: #153b50
}

.app-icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    font-size: 24px;
    font-weight: 800;
    box-shadow: 0 8px 18px #1c42601a;
    position: absolute;
    left: 17px;
    top: 15px
}

.app-icon-freshman {
    background: linear-gradient(140deg, #10a978, #087f9b);
    color: white
}

.app-icon-freshman span {
    font-size: 11px;
    position: absolute;
    right: 7px;
    top: 4px
}

.app-preview-title {
    position: absolute;
    left: 78px;
    top: 16px;
    font-size: 13px;
    line-height: 1.25;
    color: #183e56
}

.app-preview-title b {
    font-size: 17px
}

.app-preview-sub {
    position: absolute;
    left: 17px;
    bottom: 17px;
    font-size: 9px;
    font-weight: 700;
    color: #3d7180
}

.app-preview-lines {
    position: absolute;
    left: 17px;
    right: 17px;
    bottom: 39px;
    display: flex;
    gap: 6px
}

.app-preview-lines i {
    height: 17px;
    flex: 1;
    background: #ffffffc9;
    border: 1px solid #cbe9e1;
    border-radius: 5px
}

.thumb-remedial {
    background: linear-gradient(135deg, #fff0d8, #ffe2cb 48%, #f0e5ff);
    padding: 15px
}

.app-icon-remedial {
    background: linear-gradient(135deg, #ff9b47, #ef5c67);
    color: white
}

.thumb-remedial .app-preview-title {
    left: 77px;
    top: 23px;
    color: #693d55
}

.thumb-remedial .app-preview-sub {
    left: 16px;
    bottom: 15px;
    color: #865c71
}

.remedial-subjects {
    position: absolute;
    right: 16px;
    bottom: 37px;
    display: flex;
    gap: 5px
}

.remedial-subjects i {
    font-style: normal;
    width: 23px;
    height: 23px;
    border-radius: 7px;
    background: #fff;
    color: #8d57a3;
    display: grid;
    place-items: center;
    font-size: 10px;
    font-weight: 800;
    box-shadow: 0 3px 8px #6c3c5712
}

.thumb-downloader {
    background: linear-gradient(135deg, #e6edff, #d8e4ff 52%, #e6ddff);
    padding: 15px;
    color: #243d7a
}

.download-ring {
    position: absolute;
    left: 18px;
    top: 17px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6656f6, #397de9);
    display: grid;
    place-items: center;
    color: white;
    box-shadow: 0 8px 18px #4e56bd35
}

.download-ring span {
    font-size: 34px;
    font-weight: 500
}

.download-preview-title {
    position: absolute;
    left: 91px;
    top: 18px;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25
}

.download-progress {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 34px;
    height: 7px;
    border-radius: 8px;
    background: #ffffffc7;
    overflow: hidden
}

.download-progress i {
    display: block;
    width: 78%;
    height: 100%;
    border-radius: 8px;
    background: linear-gradient(90deg, #5a4bf4, #27b5dc)
}

.download-check {
    position: absolute;
    left: 18px;
    bottom: 13px;
    font-size: 9px;
    font-weight: 700;
    color: #5267a5
}


/* Individual app-icon inspired artwork for Haile Yilma's real projects */
.app-thumb {
    height: 180px;
    position: relative;
    overflow: hidden;
    padding: 17px;
    isolation: isolate
}

.app-icon-art {
    width: 58px;
    height: 58px;
    position: absolute;
    left: 18px;
    top: 18px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 9px 22px #20375b22;
    z-index: 2
}

.app-icon-art span {
    font-size: 11px;
    position: absolute;
    right: 8px;
    top: 5px
}

.app-icon-title {
    position: absolute;
    left: 91px;
    top: 24px;
    font-size: 12px;
    line-height: 1.35;
    letter-spacing: .4px;
    z-index: 2
}

.app-icon-title b {
    font-size: 17px
}

.app-icon-caption {
    position: absolute;
    left: 18px;
    bottom: 17px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    z-index: 2;
    opacity: .78
}

.freshman-app {
    background: linear-gradient(135deg, #e5fff3, #ccefe5 55%, #dbe9ff);
    color: #174c50
}

.freshman-app .app-icon-art {
    background: linear-gradient(140deg, #10b981, #087f8c)
}

.icon-orbit {
    position: absolute;
    border: 1px solid #4aa99545;
    border-radius: 50%;
    right: -20px;
    bottom: -85px;
    width: 190px;
    height: 190px
}

.orbit-b {
    width: 135px;
    height: 135px;
    right: 8px;
    bottom: -58px
}

.remedial-app {
    background: linear-gradient(135deg, #fff0d9, #ffe0d3 55%, #eee1ff);
    color: #713e5d
}

.remedial-app .app-icon-art {
    background: linear-gradient(140deg, #ff9b45, #ed5c78)
}

.subject-icons {
    position: absolute;
    right: 17px;
    bottom: 37px;
    display: flex;
    gap: 5px
}

.subject-icons i {
    font-style: normal;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #fff;
    color: #8c55a1;
    font-size: 10px;
    font-weight: 800;
    box-shadow: 0 3px 10px #694c6312
}

.remedial-app .app-icon-caption {
    color: #86556d
}

.downloader-app {
    background: linear-gradient(135deg, #e4ecff, #d8e2ff 55%, #e8e0ff);
    color: #283d83
}

.downloader-app .app-icon-art {
    background: linear-gradient(145deg, #6654f5, #347ee8);
    font-size: 37px
}

.download-chip,
.device-chip,
.adb-chip {
    position: absolute;
    left: 18px;
    bottom: 17px;
    border-radius: 7px;
    background: #ffffffb8;
    padding: 6px 9px;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .5px;
    color: #4858a0
}

.download-track {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 8px;
    height: 4px;
    border-radius: 5px;
    background: #ffffffb8
}

.download-track i {
    display: block;
    width: 76%;
    height: 100%;
    background: #4c74f0;
    border-radius: 5px
}

.quit-inbox-app {
    background: linear-gradient(135deg, #e2fff8, #d7f3f2 52%, #e2e9ff);
    color: #145c5b
}

.quit-inbox-app .app-icon-art {
    background: linear-gradient(145deg, #10b9a5, #2471d9)
}

.social-bubbles {
    position: absolute;
    right: 17px;
    bottom: 38px;
    display: flex;
    gap: 5px
}

.social-bubbles i {
    font-style: normal;
    width: 25px;
    height: 25px;
    border-radius: 9px;
    background: #fff;
    display: grid;
    place-items: center;
    color: #258b9a;
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 3px 9px #234b5412
}

.quit-inbox-app .app-icon-caption {
    color: #367e7d
}

.mst-app {
    background: linear-gradient(135deg, #e6f7ff, #d5e9ff 58%, #e0e7ff);
    color: #183e6a
}

.mst-app .app-icon-art {
    background: linear-gradient(145deg, #164e87, #1d9dc2);
    font-size: 15px;
    border-radius: 15px
}

.device-chip {
    bottom: 17px;
    color: #22527c
}

.terminal-lines {
    position: absolute;
    right: 19px;
    bottom: 39px;
    width: 74px;
    display: grid;
    gap: 5px
}

.terminal-lines i {
    height: 4px;
    border-radius: 5px;
    background: #78c4e7
}

.terminal-lines i:nth-child(2) {
    width: 70%;
    background: #6496ed
}

.terminal-lines i:nth-child(3) {
    width: 48%;
    background: #55bda7
}

.unlock-app {
    background: linear-gradient(135deg, #fff0e5, #ffe1d4 55%, #f4e3ff);
    color: #713d55
}

.unlock-app .app-icon-art {
    background: linear-gradient(145deg, #e65d6c, #9b54d4)
}

.adb-chip {
    color: #92526a
}

.unlock-circuit {
    position: absolute;
    right: 20px;
    bottom: 32px;
    display: flex;
    align-items: center;
    gap: 5px
}

.unlock-circuit i {
    display: block;
    width: 12px;
    height: 12px;
    border: 2px solid #cf8da7;
    border-radius: 4px
}

.unlock-circuit i:nth-child(2),
.unlock-circuit i:nth-child(4) {
    transform: translateY(-7px);
    border-color: #a98bdd
}

.fata-app {
    background: linear-gradient(135deg, #e9e4ff, #dcdfff 55%, #d5f5ff);
    color: #433a8b
}

.fata-app .app-icon-art {
    background: linear-gradient(145deg, #6b5cf6, #388be8)
}

.chat-bubbles {
    position: absolute;
    right: 19px;
    bottom: 34px;
    width: 66px;
    height: 42px
}

.chat-bubbles i {
    position: absolute;
    display: block;
    width: 38px;
    height: 21px;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 4px 10px #4e52a31a
}

.chat-bubbles i:nth-child(1) {
    right: 0;
    top: 0;
    background: #bfc7ff
}

.chat-bubbles i:nth-child(2) {
    left: 0;
    top: 13px;
    background: #fff
}

.chat-bubbles i:nth-child(3) {
    right: 0;
    bottom: 0;
    width: 22px;
    height: 5px;
    background: #a6aef7
}

@media(max-width:760px) {

    .projects-page-grid .project-thumb,
    .app-thumb {
        height: 165px
    }
}


.real-project-thumb {
  height: 220px;
  overflow: hidden;
  background: #f4f7fb;
}

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




/* Professional project action links */
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.project-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #ffffff;
  color: #2563eb;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease,
              border-color 0.2s ease,
              transform 0.2s ease;
}

.project-links a:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  transform: translateY(-2px);
}

.project-links a:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 3px;
}







/* About page: personal values and vision */
.about-values {
    margin-top: 56px;
}

.about-values .skills-grid {
    margin-top: 24px;
}

.about-values .skill-card {
    padding: 26px;
}

.about-values .skill-card small {
    display: block;
    margin-top: 10px;
    line-height: 1.8;
}

.about-cta {
    margin-top: 64px;
    margin-bottom: 64px;
    padding: 36px;
    text-align: center;
    border-radius: 24px;
    background: var(--surface, #f8fafc);
}

.about-cta h2 {
    margin: 12px 0;
}

.about-cta p {
    max-width: 620px;
    margin: 0 auto 24px;
    line-height: 1.8;
    color: var(--text-muted, #64748b);
}

.about-cta .button {
    margin: 5px;
}

@media (max-width: 600px) {
    .about-values,
    .about-cta {
        margin-top: 36px;
    }

    .about-cta {
        padding: 24px 18px;
    }
}

/* About page: text left, profile image right */
.about-two-column {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.8fr);
    align-items: center;
    gap: 55px;
}

.about-profile-right {
    width: 100%;
    max-width: 320px;
    height: 360px;
    justify-self: center;
    overflow: hidden;
    border-radius: 28px;
}

.about-profile-right img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.about-values {
    margin-top: 55px;
}

.about-cta {
    margin-top: 55px;
    margin-bottom: 55px;
    padding: 32px;
    text-align: center;
    border-radius: 24px;
    background: var(--surface, #f8fafc);
}

.about-cta p {
    max-width: 620px;
    margin: 12px auto 22px;
    line-height: 1.8;
}

.about-cta .button {
    margin: 5px;
}

@media (max-width: 700px) {
    .about-two-column {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .about-profile-right {
        grid-row: 1;
        max-width: 230px;
        height: 260px;
    }

    .about-cta {
        padding: 24px 16px;
    }
}
