/* ===================================================================
 *  Mohamad Al Kayal — Portfolio v2
 * =================================================================== */

/* -------------------------------------------------------------------
 * # Custom Properties
 * ------------------------------------------------------------------- */
:root {
    --bg-primary: #0c0c0e;
    --bg-card: #151518;
    --bg-elevated: #1c1c20;
    --bg-hover: #222226;
    --accent: #7B73FF;
    --accent-bright: #A29BFE;
    --accent-cyan: #64DFDF;
    --accent-gradient: linear-gradient(135deg, var(--accent) 0%, var(--accent-cyan) 100%);
    --text-1: #EAEAEC;
    --text-2: #A8A8B3;
    --text-3: #6B6B76;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --font-heading: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.25, 1, 0.5, 1);
    --t-fast: 0.3s var(--ease-smooth);
    --t-medium: 0.6s var(--ease-out);
    --max-w: 1200px;
    --pad: 2.5rem;
    --radius: 14px;
    --section-gap: 10rem;
}

@media (max-width: 768px) {
    :root {
        --pad: 1.25rem;
        --section-gap: 6rem;
    }
}

/* -------------------------------------------------------------------
 * # Reset
 * ------------------------------------------------------------------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html.lenis, html.lenis body { height: auto; }

body {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-1);
    background: var(--bg-primary);
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast); }
button { border: none; background: none; cursor: pointer; font-family: inherit; color: inherit; }
ul, ol { list-style: none; }
strong { font-weight: 600; color: var(--text-1); }
::selection { background: var(--accent); color: #fff; }

/* -------------------------------------------------------------------
 * # Layout
 * ------------------------------------------------------------------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad); }

/* -------------------------------------------------------------------
 * # Section Headers
 * ------------------------------------------------------------------- */
.section-header { margin-bottom: 4rem; }
.section-header--center { text-align: center; }
.section-header--center .section-desc { margin-left: auto; margin-right: auto; }

.section-count {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
    display: block;
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-1);
}

.section-desc {
    font-size: 1.0625rem;
    color: var(--text-2);
    margin-top: 0.75rem;
    max-width: 480px;
}

/* -------------------------------------------------------------------
 * # Buttons
 * ------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    border-radius: 50px;
    transition: all var(--t-fast);
}

.btn--primary {
    background: var(--accent-gradient);
    color: #fff;
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(123, 115, 255, 0.35);
}

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

.btn--ghost:hover {
    border-color: var(--accent);
    color: var(--accent-bright);
    transform: translateY(-2px);
}

/* -------------------------------------------------------------------
 * # Preloader
 * ------------------------------------------------------------------- */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader__content { text-align: center; }

.preloader__text {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: 0.05em;
    overflow: hidden;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.preloader__text .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%) rotateX(-80deg);
}

.preloader__bar {
    width: 120px;
    height: 2px;
    background: var(--bg-elevated);
    margin: 1.5rem auto 0;
    border-radius: 2px;
    overflow: hidden;
}

.preloader__bar-inner {
    width: 0%;
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* -------------------------------------------------------------------
 * # Custom Cursor
 * ------------------------------------------------------------------- */
.cursor { display: none; pointer-events: none; position: fixed; z-index: 9998; mix-blend-mode: difference; }

@media (hover: hover) and (pointer: fine) {
    .cursor { display: block; }
    body, a, button, [role="button"], input, select, textarea, .magnetic { cursor: none; }
}

.cursor__dot {
    position: fixed; top: -4px; left: -4px;
    width: 8px; height: 8px;
    background: #fff; border-radius: 50%;
    pointer-events: none; z-index: 9999;
}

.cursor__circle {
    position: fixed; top: -20px; left: -20px;
    width: 40px; height: 40px;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 50%;
    pointer-events: none; z-index: 9998;
    transition: width 0.3s var(--ease-smooth), height 0.3s var(--ease-smooth),
                top 0.3s var(--ease-smooth), left 0.3s var(--ease-smooth),
                border-color 0.3s ease, background 0.3s ease;
}

.cursor--hover .cursor__circle {
    width: 60px; height: 60px; top: -30px; left: -30px;
    border-color: var(--accent);
    background: rgba(123, 115, 255, 0.08);
}

/* -------------------------------------------------------------------
 * # Navigation
 * ------------------------------------------------------------------- */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.25rem var(--pad);
    transition: all var(--t-fast);
}

