/* ============================================
   Adam G Brown - Premium Personal Website
   ============================================ */

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

:root {
    --color-bg: #0a0a0f;
    --color-bg-alt: #0f0f18;
    --color-surface: #14141f;
    --color-surface-hover: #1a1a2e;
    --color-border: rgba(255, 255, 255, 0.06);
    --color-border-hover: rgba(255, 255, 255, 0.12);
    --color-text: #e4e4e7;
    --color-text-muted: #8b8b9e;
    --color-text-faint: #52526b;
    --color-white: #ffffff;
    --color-accent: #6366f1;
    --color-accent-light: #818cf8;
    --color-accent-glow: rgba(99, 102, 241, 0.15);
    --color-accent-2: #06b6d4;
    --color-accent-3: #10b981;
    --color-gradient: linear-gradient(135deg, #6366f1, #06b6d4);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.1);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Light Theme --- */
[data-theme="light"] {
    --color-bg: #f8f9fc;
    --color-bg-alt: #f0f1f5;
    --color-surface: #ffffff;
    --color-surface-hover: #f0f0f5;
    --color-border: rgba(0, 0, 0, 0.08);
    --color-border-hover: rgba(0, 0, 0, 0.15);
    --color-text: #1a1a2e;
    --color-text-muted: #5a5a72;
    --color-text-faint: #8b8b9e;
    --color-white: #1a1a2e;
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.06);
}

[data-theme="light"] .bg-grid {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
}

[data-theme="light"] .bg-glow--1 {
    background: rgba(99, 102, 241, 0.04);
}

[data-theme="light"] .bg-glow--2 {
    background: rgba(6, 182, 212, 0.03);
}

[data-theme="light"] .nav--scrolled {
    background: rgba(248, 249, 252, 0.9);
}

[data-theme="light"] .article-modal__overlay {
    background: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .project-card__tech span {
    background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .hero__orb-core {
    box-shadow: 0 0 60px rgba(99, 102, 241, 0.25), 0 0 120px rgba(99, 102, 241, 0.1);
}

[data-theme="light"] .project-card__logo img {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .btn--primary {
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.2);
}

[data-theme="light"] .btn--primary:hover {
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3);
}

[data-theme="light"] .nav__logo-mark {
    -webkit-text-fill-color: transparent;
}

[data-theme="light"] .stat-card__number {
    -webkit-text-fill-color: transparent;
}

/* --- Theme Toggle Button --- */
.theme-toggle {
    background: none;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-text-muted);
    transition: var(--transition);
    padding: 0;
    flex-shrink: 0;
}

.theme-toggle:hover {
    color: var(--color-white);
    border-color: var(--color-border-hover);
    background: var(--color-accent-glow);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
}

.theme-toggle__sun { display: none; }
.theme-toggle__moon { display: block; }

[data-theme="light"] .theme-toggle__sun { display: block; }
[data-theme="light"] .theme-toggle__moon { display: none; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

/* --- Ambient Background --- */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}

.bg-glow--1 {
    width: 600px;
    height: 600px;
    background: rgba(99, 102, 241, 0.07);
    top: -200px;
    right: -100px;
}

.bg-glow--2 {
    width: 500px;
    height: 500px;
    background: rgba(6, 182, 212, 0.05);
    bottom: -150px;
    left: -100px;
}

/* --- Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.nav--scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    padding: 12px 0;
}

.nav__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    text-decoration: none;
}

.nav__logo-mark {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-white);
    background: var(--color-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav__links a {
    text-decoration: none;
    color: var(--color-text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
    letter-spacing: 0.01em;
}

.nav__links a:hover {
    color: var(--color-white);
}

.nav__cta {
    padding: 8px 20px !important;
    border: 1px solid var(--color-border-hover);
    border-radius: var(--radius-sm);
    background: var(--color-accent-glow);
}

.nav__cta:hover {
    border-color: var(--color-accent) !important;
    background: rgba(99, 102, 241, 0.2) !important;
}

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

.nav__toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: var(--transition);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    letter-spacing: 0.01em;
}

.btn--primary {
    background: var(--color-gradient);
    color: var(--color-white);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.4);
}

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

.btn--outline:hover {
    border-color: var(--color-accent);
    color: var(--color-white);
    background: var(--color-accent-glow);
}

.btn--full {
    width: 100%;
    justify-content: center;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
}

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

.hero__badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-accent-light);
    background: var(--color-accent-glow);
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    margin-bottom: 24px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero__title {
    margin-bottom: 24px;
}

.hero__title-line {
    display: block;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--color-white);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero__title-accent {
    display: block;
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    font-weight: 400;
    color: var(--color-text-muted);
    margin-top: 12px;
    line-height: 1.4;
}

.hero__subtitle {
    font-size: 1.0625rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    max-width: 520px;
    line-height: 1.8;
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero Orb Animation */
.hero__visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__orb {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__orb-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid;
    animation: orbit 20s linear infinite;
}

.hero__orb-ring--1 {
    width: 300px;
    height: 300px;
    border-color: rgba(99, 102, 241, 0.15);
    animation-duration: 25s;
}

.hero__orb-ring--2 {
    width: 220px;
    height: 220px;
    border-color: rgba(6, 182, 212, 0.15);
    animation-duration: 18s;
    animation-direction: reverse;
}

.hero__orb-ring--3 {
    width: 140px;
    height: 140px;
    border-color: rgba(16, 185, 129, 0.15);
    animation-duration: 12s;
}

.hero__orb-ring::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: currentColor;
    border-radius: 50%;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 20px currentColor;
}

