/* ========================================
   Mohammed Usamah — Portfolio
   ======================================== */

:root {
    --bg: #07080c;
    --bg-elevated: #0d1018;
    --bg-card: rgba(16, 20, 30, 0.72);
    --bg-glass: rgba(255, 255, 255, 0.04);
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.14);
    --text: #f4f6fb;
    --muted: #9aa3b8;
    --faint: #6b7388;
    --accent: #2ee9d4;
    --accent-2: #8b7cff;
    --accent-3: #3b82f6;
    --accent-soft: rgba(46, 233, 212, 0.12);
    --accent-2-soft: rgba(139, 124, 255, 0.16);
    --danger: #f43f5e;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    --radius: 22px;
    --radius-sm: 14px;
    --nav-h: 76px;
    --font: "Outfit", "Segoe UI", sans-serif;
    --mono: "JetBrains Mono", ui-monospace, monospace;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(900px 500px at 15% -10%, rgba(46, 233, 212, 0.12), transparent 55%),
        radial-gradient(700px 480px at 95% 8%, rgba(139, 124, 255, 0.14), transparent 50%),
        linear-gradient(180deg, #07080c 0%, #080a12 100%);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.35;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; }

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

section {
    position: relative;
    z-index: 1;
    padding: 108px 0;
    scroll-margin-top: 110px;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.85rem;
}

.section-kicker::before {
    content: "";
    width: 22px;
    height: 1px;
    background: var(--accent);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: 650;
    letter-spacing: -0.04em;
    margin-bottom: 0.7rem;
}

.section-lead {
    color: var(--muted);
    max-width: 620px;
    margin-bottom: 2.6rem;
    font-size: 1.05rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -56px;
    z-index: 10000;
    padding: 0.55rem 0.95rem;
    border-radius: 10px;
    background: var(--accent);
    color: #041614;
    font-weight: 650;
}

.skip-link:focus {
    top: 16px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.35rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.primary-btn {
    background: linear-gradient(135deg, var(--accent), #5eead4);
    color: #041614;
    box-shadow: 0 10px 30px rgba(46, 233, 212, 0.22);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(46, 233, 212, 0.32);
}

.secondary-btn {
    background: transparent;
    color: var(--text);
    border-color: var(--line-strong);
}

.secondary-btn:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    background: var(--accent-soft);
}

.small-btn {
    padding: 0.45rem 0.9rem;
    font-size: 0.82rem;
    border: 1px solid var(--line-strong);
    background: var(--bg-glass);
    color: var(--text);
    border-radius: 999px;
}

.small-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.ghost-btn {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--line);
}

/* Header */
header {
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1180px, calc(100% - 28px));
    z-index: 1000;
    border: 1px solid var(--line);
    background: rgba(7, 8, 12, 0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 18px;
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

header.scrolled {
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.35);
    border-color: var(--line-strong);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 0.85rem 0.7rem 1.1rem;
    gap: 1rem;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    background: #000;
    border: 1px solid var(--line-strong);
    flex-shrink: 0;
}

.logo-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
    background: #000;
}

.logo-text {
    font-size: 1.02rem;
    font-weight: 650;
    letter-spacing: -0.03em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.nav-menu a {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--muted);
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--text);
    background: var(--bg-glass);
}

.nav-cta {
    margin-left: 0.4rem;
    background: var(--accent-soft) !important;
    color: var(--accent) !important;
    border: 1px solid rgba(46, 233, 212, 0.25);
}

.menu-toggle {
    display: none;
    font-size: 1.2rem;
    cursor: pointer;
    background: none;
    border: 0;
    color: var(--text);
    padding: 0.4rem;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: grid;
    align-items: center;
    padding: calc(var(--nav-h) + 48px) 0 80px;
}

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

.availability {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem 0.8rem 0.35rem 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(46, 233, 212, 0.22);
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 1.4rem;
}

.availability-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(46, 233, 212, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    70% { box-shadow: 0 0 0 8px rgba(46, 233, 212, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 233, 212, 0); }
}

.hero h1 {
    font-size: clamp(3rem, 7vw, 5.4rem);
    line-height: 0.92;
    letter-spacing: -0.06em;
    font-weight: 750;
    margin-bottom: 1rem;
}

.hero h1 span {
    display: block;
    background: linear-gradient(120deg, #fff 20%, var(--accent) 55%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-content .hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 1.1rem;
    max-width: none;
}

.hero-content p {
    color: var(--muted);
    font-size: 1.08rem;
    max-width: 540px;
    margin-bottom: 2rem;
}

.hero-btns {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 2.4rem;
}

.hero-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-meta div strong {
    display: block;
    font-size: 1.35rem;
    letter-spacing: -0.04em;
}

.hero-meta div span {
    color: var(--faint);
    font-size: 0.82rem;
}

.hero-visual {
    position: relative;
    display: grid;
    place-items: center;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
}

.hero-orb.one {
    width: 220px;
    height: 220px;
    background: rgba(46, 233, 212, 0.22);
    top: 10%;
    right: 8%;
}

.hero-orb.two {
    width: 180px;
    height: 180px;
    background: rgba(139, 124, 255, 0.25);
    bottom: 8%;
    left: 6%;
}

.hero-portrait {
    position: relative;
    width: min(340px, 100%);
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    background: #000;
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow);
}