@media (min-width: 769px) { .nav { padding: 1.25rem 3rem; } }

.nav--scrolled {
    background: rgba(12, 12, 14, 0.88);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
}

.nav__logo {
    font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800;
    color: var(--text-1); z-index: 101; position: relative;
}
.nav__logo:hover { color: var(--accent-bright); }

.nav__links { display: flex; gap: 2.5rem; }
@media (max-width: 768px) { .nav__links { display: none; } }

.nav__link {
    font-size: 0.75rem; font-weight: 500; text-transform: uppercase;
    letter-spacing: 0.15em; color: var(--text-2); position: relative; padding: 0.25rem 0;
}
.nav__link::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 1px;
    background: var(--accent); transform: scaleX(0); transform-origin: right;
    transition: transform 0.4s var(--ease-out);
}
.nav__link:hover { color: var(--text-1); }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__socials { display: flex; gap: 0.75rem; align-items: center; }
@media (max-width: 768px) { .nav__socials { display: none; } }
.nav__socials a {
    color: var(--text-3); transition: color var(--t-fast);
    display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%;
}
.nav__socials a:hover { color: var(--text-1); }

.nav__toggle { display: none; flex-direction: column; gap: 6px; padding: 8px; z-index: 101; }
@media (max-width: 768px) { .nav__toggle { display: flex; } }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--text-1); transition: all var(--t-fast); transform-origin: center; }
.nav__toggle--active span:first-child { transform: rotate(45deg) translate(3px, 3px); }
.nav__toggle--active span:last-child { transform: rotate(-45deg) translate(3px, -3px); }

/* Mobile Menu */
.mobile-menu {
    position: fixed; inset: 0; z-index: 99; background: var(--bg-primary);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3rem;
    opacity: 0; visibility: hidden; transition: all var(--t-medium);
}
.mobile-menu--open { opacity: 1; visibility: visible; }
.mobile-menu__nav { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.mobile-menu__link {
    font-family: var(--font-heading); font-size: clamp(2rem, 6vw, 3rem); font-weight: 800;
    color: var(--text-1); opacity: 0; transform: translateY(30px); transition: all var(--t-medium);
}
.mobile-menu--open .mobile-menu__link { opacity: 1; transform: translateY(0); }
.mobile-menu--open .mobile-menu__link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu--open .mobile-menu__link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu--open .mobile-menu__link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu--open .mobile-menu__link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu__link:hover { color: var(--accent-bright); }
.mobile-menu__socials {
    display: flex; gap: 2rem; opacity: 0; transform: translateY(20px);
    transition: all var(--t-medium); transition-delay: 0.3s;
}
.mobile-menu--open .mobile-menu__socials { opacity: 1; transform: translateY(0); }
.mobile-menu__socials a { font-size: 0.875rem; font-weight: 500; color: var(--text-2); }
.mobile-menu__socials a:hover { color: var(--accent-bright); }

/* -------------------------------------------------------------------
 * # Hero
 * ------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 8rem 0 4rem;
}

.hero__bg { position: absolute; inset: 0; overflow: hidden; }

.hero__orb {
    position: absolute; border-radius: 50%;
    filter: blur(120px); opacity: 0.25;
}
.hero__orb--1 {
    width: 600px; height: 600px; background: var(--accent);
    top: -15%; right: 10%;
    animation: float-1 25s ease-in-out infinite;
}
.hero__orb--2 {
    width: 450px; height: 450px; background: var(--accent-cyan);
    bottom: -15%; left: -5%;
    animation: float-2 30s ease-in-out infinite;
}

.hero__noise {
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    background-repeat: repeat; background-size: 256px; pointer-events: none;
}

.hero__container {
    position: relative; z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 900px) {
    .hero__container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
}

/* Hero Left */
.hero__badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.75rem; font-weight: 500; color: var(--accent-cyan);
    background: rgba(100, 223, 223, 0.08);
    border: 1px solid rgba(100, 223, 223, 0.15);
    padding: 0.4rem 1rem; border-radius: 50px;
    margin-bottom: 2rem;
    letter-spacing: 0.03em;
}

