/* ========================================
   Linear Design System - CSS Variables
   ======================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Background Colors - Deep Space */
    --bg-deep: #020203;
    --bg-base: #050506;
    --bg-elevated: #0a0a0c;

    /* Surface Colors - Glass Effect */
    --surface: rgba(255, 255, 255, 0.05);
    --surface-hover: rgba(255, 255, 255, 0.08);
    --surface-active: rgba(255, 255, 255, 0.03);

    /* Text Colors */
    --foreground: #EDEDEF;
    --foreground-muted: #8A8F98;
    --foreground-subtle: rgba(255, 255, 255, 0.60);

    /* Accent - Indigo */
    --accent: #5E6AD2;
    --accent-bright: #6872D9;
    --accent-glow: rgba(94, 106, 210, 0.3);
    --accent-subtle: rgba(94, 106, 210, 0.15);

    /* Borders */
    --border-default: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.10);
    --border-accent: rgba(94, 106, 210, 0.30);

    /* Layout */
    --max-width: 1200px;
    --header-height: 72px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --duration-fast: 200ms;
    --duration-normal: 300ms;
}

/* ========================================
   Base Styles
   ======================================== */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Onest', system-ui, -apple-system, sans-serif;
    background: radial-gradient(ellipse at top, #0a0a0f 0%, #050506 50%, #020203 100%);
    background-attachment: fixed;
    color: var(--foreground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Onest', 'Inter', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
    color: var(--accent-bright);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   Ambient Background System
   ======================================== */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.ambient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.25;
    animation: float 10s ease-in-out infinite;
}

.ambient-blob--primary {
    width: 900px;
    height: 600px;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse, var(--accent) 0%, transparent 70%);
    animation-duration: 8s;
}

.ambient-blob--secondary {
    width: 600px;
    height: 400px;
    top: 30%;
    left: -100px;
    background: radial-gradient(ellipse, #8B5CF6 0%, transparent 70%);
    opacity: 0.15;
    animation-duration: 12s;
    animation-delay: -4s;
}

.ambient-blob--tertiary {
    width: 500px;
    height: 350px;
    bottom: 10%;
    right: -100px;
    background: radial-gradient(ellipse, #3B82F6 0%, transparent 70%);
    opacity: 0.12;
    animation-duration: 14s;
    animation-delay: -2s;
}

.ambient-blob--bottom {
    width: 800px;
    height: 400px;
    bottom: -150px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse, var(--accent) 0%, transparent 70%);
    opacity: 0.1;
    animation: pulse 6s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.08;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 0.12;
        transform: translateX(-50%) scale(1.05);
    }
}

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

.ambient-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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: 64px 64px;
    opacity: 0.5;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(-50%) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) translateX(-50%) rotate(2deg);
    }
}

.ambient-blob--secondary {
    animation-name: float-left;
}

.ambient-blob--tertiary {
    animation-name: float-right;
}

@keyframes float-left {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(-1deg);
    }
}

@keyframes float-right {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-25px) rotate(1deg);
    }
}

/* ========================================
   Layout Containers
   ======================================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 5%;
    position: relative;
    z-index: 1;
}

/* ========================================
   Site Header - Glass Effect
   ======================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(5, 5, 6, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-default);
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header-logo {
    height: 32px;
    width: auto;
    display: block;
    transition: opacity var(--duration-fast) var(--ease-out);
    filter: brightness(0) invert(1);
}

.header-logo:hover {
    opacity: 0.7;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* ========================================
   Buttons - Primary (Accent Glow)
   ======================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #FFFFFF;
    background: var(--accent);
    border: none;
    border-radius: var(--radius-sm);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
    box-shadow:
        0 0 0 1px rgba(94, 106, 210, 0.5),
        0 4px 12px rgba(94, 106, 210, 0.25),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    background: var(--accent-bright);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow:
        0 0 0 1px rgba(94, 106, 210, 0.6),
        0 8px 24px rgba(94, 106, 210, 0.35),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.15);
}

.btn-primary:active {
    transform: scale(0.98);
}

/* ========================================
   Buttons - Pill (Secondary/Ghost)
   ======================================== */
