/* ==========================================================================
   MARIUSZ CZAPLICKI - NEW V2
   Modern, vibrant neo-fluid design matching koncepcja.png
   ========================================================================== */

/* --------------------------------------------------------------------------
   Design Tokens & CSS Variables
   -------------------------------------------------------------------------- */
:root {
    --bg-page: #F8F6F1;
    --bg-page-alt: #F3EFEA;
    --text-primary: #111827;
    --text-secondary: #4B5563;
    --text-muted: #9CA3AF;
    --text-light: #F9FAFB;

    /* Theme Accents */
    --accent-purple: #7C3AED;
    --accent-purple-light: #A78BFA;
    --accent-blue: #0284C7;
    --accent-blue-deep: #1D4ED8;
    --accent-cyan: #06B6D4;
    --accent-cyan-light: #38BDF8;
    --accent-pink: #EC4899;
    --accent-pink-soft: #F472B6;
    --accent-orange: #F59E0B;
    --accent-orange-light: #FBBF24;

    /* Gradients */
    --grad-czaplicki: linear-gradient(90deg, #7C3AED 0%, #2563EB 50%, #06B6D4 100%);
    --grad-card-cyan: linear-gradient(145deg, #48CAE4 0%, #00B4D8 100%);
    --grad-card-purple: linear-gradient(145deg, #BDB2FF 0%, #9F86C0 100%);
    --grad-card-pink: linear-gradient(145deg, #FF99C8 0%, #FB7185 100%);
    --grad-card-orange: linear-gradient(145deg, #FDE68A 0%, #F59E0B 100%);

    /* Radii & Shadows */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-pill: 9999px;

    --shadow-soft: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
    --shadow-card-hover: 0 20px 30px -10px rgba(0, 0, 0, 0.12), 0 10px 15px -5px rgba(0, 0, 0, 0.06);
    --shadow-disc: 0 25px 50px -12px rgba(15, 23, 42, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --trans-fast: 0.2s ease;
    --trans-medium: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    background-color: var(--bg-page);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Ambient Subtle Lighting */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.45;
}

.glow-bottom-left {
    bottom: -150px;
    left: -150px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.35) 0%, rgba(56, 189, 248, 0) 70%);
}

.glow-top-right {
    top: -100px;
    right: -100px;
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, rgba(251, 146, 60, 0.28) 0%, rgba(236, 72, 153, 0.18) 50%, transparent 70%);
}

/* Left Edge Cyan Semicircular Blob matching concept */
.edge-blob-left {
    position: fixed;
    left: -130px;
    top: 68%;
    transform: translateY(-50%);
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle at 45% 45%, #22D3EE 0%, #00B4D8 55%, #0284C7 100%);
    box-shadow: 0 10px 40px rgba(6, 182, 212, 0.28);
    pointer-events: none;
    z-index: 1;
}

/* Decorative background dots matching concept */
.deco-dot {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.dot-cyan-top {
    top: 60px;
    left: 49%;
    width: 38px;
    height: 38px;
    background: radial-gradient(circle at 35% 35%, #00D2FF 0%, #0284C7 100%);
    box-shadow: 0 4px 18px rgba(6, 182, 212, 0.45);
}

.dot-orange-top {
    top: 110px;
    right: 21%;
    width: 28px;
    height: 28px;
    background: radial-gradient(circle at 35% 35%, #FBBF24 0%, #EA580C 100%);
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
}

.dot-blue-bottom {
    bottom: 120px;
    left: 4.2%;
    width: 13px;
    height: 13px;
    background-color: #1D4ED8;
    box-shadow: 0 2px 8px rgba(29, 78, 216, 0.4);
}

.dot-violet-right {
    top: 340px;
    right: 16%;
    width: 11px;
    height: 11px;
    background-color: #8B5CF6;
}

/* --------------------------------------------------------------------------
   Container & Layout
   -------------------------------------------------------------------------- */
.site-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1540px;
    margin: 0 auto;
    padding: 32px 48px 24px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: space-between;
}

/* --------------------------------------------------------------------------
   Site Header
   -------------------------------------------------------------------------- */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 22px;
    width: 100%;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: transform var(--trans-fast);
}

.logo-link:hover {
    transform: scale(1.04);
}

.brand-logo-svg {
    width: 70px;
    height: auto;
    display: block;
}

/* "Skontaktuj się >" Pill Button */
.btn-contact-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(0, 0, 0, 0.15);
    background-color: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--trans-fast);
}

.btn-contact-pill .icon-mail {
    width: 18px;
    height: 18px;
    stroke: var(--text-primary);
    transition: transform var(--trans-fast);
}

.btn-contact-pill .chevron {
    font-size: 1.25rem;
    line-height: 1;
    color: var(--text-secondary);
    transition: transform var(--trans-fast);
}

.btn-contact-pill:hover {
    background-color: #FFFFFF;
    border-color: rgba(0, 0, 0, 0.35);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.btn-contact-pill:hover .icon-mail {
    transform: scale(1.1);
}

.btn-contact-pill:hover .chevron {
    transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
    display: grid;
    grid-template-columns: 1.1fr 1.3fr;
    gap: 36px;
    align-items: center;
    padding: 16px 0 32px;
    width: 100%;
    max-width: 100%;
}

/* Hero Content (Left) */
.hero-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
}

.hero-kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.32em;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.bullet-dot {
    font-size: 1rem;
    display: inline-block;
    line-height: 1;
}

.bullet-purple { color: #8B5CF6; }
.bullet-blue { color: #0284C7; }
.bullet-pink { color: #EC4899; }

.hero-title {
    display: flex;
    flex-direction: column;
    font-size: clamp(2.5rem, 5.6vw, 5.2rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.035em;
    margin-bottom: 20px;
    text-transform: uppercase;
    word-break: break-word;
    overflow-wrap: break-word;
}

.title-first {
    color: #0F172A;
}

.title-gradient {
    background: var(--grad-czaplicki);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    filter: drop-shadow(0 4px 18px rgba(124, 58, 237, 0.2));
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.tag-web { color: #7C3AED; }
.tag-tech { color: #0284C7; }
.tag-gaming { color: #EC4899; }

.hero-bio {
    display: flex;
    align-items: stretch;
    gap: 18px;
    max-width: 420px;
}

.bio-accent-bar {
    width: 3px;
    border-radius: 4px;
    background: linear-gradient(180deg, #2563EB 0%, #06B6D4 100%);
    flex-shrink: 0;
}

.bio-text {
    font-size: 1.12rem;
    line-height: 1.55;
    color: #374151;
    font-weight: 450;
}

.name-highlight {
    color: #2563EB;
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   Hero Artwork Composition (Right)
   -------------------------------------------------------------------------- */
.hero-artwork-wrap {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
    overflow: visible;
    --art-scale: 1;
}

.artwork-scene {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 630px;
    height: 450px;
    transform: translate(-50%, -50%) scale(var(--art-scale, 1));
    transform-origin: center center;
    transition: transform 0.15s ease-out;
    transform-style: preserve-3d;
    pointer-events: auto;
}

/* Sharp Laser Diagonal Line (cutting behind disc, fully framed) */
.diagonal-line {
    position: absolute;
    top: 375px;
    left: 105px;
    width: 440px;
    height: 2.5px;
    background: linear-gradient(90deg, #1D4ED8 0%, #2563EB 50%, #6366F1 80%, rgba(99, 102, 241, 0.4) 100%);
    transform: rotate(-41deg);
    transform-origin: left center;
    z-index: 2;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.4);
    pointer-events: none;
}

/* Large Fluid Gradient Orbs */
.art-blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    transition: transform var(--trans-medium);
}

/* 1. Cyan Orb (Upper center-left) */
.blob-cyan {
    top: 35px;
    left: 85px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle at 35% 30%, #38BDF8 0%, #0EA5E9 55%, #0284C7 100%);
    box-shadow: 0 12px 35px rgba(14, 165, 233, 0.35);
    z-index: 3;
}

/* 2. Deep Royal Blue Orb (Main backing) */
.blob-deepblue {
    top: 80px;
    left: 140px;
    width: 245px;
    height: 245px;
    background: radial-gradient(circle at 35% 35%, #2563EB 0%, #1D4ED8 60%, #1E3A8A 100%);
    box-shadow: 0 20px 45px rgba(29, 78, 216, 0.38);
    z-index: 4;
}

/* 3. Magenta / Hot Pink Blob (Lower right) */
.blob-magenta {
    top: 130px;
    left: 275px;
    width: 195px;
    height: 195px;
    background: radial-gradient(circle at 40% 35%, #FB7185 0%, #F43F5E 40%, #E11D48 100%);
    box-shadow: 0 15px 40px rgba(244, 63, 94, 0.4);
    z-index: 3;
}

/* 4. Warm Orange Orb (Lower curve under badge) */
.blob-orange {
    top: 245px;
    left: 195px;
    width: 105px;
    height: 105px;
    background: radial-gradient(circle at 40% 40%, #FDE047 0%, #F97316 65%, #EA580C 100%);
    box-shadow: 0 10px 28px rgba(249, 115, 22, 0.4);
    z-index: 5;
}

/* Slanted Purple Capsule (Far right - completely visible and unclipped) */
.art-capsule-purple {
    position: absolute;
    top: 180px;
    left: 435px;
    width: 105px;
    height: 245px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.92) 0%, rgba(139, 92, 246, 0.8) 50%, rgba(124, 58, 237, 0.85) 100%);
    transform: rotate(-40deg);
    box-shadow: 0 16px 36px rgba(139, 92, 246, 0.28);
    z-index: 1;
    pointer-events: none;
}

/* Floating Satellite Particles */
.art-particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 6;
}

.p-cyan-top {
    top: 15px;
    left: 145px;
    width: 20px;
    height: 20px;
    background: #00D2FF;
    box-shadow: 0 0 12px rgba(0, 210, 255, 0.6);
}

.p-orange-top {
    top: 48px;
    left: 440px;
    width: 26px;
    height: 26px;
    background: radial-gradient(circle at 35% 35%, #FDE047, #F97316);
    box-shadow: 0 0 12px rgba(249, 115, 22, 0.4);
}

.p-coral-left {
    top: 165px;
    left: 45px;
    width: 34px;
    height: 34px;
    background: radial-gradient(circle at 35% 35%, #FB7185 0%, #F43F5E 60%, #E11D48 100%);
    box-shadow: 0 8px 22px rgba(244, 63, 94, 0.45);
}

.p-blue-mid {
    top: 370px;
    left: 150px;
    width: 12px;
    height: 12px;
    background: #1D4ED8;
    box-shadow: 0 2px 8px rgba(29, 78, 216, 0.5);
}

.p-ring-indigo {
    top: 360px;
    left: 425px;
    width: 15px;
    height: 15px;
    border: 3px solid #6366F1;
    background: transparent;
    border-radius: 50%;
}

.p-violet-side {
    top: 195px;
    left: 505px;
    width: 12px;
    height: 12px;
    background: #8B5CF6;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.6);
}

/* --------------------------------------------------------------------------
   Central 3D Dark Disc with Metallic MC Logo
   -------------------------------------------------------------------------- */
.central-disc {
    position: absolute;
    top: 95px;
    left: 175px;
    width: 215px;
    height: 215px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #222736 0%, #11141C 65%, #0A0C11 100%);
    box-shadow: 
        0 25px 50px -10px rgba(0, 0, 0, 0.55),
        0 10px 20px -5px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.12) inset;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: transform var(--trans-fast), box-shadow var(--trans-fast);
    cursor: pointer;
}

.central-disc:hover {
    transform: scale(1.04) translateZ(20px);
    box-shadow: 
        0 30px 60px -10px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(255, 255, 255, 0.25) inset;
}

.disc-inner-bevel {
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    pointer-events: none;
}

.disc-glow-reflection {
    position: absolute;
    top: 6px;
    left: 25px;
    width: 80px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 100%);
    transform: rotate(-25deg);
    pointer-events: none;
}

.disc-emblem {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 65%;
}

.mc-emblem-svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.7));
}

/* Digital Creator label on right (well clear of the central badge) */
.creator-label-group {
    position: absolute;
    top: 95px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 20;
    pointer-events: none;
    transform: translateZ(30px);
}

.creator-line {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.35em;
    color: #1F2937;
    text-transform: uppercase;
}

.creator-bar {
    width: 36px;
    height: 2px;
    background-color: #1F2937;
    margin-top: 6px;
}

/* --------------------------------------------------------------------------
   Bottom Group: Cards + Seamless Integrated Footer
   -------------------------------------------------------------------------- */
.bottom-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 24px;
}

.bottom-section {
    display: grid;
    grid-template-columns: 1fr 1.15fr 1fr;
    gap: 20px;
    margin-top: 0;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
}

.what-i-do-column,
.my-project-column,
.friends-column {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.what-i-do-header,
.projects-section-header,
.friends-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 32px;
    margin-bottom: 18px;
    gap: 12px;
}

.what-i-do-header .section-title,
.projects-section-header .section-title,
.friends-section-header .section-title {
    margin-bottom: 0;
    line-height: 1;
}

.section-title {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.25em;
    color: #1F2937;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Cards Grid (2x2 Bento Grid) */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 12px;
    flex: 1;
    height: 100%;
    min-height: 245px;
    width: 100%;
    max-width: 100%;
}

/* Service Card Styles */
.service-card {
    position: relative;
    border-radius: var(--radius-md);
    padding: 13px 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: auto;
    cursor: pointer;
    overflow: hidden;
    text-decoration: none;
    transition: transform var(--trans-medium), box-shadow var(--trans-medium);
    border: none;
    outline: none;
}

.service-card:hover, .service-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.service-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.service-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
}

.service-card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Specific Card Themes */
.card-cyan {
    background: var(--grad-card-cyan);
    color: #0F172A;
}

.card-purple {
    background: var(--grad-card-purple);
    color: #0F172A;
}

.card-pink {
    background: var(--grad-card-pink);
    color: #0F172A;
}

.card-orange {
    background: var(--grad-card-orange);
    color: #0F172A;
}

/* Card 02 Subtle Geometric Corner Facet */
.card-corner-facet {
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.28);
    clip-path: polygon(100% 0, 0 0, 100% 100%);
    pointer-events: none;
}

/* Card Icon Wrap */
.card-icon-wrap {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    transition: transform var(--trans-fast);
}

.service-card:hover .card-icon-wrap {
    transform: scale(1.08) rotate(5deg);
}

.card-icon {
    width: 17px;
    height: 17px;
    stroke: #FFFFFF;
}

.card-cyan .card-icon-wrap { 
    background-color: #0284C7; 
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}
.card-purple .card-icon-wrap { 
    background-color: #6D28D9; 
    box-shadow: 0 4px 14px rgba(109, 40, 217, 0.35);
}
.card-pink .card-icon-wrap { 
    background-color: #DB2777; 
    box-shadow: 0 4px 14px rgba(219, 39, 119, 0.35);
}
.card-orange .card-icon-wrap { 
    background-color: #D97706; 
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
}

/* Card Typography */
.card-number {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1;
    margin-bottom: 0;
    color: #0F172A;
    opacity: 0.65;
}

.card-name {
    font-size: 0.90rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-transform: uppercase;
    margin-bottom: 2px;
    color: #0F172A;
}

.card-desc {
    font-size: 0.72rem;
    line-height: 1.35;
    color: rgba(15, 23, 42, 0.85);
    font-weight: 600;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Card Arrow Action */
.arrow-btn {
    font-size: 1.15rem;
    line-height: 1;
    color: #0F172A;
    font-weight: 700;
    transition: transform var(--trans-fast);
}

.service-card:hover .arrow-btn {
    transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Featured Projects: ArxCode.pl, EduSuite.pl, ArxEngine.org
   -------------------------------------------------------------------------- */
.project-nav-controls,
.friend-nav-controls {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.65);
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(8px);
    flex-shrink: 0;
}

.btn-nav-arrow {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #FFFFFF;
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    transition: all var(--trans-fast);
}

.btn-nav-arrow:hover {
    background: #0F172A;
    color: #FFFFFF;
    border-color: #0F172A;
    transform: scale(1.08);
}

.project-counter-badge {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #1E293B;
    padding: 0 4px;
}

.project-showcase-card {
    position: relative;
    border-radius: var(--radius-lg);
    flex: 1;
    height: 100%;
    min-height: 245px;
    background-color: #0B0E17;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 26px 28px;
    box-shadow: 0 15px 35px rgba(11, 14, 23, 0.35);
    transition: transform var(--trans-medium), box-shadow var(--trans-medium);
    width: 100%;
    max-width: 100%;
}

.project-showcase-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px rgba(11, 14, 23, 0.5);
}

/* Dynamic Project Backdrops */
.project-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out);
    pointer-events: none;
    z-index: 1;
}

.project-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.project-showcase-card:hover .project-backdrop.active {
    transform: scale(1.04);
}

/* 1. ArxCode.pl: Software House & Innowacyjne Rozwiązania IT */
.backdrop-arxcode {
    background: 
        radial-gradient(circle at 85% 30%, rgba(37, 99, 235, 0.48) 0%, transparent 60%),
        radial-gradient(circle at 60% 75%, rgba(6, 182, 212, 0.38) 0%, transparent 55%),
        linear-gradient(135deg, #090e1a 0%, #0d1629 50%, #040812 100%);
    background-repeat: no-repeat;
}

.backdrop-arxcode::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(37, 99, 235, 0.16) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.16) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.55;
}

/* 2. EduSuite.pl: Smart Campus & Education IoT Matrix */
.backdrop-edusuite {
    background: 
        radial-gradient(circle at 85% 35%, rgba(6, 182, 212, 0.45) 0%, transparent 60%),
        radial-gradient(circle at 65% 75%, rgba(16, 185, 129, 0.35) 0%, transparent 55%),
        linear-gradient(135deg, #021a14 0%, #062e26 50%, #040e1d 100%);
    background-repeat: no-repeat;
}

.backdrop-edusuite::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(#10B981 1.2px, transparent 1.2px),
        radial-gradient(#06B6D4 1.2px, transparent 1.2px);
    background-size: 24px 24px, 48px 48px;
    background-position: 0 0, 12px 12px;
    opacity: 0.35;
}

/* 3. ArxEngine.org: Cybernetic Game Engine Matrix & Protocols */
.backdrop-arxengine {
    background: 
        radial-gradient(circle at 85% 35%, rgba(168, 85, 247, 0.45) 0%, transparent 60%),
        radial-gradient(circle at 65% 75%, rgba(59, 130, 246, 0.35) 0%, transparent 55%),
        linear-gradient(135deg, #13091f 0%, #1f0d38 50%, #070a1a 100%);
    background-repeat: no-repeat;
}

.backdrop-arxengine::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(139, 92, 246, 0.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.18) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.45;
}

/* --------------------------------------------------------------------------
   Friends Bento Grid (2x2 Interactive Avatar Tiles)
   -------------------------------------------------------------------------- */
.friend-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.70);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(8px);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: #1E293B;
    flex-shrink: 0;
}

.friends-bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 12px;
    flex: 1;
    height: 100%;
    min-height: 245px;
    width: 100%;
}

.friend-card-tile {
    position: relative;
    background: #FFFFFF;
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: #0F172A;
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    transition: transform var(--trans-medium), box-shadow var(--trans-medium), border-color var(--trans-fast);
    z-index: 1;
}

.friend-card-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity var(--trans-medium);
    pointer-events: none;
    z-index: 0;
}