.hero__orb-ring--1::after { color: var(--color-accent); }
.hero__orb-ring--2::after { color: var(--color-accent-2); }
.hero__orb-ring--3::after { color: var(--color-accent-3); }

.hero__orb-core {
    width: 60px;
    height: 60px;
    background: var(--color-gradient);
    border-radius: 50%;
    box-shadow: 0 0 60px rgba(99, 102, 241, 0.4), 0 0 120px rgba(99, 102, 241, 0.2);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes orbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* --- Sections --- */
.section {
    padding: 120px 0;
    position: relative;
}

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

.section__header {
    margin-bottom: 64px;
}

.section__label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-accent-light);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section__title {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 800;
    color: var(--color-white);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 12px;
}

.section__subtitle {
    font-size: 1.0625rem;
    color: var(--color-text-muted);
    max-width: 600px;
    line-height: 1.7;
}

/* --- About Section --- */
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.about__lead {
    font-size: 1.1875rem;
    color: var(--color-text);
    font-weight: 400;
    line-height: 1.8;
    margin-bottom: 24px;
}

.about__text p {
    color: var(--color-text-muted);
    margin-bottom: 16px;
    line-height: 1.8;
}

.about__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.stat-card__number {
    display: block;
    font-size: 2.25rem;
    font-weight: 800;
    background: var(--color-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.stat-card__label {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* --- Timeline (CV) --- */
.timeline {
    position: relative;
    padding-left: 40px;
    margin-bottom: 80px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: linear-gradient(to bottom, var(--color-accent), var(--color-accent-2), transparent);
}

.timeline__item {
    position: relative;
    padding-bottom: 48px;
}

.timeline__item:last-child {
    padding-bottom: 0;
}

.timeline__marker {
    position: absolute;
    left: -40px;
    top: 8px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--color-bg-alt);
    border: 2px solid var(--color-accent);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.3);
}

.timeline__date {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--color-accent-light);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.timeline__role {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.timeline__company {
    font-size: 0.9375rem;
    color: var(--color-accent-2);
    font-weight: 500;
    margin-bottom: 12px;
}

.timeline__desc {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    max-width: 640px;
}

.cv__skills {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 48px;
}

.cv__skills-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 24px;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-tag {
    padding: 10px 20px;
    background: var(--color-accent-glow);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-accent-light);
    transition: var(--transition);
}

.skill-tag:hover {
    border-color: var(--color-accent);
    background: rgba(99, 102, 241, 0.2);
    transform: translateY(-1px);
}

/* --- Articles (Thought Leadership) --- */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.article-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: var(--transition);
    cursor: pointer;
}

.article-card:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}

.article-card--featured {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(6, 182, 212, 0.05));
    border-color: rgba(99, 102, 241, 0.15);
}

.article-card__tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--color-accent-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    padding: 4px 10px;
    background: var(--color-accent-glow);
    border-radius: 4px;
}

.article-card__title {
    font-size: 1.1875rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
    line-height: 1.4;
}

.article-card__excerpt {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.article-card__meta {
    display: flex;
    gap: 16px;
    align-items: center;
    font-size: 0.8125rem;
    color: var(--color-text-faint);
}

.article-card__link {
    font-weight: 600;
    color: var(--color-accent-light);
    text-decoration: none;
    transition: var(--transition);
}

.article-card__link:hover {
    color: var(--color-white);
}

/* --- Projects --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.project-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-gradient);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

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

.project-card:hover::before {
    opacity: 1;
}

/* Featured project spans full width */
.project-card--featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
}

.project-card--featured .project-card__screenshot {
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    min-height: 340px;
}

.project-card--featured .project-card__body {
    padding: 40px;
}

/* Screenshot area */
.project-card__screenshot {
    position: relative;
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.06), rgba(6, 182, 212, 0.04));
    border-bottom: 1px solid var(--color-border);
    min-height: 220px;
    overflow: hidden;
}

.project-card--featured .project-card__screenshot {
    border-bottom: none;
    border-right: 1px solid var(--color-border);
}

.project-card__screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
    display: block;
    position: absolute;
    inset: 0;
}

.project-card__screenshot-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: inherit;
    gap: 12px;
    color: var(--color-text-faint);
}

.project-card__screenshot-placeholder svg {
    width: 48px;
    height: 48px;
    opacity: 0.4;
}

.project-card__screenshot-placeholder span {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.5;
}

