/* Minimal Portfolio - Dark Theme with Personality */

:root {
    --bg: #0a0a0a;
    --bg-elevated: #131313;
    --text: #ffffff;
    --text-secondary: #c9c9c9;
    --text-muted: #919191;
    --accent: #93c5fd;
    --accent-green: #34d399;
    --border: #2a2a2a;
    --border-hover: #404040;
    --max-width: 760px;
}

/* Light mode overrides */
html.light-mode {
    --bg: #f5f5f5;
    --bg-elevated: #ffffff;
    --text: #111111;
    --text-secondary: #333333;
    --text-muted: #555555;
    --accent: #4f46e5;
    --accent-green: #047857;
    --border: #d4d4d4;
    --border-hover: #a3a3a3;
}

html.light-mode .bg-gradient {
    background: linear-gradient(-45deg, #f0f0f0, #e8f0ec, #e5ede8, #eaf0ea, #e8f0e8, #f0f0f0);
}

html.light-mode .bg-gradient::before {
    background: linear-gradient(45deg, transparent 0%, rgba(34, 197, 94, 0.06) 25%, rgba(22, 163, 74, 0.05) 50%, rgba(5, 150, 105, 0.06) 75%, transparent 100%);
}

html.light-mode .bg-gradient::after {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, transparent 30%, rgba(52, 211, 153, 0.04) 50%, transparent 70%, rgba(5, 150, 105, 0.05) 100%);
}

html.light-mode .hero h1 {
    background: linear-gradient(135deg, #111 0%, #111 40%, #6366f1 60%, #4f46e5 80%, #4338ca 100%);
    -webkit-background-clip: text;
    background-clip: text;
    background-size: 200% 200%;
}

html.light-mode .company-logo.google,
html.light-mode .company-logo.meta,
html.light-mode .company-logo.microsoft {
    background: #f0f0f0;
}

html.light-mode .music-player,
html.light-mode .social-sidebar a,
html.light-mode .theme-toggle {
    background: var(--bg-elevated);
    border-color: var(--border);
}

html.light-mode .launched-screenshot {
    border-color: var(--border);
}

html.light-mode .launched-impact {
    color: #047857;
    background: rgba(4, 120, 87, 0.08);
    border-color: rgba(4, 120, 87, 0.2);
}

html.light-mode .highlight {
    color: #111111;
}

html.light-mode .role-entry li::before {
    color: #555555;
}

html.light-mode .hero .role::after {
    background: linear-gradient(90deg, #047857, #059669, #10b981, #059669, #047857);
    background-size: 200% 100%;
}

html.light-mode .role-entry:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

html.light-mode .launched-item:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

html.light-mode .progress-dot.active {
    background: var(--accent);
    box-shadow: 0 0 8px rgba(79, 70, 229, 0.3);
}

html.light-mode .progress-label {
    background: var(--bg-elevated);
    border-color: var(--border);
    color: var(--text-secondary);
}

html.light-mode .hero-stat-label {
    color: var(--text-muted);
}

html.light-mode .music-label {
    color: var(--text-muted);
}

html.light-mode .hero-logo-item {
    color: var(--text-secondary);
}

html.light-mode .meta-logo {
    color: #0866ff;
}

html.light-mode h2 {
    border-image: linear-gradient(90deg, var(--accent), transparent) 1;
}

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

html {
    font-size: 17px;
    scroll-behavior: smooth;
}

body {
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.8;
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Fixed social sidebar */
.social-sidebar {
    position: fixed;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 100;
}

.social-sidebar a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.social-sidebar a:hover {
    border-color: var(--border-hover);
    color: var(--text);
    transform: scale(1.05);
}

.social-sidebar a svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* MySpace-style music player */
.music-player {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem 0.5rem 0.5rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 50px;
    z-index: 100;
    transition: all 0.2s ease;
}

.music-player:hover {
    border-color: var(--border-hover);
}

.music-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #a855f7, #6366f1);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.music-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.4);
}

.music-btn svg {
    width: 14px;
    height: 14px;
}

.music-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: lowercase;
    letter-spacing: 0.05em;
}

.music-player.playing .music-btn {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(168, 85, 247, 0); }
}

/* Theme toggle */
.theme-toggle {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    border-color: var(--border-hover);
    color: var(--text);
    transform: scale(1.05);
}

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

.theme-icon-moon {
    display: block;
}

.theme-icon-sun {
    display: none;
}

html.light-mode .theme-icon-moon {
    display: none;
}

html.light-mode .theme-icon-sun {
    display: block;
}

/* Animated forest gradient background */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        -45deg,
        #050505,
        #060a08,
        #070d09,
        #050805,
        #060906,
        #050505
    );
    background-size: 300% 300%;
    animation: forest-flow 12s ease-in-out infinite;
    pointer-events: none;
    z-index: -2;
}

.bg-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(34, 197, 94, 0.04) 25%,
        rgba(22, 163, 74, 0.03) 50%,
        rgba(5, 150, 105, 0.04) 75%,
        transparent 100%
    );
    background-size: 200% 200%;
    animation: shimmer-1 8s ease-in-out infinite;
}

.bg-gradient::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(16, 185, 129, 0.035) 0%,
        transparent 30%,
        rgba(52, 211, 153, 0.025) 50%,
        transparent 70%,
        rgba(5, 150, 105, 0.035) 100%
    );
    background-size: 250% 250%;
    animation: shimmer-2 10s ease-in-out infinite reverse;
}

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

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

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

.bg-orb {
    display: none;
}

main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 5rem 1.5rem 3rem;
}

/* Hero */
.hero {
    margin-bottom: 5rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 0%, #fff 40%, #a5b4fc 60%, #818cf8 80%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 8s ease-in-out infinite;
    background-size: 200% 200%;
}

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

.hero .role {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 1rem;
    display: inline-block;
    position: relative;
}

.hero .role::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #059669, #10b981, #34d399, #10b981, #059669);
    border-radius: 2px;
    background-size: 200% 100%;
    animation: gradient-flow 4s linear infinite;
}

@keyframes gradient-flow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.hero .tagline {
    color: var(--text-secondary);
    max-width: 540px;
    margin-bottom: 2rem;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 0.5rem;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.hero-stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.hero-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}

/* Hero logo bar */
.hero-logos {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.hero-logos-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.75rem;
}

.hero-logos-row {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.hero-logo-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.hero-logo-svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.meta-logo {
    color: #0866ff;
}

/* Section styles */
section {
    margin-bottom: 4.5rem;
}

h2 {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text);
    margin-bottom: 1.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, var(--accent), transparent) 1;
    display: inline-block;
}

.section-intro {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    margin-top: -0.5rem;
}