.friend-card-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.09);
}

.friend-card-tile:hover::before {
    opacity: 1;
}

/* Individual Tile Themes */
.tile-pitruk::before {
    background: radial-gradient(circle at 100% 0%, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
}
.tile-pitruk:hover {
    border-color: rgba(99, 102, 241, 0.4);
}

.tile-skatepl::before {
    background: radial-gradient(circle at 100% 0%, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
}
.tile-skatepl:hover {
    border-color: rgba(16, 185, 129, 0.4);
}

.tile-groot::before {
    background: radial-gradient(circle at 100% 0%, rgba(245, 158, 11, 0.12) 0%, transparent 70%);
}
.tile-groot:hover {
    border-color: rgba(245, 158, 11, 0.4);
}

.tile-join {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(241, 245, 249, 0.85) 100%);
    border: 1px dashed rgba(15, 23, 42, 0.22);
}
.tile-join::before {
    background: radial-gradient(circle at 100% 0%, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
}
.tile-join:hover {
    border-color: rgba(37, 99, 235, 0.5);
}

/* Inside Tile: Top Row */
.friend-tile-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.friend-tile-top .friend-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    color: #FFFFFF;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
    transition: transform var(--trans-fast);
    overflow: hidden;
    position: relative;
}

.friend-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    transition: transform var(--trans-fast);
}

