/* style.css - Wersja "Swiss Editorial" (Czysta i Wyraźna) */

/* --- 1. CONFIG --- */
:root {
    /* New Palette based on Screenshot */
    --bg-hero: #E3DDD5;
    /* Warm Beige */
    --bg-dark: #0A0A0A;
    /* Darker Section Background for better contrast */
    --bg-card-dark: rgba(24, 24, 27, 0.8);
    /* Semi-transparent card for glass effect */
    --bg-card-solid: #18181B;
    /* Solid fallback */

    --ink-primary: #1A1A1A;
    --ink-secondary: #4A4A4A;
    --ink-light: #F5F5F7;
    /* Text on dark bg */
    --ink-light-secondary: #A0A0A0;

    --accent-glow: rgba(255, 255, 255, 0.4);

    /* Card glow colors */
    --glow-blue: rgba(59, 130, 246, 0.5);
    --glow-purple: rgba(139, 92, 246, 0.4);
    --glow-cyan: rgba(34, 211, 238, 0.4);
    --glow-white: rgba(255, 255, 255, 0.15);

    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-code: 'JetBrains Mono', monospace;

    --container-width: 1200px;
    --card-radius: 16px;
}

/* --- 2. BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #F5F5F7;
    /* Reset to original light grey/white */
    color: var(--ink-primary);
    font-family: var(--font-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
    overflow-x: hidden;
    /* Prevent horizontal scroll from full-width sections */
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- 3. TYPOGRAPHY --- */
h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--ink-primary);
    line-height: 1.1;
}

.text-mono {
    font-family: var(--font-code);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink-secondary);
    font-weight: 600;
    display: block;
    margin-bottom: 1.5rem;
}

.text-lead {
    font-size: 1.1rem;
    color: var(--ink-secondary);
    max-width: 600px;
    margin-top: 1.5rem;
    line-height: 1.6;
    font-weight: 400;
}

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

.section-padding {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.divider {
    width: 100%;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1);
    margin: 3rem 0;
}

/* --- 5. HEADER --- */
header {
    padding: 2rem 0;
    background: var(--bg-hero);
    /* Transparent on hero */
}

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

.nav-center {
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: 1rem;
    text-transform: uppercase;
}

.nav-link {
    font-size: 0.75rem;
    font-family: var(--font-code);
    font-weight: 500;
    margin-left: 2rem;
    color: var(--ink-secondary);
    text-transform: uppercase;
}

.nav-link:hover {
    color: var(--ink-primary);
}

.nav-left {
    display: none;
    /* Hidden as per design usually, or keep if needed */
}

/* Show nav-right */
.nav-right {
    display: flex;
}


/* --- 6. HERO SECTION --- */
/* Note: .hero overrides .container to achieve full-width background */
section.hero {
    background-color: var(--bg-hero);
    /* Apply warm beige ONLY to hero */
    min-height: 85vh;
    /* Increase height slightly */
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 6rem;
    padding-top: 2rem;
    /* Add top padding since header is transparent */
    gap: 2rem;
    position: relative;
    /* Full-width override - explicitly override .container constraints */
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: 0;
    padding-left: calc(max(0px, 50vw - var(--container-width) / 2) + 2rem);
    padding-right: calc(max(0px, 50vw - var(--container-width) / 2) + 2rem);
    box-sizing: border-box;
}

.hero-content {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
}

.hero-location {
    font-family: var(--font-code);
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--ink-secondary);
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.hero h1 {
    font-size: clamp(3.5rem, 5vw, 5.5rem);
    line-height: 1;
    margin-bottom: 2rem;
    letter-spacing: -0.04em;
    color: #1A1A1A;
}

.hero-cta {
    margin-top: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #1A1A1A;
    color: #FFF;
    padding: 1rem 2rem;
    border-radius: 6px;
    font-family: var(--font-code);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    width: fit-content;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    background-color: #000;
}

/* --- HERO IMAGE & GLOW --- */
.hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Glowing Circles Effect */
.glow-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    pointer-events: none;
}

.c-1 {
    width: 350px;
    height: 350px;
    animation: spin 20s linear infinite;
}

.c-2 {
    width: 450px;
    height: 450px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    animation: spin-rev 30s linear infinite;
}