.hero-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 12%;
    background: #000;
}

.hero-chip {
    position: absolute;
    z-index: 2;
    padding: 0.7rem 0.9rem;
    border-radius: 16px;
    background: rgba(7, 8, 12, 0.78);
    border: 1px solid var(--line-strong);
    backdrop-filter: blur(12px);
    font-size: 0.82rem;
    box-shadow: var(--shadow);
}

.hero-chip strong {
    display: block;
    font-size: 0.92rem;
}

.hero-chip span {
    color: var(--muted);
    font-size: 0.75rem;
}

.chip-cv { left: -28px; top: 18%; }
.chip-ue { right: -18px; bottom: 22%; }

/* Stats */
.stats {
    padding: 0 0 40px;
}

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

.stat-item {
    padding: 1.35rem 1.2rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-card);
    backdrop-filter: blur(10px);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    background: linear-gradient(135deg, #fff, var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.2rem;
}

.stat-label {
    color: var(--muted);
    font-size: 0.88rem;
}

/* About */
.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: start;
    max-width: 760px;
}

.about-img {
    position: relative;
}

.about-img img {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 28px;
    border: 1px solid var(--line-strong);
}

.about-text h3 {
    font-size: 1.7rem;
    letter-spacing: -0.04em;
    margin-bottom: 1rem;
}

.about-text p {
    color: var(--muted);
    margin-bottom: 1rem;
}

.about-links {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
    margin-top: 1.6rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--bg-glass);
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.social-link:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Skills */
.skills-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.skill-category {
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-card);
}

.skill-category h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-item {
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: var(--bg-glass);
    border: 1px solid var(--line);
    font-size: 0.85rem;
    color: var(--text);
}

.skill-progress,
.progress {
    display: none;
}

/* Certificates */
.certificates-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.certificate-card {
    display: flex;
    gap: 1rem;
    padding: 1.2rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.certificate-card:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
}

.certificate-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: var(--accent-2-soft);
    color: var(--accent-2);
}

.certificate-content h3 {
    font-size: 1.02rem;
    letter-spacing: -0.02em;
    margin-bottom: 0.2rem;
}

.certificate-issuer {
    color: var(--accent);
    font-size: 0.84rem;
    font-weight: 500;
}

.certificate-date {
    color: var(--faint);
    font-size: 0.78rem;
    margin: 0.15rem 0 0.4rem;
}

.certificate-desc {
    color: var(--muted);
    font-size: 0.88rem;
}

/* Now building / featured */
.now-building {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 2.8rem;
}

.featured-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 0;
    display: grid;
    grid-template-columns: 1.25fr 0.9fr;
    background: var(--bg-card);
    min-height: 0;
}

.featured-media-wrap {
    min-height: 280px;
    height: 100%;
    background: #0b0d14;
}

.featured-media {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
}

.featured-body {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.8rem;
}

.featured-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.badge-live {
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid rgba(46, 233, 212, 0.25);
}

.badge-plugin {
    background: var(--accent-2-soft);
    color: #c4bbff;
    border: 1px solid rgba(139, 124, 255, 0.3);
}

.featured-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
    color: var(--accent);
}

.featured-card h3 {
    position: relative;
    font-size: 1.55rem;
    letter-spacing: -0.04em;
    margin: 0.9rem 0 0.5rem;
}

.featured-card p {
    position: relative;
    color: var(--muted);
    margin-bottom: 1rem;
}

.featured-tags {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.featured-tags span,
.project-tags span {
    font-size: 0.75rem;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--muted);
    background: rgba(255, 255, 255, 0.03);
}

/* Projects */
.project-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.8rem;
}

.filter-btn {
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-weight: 500;
    font-size: 0.86rem;
    transition: 0.2s var(--ease);
}

.filter-btn:hover,
.filter-btn.active {
    color: #041614;
    background: var(--accent);
    border-color: var(--accent);
}

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

.projects-extra {
    display: contents;
}

.projects-grid:not(.is-expanded) .projects-extra .project-card {
    display: none;
}

.project-card {
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
    background: var(--bg-card);
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow);
}

.project-img,
.project-cover {
    height: 168px;
    overflow: hidden;
    position: relative;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}

.project-card:hover .project-img img {
    transform: scale(1.06);
}

.project-cover {
    display: grid;
    place-items: center;
    font-size: 2rem;
    color: #fff;
}