/* Card body */
.project-card__body {
    padding: 28px 32px 32px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Logo placeholder */
.project-card__logo {
    margin-bottom: 16px;
    margin-top: -36px;
    position: relative;
    z-index: 2;
}

.project-card__logo img {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--color-white);
    border: 2px solid var(--color-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.project-card__logo-placeholder {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-faint);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.project-card__logo-placeholder svg {
    width: 28px;
    height: 28px;
    opacity: 0.5;
}

.project-card__category {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--color-accent-2);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 8px;
}

.project-card__title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.project-card__desc {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}

.project-card__tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.project-card__tech span {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-faint);
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 100px;
    border: 1px solid var(--color-border);
}

.project-card__link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-accent-light);
    text-decoration: none;
    transition: var(--transition);
}

.project-card__link:hover {
    color: var(--color-white);
}

/* --- Feed --- */
.feed-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feed-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 28px;
    transition: var(--transition);
}

.feed-card:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.feed-card__source {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.feed-card__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.feed-card__dot--crm { background: var(--color-accent); box-shadow: 0 0 8px var(--color-accent); }
.feed-card__dot--ai { background: var(--color-accent-3); box-shadow: 0 0 8px var(--color-accent-3); }
.feed-card__dot--martech { background: var(--color-accent-2); box-shadow: 0 0 8px var(--color-accent-2); }

.feed-card__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 12px;
    line-height: 1.5;
    letter-spacing: -0.01em;
}

.feed-card__excerpt {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

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

.feed-card__date {
    font-size: 0.75rem;
    color: var(--color-text-faint);
}

.feed-card__link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-accent-light);
    text-decoration: none;
    transition: var(--transition);
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
}

.feed-card__link:hover {
    color: var(--color-white);
}

.feed-card[data-article] {
    cursor: pointer;
}

/* --- Article Modal --- */
.article-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.article-modal.active {
    display: flex;
}

.article-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.article-modal__container {
    position: relative;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    max-width: 720px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 48px;
    box-shadow: var(--shadow-card);
    z-index: 1;
}

.article-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.article-modal__close {
    background: none;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-family: var(--font-sans);
}

.article-modal__close:hover {
    color: var(--color-white);
    border-color: var(--color-border-hover);
}

.article-modal__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.4;
    margin-bottom: 32px;
    letter-spacing: -0.02em;
}

.article-modal__body p {
    font-size: 0.9375rem;
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: 16px;
}

.article-modal__body h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-white);
    margin-top: 32px;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.article-modal__container::-webkit-scrollbar {
    width: 6px;
}

.article-modal__container::-webkit-scrollbar-track {
    background: transparent;
}

.article-modal__container::-webkit-scrollbar-thumb {
    background: var(--color-border-hover);
    border-radius: 3px;
}

@media (max-width: 768px) {
    .article-modal__container {
        padding: 28px;
        width: 95%;
        max-height: 90vh;
    }

    .article-modal__title {
        font-size: 1.25rem;
    }
}

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

.contact-info__item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 32px;
}

.contact-info__icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent-glow);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: var(--radius-sm);
    color: var(--color-accent-light);
}

.contact-info__icon svg {
    width: 20px;
    height: 20px;
}

.contact-info__item h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 4px;
}

.contact-info__item p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.contact-form {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.contact-form__group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    transition: var(--transition);
    outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--color-text-faint);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-glow);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* --- Footer --- */
.footer {
    padding: 60px 0 32px;
    border-top: 1px solid var(--color-border);
    position: relative;
    z-index: 1;
}

.footer__content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}

.footer__brand p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-top: 8px;
}

.footer__links {
    display: flex;
    gap: 28px;
}

.footer__links a {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.footer__links a:hover {
    color: var(--color-white);
}

.footer__bottom {
    border-top: 1px solid var(--color-border);
    padding-top: 24px;
    text-align: center;
}

.footer__bottom p {
    font-size: 0.8125rem;
    color: var(--color-text-faint);
}

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

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

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hero__visual {
        order: -1;
    }

    .hero__orb {
        width: 280px;
        height: 280px;
    }

    .hero__orb-ring--1 { width: 220px; height: 220px; }
    .hero__orb-ring--2 { width: 160px; height: 160px; }
    .hero__orb-ring--3 { width: 100px; height: 100px; }

    .about__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav__toggle {
        display: flex;
    }

    .nav__links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        flex-direction: column;
        background: var(--color-surface);
        padding: 80px 32px 32px;
        gap: 24px;
        border-left: 1px solid var(--color-border);
        transition: var(--transition);
    }

    .nav__links.active {
        right: 0;
    }

    .section {
        padding: 80px 0;
    }

    .projects-grid,
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .project-card--featured {
        grid-template-columns: 1fr;
    }

    .project-card--featured .project-card__screenshot {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        min-height: 220px;
    }

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

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

    .cv__skills {
        padding: 28px;
    }

    .footer__content {
        flex-direction: column;
        gap: 24px;
    }

    .footer__links {
        flex-wrap: wrap;
        gap: 16px;
    }

    .hero__actions {
        flex-direction: column;
    }

    .btn {
        text-align: center;
        justify-content: center;
    }
}

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

    .hero__orb {
        width: 200px;
        height: 200px;
    }

    .hero__orb-ring--1 { width: 160px; height: 160px; }
    .hero__orb-ring--2 { width: 110px; height: 110px; }
    .hero__orb-ring--3 { width: 70px; height: 70px; }
}