.c-3 {
    width: 550px;
    height: 550px;
    opacity: 0.5;
    animation: spin 40s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes spin-rev {
    100% {
        transform: rotate(-360deg);
    }
}


.hero-avatar {
    width: 320px;
    height: 320px;
    object-fit: cover;
    border-radius: 50%;
    z-index: 5;
    filter: grayscale(100%);
    transition: filter 0.5s ease, transform 0.5s ease;
    /* Restore transition */
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.1), 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hero-avatar:hover {
    filter: grayscale(0%);
    /* Restore color on hover */
    transform: scale(1.02);
}

.status-badge {
    /* Updated to be a small pill inside text or separate */
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #D4CDC3;
    /* Slightly darker beige */
    border-radius: 100px;
    font-family: var(--font-code);
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--ink-primary);
    margin-top: 1rem;
    width: fit-content;
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: #00C853;
    border-radius: 50%;
}

/* --- 7. BENTO GRID --- */
/* --- 7. BENTO GRID (SERVICES) --- */
/* Note: #expertise overrides .container to achieve full-width background */
section#expertise {
    background-color: var(--bg-dark);
    color: var(--ink-light);
    position: relative;
    overflow: hidden;
    /* Full-width override - explicitly override .container constraints */
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: 0;
    padding: 6rem max(2rem, calc(50vw - var(--container-width) / 2));
    box-sizing: border-box;
    /* Full width background with contained content */

    /* Ensure content stays above canvas background */
    z-index: 1;
}

/* Canvas container for animated background */
section#expertise .canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

section#expertise canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Ensure all content is above the canvas */
section#expertise .text-mono,
section#expertise .divider,
section#expertise .bento-grid {
    position: relative;
    z-index: 2;
}

#expertise .text-mono {
    color: var(--ink-light-secondary);
}

#expertise .divider {
    background-color: rgba(255, 255, 255, 0.1);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 columns as per screenshot */
    gap: 2rem;
    /* Increased gap */
    width: 100%;
    margin-top: 3rem;
}

.bento-card {
    /* Glass-morphism background */
    background: var(--bg-card-dark);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2.5rem;
    /* More padding inside cards */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 1.5rem;
    border-radius: var(--card-radius);
    /* Enhanced border with subtle glow */
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Multi-layer shadow for depth and glow */
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 1px 0 rgba(255, 255, 255, 0.1) inset;
    transition:
        transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.4s ease,
        box-shadow 0.4s ease;
    min-height: 400px;
    /* Taller cards */
    position: relative;
    overflow: hidden;
}

/* Subtle gradient overlay for premium feel */
.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2) 50%,
            transparent);
    opacity: 0.8;
}

/* Glow effect layer */
.bento-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center,
            var(--glow-white) 0%,
            transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: -1;
}

.bento-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(255, 255, 255, 0.05),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 1px 0 rgba(255, 255, 255, 0.15) inset;
}

.bento-card:hover::after {
    opacity: 0.3;
}

/* First card - Blue accent glow (Applied AI Engineering) */
.bento-card:first-child {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(59, 130, 246, 0.15),
        0 0 0 1px rgba(59, 130, 246, 0.1) inset;
}

.bento-card:first-child::after {
    background: radial-gradient(circle at center,
            var(--glow-blue) 0%,
            transparent 50%);
}

.bento-card:first-child:hover {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(59, 130, 246, 0.25),
        0 0 0 1px rgba(59, 130, 246, 0.2) inset;
}

/* Second card - Purple accent glow (Backend & Data) */
.bento-card:nth-child(2) {
    border-color: rgba(139, 92, 246, 0.2);
}

.bento-card:nth-child(2)::after {
    background: radial-gradient(circle at center,
            var(--glow-purple) 0%,
            transparent 50%);
}

.bento-card:nth-child(2):hover {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(139, 92, 246, 0.2),
        0 0 0 1px rgba(139, 92, 246, 0.15) inset;
}

/* Third card - Cyan accent glow (Cloud & Infrastructure) */
.bento-card:nth-child(3) {
    border-color: rgba(34, 211, 238, 0.2);
}

.bento-card:nth-child(3)::after {
    background: radial-gradient(circle at center,
            var(--glow-cyan) 0%,
            transparent 50%);
}

.bento-card:nth-child(3):hover {
    border-color: rgba(34, 211, 238, 0.4);
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(34, 211, 238, 0.2),
        0 0 0 1px rgba(34, 211, 238, 0.15) inset;
}

/* Override span classes for 3-column grid if needed, or just make them all 1fr */
.span-8,
.span-6,
.span-4 {
    grid-column: span 1;
    /* Reset to single column for the 3-card layout */
}

