﻿.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 18px 0;
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(113, 87, 255, .08);
    transition: transform .32s ease, box-shadow .32s ease;
}

.site-header.hide { transform: translateY(-100%); }

.site-header.scrolled { box-shadow: 0 12px 40px rgba(41, 35, 120, .08); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    letter-spacing: -.04em;
}
.logo .logo-image{
    width: 32px;
    height: 32px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 42px;
    font-size: 14px;
    font-weight: 700;
}

.nav-menu a {
    position: relative;
    color: #22243a;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--purple);
    opacity: 0;
    transform: translateX(-50%);
    transition: .25s;
}

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

.nav-menu a:hover::after,
.nav-menu a.active::after { opacity: 1; }

.header-icons {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 22px;
}

.mobile-toggle {
    display: none;
    border: 0;
    background: transparent;
    font-size: 26px;
}

.hero {
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 110px;
    padding-bottom: 96px;
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 42%, rgba(113,87,255,.18) 0 80px, transparent 82px),
        radial-gradient(circle at 88% 28%, rgba(255,115,173,.18) 0 70px, transparent 72px),
        radial-gradient(circle at 78% 72%, rgba(91,140,255,.2) 0 95px, transparent 98px),
        linear-gradient(180deg, #fff9f1 0%, #fbf8ff 100%);
}

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

.hero h1 {
    margin: 24px 0 0;
    font-size: clamp(52px, 4.2vw, 68px);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -.07em;
    color: var(--black);
}

.hero h1 strong {
    color: var(--purple);
    font-size: clamp(62px, 5.2vw, 82px);
}

.hero-text {
    margin-top: 28px;
    color: #55576a;
    font-size: 20px;
    line-height: 1.75;
    font-weight: 500;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 42px;
}

.code-card {
    position: relative;
    padding: 28px;
    border-radius: 28px;
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(113, 87, 255, .12);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
}

.code-tabs {
    display: flex;
    gap: 28px;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 26px;
}

.code-tab {
    border: 0;
    background: transparent;
    color: #9a9baa;
    font: inherit;
    padding: 0;
    transition: color .2s ease;
}

.code-tab:hover,
.code-tab.active {
    color: var(--black);
}

.run-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    border: 0;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--purple);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    transition: transform .2s ease, box-shadow .2s ease;
}

.run-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(113,87,255,.28);
}

pre {
    margin: 0;
    color: #30334d;
    font-size: 15px;
    line-height: 1.9;
    white-space: pre-wrap;
    min-height: 342px;
}

