/* ============================================
   Wesley Builds — Portfolio
   Professional YC-inspired design
   ============================================ */

/* --- Custom Properties --- */
:root {
    --color-accent: #ff6600;
    --color-accent-hover: #e55c00;
    --color-bg: #ffffff;
    --color-bg-alt: #f8f8f8;
    --color-bg-dark: #0a0a0a;
    --color-text: #1a1a1a;
    --color-text-secondary: #666666;
    --color-text-muted: #999999;
    --color-border: #e5e5e5;
    --color-card-bg: #f5f5f5;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', 'Cascadia Code', 'Consolas', monospace;
    --max-width: 1200px;
    --nav-height: 72px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

ul { list-style: none; }

/* --- Utility --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Scroll Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    transition: all var(--transition);
    background: transparent;
}

.nav--scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    transition: color var(--transition);
}

.nav--scrolled .nav__logo {
    color: var(--color-text);
}

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

.nav__links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav__links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.01em;
    position: relative;
}

.nav--scrolled .nav__links a {
    color: var(--color-text-secondary);
}

.nav__links a:not(.nav__cta):hover {
    color: #fff;
}

.nav--scrolled .nav__links a:not(.nav__cta):hover {
    color: var(--color-text);
}

.nav__links a:not(.nav__cta)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition);
}

.nav__links a:not(.nav__cta):hover::after {
    width: 100%;
}

.nav__cta {
    background: var(--color-accent) !important;
    color: #fff !important;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    font-weight: 600 !important;
    transition: background var(--transition), transform var(--transition) !important;
}

.nav__cta:hover {
    background: var(--color-accent-hover) !important;
    transform: translateY(-1px);
}

.nav__mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav__mobile-toggle span {
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: background var(--transition);
}

.nav--scrolled .nav__mobile-toggle span {
    background: var(--color-text);
}

.nav__mobile-menu {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.nav__mobile-menu a {
    padding: 0.875rem 0;
    font-weight: 500;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
}

.nav__mobile-menu a:last-child {
    border-bottom: none;
    color: var(--color-accent);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-dark);
    overflow: hidden;
}

.hero__code-bg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    user-select: none;
}

.hero__code-bg pre {
    font-family: var(--font-mono);
    font-size: clamp(0.65rem, 1.2vw, 0.95rem);
    line-height: 2;
    color: rgba(255, 255, 255, 0.04);
    white-space: pre;
}

.c-kw { color: rgba(255, 102, 0, 0.08); }
.c-type { color: rgba(97, 175, 239, 0.08); }
.c-str { color: rgba(126, 198, 153, 0.08); }
.c-fn { color: rgba(230, 192, 123, 0.08); }

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 820px;
}

.hero__label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    padding: 0.4rem 1rem;
    border: 1px solid rgba(255, 102, 0, 0.3);
    border-radius: 100px;
}

.hero__title {
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
}

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

.hero__subtitle {
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    transition: all var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

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

.btn--primary:hover {
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 102, 0, 0.3);
}

.btn--ghost {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn--ghost:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Scroll indicator */
.hero__scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero__scroll-arrow {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* --- Sections --- */
.section {
    padding: 8rem 0;
}

.section--dark {
    background: var(--color-bg-alt);
}

.section__header {
    max-width: 680px;
    margin-bottom: 4rem;
}

.section__label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
}

.section__title {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.section__desc {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* --- Featured Projects --- */
.project-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
    padding: 3rem;
    background: var(--color-bg-alt);
    border-radius: 20px;
    border: 1px solid var(--color-border);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.project-featured:hover {
    border-color: rgba(255, 102, 0, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
}

.project-featured--reverse {
    direction: rtl;
}

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

.project-featured__meta {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.project-featured__tag {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent);
    background: rgba(255, 102, 0, 0.08);
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
}

.project-featured__title {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.project-featured__desc {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.project-featured__highlights {
    margin-bottom: 1.5rem;
}

.project-featured__highlights li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    font-size: 0.925rem;
    color: var(--color-text-secondary);
}

.project-featured__highlights li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
}

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

.project-featured__stack span {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.35rem 0.75rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    color: var(--color-text-secondary);
}

/* --- Project Mockups --- */
.project-featured__visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dashboard mockup */
.project-featured__mockup {
    width: 100%;
    max-width: 420px;
    background: var(--color-bg-dark);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.mockup__bar {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    background: #1a1a1a;
}

.mockup__bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #333;
}

.mockup__bar span:first-child { background: #ff5f57; }
.mockup__bar span:nth-child(2) { background: #febc2e; }
.mockup__bar span:last-child { background: #28c840; }

.mockup__content {
    padding: 1.5rem;
}

.mockup__chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 120px;
    margin-bottom: 1.25rem;
}

.mockup__chart-bar {
    flex: 1;
    background: #222;
    border-radius: 4px 4px 0 0;
    transition: height 1s ease;
}

.mockup__chart-bar--accent {
    background: var(--color-accent);
}

.mockup__metrics {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.mockup__metric {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mockup__metric-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: #555;
    width: 32px;
}

.mockup__metric-num {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--color-accent);
    font-weight: 700;
    width: 45px;
}

.mockup__metric-bar {
    flex: 1;
    height: 4px;
    background: #222;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.mockup__metric-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 65%;
    background: var(--color-accent);
    border-radius: 2px;
    animation: metricFill 2s ease-out;
}

.mockup__metric:nth-child(2) .mockup__metric-bar::after { width: 45%; }
.mockup__metric:nth-child(3) .mockup__metric-bar::after { width: 80%; }

@keyframes metricFill {
    from { width: 0; }
}

/* Phone mockup */
.project-featured__phone {
    width: 220px;
    height: 420px;
    background: var(--color-bg-dark);
    border-radius: 32px;
    border: 3px solid #333;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}

.phone__notch {
    width: 100px;
    height: 24px;
    background: #000;
    border-radius: 0 0 16px 16px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.phone__content {
    padding: 1rem;
    height: calc(100% - 24px);
    display: flex;
    flex-direction: column;
}

.phone__map {
    flex: 1;
    background: #141414;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.phone__map-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.phone__map-pin-wrap {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.phone__map-pin {
    width: 14px;
    height: 14px;
    background: var(--color-accent);
    border-radius: 50%;
    border: 3px solid rgba(255, 102, 0, 0.4);
    position: relative;
    z-index: 2;
}

.phone__map-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255, 102, 0, 0.3);
    border-radius: 50%;
    animation: pulse 2s ease-out infinite;
    z-index: 1;
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

.phone__map-contact {
    position: absolute;
    top: 28%;
    left: 30%;
}

.phone__map-contact-dot {
    width: 10px;
    height: 10px;
    background: #3b82f6;
    border-radius: 50%;
    border: 2px solid rgba(59, 130, 246, 0.3);
}

.phone__status-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-top: 0.5rem;
}

.phone__status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #666;
}

.phone__status-dot--active {
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
}

.phone__status-text {
    font-size: 0.55rem;
    color: #888;
    font-weight: 500;
}

.phone__sos {
    margin-top: 0.5rem;
    background: #dc2626;
    color: white;
    text-align: center;
    padding: 0.625rem;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.1em;
}

/* --- Projects CTA --- */
.projects-cta {
    margin-top: 2rem;
}

.projects-cta__inner {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--color-bg-alt);
    border-radius: 20px;
    border: 1px dashed var(--color-border);
}

.projects-cta__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 102, 0, 0.08);
    color: var(--color-accent);
    border-radius: 16px;
    margin: 0 auto 1.5rem;
}

.projects-cta__title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.projects-cta__text {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    max-width: 560px;
    margin: 0 auto 2rem;
}

/* --- About --- */
.about {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about__sidebar {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about__photo img {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 15%;
}

.about__photo--mobile {
    display: none;
    text-align: center;
    margin-bottom: 2rem;
}

.about__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.about__lead {
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1.6;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

.about__story p {
    color: var(--color-text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.about__story strong {
    color: var(--color-text);
    font-weight: 600;
}

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

.about__detail-card h4 {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    margin-bottom: 1.25rem;
}

.about__detail-item {
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--color-border);
}

.about__detail-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.about__detail-title {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text);
}

.about__detail-sub {
    display: block;
    font-size: 0.825rem;
    color: var(--color-text-muted);
    margin-top: 0.15rem;
}

/* --- Tech Stack --- */
.stack {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stack__category-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

.stack__items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stack__item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    border-radius: 12px;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    transition: all var(--transition);
    font-weight: 500;
    font-size: 0.925rem;
}

.stack__item:hover {
    border-color: rgba(255, 102, 0, 0.3);
    transform: translateX(4px);
}

.stack__item--highlight {
    background: rgba(255, 102, 0, 0.05);
    border-color: rgba(255, 102, 0, 0.2);
}

.stack__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-dark);
    color: var(--color-accent);
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* --- Numbers / Social Proof --- */
.numbers {
    padding: 4rem 0;
    border-bottom: 1px solid var(--color-border);
}

.numbers__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.numbers__value {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.numbers__label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* --- Contact --- */
.contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

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

.form__group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form__group label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-secondary);
}

.form__group input,
.form__group textarea {
    padding: 0.875rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    background: var(--color-bg);
    color: var(--color-text);
    transition: border-color var(--transition);
    outline: none;
    resize: vertical;
}

.form__group input:focus,
.form__group textarea:focus {
    border-color: var(--color-accent);
}

.form__group input::placeholder,
.form__group textarea::placeholder {
    color: var(--color-text-muted);
}

.btn--full {
    width: 100%;
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact__info-text {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.contact__links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact__card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--color-bg);
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    transition: all var(--transition);
}

.contact__card:hover {
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.contact__card-icon {
    color: var(--color-accent);
    display: flex;
    align-items: center;
}

.contact__card-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    margin-bottom: 0.1rem;
}

.contact__card-value {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text);
}

/* --- Footer --- */
.footer {
    padding: 2rem 0;
    border-top: 1px solid var(--color-border);
}

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

.footer__logo {
    font-weight: 800;
    font-size: 1.1rem;
}

.footer__copy {
    color: var(--color-text-muted);
    font-size: 0.825rem;
}

/* --- Loading Screen --- */
.loading-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: var(--color-bg-dark);
    color: var(--color-accent);
}

.loading-code {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    animation: loadPulse 1.5s ease-in-out infinite;
}

@keyframes loadPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.loading-text {
    color: #666;
    font-size: 0.85rem;
    font-weight: 500;
}

/* --- Blazor Error UI --- */
#blazor-error-ui {
    background: var(--color-accent);
    color: white;
    bottom: 0;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 2000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

#blazor-error-ui a {
    color: white;
    text-decoration: underline;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .project-featured {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .project-featured--reverse {
        direction: ltr;
    }

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

    .contact {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
    }

    .section {
        padding: 5rem 0;
    }

    .container {
        padding: 0 1.5rem;
    }

    .nav__links {
        display: none;
    }

    .nav__mobile-toggle {
        display: flex;
    }

    .about {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .about__photo--mobile {
        display: block;
    }

    .about__sidebar {
        display: none;
    }

    .about__photo--mobile img {
        width: 180px;
        height: 180px;
    }

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

    .contact {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

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

    .contact__card {
        width: 100%;
        max-width: 360px;
    }

    .footer__inner {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .project-featured {
        padding: 2rem;
        margin-bottom: 3rem;
    }

    .project-featured__title {
        font-size: 1.75rem;
    }

    .hero__scroll-indicator {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .projects-cta__inner {
        padding: 2.5rem 1.5rem;
    }

    .hero__actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }
}