/* About */
.about-list {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.about-list li {
    position: relative;
    padding-left: 1.25rem;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 0.875rem;
}

.about-list li::before {
    content: "–";
    position: absolute;
    left: 0;
    color: var(--text-muted);
}

.about-list li:last-child {
    margin-bottom: 0;
}

.about-list .highlight {
    color: var(--text);
    font-weight: 500;
}

.edu {
    margin-bottom: 4.5rem;
}

.edu h2 {
    border-bottom: none;
    border-image: none;
    padding-bottom: 0;
}

.edu span {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Active Projects Grid */
.active-projects {
    margin-bottom: 4rem;
}

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

.project-card {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.project-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.project-screenshot {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: var(--bg);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid var(--border);
    position: relative;
}

.project-screenshot img,
.project-screenshot video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: opacity 0.3s ease;
}

.project-screenshot video {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.project-card:hover .project-screenshot.has-video img {
    opacity: 0;
}

.project-card:hover .project-screenshot.has-video video {
    opacity: 1;
}

.project-status {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-green);
    margin-bottom: 0.5rem;
}

.project-status.wip {
    color: #fbbf24;
}

.project-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.project-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
    flex: 1;
}

.project-tech {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.project-url {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent);
    margin-top: auto;
    padding-top: 0.75rem;
    transition: color 0.2s ease;
}

.project-card:hover .project-url {
    color: var(--text);
}

/* PM Card Project - Special styling */
.pm-card-project {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: visible;
}

.pm-card-project:hover {
    transform: none;
}

.pm-card-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.25rem;
    padding-bottom: 0.5rem;
    position: relative;
    overflow: hidden;
}

/* Floating glow effect */
.pm-card-glow {
    position: absolute;
    top: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    height: 360px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(236, 72, 153, 0.25), rgba(251, 191, 36, 0.25));
    border-radius: 24px;
    filter: blur(50px);
    opacity: 0.4;
    animation: pm-glow-pulse 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes pm-glow-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.7; }
}

/* Card flip container */
.pm-card-flip {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 5 / 7;
    perspective: 1000px;
    cursor: pointer;
    position: relative;
    z-index: 1;
    --glare-x: 50%;
    --glare-y: 50%;
}

.pm-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.pm-card-flip.flipped .pm-card-inner {
    transform: rotateY(180deg);
}

/* Only animate flip, not hover tilt */
.pm-card-flip:not(.hovering) .pm-card-inner {
    transition: transform 0.5s ease;
}

/* Holographic glare overlay */
.pm-card-front::after,
.pm-card-back::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 20;
    background: radial-gradient(
        circle at var(--glare-x, 50%) var(--glare-y, 50%),
        rgba(255, 255, 255, 0.25) 0%,
        rgba(255, 255, 255, 0.05) 30%,
        transparent 60%
    );
}

.pm-card-flip.hovering .pm-card-front::after,
.pm-card-flip.hovering .pm-card-back::after {
    opacity: 1;
}

.pm-card-front,
.pm-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.pm-card-back {
    transform: rotateY(180deg);
}

/* Front of card - Pokemon style */
.pm-card {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    border: 5px solid #db2777;
    background: linear-gradient(180deg, #fdf2f8 0%, #fbcfe8 30%, #f472b6 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(219, 39, 119, 0.3);
}

.pm-card-inner-border {
    position: absolute;
    inset: 3px;
    border: 1px solid rgba(219, 39, 119, 0.3);
    border-radius: 6px;
    pointer-events: none;
    z-index: 10;
}

/* Card header */
.pm-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    flex-shrink: 0;
}

.pm-card-name {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.pm-card-emoji {
    font-size: 16px;
    flex-shrink: 0;
}

.pm-card-title {
    font-size: 11px;
    font-weight: 800;
    color: #831843;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pm-card-hp {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.pm-card-score {
    font-size: 14px;
    font-weight: 900;
    color: #dc2626;
}

.pm-card-score-max {
    font-size: 9px;
    font-weight: 700;
    color: #be185d;
}

.pm-card-hp-label {
    font-size: 9px;
    font-weight: 700;
    color: #9d174d;
    margin-left: 2px;
}

.pm-card-element {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ec4899;
    color: white;
    font-size: 9px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 2px;
}

/* Card image frame */
.pm-card-image-frame {
    margin: 0 10px 6px;
    border-radius: 6px;
    border: 3px solid rgba(219, 39, 119, 0.4);
    overflow: hidden;
    position: relative;
    height: 120px;
    flex-shrink: 0;
}

.pm-card-image-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #831843, #be185d, #db2777);
}

.pm-card-image-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.3) 0%, transparent 50%);
}

.pm-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

/* Type badge row */
.pm-card-type-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px 5px;
    flex-shrink: 0;
}

.pm-card-type-badge {
    font-size: 9px;
    font-weight: 700;
    color: white;
    background: #ec4899;
    padding: 3px 10px;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.pm-card-stage {
    font-size: 9px;
    font-style: italic;
    color: #9d174d;
}

/* Moves section */
.pm-card-moves {
    margin: 0 10px 5px;
    background: rgba(255,255,255,0.7);
    border-radius: 6px;
    border: 1px solid rgba(219, 39, 119, 0.3);
    overflow: hidden;
    flex-shrink: 0;
}

.pm-card-move {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
}

.pm-card-move:first-child {
    border-bottom: 1px solid rgba(219, 39, 119, 0.2);
}

.pm-card-energy {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ec4899;
    color: white;
    font-size: 9px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pm-card-move-info {
    flex: 1;
    min-width: 0;
}

.pm-card-move-name {
    font-size: 10px;
    font-weight: 700;
    color: #831843;
    display: block;
    line-height: 1.2;
}

.pm-card-move-effect {
    font-size: 8px;
    color: #be185d;
    display: block;
    line-height: 1.3;
    margin-top: 1px;
}

.pm-card-move-damage {
    font-size: 14px;
    font-weight: 900;
    color: #831843;
    flex-shrink: 0;
}

/* Flavor text */
.pm-card-flavor {
    margin: 0 10px 5px;
    padding: 6px 8px;
    background: rgba(255,255,255,0.5);
    border-radius: 5px;
    border: 1px solid rgba(219, 39, 119, 0.2);
    flex: 1;
    display: flex;
    align-items: center;
    min-height: 2.5rem;
}

.pm-card-flavor p {
    font-size: 9px;
    font-style: italic;
    color: #9d174d;
    text-align: center;
    line-height: 1.4;
    width: 100%;
}

/* Card footer */
.pm-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    background: rgba(219, 39, 119, 0.2);
    margin-top: auto;
    flex-shrink: 0;
}

.pm-card-weakness {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pm-card-weakness-label {
    font-size: 9px;
    color: #9d174d;
}

.pm-card-weakness-value {
    font-size: 9px;
    font-weight: 700;
    color: #831843;
}

.pm-card-brand {
    font-size: 9px;
    font-weight: 600;
    color: #be185d;
}

/* Back of card */
.pm-card-back-content {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    border: 5px solid #fbbf24;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.3);
}

.pm-card-back-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 8px,
        rgba(251, 191, 36, 0.15) 8px,
        rgba(251, 191, 36, 0.15) 16px
    );
}

.pm-card-back-inner-border {
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 6px;
    pointer-events: none;
}

.pm-card-back-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    position: relative;
    z-index: 1;
}

.pm-card-back-badge {
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.05em;
    background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%);
    color: #7c2d12;
    padding: 3px 10px;
    border-radius: 10px;
}

.pm-card-back-rarity {
    font-size: 8px;
    font-weight: 700;
    color: #f472b6;
}