.btn-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--foreground);
    background: var(--surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-full);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.btn-pill:hover {
    color: var(--foreground);
    background: var(--surface-hover);
    border-color: var(--border-hover);
    box-shadow: 0 0 20px rgba(94, 106, 210, 0.1);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    padding: 6rem 0 4rem;
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: flex;
    justify-content: center;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 720px;
    will-change: transform, opacity;
}

/* Avatar / Photo */
.hero-avatar {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 2rem;
    flex-shrink: 0;
}

.hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--border-accent);
    position: relative;
    z-index: 2;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 8px 32px rgba(0, 0, 0, 0.4);
}

.hero-avatar-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(94, 106, 210, 0.35) 0%,
        rgba(94, 106, 210, 0.15) 30%,
        transparent 60%
    );
    filter: blur(40px);
    z-index: 1;
    animation: avatarGlow 6s ease-in-out infinite;
}

@keyframes avatarGlow {
    0%, 100% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.15);
    }
}

.hero-label {
    display: inline-block;
    padding: 6px 16px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    background: var(--accent-subtle);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(3.5rem, 8vw, 6rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
    line-height: 0.95;
}

.hero-title-line {
    display: block;
    background: linear-gradient(to bottom, #FFFFFF 0%, rgba(255, 255, 255, 0.75) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title-line--accent {
    background: linear-gradient(135deg, var(--accent) 0%, #818CF8 50%, var(--accent) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 6s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.hero-description {
    font-size: 1.125rem;
    color: var(--foreground-muted);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary--large {
    padding: 14px 32px;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary--large svg {
    transition: transform var(--duration-fast) var(--ease-out);
}

.btn-primary--large:hover svg {
    transform: translateX(4px);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    padding: 14px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--foreground-muted);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.btn-ghost:hover {
    color: var(--foreground);
    background: var(--surface);
}

/* ========================================
   Section Styling
   ======================================== */
section {
    padding: 5rem 0;
    position: relative;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--max-width);
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--border-default) 20%, var(--border-default) 80%, transparent 100%);
}

.hero::before {
    display: none;
}

.section-header {
    margin-bottom: 3rem;
}

.section-tag {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 600;
    font-family: 'SF Mono', 'Fira Code', monospace;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    background: var(--accent-subtle);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    background: linear-gradient(to bottom, #FFFFFF 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   Cards Grid
   ======================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* ========================================
   Card Component - Glass Effect
   ======================================== */
.card {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: all var(--duration-normal) var(--ease-out);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.06),
        0 2px 20px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out);
    background: radial-gradient(
        300px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(94, 106, 210, 0.15),
        transparent 60%
    );
    pointer-events: none;
    z-index: 1;
}

.card:hover::after {
    opacity: 1;
}

.card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 8px 40px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(94, 106, 210, 0.08);
}

.card--highlight {
    background: linear-gradient(135deg, rgba(94, 106, 210, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border-color: var(--border-accent);
}

.card-header {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--foreground);
}

.card-title-static {
    position: relative;
    z-index: 2;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.card-period {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--foreground-muted);
    background: var(--surface);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-default);
}

.card-description {
    position: relative;
    z-index: 2;
    font-size: 0.9rem;
    color: var(--foreground-muted);
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.card-description strong {
    color: var(--foreground);
    font-weight: 600;
}

.card-results {
    position: relative;
    z-index: 2;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-default);
}

.card-results p {
    margin-bottom: 0.75rem;
}

.card-results ul {
    list-style: none;
    padding-left: 0;
}

.card-results li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--foreground-muted);
}

.card-results li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.card-results li em {
    color: var(--foreground-subtle);
}