.code-no { color: #a8aabc; margin-right: 18px; }
.code-pink { color: #ee5a9f; }
.code-blue { color: #4d7dff; }
.code-purple { color: #7157ff; }
.code-green { color: #21a67a; }

.scroll-down {
    position: absolute;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    color: #67697d;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-align: center;
    text-transform: uppercase;
    animation: scrollDownFade 1.8s ease-in-out infinite;
    pointer-events: none;
}

.scroll-down i {
    display: block;
    font-size: 28px;
    margin-bottom: 6px;
    color: var(--black);
    animation: scrollMouseMove 1.8s ease-in-out infinite;
}

@keyframes scrollMouseMove {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}

@keyframes scrollDownFade {
    0%,
    100% {
        opacity: .72;
    }
    50% {
        opacity: 1;
    }
}

@keyframes scrollLineFlow {
    0% {
        transform: scaleY(.25);
        transform-origin: top;
        opacity: .25;
    }
    50% {
        transform: scaleY(1);
        opacity: 1;
    }
    100% {
        transform: scaleY(.25);
        transform-origin: bottom;
        opacity: .25;
    }
}

.about-grid {
    display: grid;
    gap: 28px;
    align-items: stretch;
}

.about-stack {
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    gap: 22px;
}

.about-panel {
    position: relative;
    overflow: hidden;
    padding: 30px;
    border: 1px solid rgba(113,87,255,.14);
    border-radius: 24px;
    background: linear-gradient(135deg, #fff 0%, #fbfaff 58%, #fff8ec 100%);
    box-shadow: 0 18px 48px rgba(30,31,54,.07);
}

/* .about-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--purple), #ff73ad, #ffb458);
} */

.about-panel-head {
    margin-bottom: 22px;
}

.about-panel-head span {
    color: var(--purple);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.about-panel-head h2{
    margin: 10px 0 0 0;
    color: #202235;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -.03em;
}

.about-panel-desc {
    margin: 0;
    color: #42445a;
    font-size: 16px;
    line-height: 1.85;
    word-break: keep-all;
}

.about-panel-desc b {
    color: var(--purple);
}

.about-panel .profile-info {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.about-panel .info-row {
    display: grid;
    grid-template-columns: 42px 72px 1fr;
    align-items: center;
    min-height: 54px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255,255,255,.82);
}

.about-panel .info-row i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 12px;
    background: #f1eeff;
    color: var(--purple);
    font-size: 16px;
}

.about-panel .info-row b {
    color: #202235;
    font-size: 13px;
    font-weight: 900;
}

.about-panel .info-row span {
    min-width: 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.career-box {
    margin-top: 0;
}

.career-list {
    position: relative;
    display: grid;
    gap: 16px;
}

.career-list::before {
    content: '';
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 21px;
    width: 2px;
    background: linear-gradient(180deg, rgba(113,87,255,.38), rgba(255,180,88,.28));
}

.career-item {
    position: relative;
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 16px;
}

.career-icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(113,87,255,.16);
    border-radius: 16px;
    background: #f1eeff;
    color: var(--purple);
    box-shadow: 0 12px 24px rgba(113,87,255,.12);
}

.career-content {
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255,255,255,.84);
}

.career-period {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--purple);
    font-size: 12px;
    font-weight: 900;
}

.career-content strong {
    display: block;
    margin-bottom: 8px;
    color: #202235;
    font-size: 17px;
    font-weight: 900;
}

.career-content p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
    word-break: keep-all;
}

.career-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.career-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f1eeff;
    color: var(--purple);
    font-size: 12px;
    font-weight: 800;
}

.skill-panel {
    display: flex;
    flex-direction: column;
}

.skill-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    flex: 1;
}

.skill-card {
    min-height: 132px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border-radius: 16px;
    background: rgba(255,255,255,.84);
    border: 1px solid var(--border);
    box-shadow: none;
    transition: .25s ease;
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 55px rgba(113, 87, 255, .16);
    border-color: rgba(113, 87, 255, .28);
}

.skill-card img {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.skill-card span {
    font-weight: 800;
    font-size: 14px;
}

.projects { background: linear-gradient(180deg, #ffffff 0%, #f8f7ff 100%); }

.main-project-card {
    margin-top: 42px;
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 30px;
    border-radius: 28px;
    padding: 36px;
    color: #fff;
    background: linear-gradient(135deg, #7b5cff 0%, #5d3df2 48%, #6957ff 100%);
    box-shadow: 0 30px 80px rgba(113, 87, 255, .32);
    overflow: hidden;
    position: relative;
}

.main-project-card::after {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    right: -120px;
    top: -120px;
    background: rgba(255,255,255,.16);
    filter: blur(4px);
}

.project-badge {
    display: inline-flex;
    width: fit-content;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(255,255,255,.18);
    font-size: 12px;
    font-weight: 800;
}

.main-project-card h3 {
    margin-top: 20px;
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -.04em;
}

.main-project-card ul {
    padding: 0;
    margin: 26px 0 0;
    list-style: none;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, 1fr);
}

.main-project-card ul li{
    display: inline-flex;
    align-items: center;
    color: rgba(255,255,255,.9);
    font-size: 15px;
    font-weight: 700;
}

.main-project-card li::before {
    content: '??;
    margin-right: 10px;
    font-weight: 900;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.tag-list span {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.18);
    font-size: 12px;
    font-weight: 700;
}

.project-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.project-actions .btn-line {
    color: #fff;
    border-color: rgba(255,255,255,.4);
    background: rgba(255,255,255,.12);
}

.dashboard-mock {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 24px 70px rgba(21, 16, 75, .28);
}

.dashboard-top {
    height: 12px;
    width: 130px;
    border-radius: 999px;
    background: #eeeaff;
    margin-bottom: 20px;
}

.dash-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.dash-box {
    height: 72px;
    border-radius: 16px;
    background: #f8f6ff;
    border: 1px solid #eeeaff;
}

.dash-chart {
    height: 190px;
    border-radius: 18px;
    background: linear-gradient(180deg, #fbfaff, #f0ecff);
    position: relative;
    overflow: hidden;
}

.dash-chart::before {
    content: '';
    position: absolute;
    left: 35px;
    right: 35px;
    bottom: 36px;
    height: 100px;
    background: repeating-linear-gradient(90deg, rgba(113,87,255,.65) 0 18px, transparent 18px 40px);
    border-radius: 12px;
    opacity: .75;
}

.sub-title {
    margin: 58px 0 22px;
    font-size: 20px;
    font-weight: 800;
    color: var(--purple);
}

.sub-category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.sub-category-btn {
    min-width: 96px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    color: #55576a;
    font-size: 14px;
    font-weight: 800;
    transition: .25s ease;
}

.sub-category-btn:hover,
.sub-category-btn.active {
    border-color: var(--purple);
    background: var(--purple);
    color: #fff;
    box-shadow: 0 12px 28px rgba(113,87,255,.2);
}

.sub-project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.sub-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 18px 48px rgba(30, 31, 54, .08);
    cursor: pointer;
    transition: .25s ease;
}

.sub-card.is-hidden { display: none; }

.sub-card.is-fading-in {
    animation: subCardFadeIn 1.2s ease both;
}

@keyframes subCardFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sub-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 26px 70px rgba(113,87,255,.18);
}

.sub-card:hover .plus-btn{
    background-color: var(--purple);
    color:var(--white);
}

.sub-thumb {
    height: 150px;
    background: linear-gradient(135deg, #eeeaff, #fff4df);
    position: relative;
    overflow: hidden;
}
.modal-body .sub-thumb {
    height: 260px;
}
.sub-thumb::after {
    content: '';
    position: absolute;
    inset: 10px;
    border-radius: 14px;
    background: rgba(255,255,255,.23);
    box-shadow: inset 0 0 0 1px rgba(113,87,255,.12);
}

.sub-body {
    padding: 22px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.sub-card-category {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #f1eeff;
    color: var(--purple);
    font-size: 12px;
    font-weight: 800;
}

.sub-modal-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.sub-modal-head h3 {
    margin-bottom: 8px;
    word-break: keep-all;
}

.sub-modal-head .text-muted {
    margin-bottom: 0;
}

.project-site-link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 172px;
    min-height: 48px;
    margin-top: 2px;
    padding: 12px 18px;
    border-radius: 14px;
    background: var(--purple);
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 16px 34px rgba(113,87,255,.25);
    transition: .25s ease;
}

.project-site-link:hover {
    transform: translateY(-3px);
    background: #5f47ed;
    color: #fff;
    box-shadow: 0 22px 44px rgba(113,87,255,.32);
}

.project-site-link i {
    font-size: 16px;
}

.sub-body h4 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 800;
}

.sub-body p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.plus-btn {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--purple);
    color: var(--purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: all .3s;
}

.project-detail-card {
    display: grid;
    gap: 18px;
}

.project-detail-summary {
    position: relative;
    overflow: hidden;
    padding: 24px;
    border-radius: 18px;
    background: linear-gradient(135deg, #f7f4ff 0%, #fff7e8 100%);
    border: 1px solid rgba(113,87,255,.14);
}

.project-detail-summary.ecommerce {
    background: linear-gradient(135deg, #fff4f0 0%, #f4f1ff 100%);
}

.project-detail-summary.hospital {
    background: linear-gradient(135deg, #eff8ff 0%, #f7f4ff 100%);
}

.project-detail-summary.esg {
    background: linear-gradient(135deg, #f0fbf7 0%, #f3f5ff 100%);
}

.project-detail-summary.finance {
    background: linear-gradient(135deg, #f0f6ff 0%, #fff8ec 100%);
}

.project-detail-summary.brand {
    background: linear-gradient(135deg, #fff6f2 0%, #f2f7ff 100%);
}

.project-detail-summary.service {
    background: linear-gradient(135deg, #f1fbf3 0%, #fff8ed 100%);
}

.project-detail-summary.main-system {
    background: linear-gradient(135deg, #f4f1ff 0%, #fff7e8 100%);
}

.project-detail-summary span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--purple);
    font-size: 13px;
    font-weight: 900;
}

.project-detail-summary span::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--purple);
    box-shadow: 0 0 0 6px rgba(113,87,255,.12);
}

.project-detail-summary p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #42445a;
    font-size: 15px;
    line-height: 1.8;
    word-break: keep-all;
}

.project-detail-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.project-detail-meta div,
.project-detail-points div {
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: 0 14px 38px rgba(30,31,54,.07);
}

.project-detail-meta div {
    padding: 18px 20px;
    border-radius: 16px;
}

.project-detail-meta b {
    display: block;
    margin-bottom: 6px;
    color: var(--purple);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.project-detail-meta span {
    color: #303244;
    font-size: 14px;
    font-weight: 800;
}

.project-detail-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.project-detail-points div {
    min-height: 168px;
    padding: 20px;
    border-radius: 18px;
}

.project-detail-points i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 16px;
    border-radius: 14px;
    background: #f1eeff;
    color: var(--purple);
    font-size: 20px;
}

.project-detail-points strong {
    display: block;
    margin-bottom: 8px;
    color: #202235;
    font-size: 15px;
    font-weight: 900;
}

.project-detail-points p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
    word-break: keep-all;
}

.project-detail-feature {
    display: grid;
    gap: 12px;
    padding: 18px 20px;
    border: 1px solid rgba(113,87,255,.16);
    border-radius: 18px;
    background: #fbfaff;
}

.project-detail-feature b {
    color: var(--purple);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.project-detail-feature div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-detail-feature span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--border);
    color: #3a3c4f;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(30,31,54,.05);
}

.main-project-detail {
    display: grid;
    gap: 24px;
}

.main-project-visual {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid var(--border);
    background: #f7f5ff;
    box-shadow: 0 18px 48px rgba(30,31,54,.08);
}

.main-project-visual img {
    display: block;
    width: 100%;
    max-height: 420px;
    object-fit: cover;
}

.main-project-gallery-section {
    display: grid;
    gap: 14px;
}

.main-project-section-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding-top: 4px;
}

.main-project-section-title > div {
    display: grid;
    gap: 4px;
}

.main-project-section-title span {
    color: var(--purple);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.main-project-section-title h4 {
    margin: 0;
    color: #202235;
    font-size: 19px;
    font-weight: 900;
}

.main-project-section-title p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.main-project-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.main-project-gallery figure {
    position: relative;
    overflow: hidden;
    margin: 0;
    aspect-ratio: 16 / 10;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: 0 14px 38px rgba(30,31,54,.07);
    cursor: zoom-in;
}

.main-project-gallery figure::after {
    content: '\F52A';
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(16,17,36,.72);
    color: #fff;
    font-family: "bootstrap-icons";
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(8px);
    transition: .25s ease;
}

.main-project-gallery figure:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.main-project-gallery img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .35s ease;
}

.main-project-gallery figure:hover img {
    transform: scale(1.035);
}

.project-image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1085;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: rgba(16,17,36,.78);
}

.project-image-lightbox.is-open {
    display: flex;
}

.project-image-lightbox img {
    max-width: min(1100px, 94vw);
    max-height: 86vh;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(0,0,0,.32);
}

.project-image-lightbox-close {
    position: absolute;
    top: 22px;
    right: 22px;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #202235;
    box-shadow: 0 14px 38px rgba(0,0,0,.22);
}

.contact-grid {
    display: grid;
    grid-template-columns: .75fr 1.25fr;
    gap: 70px;
    align-items: start;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.8);
    border-radius: 14px;
    padding: 18px 20px;
    outline: none;
    transition: .25s ease;
}

.contact-form textarea,
.contact-form .full { grid-column: 1 / -1; }

.contact-form textarea {
    min-height: 190px;
    resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: rgba(113,87,255,.5);
    box-shadow: 0 0 0 4px rgba(113,87,255,.1);
}

.cta-band {
    padding: 82px 0;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, #6f54ff, #8c5cff);
}

.cta-band h2 {
    font-size: clamp(28px, 3vw, 46px);
    font-weight: 800;
    letter-spacing: -.04em;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 28px;
}

.cta-actions a {
    min-width: 160px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #fff;
    color: var(--black);
    font-weight: 800;
}

.footer {
    padding: 26px 0;
    background: #101124;
    color: rgba(255,255,255,.62);
    font-size: 13px;
    text-align: center;
}

@media (max-width: 991px) {
    .nav-menu,
    .header-icons { display: none; }

    .mobile-toggle { display: block; }

    .nav-menu.open {
        position: absolute;
        display: grid;
        top: 72px;
        left: 20px;
        right: 20px;
        gap: 0;
        padding: 16px;
        border-radius: 20px;
        background: rgba(255,255,255,.96);
        box-shadow: var(--shadow);
    }

    .nav-menu.open a { padding: 15px; }

    .about-stack,
    .hero-grid,
    .about-grid,
    .contact-grid,
    .main-project-card { grid-template-columns: 1fr; }

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

    .project-detail-points { grid-template-columns: 1fr; }
    .dashboard-mock {height: 30vw;}
    .code-card { order: -1; }

    .modal-body .sub-thumb {
        height: auto;
    }
}

@media (max-width: 575px) {
    .hero {
        padding-top: 92px;
        padding-bottom: 82px;
    }

    .hero-grid {
        gap: 36px;
    }

    .scroll-down {
        bottom: 18px;
        font-size: 10px;
        letter-spacing: .06em;
    }

    .scroll-down i {
        font-size: 24px;
        margin-bottom: 4px;
    }

    pre{
        height: 150px;
        min-height: auto;
        font-size: 13px;
    }

    .hero h1{
        font-size: clamp(32px, 8vw, 52px);
        line-height: 1.25;
    }
    .hero h1 strong{
        font-size: clamp(38px, 10vw, 62px);
    }
    .hero-text{
        font-size: 16px;
        line-height: 1.6;
    }

    .hero-actions,
    .project-actions,
    .cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .skill-card {
        min-height: 112px;
    }
    .skill-card img{
        width: 42px;
        height: 42px;
    }
    .skill-card span {
        font-size: 12px;
    }

    .sub-project-grid,
    .dash-grid,
    .contact-form,
    .project-detail-meta { grid-template-columns: 1fr; }

    .main-project-card { padding: 26px; }

    .main-project-card h3 { font-size: 34px; }

    .about-panel { padding: 22px; }

    .about-panel-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .about-panel-head h2{
        font-size: 26px;
    }
    .about-panel-desc {
        font-size: 14px;
        line-height: 1.65;
    }

    .career-content { padding: 16px; }

    .project-detail-summary,
    .project-detail-meta div,
    .project-detail-points div,
    .project-detail-feature { padding: 18px; }

    .sub-modal-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .project-site-link {
        width: 100%;
    }
    
    .dashboard-mock {height: 40vw;}

    .main-project-section-title {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

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

    .main-project-visual img {
        max-height: 280px;
    }
}