.pm-card-back-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    position: relative;
    z-index: 1;
}

.pm-card-back-label {
    font-size: 7px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(251, 191, 36, 0.6);
    margin-bottom: 2px;
}

.pm-card-back-archetype {
    font-size: 16px;
    font-weight: 900;
    color: #fbbf24;
    margin-bottom: 8px;
}

.pm-card-back-score-badge {
    display: flex;
    align-items: baseline;
    gap: 4px;
    padding: 4px 12px;
    background: linear-gradient(180deg, rgba(251, 191, 36, 0.2) 0%, rgba(251, 191, 36, 0.1) 100%);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 16px;
    margin-bottom: 8px;
}

.pm-card-back-score-label {
    font-size: 7px;
    color: rgba(251, 191, 36, 0.7);
}

.pm-card-back-score-value {
    font-size: 16px;
    font-weight: 900;
    color: #fbbf24;
}

.pm-card-back-score-max {
    font-size: 9px;
    color: rgba(251, 191, 36, 0.5);
}

.pm-card-back-quote {
    position: relative;
    padding: 8px 10px;
    background: linear-gradient(180deg, rgba(251, 191, 36, 0.05) 0%, rgba(251, 191, 36, 0.02) 100%);
    border: 1px solid rgba(251, 191, 36, 0.15);
    border-radius: 6px;
    margin-bottom: 8px;
    width: 100%;
}

.pm-card-back-quote-mark {
    position: absolute;
    font-size: 14px;
    font-family: serif;
    color: rgba(251, 191, 36, 0.3);
}

.pm-card-back-quote-mark:first-of-type {
    top: 0;
    left: 4px;
}

.pm-card-back-quote-mark.end {
    bottom: -4px;
    right: 4px;
}

.pm-card-back-quote p {
    font-size: 8px;
    font-style: italic;
    color: rgba(253, 230, 138, 0.9);
    text-align: center;
    line-height: 1.4;
}

.pm-card-back-divider {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    margin-bottom: 8px;
}

.pm-card-back-divider-line {
    flex: 1;
    height: 1px;
    background: rgba(251, 191, 36, 0.2);
}

.pm-card-back-pokeball {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(251, 191, 36, 0.3);
    position: relative;
    overflow: hidden;
}

.pm-card-back-pokeball-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(251, 191, 36, 0.2) 0%, transparent 100%);
}

.pm-card-back-pokeball-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(251, 191, 36, 0.3);
    transform: translateY(-50%);
}

.pm-card-back-pokeball-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(251, 191, 36, 0.5);
}

.pm-card-back-cta {
    text-align: center;
    margin-bottom: 16px;
}

.pm-card-back-cta-url {
    font-size: 11px;
    font-weight: 700;
    color: #fbbf24;
}

/* Corner accents */
.pm-card-back-corner {
    position: absolute;
    width: 10px;
    height: 10px;
    border-color: rgba(251, 191, 36, 0.2);
    border-style: solid;
    border-width: 0;
}

.pm-card-back-corner.tl {
    top: 12px;
    left: 12px;
    border-top-width: 1px;
    border-left-width: 1px;
    border-top-left-radius: 3px;
}

.pm-card-back-corner.tr {
    top: 12px;
    right: 12px;
    border-top-width: 1px;
    border-right-width: 1px;
    border-top-right-radius: 3px;
}

.pm-card-back-corner.bl {
    bottom: 12px;
    left: 12px;
    border-bottom-width: 1px;
    border-left-width: 1px;
    border-bottom-left-radius: 3px;
}

.pm-card-back-corner.br {
    bottom: 12px;
    right: 12px;
    border-bottom-width: 1px;
    border-right-width: 1px;
    border-bottom-right-radius: 3px;
}

/* Flip hint */
.pm-card-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 12px;
}

/* PM Card link section */
.pm-card-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 0.75rem 1.25rem 1.25rem;
    text-decoration: none;
    border-top: 1px solid var(--border);
}

.pm-card-link:hover {
    background: rgba(255,255,255,0.02);
}

.pm-card-link .project-status {
    margin-bottom: 0.5rem;
}

.pm-card-link h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.pm-card-link p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0;
}

.pm-card-link .project-tech {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
}

/* Hover effect on card */
.pm-card-flip:hover .pm-card {
    box-shadow: 0 12px 40px rgba(219, 39, 119, 0.5);
}

.pm-card-flip:hover .pm-card-back-content {
    box-shadow: 0 12px 40px rgba(251, 191, 36, 0.5);
}

/* ====== JLUK Personal Site Card ====== */
.jluk-card-project {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: visible;
}

.jluk-card-project:hover {
    transform: none;
}

.jluk-card-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.25rem;
    padding-bottom: 0.5rem;
    position: relative;
    overflow: hidden;
}

.jluk-card-glow {
    position: absolute;
    top: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    height: 360px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(99, 102, 241, 0.25), rgba(168, 85, 247, 0.25));
    border-radius: 24px;
    filter: blur(50px);
    opacity: 0.4;
    animation: jluk-glow-pulse 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes jluk-glow-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.7; }
}

.jluk-card-flip {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 5 / 7;
    perspective: 1000px;
    cursor: pointer;
    position: relative;
    z-index: 1;
    --glare-x: 50%;
    --glare-y: 50%;
}

.jluk-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.jluk-card-flip.flipped .jluk-card-inner {
    transform: rotateY(180deg);
}

.jluk-card-flip:not(.hovering) .jluk-card-inner {
    transition: transform 0.5s ease;
}

.jluk-card-front,
.jluk-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.jluk-card-back {
    transform: rotateY(180deg);
}

/* Holographic glare overlay */
.jluk-card-front::after,
.jluk-card-back::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 20;
    background: radial-gradient(
        circle at var(--glare-x, 50%) var(--glare-y, 50%),
        rgba(255, 255, 255, 0.25) 0%,
        rgba(255, 255, 255, 0.05) 30%,
        transparent 60%
    );
}

.jluk-card-flip.hovering .jluk-card-front::after,
.jluk-card-flip.hovering .jluk-card-back::after {
    opacity: 1;
}

/* Front of card - Purple/Strategy style */
.jluk-card {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    border: 5px solid #7c3aed;
    background: linear-gradient(180deg, #f5f3ff 0%, #ddd6fe 30%, #a78bfa 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}

.jluk-card-inner-border {
    position: absolute;
    inset: 3px;
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 6px;
    pointer-events: none;
    z-index: 10;
}

.jluk-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    flex-shrink: 0;
}

.jluk-card-name {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.jluk-card-emoji {
    font-size: 16px;
    flex-shrink: 0;
}

.jluk-card-title {
    font-size: 11px;
    font-weight: 800;
    color: #4c1d95;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jluk-card-hp {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.jluk-card-score {
    font-size: 14px;
    font-weight: 900;
    color: #dc2626;
}

.jluk-card-score-max {
    font-size: 9px;
    font-weight: 700;
    color: #6d28d9;
}

.jluk-card-hp-label {
    font-size: 9px;
    font-weight: 700;
    color: #5b21b6;
    margin-left: 2px;
}

.jluk-card-element {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #8b5cf6;
    color: white;
    font-size: 9px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 2px;
}

.jluk-card-image-frame {
    margin: 0 10px 6px;
    border-radius: 6px;
    border: 3px solid rgba(124, 58, 237, 0.4);
    overflow: hidden;
    position: relative;
    height: 120px;
    flex-shrink: 0;
}

.jluk-card-image-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #4c1d95, #6d28d9, #7c3aed);
}

.jluk-card-image-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.3) 0%, transparent 50%);
}