/* ========================================
   Project Title Link (Interactive)
   ======================================== */
.project-title-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--foreground);
    cursor: pointer;
    transition: color var(--duration-fast) var(--ease-out);
}

.project-title-link:hover {
    color: var(--foreground);
}

.card-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 6px;
}

.project-title-link span {
    position: relative;
    display: inline-block;
}

.project-title-link span::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--foreground);
    transition: width var(--duration-normal) var(--ease-out);
}

.project-title-link:hover span::after {
    width: 100%;
}

/* ========================================
   Card Link (Animated Underline)
   ======================================== */
.card-link {
    position: relative;
    z-index: 2;
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--foreground);
    text-decoration: none;
}

.card-link::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--foreground);
    transition: width var(--duration-normal) var(--ease-out);
}

.card-link:hover {
    color: var(--foreground);
}

.card-link:hover::after {
    width: 100%;
}

/* ========================================
   Skills Grid
   ======================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.skill-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all var(--duration-normal) var(--ease-out);
    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.skill-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out);
    background: radial-gradient(
        250px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(94, 106, 210, 0.12),
        transparent 60%
    );
    pointer-events: none;
}

.skill-card:hover::after {
    opacity: 1;
}

.skill-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(94, 106, 210, 0.05);
}

.skill-card strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.skill-card p {
    font-size: 0.85rem;
    color: var(--foreground-muted);
    line-height: 1.6;
}

/* ========================================
   Focus States (Accessibility)
   ======================================== */
a:focus-visible,
button:focus-visible,
.btn-primary:focus-visible,
.btn-pill:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 2px var(--bg-base),
        0 0 0 4px var(--accent);
}

.card:focus-within {
    border-color: var(--border-accent);
    box-shadow:
        0 0 0 1px var(--border-accent),
        0 8px 40px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(94, 106, 210, 0.1);
}

.project-title-link:focus-visible,
.card-link:focus-visible {
    outline: none;
    box-shadow: none;
}

.project-title-link:focus-visible span {
    text-decoration: underline;
    text-decoration-color: var(--foreground);
    text-underline-offset: 4px;
}

.card-link:focus-visible {
    text-decoration: underline;
    text-decoration-color: var(--foreground);
    text-underline-offset: 4px;
}

/* ========================================
   Selection Styles
   ======================================== */
::selection {
    background: rgba(94, 106, 210, 0.3);
    color: var(--foreground);
}

::-moz-selection {
    background: rgba(94, 106, 210, 0.3);
    color: var(--foreground);
}

/* ========================================
   Entrance Animations
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hero-avatar {
    animation: fadeInUp 0.6s var(--ease-out) both;
}

.hero-label {
    animation: fadeInUp 0.6s var(--ease-out) 0.08s both;
}

.hero-title {
    animation: fadeInUp 0.6s var(--ease-out) 0.16s both;
}

.hero-description {
    animation: fadeInUp 0.6s var(--ease-out) 0.24s both;
}

.hero-actions {
    animation: fadeInUp 0.6s var(--ease-out) 0.32s both;
}

.section-header {
    animation: fadeInUp 0.6s var(--ease-out) both;
}

.card,
.skill-card {
    animation: fadeInUp 0.6s var(--ease-out) both;
}

.cards-grid .card:nth-child(1),
.skills-grid .skill-card:nth-child(1) { animation-delay: 0.1s; }
.cards-grid .card:nth-child(2),
.skills-grid .skill-card:nth-child(2) { animation-delay: 0.18s; }
.skills-grid .skill-card:nth-child(3) { animation-delay: 0.26s; }
.skills-grid .skill-card:nth-child(4) { animation-delay: 0.34s; }
.skills-grid .skill-card:nth-child(5) { animation-delay: 0.42s; }
.skills-grid .skill-card:nth-child(6) { animation-delay: 0.5s; }
.skills-grid .skill-card:nth-child(7) { animation-delay: 0.58s; }
.skills-grid .skill-card:nth-child(8) { animation-delay: 0.66s; }
.skills-grid .skill-card:nth-child(9) { animation-delay: 0.74s; }

/* ========================================
   Footer
   ======================================== */