.avatar-join {
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    font-size: 1.15rem;
    line-height: 1;
}

.friend-card-tile:hover .friend-avatar {
    transform: scale(1.1);
}

.friend-card-tile:hover .friend-avatar-img {
    transform: scale(1.08);
}

.tile-arrow {
    font-size: 1.05rem;
    font-weight: 700;
    color: #94A3B8;
    line-height: 1;
    transition: transform var(--trans-fast), color var(--trans-fast);
}

.friend-card-tile:hover .tile-arrow {
    color: #0F172A;
    transform: translate(2px, -2px);
}

.tile-join:hover .tile-arrow {
    transform: translateX(3px);
}

/* Inside Tile: Bottom Info */
.friend-tile-info {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.friend-tile-name {
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #0F172A;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.friend-tile-desc {
    font-size: 0.74rem;
    font-weight: 600;
    color: #64748B;
    letter-spacing: 0.01em;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Vignette & Contrast Overlay */
.project-overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg, 
        rgba(10, 14, 23, 0.97) 0%, 
        rgba(10, 14, 23, 0.90) 40%, 
        rgba(10, 14, 23, 0.45) 65%, 
        rgba(10, 14, 23, 0.05) 88%,
        transparent 100%
    );
    z-index: 2;
    pointer-events: none;
}