.jluk-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.jluk-card-type-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px 5px;
    flex-shrink: 0;
}

.jluk-card-type-badge {
    font-size: 9px;
    font-weight: 700;
    color: white;
    background: #8b5cf6;
    padding: 3px 10px;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.jluk-card-stage {
    font-size: 9px;
    font-style: italic;
    color: #5b21b6;
}

.jluk-card-moves {
    margin: 0 10px 5px;
    background: rgba(255,255,255,0.7);
    border-radius: 6px;
    border: 1px solid rgba(124, 58, 237, 0.3);
    overflow: hidden;
    flex-shrink: 0;
}

.jluk-card-move {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
}

.jluk-card-move:first-child {
    border-bottom: 1px solid rgba(124, 58, 237, 0.2);
}

.jluk-card-energy {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #8b5cf6;
    color: white;
    font-size: 9px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.jluk-card-move-info {
    flex: 1;
    min-width: 0;
}

.jluk-card-move-name {
    font-size: 10px;
    font-weight: 700;
    color: #4c1d95;
    display: block;
    line-height: 1.2;
}

.jluk-card-move-effect {
    font-size: 8px;
    color: #6d28d9;
    display: block;
    line-height: 1.3;
    margin-top: 1px;
}

.jluk-card-move-damage {
    font-size: 14px;
    font-weight: 900;
    color: #4c1d95;
    flex-shrink: 0;
}

.jluk-card-flavor {
    margin: 0 10px 5px;
    padding: 6px 8px;
    background: rgba(255,255,255,0.5);
    border-radius: 5px;
    border: 1px solid rgba(124, 58, 237, 0.2);
    flex: 1;
    display: flex;
    align-items: center;
    min-height: 2.5rem;
}

.jluk-card-flavor p {
    font-size: 9px;
    font-style: italic;
    color: #5b21b6;
    text-align: center;
    line-height: 1.4;
    width: 100%;
}

.jluk-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    background: rgba(124, 58, 237, 0.2);
    margin-top: auto;
    flex-shrink: 0;
}

.jluk-card-weakness {
    display: flex;
    align-items: center;
    gap: 5px;
}

.jluk-card-weakness-label {
    font-size: 9px;
    color: #5b21b6;
}

.jluk-card-weakness-value {
    font-size: 9px;
    font-weight: 700;
    color: #4c1d95;
}

.jluk-card-brand {
    font-size: 9px;
    font-weight: 600;
    color: #6d28d9;
}

/* Back of jluk card */
.jluk-card-back-content {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    border: 5px solid #8b5cf6;
    background: linear-gradient(180deg, #1a1a2e 0%, #1e1b4b 50%, #0f0f23 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.jluk-card-back-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 8px,
        rgba(139, 92, 246, 0.15) 8px,
        rgba(139, 92, 246, 0.15) 16px
    );
}

.jluk-card-back-inner-border {
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 6px;
    pointer-events: none;
}

.jluk-card-back-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    position: relative;
    z-index: 1;
}

.jluk-card-back-badge {
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.05em;
    background: linear-gradient(180deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    padding: 3px 10px;
    border-radius: 10px;
}

.jluk-card-back-rarity {
    font-size: 8px;
    font-weight: 700;
    color: #a78bfa;
}

.jluk-card-back-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    position: relative;
    z-index: 1;
}

.jluk-card-back-label {
    font-size: 7px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(167, 139, 250, 0.6);
    margin-bottom: 2px;
}

.jluk-card-back-archetype {
    font-size: 16px;
    font-weight: 900;
    color: #a78bfa;
    margin-bottom: 8px;
}

.jluk-card-back-score-badge {
    display: flex;
    align-items: baseline;
    gap: 4px;
    padding: 4px 12px;
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.2) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    margin-bottom: 8px;
}

.jluk-card-back-score-label {
    font-size: 7px;
    color: rgba(167, 139, 250, 0.7);
}

.jluk-card-back-score-value {
    font-size: 16px;
    font-weight: 900;
    color: #a78bfa;
}

.jluk-card-back-score-max {
    font-size: 9px;
    color: rgba(167, 139, 250, 0.5);
}

.jluk-card-back-quote {
    position: relative;
    padding: 8px 10px;
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.05) 0%, rgba(139, 92, 246, 0.02) 100%);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 6px;
    margin-bottom: 8px;
    width: 100%;
}

.jluk-card-back-quote-mark {
    position: absolute;
    font-size: 14px;
    font-family: serif;
    color: rgba(167, 139, 250, 0.3);
}

.jluk-card-back-quote-mark:first-of-type {
    top: 0;
    left: 4px;
}

.jluk-card-back-quote-mark.end {
    bottom: -4px;
    right: 4px;
}

.jluk-card-back-quote p {
    font-size: 8px;
    font-style: italic;
    color: rgba(221, 214, 254, 0.9);
    text-align: center;
    line-height: 1.4;
}

.jluk-card-back-divider {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    margin-bottom: 8px;
}

.jluk-card-back-divider-line {
    flex: 1;
    height: 1px;
    background: rgba(139, 92, 246, 0.2);
}

.jluk-card-back-pokeball {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(139, 92, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.jluk-card-back-pokeball-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.2) 0%, transparent 100%);
}

.jluk-card-back-pokeball-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(139, 92, 246, 0.3);
    transform: translateY(-50%);
}

.jluk-card-back-pokeball-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.5);
}

.jluk-card-back-cta {
    text-align: center;
    margin-bottom: 16px;
}

.jluk-card-back-cta-url {
    font-size: 11px;
    font-weight: 700;
    color: #a78bfa;
}

.jluk-card-back-corner {
    position: absolute;
    width: 10px;
    height: 10px;
    border-color: rgba(139, 92, 246, 0.2);
    border-style: solid;
    border-width: 0;
}

.jluk-card-back-corner.tl {
    top: 12px;
    left: 12px;
    border-top-width: 1px;
    border-left-width: 1px;
    border-top-left-radius: 3px;
}

.jluk-card-back-corner.tr {
    top: 12px;
    right: 12px;
    border-top-width: 1px;
    border-right-width: 1px;
    border-top-right-radius: 3px;
}

.jluk-card-back-corner.bl {
    bottom: 12px;
    left: 12px;
    border-bottom-width: 1px;
    border-left-width: 1px;
    border-bottom-left-radius: 3px;
}

.jluk-card-back-corner.br {
    bottom: 12px;
    right: 12px;
    border-bottom-width: 1px;
    border-right-width: 1px;
    border-bottom-right-radius: 3px;
}

.jluk-card-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 12px;
}

.jluk-card-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 0.75rem 1.25rem 1.25rem;
    text-decoration: none;
    border-top: 1px solid var(--border);
}