.cover-twin { background: linear-gradient(145deg, #123c3a, #2ee9d4 140%); }
.cover-pipeline { background: linear-gradient(145deg, #1a1438, #8b7cff 140%); }
.cover-fbx { background: linear-gradient(145deg, #142033, #3b82f6 140%); }
.cover-migrate { background: linear-gradient(145deg, #1f1630, #c084fc 140%); }
.cover-packager { background: linear-gradient(145deg, #10241d, #34d399 140%); }

.project-status {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    background: rgba(7, 8, 12, 0.7);
    color: var(--accent);
    border: 1px solid rgba(46, 233, 212, 0.3);
}

.project-info {
    padding: 1.15rem 1.2rem 1.25rem;
}

.project-info h3 {
    font-size: 1.08rem;
    letter-spacing: -0.03em;
    margin-bottom: 0.45rem;
}

.project-info p {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 0.85rem;
}

.project-tags {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin-bottom: 0.95rem;
}

.project-links {
    display: flex;
    gap: 0.5rem;
}

.muted-link {
    font-size: 0.82rem;
    color: var(--faint);
}

.more-projects-btn {
    text-align: center;
    margin-top: 2.4rem;
}

.more-projects-btn .btn i {
    transition: transform 0.3s var(--ease);
}

.more-projects-btn .btn.expanded i {
    transform: rotate(180deg);
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
}

.timeline::before {
    content: "";
    position: absolute;
    width: 2px;
    background: var(--line);
    top: 0;
    bottom: 0;
    left: 18px;
}

.timeline-item {
    position: relative;
    padding: 0 0 28px 58px;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    position: absolute;
    left: 13px;
    top: 22px;
    box-shadow: 0 0 0 6px rgba(46, 233, 212, 0.12);
}

.timeline-content {
    padding: 1.25rem 1.35rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--bg-card);
}

.timeline-date {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--accent);
    margin-bottom: 0.55rem;
}

.timeline-content h3 {
    font-size: 1.18rem;
    letter-spacing: -0.03em;
}

.timeline-content h4 {
    color: var(--muted);
    font-weight: 500;
    margin-bottom: 0.7rem;
}

.timeline-content p {
    color: var(--muted);
}

.timeline-list {
    margin-top: 0.8rem;
}

.timeline-list li {
    position: relative;
    padding-left: 1rem;
    color: var(--muted);
    margin-bottom: 0.35rem;
    font-size: 0.92rem;
}

.timeline-list li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    position: absolute;
    left: 0;
    top: 0.55rem;
}

/* Contact */
.contact-info-centered {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    max-width: 760px;
    margin: 0 auto 1.4rem;
}

.contact-item {
    padding: 1.4rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-card);
    text-align: left;
}

.contact-item i {
    color: var(--accent);
    font-size: 1.15rem;
    margin-bottom: 0.7rem;
}

.contact-item h3 {
    font-size: 0.9rem;
    color: var(--muted);
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.contact-item p,
.contact-item a {
    font-size: 1.05rem;
}

.contact-social {
    display: flex;
    justify-content: center;
    gap: 0.7rem;
}

.contact-social a {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    background: var(--bg-card);
    transition: 0.2s var(--ease);
}

.contact-social a:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
}

/* Footer */
footer {
    position: relative;
    z-index: 1;
    padding: 1.6rem 0 2.2rem;
    border-top: 1px solid var(--line);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    color: var(--faint);
    font-size: 0.88rem;
}

.footer-links {
    display: flex;
    gap: 1.1rem;
    flex-wrap: wrap;
}

.footer-links a:hover { color: var(--accent); }

.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: rgba(7, 8, 12, 0.8);
    color: var(--text);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    transition: 0.25s var(--ease);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    border-color: var(--accent);
    color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

@media (max-width: 1024px) {
    .hero-grid,
    .about-content,
    .now-building,
    .skills-container,
    .certificates-container,
    .projects-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { order: -1; }
    .hero-portrait { width: min(280px, 70%); }
    .chip-cv, .chip-ue { display: none; }
    .featured-card { grid-template-columns: 1fr; }
    .featured-media,
    .featured-media-wrap { min-height: 220px; }
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }

    .nav-menu {
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        padding: 0.8rem;
        background: rgba(7, 8, 12, 0.96);
        border: 1px solid var(--line);
        border-radius: 16px;
    }

    .nav-menu.active { display: flex; }

    .nav-menu li,
    .nav-menu a {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        text-align: left;
    }

    .stats-grid,
    .about-content,
    .now-building,
    .skills-container,
    .certificates-container,
    .projects-grid,
    .contact-info-centered {
        grid-template-columns: 1fr;
    }

    .stats-grid { grid-template-columns: 1fr 1fr; }

    .hero { text-align: left; padding-top: 120px; }
    section { padding: 80px 0; }
}

@media (max-width: 560px) {
    .hero-btns { flex-direction: column; align-items: stretch; }
    .footer-content { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
}