.hero__badge-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent-cyan);
    animation: pulse-dot 2s ease-in-out infinite;
}

.hero__title {
    margin-bottom: 1.5rem;
}

.hero__title-line {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--text-1);
}

.hero__title-accent {
    color: var(--accent);
}

.hero__desc {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--text-2);
    max-width: 520px;
    margin-bottom: 1rem;
}

@media (max-width: 900px) {
    .hero__desc { margin-left: auto; margin-right: auto; }
}

.hero__subtitle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 2rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
}

@media (max-width: 900px) {
    .hero__subtitle { justify-content: center; }
}

.hero__subtitle-rotate { color: var(--accent-bright); }
.hero__cursor { color: var(--accent-bright); animation: blink 1s step-end infinite; font-weight: 300; }

.hero__ctas { display: flex; gap: 0.75rem; flex-wrap: wrap; }
@media (max-width: 900px) { .hero__ctas { justify-content: center; } }

/* Hero Right — Stats Grid */
.hero__right {
    display: flex;
    justify-content: center;
}

.hero__stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    max-width: 340px;
    width: 100%;
}

.hero__stat {
    background: var(--bg-card);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: background var(--t-fast);
}

.hero__stat:hover {
    background: var(--bg-elevated);
}

.hero__stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-1);
}

.hero__stat-suffix {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.hero__stat-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.5rem;
    line-height: 1.4;
}

/* Hero Scroll */
.hero__scroll {
    position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 0.75rem; z-index: 1;
}
.hero__scroll span {
    font-size: 0.65rem; font-weight: 500; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--text-3);
}
.hero__scroll-line {
    width: 1px; height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scroll-line 2s ease-in-out infinite;
}

/* -------------------------------------------------------------------
 * # About
 * ------------------------------------------------------------------- */
.about {
    padding: var(--section-gap) 0;
    position: relative;
}

.about__content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: start;
}

@media (max-width: 768px) {
    .about__content { grid-template-columns: 1fr; gap: 3rem; }
}

.about__bio {
    font-size: 1.0625rem;
    line-height: 1.85;
    color: var(--text-2);
}
.about__bio p { margin-bottom: 1.25rem; }

.about__lead {
    font-size: 1.375rem !important;
    line-height: 1.5 !important;
    color: var(--text-1) !important;
    font-weight: 400;
    margin-bottom: 1.5rem !important;
}

.about__aside {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

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

.about__detail-card h3 {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-3);
    margin-bottom: 0.75rem;
}

.about__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.about__tags span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 0.3rem 0.65rem;
    background: var(--bg-elevated);
    color: var(--text-2);
    border-radius: 6px;
    border: 1px solid var(--border);
    transition: all var(--t-fast);
}

.about__tags span:hover {
    border-color: var(--accent);
    color: var(--accent-bright);
}

.about__location {
    font-size: 1rem;
    color: var(--text-1);
    font-weight: 500;
}

/* Tech Marquee */
.marquee {
    margin-top: 5rem;
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 0;
}

.marquee__track {
    display: flex; width: max-content;
    animation: marquee 35s linear infinite;
}

.marquee__item {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-3);
    white-space: nowrap;
    padding: 0 0.75rem;
    transition: color var(--t-fast);
}

.marquee__sep {
    color: var(--accent);
    padding: 0 0.5rem;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    opacity: 0.5;
}

.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee:hover .marquee__item { color: var(--text-2); }

/* -------------------------------------------------------------------
 * # Experience
 * ------------------------------------------------------------------- */
.experience {
    padding: var(--section-gap) 0;
    padding-bottom: 3rem;
    overflow: hidden;
}

.experience__wrapper { margin-top: 2rem; overflow: visible; }
@media (max-width: 768px) {
    .experience__wrapper { overflow: hidden; padding: 0 var(--pad); }
}

.experience__track { display: flex; gap: 1.5rem; padding: 1rem 0; }
@media (max-width: 768px) { .experience__track { flex-direction: column; gap: 1rem; } }

.experience__card { min-width: min(480px, 82vw); flex-shrink: 0; }
@media (max-width: 768px) { .experience__card { min-width: 100%; width: 100%; } }