.jluk-card-link:hover {
    background: rgba(255,255,255,0.02);
}

.jluk-card-link .project-status {
    margin-bottom: 0.5rem;
}

.jluk-card-link h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.jluk-card-link p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0;
}

.jluk-card-link .project-tech {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
}

.jluk-card-flip:hover .jluk-card {
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.5);
}

.jluk-card-flip:hover .jluk-card-back-content {
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.5);
}

/* ===== Recon Card - Intel/Blue Theme ===== */
.recon-card-project {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: visible;
}

.recon-card-project:hover {
    transform: none;
}

.recon-card-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.25rem;
    padding-bottom: 0.5rem;
    position: relative;
    overflow: hidden;
}

.recon-card-glow {
    position: absolute;
    top: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    height: 360px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(14, 165, 233, 0.25), rgba(6, 182, 212, 0.25));
    border-radius: 24px;
    filter: blur(50px);
    opacity: 0.4;
    animation: recon-glow-pulse 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes recon-glow-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.7; }
}

.recon-card-flip {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 5 / 7;
    perspective: 1000px;
    cursor: pointer;
    position: relative;
    z-index: 1;
    --glare-x: 50%;
    --glare-y: 50%;
}

.recon-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.recon-card-flip.flipped .recon-card-inner {
    transform: rotateY(180deg);
}

.recon-card-flip:not(.hovering) .recon-card-inner {
    transition: transform 0.5s ease;
}

.recon-card-front::after,
.recon-card-back::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 20;
    background: radial-gradient(
        circle at var(--glare-x, 50%) var(--glare-y, 50%),
        rgba(255, 255, 255, 0.25) 0%,
        rgba(255, 255, 255, 0.05) 30%,
        transparent 60%
    );
}

.recon-card-flip.hovering .recon-card-front::after,
.recon-card-flip.hovering .recon-card-back::after {
    opacity: 1;
}

.recon-card-front,
.recon-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.recon-card-back {
    transform: rotateY(180deg);
}

/* Front */
.recon-card {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    border: 5px solid #2563eb;
    background: linear-gradient(180deg, #eff6ff 0%, #bfdbfe 30%, #60a5fa 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
}

.recon-card-inner-border {
    position: absolute;
    inset: 3px;
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 6px;
    pointer-events: none;
    z-index: 10;
}

.recon-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    flex-shrink: 0;
}

.recon-card-name {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.recon-card-emoji {
    font-size: 16px;
    flex-shrink: 0;
}

.recon-card-title {
    font-size: 11px;
    font-weight: 800;
    color: #1e3a5f;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recon-card-hp {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.recon-card-score {
    font-size: 14px;
    font-weight: 900;
    color: #dc2626;
}

.recon-card-score-max {
    font-size: 9px;
    font-weight: 700;
    color: #1d4ed8;
}

.recon-card-hp-label {
    font-size: 9px;
    font-weight: 700;
    color: #1e40af;
    margin-left: 2px;
}

.recon-card-element {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #3b82f6;
    color: white;
    font-size: 9px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 2px;
}

/* Image frame with icon */
.recon-card-image-frame {
    margin: 0 10px 6px;
    border-radius: 6px;
    border: 3px solid rgba(37, 99, 235, 0.4);
    overflow: hidden;
    position: relative;
    height: 120px;
    flex-shrink: 0;
}

.recon-card-image-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1e3a5f, #1d4ed8, #2563eb);
}

.recon-card-image-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.3) 0%, transparent 50%);
}

.recon-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.recon-card-type-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px 5px;
    flex-shrink: 0;
}

.recon-card-type-badge {
    font-size: 9px;
    font-weight: 700;
    color: white;
    background: #3b82f6;
    padding: 3px 10px;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.recon-card-stage {
    font-size: 9px;
    font-style: italic;
    color: #1e40af;
}

.recon-card-moves {
    margin: 0 10px 5px;
    background: rgba(255,255,255,0.7);
    border-radius: 6px;
    border: 1px solid rgba(37, 99, 235, 0.3);
    overflow: hidden;
    flex-shrink: 0;
}

.recon-card-move {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
}

.recon-card-move:first-child {
    border-bottom: 1px solid rgba(37, 99, 235, 0.2);
}

.recon-card-energy {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #3b82f6;
    color: white;
    font-size: 9px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.recon-card-move-info {
    flex: 1;
    min-width: 0;
}

.recon-card-move-name {
    font-size: 10px;
    font-weight: 700;
    color: #1e3a5f;
    display: block;
    line-height: 1.2;
}

.recon-card-move-effect {
    font-size: 8px;
    color: #1d4ed8;
    display: block;
    line-height: 1.3;
    margin-top: 1px;
}

.recon-card-move-damage {
    font-size: 14px;
    font-weight: 900;
    color: #1e3a5f;
    flex-shrink: 0;
}

.recon-card-flavor {
    margin: 0 10px 5px;
    padding: 6px 8px;
    background: rgba(255,255,255,0.5);
    border-radius: 5px;
    border: 1px solid rgba(37, 99, 235, 0.2);
    flex: 1;
    display: flex;
    align-items: center;
    min-height: 2.5rem;
}

.recon-card-flavor p {
    font-size: 9px;
    font-style: italic;
    color: #1e40af;
    text-align: center;
    line-height: 1.4;
    width: 100%;
}

.recon-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    background: rgba(37, 99, 235, 0.2);
    margin-top: auto;
    flex-shrink: 0;
}

.recon-card-weakness {
    display: flex;
    align-items: center;
    gap: 5px;
}

.recon-card-weakness-label {
    font-size: 9px;
    color: #1e40af;
}

.recon-card-weakness-value {
    font-size: 9px;
    font-weight: 700;
    color: #1e3a5f;
}

.recon-card-brand {
    font-size: 9px;
    font-weight: 600;
    color: #1d4ed8;
}

/* Back of card */
.recon-card-back-content {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    border: 5px solid #0ea5e9;
    background: linear-gradient(180deg, #0c1929 0%, #0f2744 50%, #0a1628 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.3);
}

.recon-card-back-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 8px,
        rgba(14, 165, 233, 0.15) 8px,
        rgba(14, 165, 233, 0.15) 16px
    );
}

.recon-card-back-inner-border {
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 6px;
    pointer-events: none;
}

.recon-card-back-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    position: relative;
    z-index: 1;
}

.recon-card-back-badge {
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.05em;
    background: linear-gradient(180deg, #0ea5e9 0%, #0284c7 100%);
    color: #f0f9ff;
    padding: 3px 10px;
    border-radius: 10px;
}

.recon-card-back-rarity {
    font-size: 8px;
    font-weight: 700;
    color: #38bdf8;
}

.recon-card-back-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    position: relative;
    z-index: 1;
}

.recon-card-back-label {
    font-size: 7px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(14, 165, 233, 0.6);
    margin-bottom: 2px;
}

.recon-card-back-archetype {
    font-size: 16px;
    font-weight: 900;
    color: #38bdf8;
    margin-bottom: 8px;
}

.recon-card-back-score-badge {
    display: flex;
    align-items: baseline;
    gap: 4px;
    padding: 4px 12px;
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.2) 0%, rgba(14, 165, 233, 0.1) 100%);
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 16px;
    margin-bottom: 8px;
}