/* Project Text Content */
.project-content {
    position: relative;
    z-index: 3;
    max-width: 330px;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.project-title {
    font-size: 1.65rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    color: #FFFFFF;
    line-height: 1;
    margin-bottom: 4px;
}

.project-subtitle {
    font-size: 0.95rem;
    font-weight: 600;
    color: #93C5FD;
    margin-bottom: 12px;
}

.project-desc {
    font-size: 0.85rem;
    line-height: 1.45;
    color: #CBD5E1;
    margin-bottom: 18px;
}

/* Project CTA Group & Links */
.project-cta-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-project-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    background-color: #FFFFFF;
    color: #0F172A;
    border: none;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    transition: all var(--trans-fast);
}

.btn-project-cta .cta-arrow {
    font-size: 1.15rem;
    line-height: 1;
    transition: transform var(--trans-fast);
}

.btn-project-cta:hover {
    background-color: #F1F5F9;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-project-cta:hover .cta-arrow {
    transform: translateX(4px);
}

.btn-project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #F8FAFC;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    backdrop-filter: blur(8px);
    transition: all var(--trans-fast);
}

.btn-project-link svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
}

.btn-project-link:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.4);
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* Project Slider Dots */
.project-dots {
    position: absolute;
    bottom: 24px;
    right: 28px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 4;
}