.site-footer {
    position: relative;
    background: var(--bg-deep);
    border-top: 1px solid var(--border-default);
}

.site-footer .container {
    padding: 1.5rem 5%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.site-footer p {
    color: var(--foreground-subtle);
    font-size: 0.8rem;
    margin: 0;
}

/* ========================================
   AI Summary Modal
   ======================================== */
#summary-modal, #saas-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.modal-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal-content {
    background: #0a0a0c;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    width: 90%;
    max-width: 600px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.06),
        0 24px 80px rgba(0, 0, 0, 0.7),
        0 0 120px rgba(94, 106, 210, 0.08);
    animation: modalIn 0.4s var(--ease-out) both;
    display: flex;
    flex-direction: column;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-default);
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #FFFFFF;
    background: none;
    -webkit-text-fill-color: unset;
}

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--foreground-muted);
    background: var(--surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
    line-height: 1;
}

.modal-close:hover {
    color: var(--foreground);
    background: var(--surface-hover);
    border-color: var(--border-hover);
}

.modal-body {
    padding: 2rem;
    min-height: 120px;
}

#summary-text,
.modal-body p {
    font-size: 0.95rem;
    color: #EDEDEF;
    line-height: 1.6;
}

#summary-text {
    white-space: pre-wrap;
}

.modal-footer {
    padding: 1rem 2rem;
    border-top: 1px solid var(--border-default);
}

.modal-footer span {
    font-size: 0.75rem;
    font-family: 'SF Mono', 'Fira Code', monospace;
    color: var(--foreground-muted);
    opacity: 0.5;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: clamp(3rem, 7vw, 4.5rem);
    }

    .hero-avatar {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 900px) {
    .hero-title {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
    }

    .ambient-blob--primary {
        width: 600px;
        height: 400px;
    }

    .ambient-blob--secondary,
    .ambient-blob--tertiary {
        display: none;
    }
}

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

    .header-nav {
        gap: 1rem;
    }

    .hero {
        padding: 4rem 0 3rem;
        min-height: auto;
    }

    .hero-avatar {
        width: 88px;
        height: 88px;
        margin-bottom: 1.5rem;
    }

    .hero-title {
        font-size: 2.75rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

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

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

    section {
        padding: 3.5rem 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

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

    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .ambient-blob--primary {
        width: 400px;
        height: 300px;
        opacity: 0.2;
    }
}

@media (max-width: 480px) {
    .hero-avatar {
        width: 72px;
        height: 72px;
        margin-bottom: 1.25rem;
    }

    .hero-label {
        font-size: 0.65rem;
        padding: 4px 12px;
        margin-bottom: 1rem;
    }

    .hero-title {
        font-size: 2.25rem;
        margin-bottom: 1rem;
    }

    .header-logo {
        height: 28px;
    }

    .btn-pill {
        padding: 8px 18px;
        font-size: 0.8rem;
    }

    .card {
        padding: 1.25rem;
    }

    .skill-card {
        padding: 1.25rem;
    }
}

/* ========================================
   Reduced Motion
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .ambient-blob,
    .ambient-blob--bottom {
        animation: none;
        opacity: 0.15;
    }

    .hero-avatar,
    .hero-label,
    .hero-title,
    .hero-description,
    .hero-actions,
    .hero-inner,
    .hero-title-line--accent,
    .hero-avatar-glow,
    .section-header,
    .card,
    .skill-card {
        animation: none;
        opacity: 1 !important;
        transform: none !important;
    }

    .hero-avatar-glow {
        transform: translate(-50%, -50%) !important;
    }

    .hero-inner {
        will-change: auto;
    }
}