.recon-card-back-score-label {
    font-size: 7px;
    color: rgba(14, 165, 233, 0.7);
}

.recon-card-back-score-value {
    font-size: 16px;
    font-weight: 900;
    color: #38bdf8;
}

.recon-card-back-score-max {
    font-size: 9px;
    color: rgba(14, 165, 233, 0.5);
}

.recon-card-back-quote {
    position: relative;
    padding: 8px 10px;
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.05) 0%, rgba(14, 165, 233, 0.02) 100%);
    border: 1px solid rgba(14, 165, 233, 0.15);
    border-radius: 6px;
    margin-bottom: 8px;
    width: 100%;
}

.recon-card-back-quote-mark {
    position: absolute;
    font-size: 14px;
    font-family: serif;
    color: rgba(14, 165, 233, 0.3);
}

.recon-card-back-quote-mark:first-of-type {
    top: 0;
    left: 4px;
}

.recon-card-back-quote-mark.end {
    bottom: -4px;
    right: 4px;
}

.recon-card-back-quote p {
    font-size: 8px;
    font-style: italic;
    color: rgba(186, 230, 253, 0.9);
    text-align: center;
    line-height: 1.4;
}

.recon-card-back-divider {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    margin-bottom: 8px;
}

.recon-card-back-divider-line {
    flex: 1;
    height: 1px;
    background: rgba(14, 165, 233, 0.2);
}

.recon-card-back-pokeball {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(14, 165, 233, 0.3);
    position: relative;
    overflow: hidden;
}

.recon-card-back-pokeball-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.2) 0%, transparent 100%);
}

.recon-card-back-pokeball-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(14, 165, 233, 0.3);
    transform: translateY(-50%);
}

.recon-card-back-pokeball-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #38bdf8;
    border: 1px solid rgba(14, 165, 233, 0.4);
}

.recon-card-back-cta {
    text-align: center;
}

.recon-card-back-cta-url {
    font-size: 10px;
    font-weight: 700;
    color: #38bdf8;
    letter-spacing: 0.05em;
}

.recon-card-back-corner {
    position: absolute;
    width: 12px;
    height: 12px;
    border: 0 solid rgba(14, 165, 233, 0.2);
}

.recon-card-back-corner.tl {
    top: 12px;
    left: 12px;
    border-top-width: 1px;
    border-left-width: 1px;
    border-top-left-radius: 3px;
}

.recon-card-back-corner.tr {
    top: 12px;
    right: 12px;
    border-top-width: 1px;
    border-right-width: 1px;
    border-top-right-radius: 3px;
}

.recon-card-back-corner.bl {
    bottom: 12px;
    left: 12px;
    border-bottom-width: 1px;
    border-left-width: 1px;
    border-bottom-left-radius: 3px;
}

.recon-card-back-corner.br {
    bottom: 12px;
    right: 12px;
    border-bottom-width: 1px;
    border-right-width: 1px;
    border-bottom-right-radius: 3px;
}

.recon-card-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 12px;
}

.recon-card-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 0.75rem 1.25rem 1.25rem;
    text-decoration: none;
    border-top: 1px solid var(--border);
}

.recon-card-link:hover {
    background: rgba(255,255,255,0.02);
}

.recon-card-link .project-status {
    margin-bottom: 0.5rem;
}

.recon-card-link h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.recon-card-link p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0;
}

.recon-card-link .project-tech {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
}

.recon-card-flip:hover .recon-card {
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.5);
}

.recon-card-flip:hover .recon-card-back-content {
    box-shadow: 0 12px 40px rgba(14, 165, 233, 0.5);
}

/* ===== Cooked Card - Fire/Orange Theme ===== */
.cooked-card-project {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: visible;
}

.cooked-card-project:hover {
    transform: none;
}

.cooked-card-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.25rem;
    padding-bottom: 0.5rem;
    position: relative;
    overflow: hidden;
}

.cooked-card-glow {
    position: absolute;
    top: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    height: 360px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.25), rgba(234, 88, 12, 0.25), rgba(251, 191, 36, 0.25));
    border-radius: 24px;
    filter: blur(50px);
    opacity: 0.4;
    animation: cooked-glow-pulse 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes cooked-glow-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.7; }
}

.cooked-card-flip {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 5 / 7;
    perspective: 1000px;
    cursor: pointer;
    position: relative;
    z-index: 1;
    --glare-x: 50%;
    --glare-y: 50%;
}

.cooked-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.cooked-card-flip.flipped .cooked-card-inner {
    transform: rotateY(180deg);
}

.cooked-card-flip:not(.hovering) .cooked-card-inner {
    transition: transform 0.5s ease;
}

.cooked-card-front::after,
.cooked-card-back::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 20;
    background: radial-gradient(
        circle at var(--glare-x, 50%) var(--glare-y, 50%),
        rgba(255, 255, 255, 0.25) 0%,
        rgba(255, 255, 255, 0.05) 30%,
        transparent 60%
    );
}

.cooked-card-flip.hovering .cooked-card-front::after,
.cooked-card-flip.hovering .cooked-card-back::after {
    opacity: 1;
}

.cooked-card-front,
.cooked-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.cooked-card-back {
    transform: rotateY(180deg);
}

.cooked-card {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    border: 5px solid #ea580c;
    background: linear-gradient(180deg, #fff7ed 0%, #fed7aa 30%, #fb923c 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(234, 88, 12, 0.3);
}

.cooked-card-inner-border {
    position: absolute;
    inset: 3px;
    border: 1px solid rgba(234, 88, 12, 0.3);
    border-radius: 6px;
    pointer-events: none;
    z-index: 10;
}

.cooked-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    flex-shrink: 0;
}

.cooked-card-name {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.cooked-card-emoji {
    font-size: 16px;
    flex-shrink: 0;
}

.cooked-card-title {
    font-size: 11px;
    font-weight: 800;
    color: #7c2d12;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cooked-card-hp {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.cooked-card-score {
    font-size: 14px;
    font-weight: 900;
    color: #dc2626;
}

.cooked-card-score-max {
    font-size: 9px;
    font-weight: 700;
    color: #c2410c;
}

.cooked-card-hp-label {
    font-size: 9px;
    font-weight: 700;
    color: #9a3412;
    margin-left: 2px;
}

.cooked-card-element {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #f97316;
    color: white;
    font-size: 9px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 2px;
}

.cooked-card-image-frame {
    margin: 0 10px 6px;
    border-radius: 6px;
    border: 3px solid rgba(234, 88, 12, 0.4);
    overflow: hidden;
    position: relative;
    height: 120px;
    flex-shrink: 0;
}

.cooked-card-image-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #7c2d12, #c2410c, #ea580c);
}

.cooked-card-image-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.3) 0%, transparent 50%);
}

.cooked-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.cooked-card-type-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px 5px;
    flex-shrink: 0;
}