.experience__card-inner {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    height: 100%;
    transition: all var(--t-fast);
    position: relative;
    overflow: hidden;
}
@media (max-width: 768px) { .experience__card-inner { padding: 1.25rem; } }

.experience__card-inner::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: var(--accent-gradient); opacity: 0; transition: opacity var(--t-fast);
}

.experience__card-inner:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}

.experience__card-inner:hover::before { opacity: 1; }

.experience__tag {
    display: inline-block; font-family: var(--font-mono);
    font-size: 0.65rem; color: var(--accent-cyan);
    background: rgba(100, 223, 223, 0.08);
    border: 1px solid rgba(100, 223, 223, 0.12);
    padding: 0.2rem 0.6rem; border-radius: 20px;
    margin-bottom: 1rem; letter-spacing: 0.05em; text-transform: uppercase;
}
.experience__tag--edu { color: #FF8A80; background: rgba(255,138,128,0.08); border-color: rgba(255,138,128,0.12); }

.experience__meta { display: flex; gap: 1rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.experience__date, .experience__location { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-3); }
.experience__location::before {
    content: ''; display: inline-block; width: 3px; height: 3px;
    background: var(--text-3); border-radius: 50%; margin-right: 0.5rem; vertical-align: middle;
}

.experience__company {
    font-family: var(--font-heading); font-size: 1.375rem; font-weight: 700;
    margin-bottom: 0.25rem; line-height: 1.3; color: var(--text-1);
}

.experience__role {
    font-size: 0.9375rem; font-weight: 400;
    color: var(--accent-bright); margin-bottom: 1.25rem;
}

.experience__details { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.25rem; }
.experience__details li {
    font-size: 0.875rem; color: var(--text-2);
    padding-left: 1rem; position: relative; line-height: 1.65;
}
.experience__details li::before {
    content: ''; position: absolute; left: 0; top: 0.6em;
    width: 4px; height: 4px; background: var(--accent); border-radius: 50%;
}

.experience__tech { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.experience__tech span {
    font-family: var(--font-mono); font-size: 0.65rem;
    padding: 0.2rem 0.55rem; background: rgba(123,115,255,0.08);
    border: 1px solid rgba(123,115,255,0.12); color: var(--accent-bright);
    border-radius: 4px;
}

.experience__cert-detail { font-size: 0.875rem; color: var(--text-2); margin-top: 0.75rem; line-height: 1.6; }
.experience__card--edu .experience__card-inner { background: transparent; border-style: dashed; border-color: var(--border); }

.experience__progress {
    height: 2px; background: var(--bg-elevated);
    margin-top: 2rem; border-radius: 2px; overflow: hidden;
}
@media (max-width: 768px) { .experience__progress { display: none; } }
.experience__progress-bar { height: 100%; width: 0%; background: var(--accent-gradient); border-radius: 2px; }

/* -------------------------------------------------------------------
 * # Portfolio
 * ------------------------------------------------------------------- */
.portfolio {
    padding: var(--section-gap) 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* Featured Projects */
.portfolio__featured {
    display: flex; flex-direction: column; gap: 2rem;
    margin-bottom: 5rem;
}

.project--featured {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 2.5rem; align-items: center;
    padding: 2rem; border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-primary);
    transition: all var(--t-fast);
}
.project--featured:hover {
    border-color: var(--border-hover);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .project--featured { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.25rem; }
    .project--reverse { direction: ltr; }
}

.project--reverse { direction: rtl; }
.project--reverse > * { direction: ltr; }

.project__image {
    overflow: hidden; border-radius: 10px;
    background: var(--bg-elevated);
    aspect-ratio: 3/2;
    display: flex; align-items: center; justify-content: center;
    padding: 1.5rem;
}

.project__image img {
    width: 100%; height: 100%;
    object-fit: contain;
    transition: transform 0.8s var(--ease-out);
    border-radius: 6px;
}

.project--featured:hover .project__image img { transform: scale(1.04); }

.project__info { padding: 0.5rem 0; }

.project__number {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent);
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.5rem;
}

.project__title {
    font-family: var(--font-heading);
    font-size: clamp(1.375rem, 2.5vw, 1.75rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
    line-height: 1.2;
    color: var(--text-1);
}

.project__desc {
    font-size: 0.9375rem;
    color: var(--text-2);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.project__tech { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.25rem; }
.project__tech span {
    font-family: var(--font-mono); font-size: 0.65rem;
    padding: 0.2rem 0.55rem; background: rgba(123,115,255,0.08);
    border: 1px solid rgba(123,115,255,0.12); color: var(--accent-bright);
    border-radius: 4px;
}

.project__link-text {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: 0.8125rem; font-weight: 500;
    color: var(--text-3); transition: all var(--t-fast);
}
.project--featured:hover .project__link-text { color: var(--accent-bright); }
.project__link-text svg { transition: transform var(--t-fast); }
.project--featured:hover .project__link-text svg { transform: translate(3px, -3px); }

/* Project Grid */
.portfolio__grid-heading {
    font-family: var(--font-heading);
    font-size: 1.125rem; font-weight: 700;
    margin-bottom: 1.5rem; color: var(--text-2);
}

.portfolio__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

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

.project-card {
    display: flex; align-items: center; gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-primary);
    transition: all var(--t-fast);
    position: relative;
}

.project-card:hover {
    background: var(--bg-elevated);
}

.project-card__img {
    width: 56px; height: 56px; flex-shrink: 0;
    border-radius: 10px; overflow: hidden;
    background: var(--bg-elevated);
    display: flex; align-items: center; justify-content: center;
    padding: 6px;
    border: 1px solid var(--border);
}

.project-card__img img {
    width: 100%; height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.project-card__body { flex: 1; min-width: 0; }

.project-card__body h4 {
    font-family: var(--font-heading);
    font-size: 0.9375rem; font-weight: 700;
    color: var(--text-1);
    margin-bottom: 0.15rem;
    line-height: 1.3;
}

.project-card__body p {
    font-size: 0.8rem;
    color: var(--text-3);
    line-height: 1.4;
}

.project-card__arrow {
    color: var(--text-3);
    flex-shrink: 0;
    opacity: 0;
    transform: translate(-4px, 4px);
    transition: all var(--t-fast);
}

.project-card:hover .project-card__arrow {
    opacity: 1;
    transform: translate(0, 0);
}

.project-card:hover .project-card__body h4 { color: var(--accent-bright); }

/* -------------------------------------------------------------------
 * # Contact
 * ------------------------------------------------------------------- */
.contact {
    padding: var(--section-gap) 0;
    text-align: center;
}

.contact__content {
    max-width: 650px;
    margin: 0 auto 3.5rem;
}

.contact__lead {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    color: var(--text-2);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.contact__email {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4.5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.2;
    background: var(--accent-gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all var(--t-fast);
}
.contact__email:hover { filter: brightness(1.15); transform: scale(1.02); }

.contact__socials {
    display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap;
}

.contact__social {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.875rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text-2);
    transition: all var(--t-fast);
    font-size: 0.8125rem; font-weight: 500;
}
.contact__social:hover {
    border-color: var(--accent); color: var(--text-1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(123,115,255,0.12);
}
.contact__social svg { flex-shrink: 0; }

/* -------------------------------------------------------------------
 * # Footer
 * ------------------------------------------------------------------- */
.footer { padding: 2rem 0; border-top: 1px solid var(--border); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; }
.footer__copy { font-size: 0.8rem; color: var(--text-3); }
.footer__top {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border); border-radius: 50%;
    color: var(--text-3); transition: all var(--t-fast);
}
.footer__top:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* -------------------------------------------------------------------
 * # Keyframes
 * ------------------------------------------------------------------- */
@keyframes float-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-40px, 30px) scale(1.05); }
    66% { transform: translate(30px, -20px) scale(0.95); }
}
@keyframes float-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -30px) scale(1.08); }
}
@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}
@keyframes scroll-line {
    0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
    30% { opacity: 1; transform: scaleY(1); transform-origin: top; }
    60% { opacity: 1; transform: scaleY(1); transform-origin: bottom; }
    100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* -------------------------------------------------------------------
 * # Reduced Motion
 * ------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    .hero__orb, .marquee__track, .hero__scroll-line, .hero__cursor, .hero__badge-dot { animation: none !important; }
    .cursor { display: none !important; }
}