.proj-dot {
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.25s var(--ease-out);
}

.proj-dot.active {
    width: 22px;
    background: #FFFFFF;
}

/* --------------------------------------------------------------------------
   Site Footer Bar
   -------------------------------------------------------------------------- */
.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0 6px;
    margin-top: 24px;
    border-top: none;
    width: 100%;
    max-width: 100%;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-dash {
    color: #4B5563;
    font-weight: 600;
}

.footer-domain {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #4B5563;
    text-transform: uppercase;
}

.footer-center {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    color: #4B5563;
    text-transform: uppercase;
}

.footer-bullet {
    color: #6B7280;
    font-size: 0.9rem;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.social-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1F2937;
    text-decoration: none;
    transition: all var(--trans-fast);
}

.social-icon-btn svg {
    width: 19px;
    height: 19px;
    transition: transform var(--trans-fast);
}

.social-icon-btn:hover {
    color: #2563EB;
    transform: translateY(-3px);
}

.social-icon-btn:hover svg {
    transform: scale(1.15);
}

/* --------------------------------------------------------------------------
   Modals (Interactive Experience)
   -------------------------------------------------------------------------- */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    position: relative;
    background-color: #FFFFFF;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 520px;
    padding: 36px 32px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
    transform: translateY(20px) scale(0.96);
    transition: transform 0.3s var(--ease-out);
}

.modal-card-wide {
    max-width: 680px;
    padding: 0;
    overflow: hidden;
}

.modal-backdrop.is-open .modal-card {
    transform: translateY(0) scale(1);
}

.btn-modal-close {
    position: absolute;
    top: 18px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: #9CA3AF;
    cursor: pointer;
    transition: color var(--trans-fast);
    z-index: 10;
}

.btn-modal-close:hover {
    color: #111827;
}

.modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.modal-badge-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background-color: #EFF6FF;
    color: #2563EB;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.modal-badge-icon svg {
    width: 26px;
    height: 26px;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 6px;
}

.modal-subtitle {
    font-size: 0.95rem;
    color: #4B5563;
}

.contact-email-box {
    background-color: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 24px;
}

.email-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #64748B;
    margin-bottom: 6px;
}

.email-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0F172A;
}

.btn-copy {
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    background-color: #EFF6FF;
    border: 1px solid #BFDBFE;
    color: #1D4ED8;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--trans-fast);
}

.btn-copy:hover {
    background-color: #DBEAFE;
}

.quick-links-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-action-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    color: #FFFFFF;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: var(--radius-pill);
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transition: all var(--trans-fast);
}

.btn-action-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.45);
}

.btn-action-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 13px 20px;
    background-color: #F1F5F9;
    color: #1E293B;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: var(--radius-pill);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--trans-fast);
}