.cooked-card-type-badge {
    font-size: 9px;
    font-weight: 700;
    color: white;
    background: #f97316;
    padding: 3px 10px;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.cooked-card-stage {
    font-size: 9px;
    font-style: italic;
    color: #9a3412;
}

.cooked-card-moves {
    margin: 0 10px 5px;
    background: rgba(255,255,255,0.7);
    border-radius: 6px;
    border: 1px solid rgba(234, 88, 12, 0.3);
    overflow: hidden;
    flex-shrink: 0;
}

.cooked-card-move {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
}

.cooked-card-move:first-child {
    border-bottom: 1px solid rgba(234, 88, 12, 0.2);
}

.cooked-card-energy {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #f97316;
    color: white;
    font-size: 9px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cooked-card-move-info {
    flex: 1;
    min-width: 0;
}

.cooked-card-move-name {
    font-size: 10px;
    font-weight: 700;
    color: #7c2d12;
    display: block;
    line-height: 1.2;
}

.cooked-card-move-effect {
    font-size: 8px;
    color: #c2410c;
    display: block;
    line-height: 1.3;
    margin-top: 1px;
}

.cooked-card-move-damage {
    font-size: 14px;
    font-weight: 900;
    color: #7c2d12;
    flex-shrink: 0;
}

.cooked-card-flavor {
    margin: 0 10px 5px;
    padding: 6px 8px;
    background: rgba(255,255,255,0.5);
    border-radius: 5px;
    border: 1px solid rgba(234, 88, 12, 0.2);
    flex: 1;
    display: flex;
    align-items: center;
    min-height: 2.5rem;
}

.cooked-card-flavor p {
    font-size: 9px;
    font-style: italic;
    color: #9a3412;
    text-align: center;
    line-height: 1.4;
    width: 100%;
}

.cooked-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    background: rgba(234, 88, 12, 0.2);
    margin-top: auto;
    flex-shrink: 0;
}

.cooked-card-weakness {
    display: flex;
    align-items: center;
    gap: 5px;
}

.cooked-card-weakness-label {
    font-size: 9px;
    color: #9a3412;
}

.cooked-card-weakness-value {
    font-size: 9px;
    font-weight: 700;
    color: #7c2d12;
}

.cooked-card-brand {
    font-size: 9px;
    font-weight: 600;
    color: #c2410c;
}

/* Back */
.cooked-card-back-content {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    border: 5px solid #fbbf24;
    background: linear-gradient(180deg, #1c1007 0%, #2a1a0a 50%, #1a0f05 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.3);
}

.cooked-card-back-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 8px,
        rgba(251, 191, 36, 0.15) 8px,
        rgba(251, 191, 36, 0.15) 16px
    );
}

.cooked-card-back-inner-border {
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 6px;
    pointer-events: none;
}

.cooked-card-back-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    position: relative;
    z-index: 1;
}

.cooked-card-back-badge {
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.05em;
    background: linear-gradient(180deg, #f97316 0%, #ea580c 100%);
    color: #fff7ed;
    padding: 3px 10px;
    border-radius: 10px;
}

.cooked-card-back-rarity {
    font-size: 8px;
    font-weight: 700;
    color: #fbbf24;
}

.cooked-card-back-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    position: relative;
    z-index: 1;
}

.cooked-card-back-label {
    font-size: 7px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(251, 191, 36, 0.6);
    margin-bottom: 2px;
}

.cooked-card-back-archetype {
    font-size: 16px;
    font-weight: 900;
    color: #fbbf24;
    margin-bottom: 8px;
}

.cooked-card-back-score-badge {
    display: flex;
    align-items: baseline;
    gap: 4px;
    padding: 4px 12px;
    background: linear-gradient(180deg, rgba(251, 191, 36, 0.2) 0%, rgba(251, 191, 36, 0.1) 100%);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 16px;
    margin-bottom: 8px;
}

.cooked-card-back-score-label {
    font-size: 7px;
    color: rgba(251, 191, 36, 0.7);
}

.cooked-card-back-score-value {
    font-size: 16px;
    font-weight: 900;
    color: #fbbf24;
}

.cooked-card-back-score-max {
    font-size: 9px;
    color: rgba(251, 191, 36, 0.5);
}

.cooked-card-back-quote {
    position: relative;
    padding: 8px 10px;
    background: linear-gradient(180deg, rgba(251, 191, 36, 0.05) 0%, rgba(251, 191, 36, 0.02) 100%);
    border: 1px solid rgba(251, 191, 36, 0.15);
    border-radius: 6px;
    margin-bottom: 8px;
    width: 100%;
}

.cooked-card-back-quote-mark {
    position: absolute;
    font-size: 14px;
    font-family: serif;
    color: rgba(251, 191, 36, 0.3);
}

.cooked-card-back-quote-mark:first-of-type {
    top: 0;
    left: 4px;
}

.cooked-card-back-quote-mark.end {
    bottom: -4px;
    right: 4px;
}

.cooked-card-back-quote p {
    font-size: 8px;
    font-style: italic;
    color: rgba(253, 230, 138, 0.9);
    text-align: center;
    line-height: 1.4;
}

.cooked-card-back-divider {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    margin-bottom: 8px;
}

.cooked-card-back-divider-line {
    flex: 1;
    height: 1px;
    background: rgba(251, 191, 36, 0.2);
}

.cooked-card-back-pokeball {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(251, 191, 36, 0.3);
    position: relative;
    overflow: hidden;
}

.cooked-card-back-pokeball-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(251, 191, 36, 0.2) 0%, transparent 100%);
}

.cooked-card-back-pokeball-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(251, 191, 36, 0.3);
    transform: translateY(-50%);
}

.cooked-card-back-pokeball-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.4);
}

.cooked-card-back-cta {
    text-align: center;
}

.cooked-card-back-cta-url {
    font-size: 10px;
    font-weight: 700;
    color: #fbbf24;
    letter-spacing: 0.05em;
}

.cooked-card-back-corner {
    position: absolute;
    width: 12px;
    height: 12px;
    border: 0 solid rgba(251, 191, 36, 0.2);
}

.cooked-card-back-corner.tl { top: 12px; left: 12px; border-top-width: 1px; border-left-width: 1px; border-top-left-radius: 3px; }
.cooked-card-back-corner.tr { top: 12px; right: 12px; border-top-width: 1px; border-right-width: 1px; border-top-right-radius: 3px; }
.cooked-card-back-corner.bl { bottom: 12px; left: 12px; border-bottom-width: 1px; border-left-width: 1px; border-bottom-left-radius: 3px; }
.cooked-card-back-corner.br { bottom: 12px; right: 12px; border-bottom-width: 1px; border-right-width: 1px; border-bottom-right-radius: 3px; }

.cooked-card-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 12px;
}

.cooked-card-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 0.75rem 1.25rem 1.25rem;
    text-decoration: none;
    border-top: 1px solid var(--border);
}

.cooked-card-link:hover {
    background: rgba(255,255,255,0.02);
}

.cooked-card-link .project-status { margin-bottom: 0.5rem; }

.cooked-card-link h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.cooked-card-link p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0;
}

.cooked-card-link .project-tech {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
}

.cooked-card-flip:hover .cooked-card {
    box-shadow: 0 12px 40px rgba(249, 115, 22, 0.5);
}