.bento-card:first-child,
.bento-card:last-child {
    grid-column: span 1;
    /* Reset */
}


/* Icon wrapper with background box */
.card-icon-wrapper {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    margin-bottom: 0.5rem;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.bento-card:hover .card-icon-wrapper {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.15);
    transform: scale(1.02);
}

/* Color-matched icon wrapper backgrounds */
.bento-card:first-child .card-icon-wrapper {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
}

.bento-card:first-child:hover .card-icon-wrapper {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

.bento-card:nth-child(2) .card-icon-wrapper {
    background: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.15);
}

.bento-card:nth-child(2):hover .card-icon-wrapper {
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.25);
}

.bento-card:nth-child(3) .card-icon-wrapper {
    background: rgba(34, 211, 238, 0.08);
    border-color: rgba(34, 211, 238, 0.15);
}

.bento-card:nth-child(3):hover .card-icon-wrapper {
    background: rgba(34, 211, 238, 0.12);
    border-color: rgba(34, 211, 238, 0.25);
}

.card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-light);
    /* Subtle glow on icon */
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.15));
    transition: filter 0.3s ease, transform 0.3s ease;
}

/* Ensure SVG inside card-icon fills container and centers properly */
.card-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.bento-card:hover .card-icon {
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.25));
    transform: scale(1.05);
}

/* Color-matched icon glows */
.bento-card:first-child .card-icon {
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.3));
}

.bento-card:first-child:hover .card-icon {
    filter: drop-shadow(0 0 16px rgba(59, 130, 246, 0.5));
}

.bento-card:nth-child(2) .card-icon {
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.25));
}

.bento-card:nth-child(2):hover .card-icon {
    filter: drop-shadow(0 0 16px rgba(139, 92, 246, 0.4));
}

.bento-card:nth-child(3) .card-icon {
    filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.25));
}

.bento-card:nth-child(3):hover .card-icon {
    filter: drop-shadow(0 0 16px rgba(34, 211, 238, 0.4));
}

.card-title {
    font-size: 1.875rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.03em;
    color: var(--ink-light);
    line-height: 1.2;
}

.card-desc {
    font-size: 0.9rem;
    color: var(--ink-light-secondary);
    line-height: 1.6;
    margin-bottom: auto;
    /* Push tags to bottom */
}

.bento-card>div:last-child {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 1.5rem;
}

.skill-tag {
    font-family: var(--font-code);
    font-size: 0.65rem;
    font-weight: 600;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--ink-light);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.skill-tag:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* Color-matched skill tags for each card */
.bento-card:first-child .skill-tag {
    border-color: rgba(59, 130, 246, 0.2);
}

.bento-card:first-child .skill-tag:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
}

.bento-card:nth-child(2) .skill-tag {
    border-color: rgba(139, 92, 246, 0.15);
}

.bento-card:nth-child(2) .skill-tag:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.35);
}

.bento-card:nth-child(3) .skill-tag {
    border-color: rgba(34, 211, 238, 0.15);
}

.bento-card:nth-child(3) .skill-tag:hover {
    background: rgba(34, 211, 238, 0.15);
    border-color: rgba(34, 211, 238, 0.35);
}

/* --- 8. KEY ACHIEVEMENTS SECTION --- */
#achievements {
    background-color: #F5F5F7;
    padding: 6rem 2rem;
}

#achievements .text-mono {
    color: var(--ink-secondary);
}

#achievements .divider {
    background-color: rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

.achievements-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

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

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

.stat-value {
    font-family: var(--font-display);
    font-size: clamp(4rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--ink-primary);
}

.stat-label {
    font-family: var(--font-code);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink-secondary);
    font-weight: 500;
}

.achievements-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.achievement-card {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--card-radius);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.achievement-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-primary);
}

.achievement-icon svg {
    width: 32px;
    height: 32px;
}

.achievement-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink-primary);
    letter-spacing: -0.02em;
}

.achievement-desc {
    font-size: 0.95rem;
    color: var(--ink-secondary);
    line-height: 1.6;
}

/* --- 9. LISTS & EDUCATION --- */
.xp-list {
    border-top: 1px solid var(--border-light);
}

.xp-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border-light);
}

.xp-date {
    font-family: var(--font-code);
    color: var(--ink-tertiary);
    font-size: 0.8rem;
    font-weight: 500;
    padding-top: 6px;
}