.btn-action-secondary:hover {
    background-color: #E2E8F0;
}

/* Project Modal Container & Side Navigation Arrows */
.modal-dialog-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 680px;
    margin: auto;
    pointer-events: none;
}

.modal-dialog-wrap > * {
    pointer-events: auto;
}

.project-modal-card {
    position: relative;
    width: 100%;
    background-color: #FFFFFF;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

/* Close button for project modal (over banner) */
.project-modal-card .btn-modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    line-height: 1;
    z-index: 25;
    cursor: pointer;
    transition: all var(--trans-fast);
}

.project-modal-card .btn-modal-close:hover {
    background: rgba(0, 0, 0, 0.65);
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.08);
}

/* Modal Side Navigation Arrows */
.modal-side-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #FFFFFF;
    color: #0F172A;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 30;
    transition: all var(--trans-fast);
    padding: 0;
}

.modal-arrow-prev {
    left: -64px;
}

.modal-arrow-next {
    right: -64px;
}

.modal-side-arrow svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    transition: transform var(--trans-fast);
}

.modal-side-arrow:hover {
    background: #2563EB;
    color: #FFFFFF;
    border-color: #2563EB;
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.modal-arrow-prev:hover svg {
    transform: translateX(-3px);
}

.modal-arrow-next:hover svg {
    transform: translateX(3px);
}

/* Project Modal Banner */
.project-modal-banner {
    position: relative;
    height: 220px;
    display: flex;
    align-items: flex-end;
    padding: 28px 32px;
    background-color: #0A0D14;
    overflow: hidden;
}

.modal-banner-bg {
    position: absolute;
    inset: 0;
    opacity: 0.82;
    transition: all 0.4s ease;
}

.modal-banner-content {
    position: relative;
    z-index: 2;
}

.banner-badge {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: #93C5FD;
    margin-bottom: 6px;
}

.modal-banner-content h2 {
    font-size: 1.85rem;
    font-weight: 900;
    color: #FFFFFF;
    margin-bottom: 4px;
}

.banner-tagline {
    font-size: 0.95rem;
    color: #E2E8F0;
}

.project-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
    padding: 24px 32px 0;
}

.detail-box {
    background-color: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-md);
    padding: 14px 16px;
}

.detail-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #64748B;
    margin-bottom: 4px;
}

.project-story {
    padding: 0 32px;
    font-size: 0.98rem;
    line-height: 1.65;
    color: #475569;
    margin-bottom: 24px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    padding: 0 32px 32px;
}

/* Service Detail Modal List */
.service-modal-badge {
    font-size: 1.35rem;
    font-weight: 900;
    color: #2563EB;
    margin-bottom: 8px;
}

.service-points-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.service-points-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1E293B;
    background-color: #F8FAFC;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid #E2E8F0;
}

.service-points-list li::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: #2563EB;
    color: #FFFFFF;
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Friends Modal Styles
   -------------------------------------------------------------------------- */
.friends-modal-card {
    max-width: 860px;
    padding: 34px 32px 30px;
    border-radius: var(--radius-lg);
    background-color: #FFFFFF;
}

.friends-modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.badge-icon-friends {
    background-color: #EEF2FF;
    color: #4F46E5;
}

.friends-modal-body {
    padding: 0 4px;
}

.friends-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.friend-item-card {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-md);
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    transition: all var(--trans-medium);
}

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

.card-glow-indigo:hover {
    border-color: #818CF8;
    box-shadow: 0 14px 30px rgba(99, 102, 241, 0.15);
}

.card-glow-emerald:hover {
    border-color: #34D399;
    box-shadow: 0 14px 30px rgba(16, 185, 129, 0.15);
}

.card-glow-amber:hover {
    border-color: #FBBF24;
    box-shadow: 0 14px 30px rgba(245, 158, 11, 0.15);
}

.friend-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.friend-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.15rem;
    color: #FFFFFF;
    flex-shrink: 0;
}