.cooked-card-flip:hover .cooked-card-back-content {
    box-shadow: 0 12px 40px rgba(251, 191, 36, 0.5);
}

/* Interests */
.interests {
    margin-bottom: 4rem;
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.interest-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: border-color 0.2s ease;
}

.interest-item:hover {
    border-color: var(--border-hover);
}

.interest-icon {
    width: 32px;
    height: 32px;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.interest-icon svg {
    width: 100%;
    height: 100%;
}

.interest-label {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.interest-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Experience */
.role-entry {
    margin-bottom: 2.5rem;
    padding: 1.25rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border);
    border-radius: 12px;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.role-entry:hover {
    background: var(--bg-elevated);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.role-entry:last-child {
    margin-bottom: 0;
    padding-bottom: 1.25rem;
    border-bottom: none;
}

.role-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.company-info {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
}

.company-logo {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
    margin-top: 2px;
}

.company-logo svg {
    width: 20px;
    height: 20px;
}

.company-logo.google {
    background: #1a1a1a;
    color: #4285f4;
}

.company-logo.google svg path:nth-child(1) { fill: #4285f4; }
.company-logo.google svg path:nth-child(2) { fill: #34a853; }
.company-logo.google svg path:nth-child(3) { fill: #fbbc05; }
.company-logo.google svg path:nth-child(4) { fill: #ea4335; }

.company-logo.meta {
    background: #1a1a1a;
    color: #0866ff;
}

.company-logo.microsoft {
    background: #1a1a1a;
    color: #00a4ef;
}

.role-entry h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.125rem;
}

.role-entry .title {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.role-entry .dates {
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.role-entry ul {
    list-style: none;
    padding-left: 0;
    margin-left: calc(36px + 0.875rem);
}

.role-entry li {
    position: relative;
    padding-left: 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.role-entry li::before {
    content: "–";
    position: absolute;
    left: 0;
    color: var(--text-muted);
}

.role-entry li:last-child {
    margin-bottom: 0;
}

.role-entry li .highlight {
    color: var(--text-secondary);
    font-weight: 400;
}

.role-entry li .highlight.metric {
    color: var(--accent-green);
    font-weight: 600;
}

/* Things I've Launched */
.launched {
    margin-bottom: 4rem;
}

.launched-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.launched-item {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.launched-item:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.launched-item:hover .launched-screenshot {
    transform: scale(1.03);
}

.launched-screenshot {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 8px;
    margin-bottom: 0.875rem;
    object-fit: cover;
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
}

.launched-company {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.launched-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.375rem;
}

.launched-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.launched-impact {
    display: inline-flex;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-green);
    margin-top: 0.625rem;
    padding: 0.25rem 0.5rem;
    background: rgba(52, 211, 153, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.15);
    border-radius: 6px;
    letter-spacing: 0.01em;
    align-self: flex-start;
}

/* Talks Section */
.talks {
    margin-bottom: 4.5rem;
}

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

.talk-item {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.talk-item:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.talk-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    object-fit: cover;
    border: 1px solid var(--border);
}

.talk-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.25rem;
}

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

.talk-event {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.talk-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

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

/* Projects & Writing */
.projects .project-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-link {
    display: block;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.project-link:hover {
    border-color: var(--border-hover);
    background: var(--bg-elevated);
}

.project-name {
    display: block;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.project-desc {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Article card */
.article-card {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    overflow: hidden;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.article-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-elevated);
    transform: translateY(-2px);
}

.article-card-img {
    width: 260px;
    object-fit: cover;
    object-position: center left;
    flex-shrink: 0;
    align-self: stretch;
}

.article-card-body {
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.3rem;
}

.article-card-tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent, #93c5fd);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.article-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}

.article-card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

@media (max-width: 600px) {
    .article-card {
        flex-direction: column;
    }
    .article-card-img {
        width: 100%;
        height: 160px;
    }
}

/* Contact */
.contact p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.contact-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.15s ease;
}

.contact-btn svg {
    width: 18px;
    height: 18px;
}

.contact-btn:hover {
    border-color: var(--border-hover);
    color: var(--text);
    background: var(--bg-elevated);
}

.contact-btn.primary {
    background: #0a66c2;
    border-color: #0a66c2;
    color: white;
}

.contact-btn.primary:hover {
    background: #004182;
    border-color: #004182;
}

/* Footer */
footer {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
    border-top: 1px solid var(--border);
}

footer p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 640px) {
    .social-sidebar {
        display: none;
    }

    main {
        padding: 3rem 1.25rem 2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .role {
        font-size: 1.25rem;
    }

    .hero-stats {
        gap: 1.25rem;
        flex-wrap: wrap;
    }

    .hero-stat-number {
        font-size: 1.3rem;
    }

    .hero-stat-label {
        font-size: 0.65rem;
    }

    .hero-logos {
        margin-top: 1.5rem;
        padding-top: 1rem;
    }

    .hero-logos-row {
        gap: 1rem;
    }

    .hero-logo-item {
        font-size: 0.75rem;
        gap: 0.35rem;
    }

    .hero-logo-svg {
        width: 16px;
        height: 16px;
    }

    .theme-toggle {
        top: 1rem;
        right: 1rem;
        width: 36px;
        height: 36px;
    }

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

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

    .pm-card-flip,
    .jluk-card-flip,
    .recon-card-flip,
    .cooked-card-flip {
        max-width: 260px;
    }

    .pm-card-container,
    .jluk-card-container,
    .recon-card-container,
    .cooked-card-container {
        padding: 1rem;
        padding-bottom: 0.25rem;
    }

    h2 {
        font-size: 1rem;
    }

    .music-player {
        bottom: 1rem;
        right: 1rem;
    }

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

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

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

    .role-header {
        flex-direction: column;
        gap: 0.25rem;
    }

    .role-entry .dates {
        font-size: 0.8rem;
    }

    .role-entry ul {
        margin-left: 0;
    }

    .contact-links {
        flex-direction: column;
    }

    .contact-btn {
        justify-content: center;
    }

    .progress-nav {
        display: none !important;
    }
}

/* ===== Progress Nav ===== */
.progress-nav {
    position: fixed;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.progress-nav.visible {
    opacity: 1;
    pointer-events: auto;
}

.progress-dot {
    position: relative;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.progress-dot:hover {
    background: var(--text-muted);
    transform: scale(1.4);
}

.progress-dot.active {
    background: var(--accent);
    box-shadow: 0 0 8px rgba(147, 197, 253, 0.4);
    transform: scale(1.3);
}

.progress-label {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    background: var(--bg-elevated);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid var(--border);
}

.progress-dot:hover .progress-label {
    opacity: 1;
}

/* ===== Scroll Reveal Animations ===== */
.reveal {
    opacity: 0.85;
    transform: translateY(12px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Hero always visible */
.hero {
    opacity: 1;
    transform: none;
}

/* Staggered children */
.launched-item,
.talk-item,
.role-entry,
.interest-item,
.project-link {
    opacity: 0.85;
    transform: translateY(8px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.launched-item.stagger-in,
.talk-item.stagger-in,
.role-entry.stagger-in,
.interest-item.stagger-in,
.project-link.stagger-in {
    opacity: 1;
    transform: translateY(0);
}