.xp-role h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.xp-company {
    font-size: 1rem;
    color: var(--ink-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.xp-details li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--ink-secondary);
    font-size: 0.95rem;
}

.xp-details li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--ink-tertiary);
}

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

.education-grid h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* --- 10. FOOTER --- */
footer {
    margin-top: 0;
    border-top: none;
    padding-bottom: 4rem;
}

#contact-area {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 6rem;
}

.contact-link {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--ink-primary);
    line-height: 1.1;
    letter-spacing: -0.03em;
    width: fit-content;
}

.contact-link:hover {
    opacity: 0.6;
}

.footer-meta {
    display: flex;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
    color: var(--ink-tertiary);
    font-family: var(--font-code);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.socials-wrapper {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.social-link {
    font-family: var(--font-code);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ink-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--ink-primary);
    text-decoration: underline;
    text-decoration-thickness: 1px;
}

/* --- 11. MEDIA QUERIES --- */
@media (max-width: 900px) {
    .hero {
        flex-direction: column-reverse;
        gap: 2rem;
        text-align: center;
        justify-content: center;
    }

    .hero-content {
        align-items: center;
    }

    .hero-meta {
        justify-content: center;
    }

    .hero-image-wrapper {
        justify-content: center;
        width: 100%;
        margin-bottom: 1rem;
    }

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

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

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

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

@media (max-width: 800px) {

    .bento-grid,
    .education-grid,
    .xp-item {
        grid-template-columns: 1fr;
    }

    .bento-card:first-child,
    .bento-card:last-child,
    .bento-card:nth-child(2),
    .bento-card:nth-child(3) {
        grid-column: span 1;
    }

    .bento-card {
        min-height: auto;
        padding: 2rem;
        /* Reduce glow effects on mobile for performance */
        box-shadow:
            0 4px 16px rgba(0, 0, 0, 0.4),
            0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    }

    .bento-card:first-child {
        box-shadow:
            0 4px 16px rgba(0, 0, 0, 0.4),
            0 0 20px rgba(59, 130, 246, 0.1),
            0 0 0 1px rgba(59, 130, 246, 0.1) inset;
    }

    .bento-card:hover {
        transform: translateY(-4px);
    }

    .card-icon-wrapper {
        width: 60px;
        height: 60px;
        border-radius: 12px;
    }

    .card-icon {
        width: 32px;
        height: 32px;
    }

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

    .socials-wrapper {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-meta {
        flex-direction: column;
        gap: 1rem;
    }

    #contact-area {
        margin-bottom: 4rem;
    }

    .nav-wrapper {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-link {
        margin: 0 0.5rem;
    }

    .stat-value {
        font-size: 3rem;
    }
}

/* PRINT */
@media print {
    @page {
        margin: 1cm;
        size: auto;
    }

    body {
        background-color: #fff !important;
    }

    header {
        display: none;
    }

    .hero {
        min-height: auto;
        padding-bottom: 2rem;
    }

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

    .bento-card {
        break-inside: avoid;
        border: 1px solid #ccc;
        box-shadow: none;
        padding: 1.5rem;
    }

    footer {
        padding: 2rem 0 0 0;
        margin-top: 3rem;
        page-break-inside: avoid;
    }

    .hero-avatar {
        width: 150px;
        height: 150px;
        filter: grayscale(100%) !important;
        border: 1px solid #ccc;
        box-shadow: none;
    }
}

/* --- 12. ANIMATIONS --- */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Subtle glow pulse animation for featured card */
@keyframes glowPulse {

    0%,
    100% {
        box-shadow:
            0 4px 24px rgba(0, 0, 0, 0.4),
            0 0 30px rgba(59, 130, 246, 0.15),
            0 0 0 1px rgba(59, 130, 246, 0.1) inset;
    }

    50% {
        box-shadow:
            0 4px 24px rgba(0, 0, 0, 0.4),
            0 0 40px rgba(59, 130, 246, 0.25),
            0 0 0 1px rgba(59, 130, 246, 0.15) inset;
    }
}

/* Apply subtle pulse to first card */
.bento-card:first-child {
    animation: glowPulse 4s ease-in-out infinite;
}

.bento-card:first-child:hover {
    animation: none;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {

    .bento-card,
    .bento-card:first-child,
    .card-icon,
    .skill-tag {
        transition: none;
        animation: none;
    }

    .bento-card::after {
        display: none;
    }
}