.avatar-pitruk {
    background: linear-gradient(135deg, #6366F1 0%, #3B82F6 100%);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.avatar-skatepl {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.avatar-groot {
    background: linear-gradient(135deg, #F59E0B 0%, #EA580C 100%);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.friend-meta h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0F172A;
    line-height: 1.2;
}

.friend-role {
    font-size: 0.76rem;
    font-weight: 600;
    color: #64748B;
}

.friend-bio {
    font-size: 0.84rem;
    line-height: 1.45;
    color: #334155;
    margin-bottom: 14px;
    flex: 1;
}

.friend-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.friend-tag {
    font-size: 0.70rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    background: #EDF2F7;
    color: #475569;
}

.btn-friend-visit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: var(--radius-pill);
    background: #0F172A;
    color: #FFFFFF;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--trans-fast);
}

.btn-friend-visit:hover {
    background: #2563EB;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-friend-visit .cta-arrow {
    font-size: 1.05rem;
    transition: transform var(--trans-fast);
}

.btn-friend-visit:hover .cta-arrow {
    transform: translateX(3px);
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: #0F172A;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s var(--ease-out);
}

.toast-notification.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* --------------------------------------------------------------------------
   Responsive Design (Desktop, Laptops, Tablets, Smartphones)
   -------------------------------------------------------------------------- */

/* 1. Large Laptops / Screens (<= 1400px) */
@media (max-width: 1400px) {
    .site-container {
        padding: 28px 40px 20px;
    }

    .hero-artwork-wrap {
        --art-scale: 0.88;
        height: 420px;
    }

    .cards-grid {
        gap: 14px;
    }
}

/* 2. Standard Laptops / Small Desktops (<= 1200px) */
@media (max-width: 1200px) {
    .site-container {
        padding: 18px 24px 14px;
    }

    .hero-section {
        grid-template-columns: 1fr 1fr;
        gap: 18px;
        padding: 6px 0 16px;
    }

    .hero-artwork-wrap {
        --art-scale: 0.78;
        height: 350px;
    }

    .bottom-section {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .what-i-do-column {
        grid-column: 1 / -1;
    }

    .cards-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }

    .service-card {
        padding: 14px 14px;
        min-height: auto;
    }

    .card-name {
        font-size: 0.88rem;
    }

    .card-desc {
        font-size: 0.72rem;
    }
}

/* 3. Tablets Landscape / Small Laptops (<= 992px) */
@media (max-width: 992px) {
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
        padding: 10px 0 20px;
    }

    .hero-kicker, .hero-tags {
        justify-content: center;
    }

    .hero-bio {
        margin: 0 auto;
        text-align: left;
        max-width: 440px;
    }

    .hero-artwork-wrap {
        --art-scale: 0.70;
        height: 330px;
        margin-top: 6px;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .site-footer {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-left, .footer-center, .footer-right {
        justify-content: center;
    }
}

/* 4. Tablets Portrait & Phablets (<= 768px) */
@media (max-width: 768px) {
    .site-container {
        padding: 20px 20px 16px;
    }

    /* Soften / hide stray edge decorations */
    .edge-blob-left {
        opacity: 0.10;
        width: 180px;
        height: 180px;
        left: -140px;
    }

    .deco-dot {
        display: none;
    }

    .ambient-glow {
        opacity: 0.25;
        filter: blur(80px);
    }

    .hero-title {
        font-size: clamp(2.4rem, 7.5vw, 3.8rem);
        margin-bottom: 18px;
    }

    .hero-tags {
        font-size: 0.82rem;
        gap: 10px 14px;
        letter-spacing: 0.16em;
        margin-bottom: 24px;
    }

    .hero-artwork-wrap {
        --art-scale: 0.60;
        height: 290px;
        margin-top: 4px;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        min-height: 200px;
    }

    .service-card {
        padding: 12px 14px;
        min-height: auto;
    }

    .what-i-do-header,
    .projects-section-header,
    .friends-section-header {
        margin-bottom: 14px;
        min-height: 30px;
        gap: 10px;
    }

    .bottom-section {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .friends-bento-grid {
        min-height: 200px;
        gap: 10px;
    }

    .section-title {
        font-size: 0.88rem;
        letter-spacing: 0.16em;
    }

    .footer-center {
        letter-spacing: 0.16em;
        font-size: 0.76rem;
    }

    .modal-dialog-wrap {
        width: 95%;
        max-width: 95%;
    }

    .modal-card {
        padding: 28px 22px;
        width: 100%;
        max-height: 90vh;
        overflow-y: auto;
    }

    .project-modal-card {
        padding: 0;
    }

    .modal-side-arrow {
        top: 85px;
        width: 38px;
        height: 38px;
        background: rgba(15, 23, 42, 0.72);
        color: #FFFFFF;
        border: 1px solid rgba(255, 255, 255, 0.22);
        backdrop-filter: blur(8px);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    }

    .modal-arrow-prev {
        left: 12px;
    }

    .modal-arrow-next {
        right: 12px;
    }

    .modal-side-arrow svg {
        width: 18px;
        height: 18px;
    }

    .project-modal-card .project-modal-banner {
        padding: 20px 52px;
    }

    .project-details-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* 5. Smartphones (<= 540px) */
@media (max-width: 540px) {
    .site-container {
        padding: 16px 16px 14px;
    }

    .site-header {
        padding-bottom: 16px;
    }

    .brand-logo-svg {
        width: 42px;
    }

    .btn-contact-pill {
        padding: 8px 16px;
        font-size: 0.82rem;
        gap: 6px;
        white-space: nowrap;
    }

    .btn-contact-pill .icon-mail {
        width: 15px;
        height: 15px;
    }

    .hero-title {
        font-size: clamp(2.1rem, 9.5vw, 2.8rem);
        margin-bottom: 14px;
        letter-spacing: -0.025em;
    }

    .hero-tags {
        font-size: 0.78rem;
        gap: 8px 12px;
        letter-spacing: 0.14em;
        margin-bottom: 20px;
    }

    .hero-bio {
        max-width: 100%;
        padding: 0 4px;
    }

    .bio-text {
        font-size: 0.98rem;
        line-height: 1.5;
    }

    .hero-artwork-wrap {
        --art-scale: 0.48;
        height: 235px;
        margin-top: 2px;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        min-height: 190px;
    }

    .service-card {
        min-height: auto;
        padding: 10px 12px;
        border-radius: var(--radius-md);
    }

    .card-icon-wrap {
        width: 30px;
        height: 30px;
        margin-bottom: 0;
    }

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

    .card-number {
        font-size: 0.92rem;
        margin-bottom: 2px;
    }

    .card-name {
        font-size: 0.86rem;
        letter-spacing: 0.04em;
        margin-bottom: 6px;
    }

    .card-desc {
        font-size: 0.76rem;
        line-height: 1.35;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .card-action {
        margin-top: 10px;
    }

    .arrow-btn {
        font-size: 1.15rem;
    }

    .what-i-do-header,
    .projects-section-header,
    .friends-section-header {
        margin-bottom: 12px;
        min-height: 28px;
        gap: 8px;
    }

    .section-title {
        font-size: 0.82rem;
        letter-spacing: 0.10em;
    }

    .project-nav-controls,
    .friend-nav-controls {
        padding: 2px 6px;
        gap: 4px;
        flex-shrink: 0;
    }

    .btn-nav-arrow {
        width: 22px;
        height: 22px;
        font-size: 1.1rem;
    }

    .project-counter-badge {
        font-size: 0.72rem;
        letter-spacing: 0.08em;
        padding: 0 2px;
    }

    .project-showcase-card {
        min-height: 260px;
        padding: 20px 18px;
        border-radius: var(--radius-md);
    }

    .friends-bento-grid {
        min-height: 190px;
        gap: 8px;
    }

    .friend-card-tile {
        padding: 10px 12px;
    }

    .friend-tile-top .friend-avatar {
        width: 30px;
        height: 30px;
        font-size: 0.82rem;
    }

    .friend-tile-name {
        font-size: 0.82rem;
    }

    .friend-tile-desc {
        font-size: 0.68rem;
    }

    .project-content {
        max-width: 100%;
    }

    .project-meta-pill {
        font-size: 0.68rem;
        letter-spacing: 0.12em;
    }

    .project-title {
        font-size: 1.35rem;
    }

    .project-subtitle {
        font-size: 0.82rem;
    }

    .project-desc {
        font-size: 0.82rem;
        line-height: 1.45;
        margin-bottom: 16px;
    }

    .project-cta-group {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        position: relative;
        z-index: 3;
    }

    .btn-project-cta {
        padding: 9px 18px;
        font-size: 0.78rem;
        flex: 1 1 auto;
        justify-content: center;
    }

    .btn-project-link {
        padding: 9px 14px;
        font-size: 0.78rem;
        flex: 1 1 auto;
        justify-content: center;
    }

    /* Move project dots to top-right on mobile so they NEVER collide with CTA buttons */
    .project-dots {
        top: 20px;
        bottom: auto;
        right: 20px;
        background: rgba(0, 0, 0, 0.4);
        padding: 5px 9px;
        border-radius: var(--radius-pill);
        backdrop-filter: blur(8px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    .bottom-group {
        margin-top: 18px;
    }

    .site-footer {
        margin-top: 18px;
        padding: 4px 0 2px;
        gap: 12px;
    }

    .footer-domain {
        font-size: 0.78rem;
    }

    .footer-center {
        letter-spacing: 0.12em;
        font-size: 0.72rem;
        line-height: 1.6;
    }

    .footer-right {
        gap: 16px;
    }

    .contact-email-box .email-display {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .contact-email-box .email-display span {
        word-break: break-all;
    }

    .btn-copy {
        align-self: flex-start;
    }

    .project-modal-card .project-modal-banner {
        height: 155px;
        padding: 16px 46px;
    }

    .modal-side-arrow {
        top: 75px;
        width: 32px;
        height: 32px;
    }

    .modal-arrow-prev {
        left: 8px;
    }

    .modal-arrow-next {
        right: 8px;
    }

    .modal-side-arrow svg {
        width: 15px;
        height: 15px;
    }

    .project-modal-card .btn-modal-close {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
        font-size: 1.3rem;
    }

    .modal-banner-content h2 {
        font-size: 1.35rem;
    }

    .modal-actions {
        flex-direction: column;
        gap: 10px;
        padding: 0 18px 20px;
    }

    .project-details-grid {
        padding: 16px 18px 0;
        gap: 10px;
    }

    .project-story {
        padding: 0 18px;
        font-size: 0.92rem;
        line-height: 1.55;
        margin-bottom: 18px;
    }
}

/* 6. Compact Smartphones (<= 380px e.g. iPhone SE) */
@media (max-width: 380px) {
    .site-container {
        padding: 12px 12px 10px;
    }

    .hero-title {
        font-size: 1.95rem;
        letter-spacing: -0.02em;
    }

    .hero-kicker {
        font-size: 0.72rem;
        letter-spacing: 0.16em;
    }

    .hero-artwork-wrap {
        --art-scale: 0.40;
        height: 200px;
    }

    .btn-contact-pill {
        padding: 6px 12px;
        font-size: 0.78rem;
    }

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

    .service-card {
        padding: 14px 14px;
        min-height: auto;
    }

    .modal-card {
        padding: 20px 14px;
        border-radius: var(--radius-md);
    }

    .section-title {
        font-size: 0.76rem;
        letter-spacing: 0.08em;
    }

    .project-nav-controls,
    .friend-nav-controls {
        padding: 2px 5px;
        gap: 3px;
    }

    .btn-nav-arrow {
        width: 20px;
        height: 20px;
        font-size: 1rem;
    }

    .project-counter-badge {
        font-size: 0.68rem;
        letter-spacing: 0.05em;
        padding: 0 2px;
    }
}
