/* =============================================
   EVATIKA - PULP / POP ART / COMIC STYLE
   ============================================= */

:root {
    /* Pop Art Colors */
    --red: #E63946;
    --yellow: #FFD60A;
    --blue: #2196F3;
    --black: #1A1A2E;
    --white: #FEFEFE;
    --cream: #FFF8E7;
    --pink: #FF69B4;
    --cyan: #00D4FF;
    --orange: #FF6B35;
    
    /* Comic effects */
    --border-thick: 4px;
    --border-thicker: 6px;
    --shadow-comic: 6px 6px 0px var(--black);
    --shadow-comic-sm: 4px 4px 0px var(--black);
    
    /* Typography */
    --font-comic: 'Bangers', cursive;
    --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-logo: 'Bebas Neue', sans-serif;
    --font-card-title: 'Bebas Neue', 'Comic Neue', sans-serif;
    --header-offset: 82px;
}

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

html {
    scroll-behavior: smooth;
    /* iOS safe area support */
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    scroll-padding-top: var(--header-offset);
}

body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--black);
    overflow-x: hidden;
    line-height: 1.6;
    /* Prevent pull-to-refresh on mobile */
    overscroll-behavior-y: contain;
    /* Better text rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Prevent text selection highlight color issues */
    -webkit-tap-highlight-color: transparent;
}

.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.icon-svg {
    width: 1em;
    height: 1em;
    display: block;
}

.icon-stroke {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Skip to content link - Accessibility */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--black);
    color: var(--yellow);
    padding: 15px 30px;
    font-family: var(--font-comic);
    font-size: 1.1rem;
    text-decoration: none;
    border: 3px solid var(--yellow);
    z-index: 100000;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 10px;
    outline: 3px solid var(--red);
    outline-offset: 2px;
}

/* =============================================
   INTRO ANIMATION OVERLAY - COMIC STRIP STYLE
   ============================================= */

#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--cream);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Halftone dots pattern - Classic comic style */
#intro-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, var(--black) 1.5px, transparent 1.5px);
    background-size: 12px 12px;
    opacity: 0.08;
    pointer-events: none;
}

/* Speed lines radiating from center */
#intro-overlay::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200vmax;
    height: 200vmax;
    transform: translate(-50%, -50%);
    background: repeating-conic-gradient(
        from 0deg,
        transparent 0deg 4deg,
        rgba(230, 57, 70, 0.08) 4deg 5deg
    );
    pointer-events: none;
}

.intro-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    z-index: 1;
}

/* Main word containers */
.word-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* POW/BAM style burst background */
.comic-burst {
    position: relative;
    opacity: 0;
    transform: scale(0) rotate(-10deg);
}

.comic-burst.power-burst {
    --burst-bg: var(--red);
    margin-bottom: -15px;
    z-index: 2;
}

.comic-burst.platform-burst {
    --burst-bg: var(--cream);
    z-index: 1;
}

/* Starburst shape */
.comic-burst::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 115%;
    height: 140%;
    transform: translate(-50%, -50%);
    background: var(--burst-bg);
    clip-path: polygon(
        50% 0%, 63% 25%, 93% 25%, 70% 45%, 82% 75%, 
        50% 58%, 18% 75%, 30% 45%, 7% 25%, 37% 25%
    );
    border: 4px solid var(--black);
    z-index: -1;
}

/* Outer burst shadow/outline */
.comic-burst::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 118%;
    height: 145%;
    transform: translate(-48%, -48%);
    background: var(--black);
    clip-path: polygon(
        50% 0%, 63% 25%, 93% 25%, 70% 45%, 82% 75%, 
        50% 58%, 18% 75%, 30% 45%, 7% 25%, 37% 25%
    );
    z-index: -2;
}

/* Main text styling */
.burst-text {
    font-family: var(--font-comic);
    font-size: clamp(4rem, 15vw, 9rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    padding: 25px 45px;
    position: relative;
    z-index: 1;
    -webkit-text-stroke: 3px var(--black);
}

.power-burst .burst-text {
    color: var(--yellow);
    text-shadow: 
        4px 4px 0 var(--black),
        -1px -1px 0 var(--black),
        1px -1px 0 var(--black),
        -1px 1px 0 var(--black);
}

.platform-burst .burst-text {
    color: var(--red);
    text-shadow: 
        4px 4px 0 var(--black),
        -1px -1px 0 var(--black),
        1px -1px 0 var(--black),
        -1px 1px 0 var(--black);
}

.intro-secondary-bursts {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 26px;
    position: relative;
    z-index: 3;
}

.secondary-burst {
    z-index: 3;
}

.secondary-burst::before {
    width: 112%;
    height: 138%;
}

.secondary-burst::after {
    width: 115%;
    height: 143%;
}

.secondary-burst .burst-text {
    font-size: clamp(2rem, 7vw, 3.6rem);
    padding: 18px 32px;
    -webkit-text-stroke: 2px var(--black);
}

.n8n-burst {
    --burst-bg: var(--blue);
    transform: scale(0) rotate(-8deg);
}

.n8n-burst .burst-text {
    color: var(--cream);
}

.genai-burst {
    --burst-bg: var(--yellow);
    transform: scale(0) rotate(8deg);
}

.genai-burst .burst-text {
    color: var(--red);
}

@keyframes fadeInSite {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animations */
.comic-burst.animate-in {
    animation: burstPop 0.62s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes burstPop {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-12deg);
    }
    58% {
        opacity: 1;
        transform: scale(1.08) rotate(2deg);
    }
    82% {
        transform: scale(0.98) rotate(-0.5deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* Impact flash effect */
.flash-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    opacity: 0;
    pointer-events: none;
    z-index: 100;
}

.flash-overlay.flash {
    animation: flashBang 0.22s ease-out;
}

@keyframes flashBang {
    0% { opacity: 0.45; }
    35% { opacity: 0.2; }
    100% { opacity: 0; }
}

/* Skip button - comic style */
#skip-intro {
    position: absolute;
    bottom: 25px;
    right: 25px;
    background: var(--cream);
    border: 3px solid var(--black);
    color: var(--black);
    padding: 10px 20px;
    font-family: var(--font-comic);
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 3px 3px 0 var(--black);
    transition: all 0.2s ease;
}

#skip-intro:hover {
    background: var(--red);
    color: var(--white);
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 var(--black);
}

/* =============================================
   HEADER
   ============================================= */

.comic-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--yellow);
    border-bottom: 4px solid var(--black);
    z-index: 1000;
    padding: 15px 0;
    box-shadow: none;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 2rem;
    font-weight: bold;
    color: var(--black);
    text-decoration: none;
    font-family: var(--font-logo);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-family: var(--font-comic);
    font-size: 1.2rem;
    color: var(--black);
    text-decoration: none;
    letter-spacing: 0.05em;
    position: relative;
    transition: color 0.2s ease;
}

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

.nav-link.cta-link {
    background: var(--red);
    color: var(--white);
    padding: 8px 20px;
    border: 3px solid var(--black);
    box-shadow: 4px 4px 0 var(--black);
    transition: all 0.2s ease;
}

.nav-link.cta-link:hover {
    color: var(--white);
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--black);
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 62px;
    height: 44px;
    padding: 0 14px;
    border: 3px solid var(--black);
    background: var(--white);
    color: var(--black);
    font-family: var(--font-logo);
    font-size: 1.15rem;
    letter-spacing: 0.08em;
    cursor: pointer;
    box-shadow: 4px 4px 0 var(--black);
    transform: rotate(-2deg);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.lang-switch:hover {
    background: var(--red);
    color: var(--white);
    transform: translate(2px, 2px) rotate(0deg);
    box-shadow: 2px 2px 0 var(--black);
}

.lang-switch:active {
    transform: translate(4px, 4px) rotate(0deg);
    box-shadow: 0 0 0 var(--black);
}

.lang-switch:focus-visible {
    outline: 3px solid var(--cyan);
    outline-offset: 2px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--black);
}

/* =============================================
   HERO SECTION
   ============================================= */

.hero-section {
    min-height: 100vh;
    padding: 120px 30px 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.hero-halftone {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, var(--black) 1px, transparent 1px);
    background-size: 8px 8px;
    opacity: 0.05;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--yellow);
    border: 3px solid var(--black);
    padding: 8px 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-comic-sm);
    transform: rotate(-2deg);
}

.badge-text {
    font-family: var(--font-comic);
    font-size: 1rem;
}

.badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    line-height: 1;
    color: var(--black);
    flex-shrink: 0;
}

.hero-title {
    margin-bottom: 20px;
}

.title-line {
    display: block;
    font-family: var(--font-comic);
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1;
    color: var(--black);
    text-shadow: 4px 4px 0 var(--blue);
}

.title-line.accent {
    color: var(--red);
    text-shadow: 4px 4px 0 var(--yellow);
}

.hero-subtitle {
    font-family: var(--font-comic);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 25px;
    color: var(--black);
}

.hero-subtitle .highlight {
    background: var(--yellow);
    padding: 2px 10px;
    border: 2px solid var(--black);
}

.hero-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.stat-bubble {
    background: var(--white);
    border: 3px solid var(--black);
    padding: 15px 25px;
    text-align: center;
    box-shadow: var(--shadow-comic-sm);
    transform: rotate(-3deg);
}

.stat-bubble:nth-child(2) {
    transform: rotate(2deg);
    background: var(--cyan);
}

.stat-bubble.certified {
    transform: rotate(-1deg);
    background: var(--yellow);
}

.stat-number {
    display: block;
    font-family: var(--font-logo);
    font-size: 2.2rem;
    color: var(--red);
    letter-spacing: 0.05em;
}

.stat-icon {
    display: block;
    font-size: 1.5rem;
    line-height: 1;
    width: 1em;
    height: 1em;
    margin: 0 auto 4px;
    color: var(--red);
}

.stat-label {
    font-family: var(--font-logo);
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #22C55E;
    color: var(--white);
    padding: 10px 20px;
    border: 3px solid var(--black);
    margin-bottom: 25px;
    font-family: var(--font-logo);
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: var(--shadow-comic-sm);
}

.pulse {
    width: 12px;
    height: 12px;
    background: var(--white);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.hero-description {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 550px;
}

.hero-description strong {
    background: var(--yellow);
    padding: 0 5px;
}

.hero-cta {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

/* Comic Button */
.comic-btn {
    background: var(--red);
    color: var(--white);
    border: 4px solid var(--black);
    padding: 20px 40px;
    font-family: var(--font-comic);
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-comic);
    transition: all 0.2s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.comic-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.comic-btn:hover::before {
    left: 100%;
}

.comic-btn:hover {
    transform: translate(3px, 3px);
    box-shadow: 3px 3px 0 var(--black);
}

.comic-btn:active {
    transform: translate(6px, 6px);
    box-shadow: 0 0 0 var(--black);
}

.comic-btn:focus-visible {
    outline: 3px solid var(--black);
    outline-offset: 3px;
}

.btn-text {
    display: block;
}

.btn-sub {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 5px;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Hero Services Grid */
.hero-services {
    width: 100%;
}

.hero-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
}

.hero-service-card {
    --panel-bg: var(--white);
    --panel-ink: var(--red);
    --card-tilt: -2deg;
    background: var(--panel-bg);
    border: 4px solid var(--black);
    padding: 25px 20px;
    text-align: center;
    box-shadow: var(--shadow-comic);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    transform: rotate(var(--card-tilt));
}

.hero-service-card::before {
    content: none;
}

.hero-service-card:nth-child(1) {
    --panel-bg: var(--white);
    --panel-ink: var(--red);
    --card-tilt: -2deg;
}

.hero-service-card:nth-child(2) {
    --panel-bg: var(--cyan);
    --panel-ink: var(--black);
    --card-tilt: 1.8deg;
}

.hero-service-card:nth-child(3) {
    --panel-bg: var(--yellow);
    --panel-ink: var(--red);
    --card-tilt: -1.2deg;
}

.hero-service-card:nth-child(4) {
    --panel-bg: var(--white);
    --panel-ink: var(--blue);
    --card-tilt: 2deg;
}

.hero-service-card:hover {
    transform: translate(-3px, -4px) rotate(var(--card-tilt)) scale(1.02);
    box-shadow: 8px 8px 0 var(--black);
}

.hero-service-card .card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    line-height: 1;
    margin-bottom: 12px;
    color: var(--panel-ink);
}

.hero-service-card .card-title {
    font-family: var(--font-card-title);
    font-size: 1.45rem;
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 8px;
    color: var(--panel-ink);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-shadow: none;
}

.hero-service-card .card-desc {
    font-size: 1rem;
    color: var(--black);
    opacity: 0.92;
    line-height: 1.5;
    background: transparent;
    padding: 0;
    border-radius: 0;
}

.comic-panel {
    background: var(--white);
    border: var(--border-thicker) solid var(--black);
    box-shadow: var(--shadow-comic);
    position: relative;
}



/* =============================================
   SECTIONS COMMON
   ============================================= */

section {
    padding: 80px 30px;
    position: relative;
    scroll-margin-top: var(--header-offset);
}

.section-header {
    text-align: center;
    margin: 0 auto 60px;
    width: fit-content;
    max-width: 100%;
    position: relative;
}

.section-title {
    font-family: var(--font-comic);
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--black);
    display: inline-block;
    position: relative;
}

.comic-title {
    text-shadow: 4px 4px 0 var(--yellow);
}

.title-burst {
    position: absolute;
    top: -20px;
    right: -80px;
    font-family: var(--font-comic);
    font-size: 1.5rem;
    color: var(--white);
    background: var(--red);
    padding: 15px 20px;
    transform: rotate(15deg);
    border: 3px solid var(--black);
    box-shadow: var(--shadow-comic-sm);
}

/* Services section removed - now in hero */

/* =============================================
   SKILLS INTEGRATED IN PROJECTS
   ============================================= */

.skills-integrated {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 1000px;
    margin: 0 auto 50px;
}

.skills-integrated .skill-tag {
    background: var(--white);
    border: 3px solid var(--black);
    padding: 12px 25px;
    font-family: var(--font-comic);
    font-size: 1.1rem;
    box-shadow: var(--shadow-comic-sm);
    transition: all 0.3s ease;
    cursor: pointer;
    /* Reset button styles */
    appearance: none;
    -webkit-appearance: none;
    outline: none;
}

/* Skill tag colors */
.skills-integrated .skill-tag[data-filter="all"] { background: var(--red); color: var(--white); }
.skills-integrated .skill-tag[data-filter="power-apps"] { background: var(--white); }
.skills-integrated .skill-tag[data-filter="power-automate"] { background: var(--cyan); }
.skills-integrated .skill-tag[data-filter="n8n"] { background: #B6E53C; }
.skills-integrated .skill-tag[data-filter="copilot-studio"] { background: var(--pink); }
.skills-integrated .skill-tag[data-filter="sharepoint"] { background: var(--white); }
.skills-integrated .skill-tag[data-filter="genai"] { background: var(--orange); color: var(--white); }
.skills-integrated .skill-tag[data-filter="dataverse"] { background: var(--blue); color: var(--white); }

/* Active state */
.skills-integrated .skill-tag.active {
    transform: scale(1.03) rotate(0deg) !important;
    box-shadow: 0 0 0 4px var(--black), var(--shadow-comic-sm);
    z-index: 10;
}

/* Inactive state when filter is active (not "all") */
.skills-integrated.filtering .skill-tag:not(.active) {
    opacity: 0.5;
    transform: scale(0.92);
    filter: grayscale(30%);
}

/* All tags visible when "Tous" is selected */
.skills-integrated:not(.filtering) .skill-tag {
    opacity: 1;
    transform: scale(1);
    filter: none;
}

.skills-integrated .skill-tag:hover,
.skills-integrated .skill-tag:focus-visible {
    opacity: 1 !important;
    transform: rotate(0deg) scale(1.02) !important;
    filter: none !important;
    z-index: 10;
}

.skills-integrated .skill-tag:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 2px;
}

/* Project card filter animation - Smooth FLIP transitions */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Base card state with GPU acceleration */
.project-card {
    will-change: transform, opacity;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Animating state - applied during FLIP animation */
.project-card.animating {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Filter out animation */
.project-card.filtering-out {
    animation: cardFilterOut 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Filter in animation */
.project-card.filtering-in {
    animation: cardFilterIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.05) forwards;
}

/* Hidden state */
.project-card.filtered-hidden {
    display: none !important;
}

@keyframes cardFilterOut {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    100% {
        opacity: 0;
        transform: scale(0.8) translateY(-10px);
    }
}

@keyframes cardFilterIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    60% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* =============================================
   PROJECTS SECTION
   ============================================= */

.projects-section {
    background: var(--cream);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100svh - var(--header-offset));
    padding-top: 34px;
    padding-bottom: 34px;
}

.projects-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, var(--black) 1px, transparent 1px);
    background-size: 8px 8px;
    opacity: 0.05;
    z-index: 0;
}

.projects-section::after {
    content: none;
}

.projects-section .title-burst {
    background: var(--red);
    color: var(--white);
}

.projects-section .section-header {
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
}

.projects-intro-block {
    width: min(1100px, 100%);
    margin: 0 auto 20px;
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 14px 20px 12px;
    background: var(--white);
    border: 3px solid var(--black);
    box-shadow: var(--shadow-comic-sm);
    border-radius: 0;
    transform: none;
}

.projects-intro-block .projects-intro,
.projects-intro-block .projects-steps {
    position: relative;
    z-index: 1;
}

.projects-intro {
    font-size: 1rem;
    line-height: 1.45;
    font-weight: 500;
    margin-bottom: 10px;
    opacity: 0.95;
}

.projects-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.project-step-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border: 2px solid var(--black);
    background: var(--white);
    border-radius: 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 2px 2px 0 rgba(26, 26, 46, 0.2);
}

.project-step-chip:nth-child(1) {
    background: #e8f7ff;
    transform: none;
}
.project-step-chip:nth-child(2) {
    background: #fff9d8;
    transform: none;
}
.project-step-chip:nth-child(3) {
    background: #eaf9df;
    transform: none;
}

.project-step-chip:not(:last-child)::after {
    content: '→';
    margin-left: 8px;
    opacity: 0.7;
}

.projects-section .skills-integrated {
    width: min(1100px, 100%);
    flex-wrap: nowrap;
    justify-content: center;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    margin-bottom: 8px;
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    padding: 0 0 14px;
    position: relative;
    z-index: 1;
    border-bottom: 2px dashed rgba(26, 26, 46, 0.35);
}

.projects-section .skills-integrated::-webkit-scrollbar {
    display: none;
}

.projects-section .skills-integrated .skill-tag {
    flex-shrink: 0;
    padding: 8px 13px;
    font-size: 0.86rem;
    font-family: var(--font-comic);
    background: transparent !important;
    color: var(--black);
    border-width: 2px;
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    position: relative;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.projects-section .skills-integrated .skill-tag:nth-child(3n + 1) {
    color: var(--black);
    border-color: var(--black);
}

.projects-section .skills-integrated .skill-tag:nth-child(3n + 2) {
    color: var(--red);
    border-color: var(--red);
}

.projects-section .skills-integrated .skill-tag:nth-child(3n) {
    color: #c48b00;
    border-color: #c48b00;
}

.projects-section .skills-integrated .skill-tag:nth-child(odd) {
    transform: none;
}

.projects-section .skills-integrated .skill-tag:nth-child(even) {
    transform: none;
}

.projects-section .skills-integrated .skill-tag.active {
    background: transparent !important;
    box-shadow: 0 0 0 2px currentColor, 3px 3px 0 rgba(26, 26, 46, 0.28);
    transform: translateY(-1px) rotate(0deg) !important;
}

.projects-section .skills-integrated .skill-tag:hover,
.projects-section .skills-integrated .skill-tag:focus-visible {
    transform: translateY(-3px) rotate(0deg) !important;
    box-shadow: 0 0 0 2px currentColor, 3px 4px 0 rgba(26, 26, 46, 0.3);
    opacity: 1 !important;
}

.projects-section .projects-grid {
    width: min(1100px, 100%);
    margin: 0 auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    position: relative;
    z-index: 1;
    padding-top: 22px;
}

.project-card {
    --card-tilt: 0deg;
    --project-accent: var(--yellow);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 250, 250, 0.94));
    border: 3px solid var(--black);
    padding: 22px 18px 18px;
    box-shadow: var(--shadow-comic-sm);
    position: relative;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    display: flex;
    flex-direction: column;
    min-height: 156px;
    border-radius: 0;
    transform: rotate(var(--card-tilt));
    overflow: hidden;
}

.project-card:nth-child(odd) {
    --card-tilt: 0deg;
}

.project-card:nth-child(even) {
    --card-tilt: 0deg;
}

.project-card:nth-child(3n) {
    --card-tilt: 0deg;
}

.project-card:nth-child(2n) {
    --project-accent: var(--cyan);
}

.project-card:nth-child(3n) {
    --project-accent: var(--red);
}

.project-card:nth-child(5n) {
    --project-accent: var(--orange);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 7px;
    background: var(--project-accent);
    opacity: 0.95;
}

.project-card:hover {
    transform: translateY(-5px) rotate(0deg) scale(1.012);
    box-shadow: 6px 6px 0 rgba(26, 26, 46, 0.35);
}

.project-icon {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 2px solid var(--black);
    border-radius: 0;
    background: var(--white);
    font-size: 1.05rem;
    line-height: 1;
    margin: 0;
    color: var(--project-accent);
    box-shadow: 2px 2px 0 rgba(26, 26, 46, 0.22);
}

.project-title {
    font-family: var(--font-card-title);
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 10px;
    padding-right: 56px;
    color: var(--black);
    letter-spacing: 0.03em;
    line-height: 1.15;
    text-shadow: none;
}

.project-desc {
    margin-top: auto;
    font-size: 0.9rem;
    color: var(--black);
    opacity: 0.88;
    line-height: 1.5;
    background: transparent;
    padding: 0;
    border-radius: 0;
}

/* =============================================
   TESTIMONIALS SECTION
   ============================================= */

.testimonials-section {
    background: var(--black);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100svh - var(--header-offset));
    padding-top: 34px;
    padding-bottom: 34px;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

.testimonials-section .section-title {
    color: var(--white);
    text-shadow: 4px 4px 0 var(--purple);
}

.testimonials-section .title-burst {
    background: var(--yellow);
    color: var(--black);
}

.testimonials-section .section-header {
    margin-bottom: 28px;
}

.testimonials-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    max-width: 1120px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.testimonial-card {
    position: relative;
}

.speech-bubble {
    background: var(--white);
    border: var(--border-thick) solid var(--black);
    border-radius: 30px;
    padding: 20px;
    position: relative;
    box-shadow: var(--shadow-comic-sm);
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 40px;
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 0 solid transparent;
    border-top: 20px solid var(--black);
}

.speech-bubble::before {
    content: '';
    position: absolute;
    bottom: -13px;
    left: 44px;
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 0 solid transparent;
    border-top: 14px solid var(--white);
    z-index: 1;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.45;
    font-style: italic;
    color: var(--black);
}

.testimonial-text strong {
    background: var(--yellow);
    padding: 0 5px;
    font-style: normal;
}

.testimonial-author {
    margin-top: 14px;
    padding-left: 20px;
}

.author-role {
    display: block;
    font-family: var(--font-card-title);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--white);
    letter-spacing: 0.03em;
}

.author-company {
    display: block;
    color: var(--yellow);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* =============================================
   CONTACT SECTION
   ============================================= */

.contact-section {
    background: var(--cream);
    padding: 100px 30px;
    border-top: var(--border-thick) solid var(--black);
}

.contact-section .title-burst {
    background: var(--blue);
    color: var(--white);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-card.main-cta {
    background: var(--yellow);
    border: var(--border-thick) solid var(--black);
    padding: 60px 40px;
    box-shadow: var(--shadow-comic);
    margin-bottom: 50px;
    transform: rotate(-1deg);
}

.contact-title {
    font-family: var(--font-card-title);
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: 0.03em;
}

.contact-sub {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.contact-value {
    max-width: 620px;
    margin: 0 auto 30px;
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 600;
}

.contact-card .comic-btn {
    background: var(--blue);
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-comic);
    font-size: 1.2rem;
    color: var(--black);
    text-decoration: none;
    padding: 15px 25px;
    border: 3px solid var(--black);
    background: var(--white);
    box-shadow: var(--shadow-comic-sm);
    transition: all 0.2s ease;
}

.contact-link:hover {
    transform: translate(-4px, -4px);
    box-shadow: 6px 6px 0 var(--black);
    background: var(--yellow);
}

.link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    line-height: 1;
    color: var(--blue);
    flex-shrink: 0;
}

.contact-link:nth-child(2) .link-icon { color: #0a66c2; }
.contact-link:nth-child(3) .link-icon { color: var(--orange); }

/* =============================================
   FOOTER
   ============================================= */

.comic-footer {
    background: var(--black);
    color: var(--white);
    padding: 80px 30px 40px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 2px solid rgba(255,255,255,0.2);
}

.footer-logo {
    font-family: var(--font-logo);
    font-size: 2.5rem;
    color: var(--yellow);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.footer-tagline {
    font-family: var(--font-comic);
    font-size: 1.2rem;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-link {
    color: var(--white);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--red);
}

.footer-bottom {
    max-width: 1400px;
    margin: 40px auto 0;
    text-align: center;
    opacity: 0.6;
    font-size: 0.9rem;
}

/* =============================================
   MODALS
   ============================================= */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--white);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border: 4px solid var(--black);
    padding: 40px;
    position: relative;
    box-shadow: 10px 10px 0 var(--black);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-comic);
    color: var(--black);
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--red);
}

.modal-title {
    font-family: var(--font-comic);
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--black);
}

.modal-body {
    font-size: 1.1rem;
    line-height: 1.7;
}

.modal-body h3 {
    font-family: var(--font-comic);
    font-size: 1.5rem;
    margin: 25px 0 15px;
    color: var(--black);
}

.modal-detail-row {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    align-items: baseline;
}

.detail-label {
    font-weight: bold;
    min-width: 100px;
    color: var(--red);
    font-family: var(--font-comic);
}

/* =============================================
   MOBILE MENU
   ============================================= */

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--yellow);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-content {
    background: var(--white);
    padding: 40px 60px;
    border: 4px solid var(--black);
    box-shadow: 10px 10px 0 var(--black);
    text-align: center;
    transform: rotate(-2deg);
    max-width: 90%;
}

.mobile-nav-link {
    display: block;
    font-family: var(--font-comic);
    font-size: 2rem;
    color: var(--black);
    text-decoration: none;
    margin: 20px 0;
    transition: color 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mobile-nav-link:hover {
    color: var(--red);
    text-shadow: 2px 2px 0 var(--yellow);
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    font-family: var(--font-comic);
}

.mobile-lang-switch {
    margin-top: 30px;
    background: var(--red);
    color: var(--white);
    border: 3px solid var(--black);
    padding: 10px 22px;
    font-family: var(--font-logo);
    font-size: 1.25rem;
    letter-spacing: 0.08em;
    cursor: pointer;
    transform: rotate(2deg);
    display: inline-block;
    box-shadow: 4px 4px 0 var(--black);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.mobile-lang-switch:hover {
    background: var(--blue);
    transform: translate(2px, 2px) rotate(0deg);
    box-shadow: 2px 2px 0 var(--black);
}

.mobile-lang-switch:active {
    transform: translate(4px, 4px) rotate(0deg);
    box-shadow: 0 0 0 var(--black);
}

.mobile-lang-switch:focus-visible {
    outline: 3px solid var(--cyan);
    outline-offset: 2px;
}

/* =============================================
   RESPONSIVE - Full Coverage
   ============================================= */

/* Large tablets and small laptops */
@media (max-width: 1200px) {
    .hero-section {
        padding: 120px 40px 80px;
    }
    
    .projects-section .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .testimonials-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets */
@media (max-width: 1024px) {
    section {
        padding: 80px 30px;
    }

    .projects-section,
    .testimonials-section {
        min-height: auto;
        display: block;
    }

    .projects-section .projects-grid,
    .testimonials-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .projects-section .skills-integrated {
        flex-wrap: wrap;
        overflow-x: visible;
        justify-content: center;
        width: 100%;
        padding: 0 0 12px;
        gap: 8px;
    }

    .projects-intro-block {
        margin-bottom: 16px;
        padding: 12px 14px;
    }

    .projects-intro {
        font-size: 0.95rem;
    }

    .projects-steps {
        gap: 6px;
    }

    .project-step-chip {
        font-size: 0.72rem;
        padding: 4px 8px;
    }
    
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 100px 30px 60px;
        gap: 40px;
    }
    
    /* Services stay BELOW the name/content */
    .hero-visual {
        order: 1;
    }
    
    .hero-content {
        order: 0;
    }
    
    .hero-services-grid {
        max-width: 600px;
        margin: 0 auto;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
        max-width: 600px;
    }
    
    .availability-badge {
        justify-content: center;
    }
    
    .hero-title {
        font-size: clamp(3rem, 8vw, 5rem);
    }
    
    .section-title {
        font-size: clamp(2.5rem, 6vw, 4rem);
    }
}

/* Portrait tablets / phones: balance hero spacing */
@media (max-width: 1024px) and (orientation: portrait) {
    .hero-section {
        padding-top: 90px;
        padding-bottom: 70px;
        gap: 28px;
    }
    
    .hero-content {
        margin-bottom: 10px;
    }
    
    .hero-stats {
        margin-bottom: 18px;
    }
    
    .hero-description {
        margin-bottom: 22px;
    }
    
    .hero-visual {
        margin-top: 6px;
    }
    
    .hero-services-grid {
        max-width: 560px;
    }
}

/* Mobile landscape and small tablets */
@media (max-width: 768px) {
    /* Navigation */
    .nav-links {
        display: none;
    }
    
    .lang-switch {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .comic-header {
        padding: 10px 15px;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
    
    /* Hero */
    .hero-section {
        padding-top: 90px;
        padding-bottom: 50px;
    }

    .projects-intro-block {
        margin-bottom: 10px;
        padding: 8px 10px 10px;
    }

    .projects-intro {
        font-size: 0.9rem;
        margin-bottom: 0;
    }

    .projects-steps {
        gap: 5px;
    }

    .project-step-chip {
        font-size: 0.66rem;
        padding: 3px 6px;
    }

    .project-step-chip:not(:last-child)::after {
        display: none;
    }

    .projects-section .skills-integrated {
        padding: 0 0 10px;
        gap: 7px;
    }

    .projects-section .skills-integrated .skill-tag {
        padding: 7px 10px;
        font-size: 0.78rem;
    }
    
    .hero-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        max-width: 400px;
    }
    
    .hero-service-card {
        padding: 15px 18px;
    }
    
    .hero-service-card .card-icon {
        font-size: 1.5rem;
    }
    
    .hero-service-card .card-title {
        font-size: 1.05rem;
    }
    
    .hero-service-card .card-desc {
        font-size: 0.9rem;
    }
    
    .title-burst {
        position: static;
        display: inline-block;
        margin-top: 15px;
        transform: rotate(5deg);
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .stat-bubble {
        flex: 1;
        min-width: 100px;
        padding: 12px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    /* Skills filter */
    .skills-integrated {
        gap: 8px;
        padding: 0 10px;
    }
    
    .skills-integrated .skill-tag {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
    
    /* Projects */
    .projects-section .projects-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    
    .project-card {
        padding: 18px 16px 14px;
        min-height: auto;
        transform: none;
        border-radius: 0;
    }

    .project-card:hover {
        transform: translateY(-3px) scale(1.005);
    }

    .project-icon {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .project-title {
        font-size: 0.96rem;
        padding-right: 46px;
    }

    .project-desc {
        font-size: 0.86rem;
    }
    
    /* Testimonials */
    .testimonials-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .testimonial-card {
        padding: 25px 20px;
    }
    
    .testimonial-text {
        font-size: 1rem;
    }
    
    /* Contact */
    .contact-card.main-cta {
        padding: 30px 20px;
    }
    
    .contact-links {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .contact-link {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    /* Footer */
    .footer-content {
        text-align: center;
        gap: 20px;
    }
    
    .footer-links {
        align-items: center;
    }
    
    .footer-logo {
        font-size: 1.5rem;
    }
    
    /* Intro */
    #skip-intro {
        bottom: 20px;
        right: 20px;
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .burst-text {
        font-size: clamp(2.5rem, 12vw, 4rem);
        padding: 15px 30px;
        -webkit-text-stroke: 2px var(--black);
    }
    
    .comic-burst::before {
        width: 110%;
        height: 130%;
    }
    
    .comic-burst::after {
        width: 113%;
        height: 135%;
    }
    
    .comic-burst.power-burst {
        margin-bottom: -10px;
    }
    
    /* Modal */
    .modal-content {
        width: 95%;
        max-height: 85vh;
        padding: 25px 20px;
    }
    
    .modal-close {
        right: 15px;
        top: 15px;
        font-size: 1.5rem;
    }
}

/* Mobile portrait - OPTIMISED FOR READABILITY */
@media (max-width: 480px) {
    /* Base improvements */
    body {
        font-size: 16px; /* Prevent iOS zoom on inputs */
        -webkit-text-size-adjust: 100%;
    }
    
    section {
        padding: 50px 20px;
    }
    
    .hero-section {
        padding: 85px 20px 45px;
        min-height: auto;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 12vw, 3.5rem);
        margin-bottom: 15px;
    }
    
    .title-line {
        text-shadow: 3px 3px 0 var(--blue);
    }
    
    .hero-subtitle {
        font-size: 1.15rem;
        line-height: 1.5;
        margin-bottom: 20px;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 8px 14px;
        margin-bottom: 15px;
    }
    
    .section-title {
        font-size: clamp(2rem, 9vw, 2.8rem);
    }
    
    /* CTA buttons - larger touch targets */
    .comic-btn {
        padding: 18px 30px;
        font-size: 1.15rem;
        min-height: 56px; /* iOS recommended */
        width: 100%;
        max-width: 320px;
    }
    
    .btn-sub {
        font-size: 0.85rem;
        margin-top: 6px;
    }
    
    /* Hero services mobile - better grid */
    .hero-services-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        max-width: 100%;
        padding: 0 5px;
    }
    
    .hero-service-card {
        padding: 18px 12px;
    }
    
    .hero-service-card .card-icon {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }
    
    .hero-service-card .card-title {
        font-size: 0.95rem;
        line-height: 1.2;
    }
    
    .hero-service-card .card-desc {
        font-size: 0.8rem;
        display: none; /* Hide on very small screens */
    }
    
    /* Stats - horizontal scroll or wrap */
    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .stat-bubble {
        min-width: 90px;
        padding: 12px 15px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    /* Availability badge */
    .availability-badge {
        font-size: 0.85rem;
        padding: 10px 16px;
        margin-bottom: 20px;
    }
    
    /* Hero description */
    .hero-description {
        font-size: 1.05rem;
        line-height: 1.7;
        margin-bottom: 25px;
    }

    .projects-intro {
        font-size: 0.86rem;
        line-height: 1.45;
    }
    
    /* Intro animation mobile */
    .burst-text {
        font-size: clamp(2.2rem, 14vw, 3.5rem);
        padding: 12px 22px;
        -webkit-text-stroke: 2px var(--black);
    }
    
    .comic-burst::before {
        width: 108%;
        height: 125%;
    }
    
    .comic-burst::after {
        width: 111%;
        height: 130%;
    }
    
    .comic-burst.power-burst {
        margin-bottom: -8px;
    }
    
    #skip-intro {
        bottom: 20px;
        right: 20px;
        padding: 10px 18px;
        font-size: 0.85rem;
        min-height: 44px; /* iOS touch target */
    }
    
    /* Skills filter mobile - scrollable */
    .projects-section .skills-integrated {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 8px;
        padding: 0 0 10px;
        margin: 0 auto 24px;
        width: 100%;
        justify-content: flex-start;
    }
    
    .projects-section .skills-integrated::-webkit-scrollbar {
        display: none;
    }
    
    .projects-section .skills-integrated .skill-tag {
        padding: 10px 16px;
        font-size: 0.85rem;
        white-space: nowrap;
        flex-shrink: 0;
        min-height: 44px; /* Touch target */
    }
    
    /* Project cards mobile */
    .projects-grid {
        gap: 14px;
    }
    
    .project-card {
        padding: 18px 14px 12px;
        transform: none;
    }
    
    .project-icon {
        top: 9px;
        right: 9px;
        width: 28px;
        height: 28px;
        font-size: 0.82rem;
    }
    
    .project-title {
        font-size: 0.95rem;
        font-weight: 500;
        margin-bottom: 6px;
        text-shadow: none;
        padding-right: 42px;
    }
    
    .project-desc {
        font-size: 0.86rem;
        line-height: 1.45;
    }
    
    /* Testimonials mobile */
    .testimonials-container {
        gap: 30px;
    }
    
    .speech-bubble {
        padding: 24px 20px;
    }
    
    .testimonial-text {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .testimonial-author {
        margin-top: 35px;
    }
    
    .author-role {
        font-size: 1.1rem;
    }
    
    .author-company {
        font-size: 0.95rem;
    }
    
    /* Contact mobile */
    .contact-card.main-cta {
        padding: 35px 25px;
    }
    
    .contact-title {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }
    
    .contact-sub {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .contact-value {
        font-size: 0.95rem;
        margin-bottom: 22px;
    }
    
    .contact-links {
        gap: 14px;
    }
    
    .contact-link {
        padding: 16px 20px;
        font-size: 1rem;
        min-height: 56px;
        justify-content: flex-start;
    }
    
    .link-icon {
        font-size: 1.3rem;
    }
    
    /* Footer mobile */
    .comic-footer {
        padding: 50px 20px 30px;
    }
    
    .footer-content {
        gap: 30px;
    }
    
    .footer-logo {
        font-size: 1.6rem;
    }
    
    .footer-tagline {
        font-size: 0.95rem;
    }
    
    .footer-info p {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    
    .footer-link {
        font-size: 1rem;
        padding: 8px 0;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .footer-bottom p {
        font-size: 0.85rem;
    }
    
    /* Modal mobile - full screen */
    .modal {
        padding: 15px;
    }
    
    .modal-content {
        padding: 25px 20px;
        max-height: 90vh;
        border-radius: 0;
    }
    
    .modal-close {
        width: 44px;
        height: 44px;
        right: 10px;
        top: 10px;
    }
    
    .modal-title {
        font-size: 1.6rem;
        margin-bottom: 25px;
        padding-right: 40px;
    }
    
    .modal-body h3 {
        font-size: 1.15rem;
        margin: 20px 0 12px;
    }
    
    .modal-body p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    /* Mobile menu improvements */
    .mobile-nav-link {
        font-size: 1.8rem;
        padding: 15px 0;
        min-height: 60px;
    }
}

/* Very small screens - still readable */
@media (max-width: 360px) {
    .hero-section {
        padding: 80px 15px 40px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .burst-text {
        font-size: 2rem;
        padding: 10px 18px;
    }
    
    .skills-integrated .skill-tag {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .stat-bubble {
        min-width: 80px;
        padding: 10px 12px;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    .hero-services-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .hero-service-card .card-desc {
        display: block;
    }
    
    .comic-btn {
        padding: 16px 25px;
        font-size: 1.05rem;
    }
    
    .contact-card.main-cta {
        padding: 30px 20px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

/* Landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        padding-top: 70px;
        min-height: auto;
    }
    
    #intro-overlay {
        padding: 20px;
    }
    
    .intro-container {
        gap: 10px;
    }
    
    .burst-text {
        font-size: 2rem;
        padding: 10px 20px;
    }

    .intro-secondary-bursts {
        margin-top: 14px;
        gap: 12px;
    }

    .secondary-burst .burst-text {
        font-size: 1.5rem;
        padding: 12px 18px;
    }
    
}

/* =============================================
   ANIMATIONS & EFFECTS
   ============================================= */

/* Scroll reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Print styles */
@media print {
    #intro-overlay,
    .comic-header,
    .modal,
    .mobile-menu {
        display: none !important;
    }
    
    #main-site {
        display: block !important;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* Header visible state (shown after intro) */
.comic-header {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.comic-header.visible {
    opacity: 1;
    pointer-events: auto;
}

/* =============================================
   PROJECTS SECTION HERO-ALIGNED OVERRIDES
   ============================================= */

.projects-section {
    background: var(--cream);
    position: relative;
    overflow: hidden;
    min-height: calc(100svh - var(--header-offset));
    padding-top: 36px;
    padding-bottom: 42px;
}

.projects-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, var(--black) 1px, transparent 1px);
    background-size: 8px 8px;
    opacity: 0.05;
    z-index: 0;
}

.projects-section .section-header {
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.projects-section .title-burst {
    display: none;
}

.projects-filters-card {
    width: min(1120px, 100%);
    margin: 0 auto 24px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    position: relative;
    z-index: 1;
}

.projects-section .skills-integrated {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.projects-section .skills-integrated::-webkit-scrollbar {
    display: none;
}

.projects-section .skills-integrated .skill-tag {
    flex-shrink: 0;
    min-height: 48px;
    border: 2px solid var(--black);
    border-radius: 0;
    box-shadow: none;
    font-family: var(--font-comic);
    font-size: 0.88rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1;
    padding: 10px 16px;
    background: #f6f6f6 !important;
    color: var(--black);
    transition: background-color 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
}

.projects-section .skills-integrated.filtering .skill-tag:not(.active) {
    opacity: 0.65;
}

.projects-section .skills-integrated .skill-tag.active,
.projects-section .skills-integrated .skill-tag:hover,
.projects-section .skills-integrated .skill-tag:focus-visible {
    transform: none !important;
    box-shadow: none;
    background: var(--yellow) !important;
    color: var(--black);
    filter: none;
    opacity: 1;
}

.projects-section .skills-integrated .skill-tag:focus-visible {
    outline: 3px solid var(--black);
    outline-offset: 2px;
}

.projects-section .projects-grid {
    width: min(1200px, 100%);
    margin: 0 auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    padding-top: 0;
    position: relative;
    z-index: 1;
}

.projects-section .project-card {
    --panel-bg: var(--white);
    --panel-ink: var(--red);
    --card-tilt: -2deg;
    background: var(--panel-bg);
    border: 4px solid var(--black);
    padding: 24px 20px 20px;
    box-shadow: var(--shadow-comic);
    border-radius: 0;
    display: flex;
    flex-direction: column;
    min-height: 190px;
    transform: rotate(var(--card-tilt));
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}

.projects-section .project-card:nth-child(4n + 1) {
    --panel-bg: var(--white);
    --panel-ink: var(--red);
    --card-tilt: -2deg;
}

.projects-section .project-card:nth-child(4n + 2) {
    --panel-bg: var(--cyan);
    --panel-ink: var(--black);
    --card-tilt: 1.8deg;
}

.projects-section .project-card:nth-child(4n + 3) {
    --panel-bg: var(--yellow);
    --panel-ink: var(--red);
    --card-tilt: -1.2deg;
}

.projects-section .project-card:nth-child(4n + 4) {
    --panel-bg: var(--white);
    --panel-ink: var(--blue);
    --card-tilt: 2deg;
}

.projects-section .project-card::before {
    content: none;
}

.projects-section .project-card:hover {
    transform: translate(-3px, -4px) rotate(var(--card-tilt)) scale(1.02);
    box-shadow: 8px 8px 0 var(--black);
}

.projects-section .project-icon {
    position: static;
    top: auto;
    right: auto;
    width: auto;
    height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 12px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    color: var(--panel-ink);
    font-size: 2rem;
    line-height: 1;
}

.projects-section .project-title {
    font-family: var(--font-card-title);
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 8px;
    padding-right: 0;
    color: var(--panel-ink);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.projects-section .project-desc {
    margin-top: auto;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--black);
    opacity: 0.92;
}

@media (max-width: 1200px) {
    .projects-section .projects-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .projects-section {
        padding-top: 34px;
        padding-bottom: 38px;
    }

    .projects-section .skills-integrated {
        justify-content: flex-start;
    }

    .projects-section .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .projects-filters-card {
        margin-bottom: 18px;
        padding: 0;
    }

    .projects-section .skills-integrated {
        gap: 6px;
    }

    .projects-section .skills-integrated .skill-tag {
        min-height: 40px;
        padding: 8px 12px;
        font-size: 0.78rem;
        white-space: nowrap;
    }

    .projects-section .project-card {
        padding: 20px 16px 16px;
        min-height: 170px;
    }

    .projects-section .project-icon {
        font-size: 1.75rem;
        margin-bottom: 10px;
    }

    .projects-section .project-title {
        font-size: 1.08rem;
    }

    .projects-section .project-desc {
        font-size: 0.9rem;
    }
}

@media (max-width: 560px) {
    .projects-section .projects-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .projects-section .project-card {
        min-height: 0;
    }
}

/* =============================================
   MOBILE COMPACT MODE (performance + readability)
   ============================================= */
@media (max-width: 768px) {
    :root {
        --shadow-comic: 3px 3px 0 var(--black);
        --shadow-comic-sm: 2px 2px 0 var(--black);
        --border-thick: 3px;
        --border-thicker: 4px;
    }

    section {
        padding: 42px 16px;
    }

    .nav-container {
        padding: 0 12px;
    }

    .comic-header {
        padding: 8px 10px;
    }

    .hero-section {
        min-height: auto;
        gap: 18px;
        padding: 82px 14px 34px;
    }

    .hero-halftone,
    .projects-section::before,
    .testimonials-section::before,
    #intro-overlay::before,
    #intro-overlay::after {
        display: none;
    }

    .hero-badge {
        margin-bottom: 12px;
        padding: 6px 12px;
    }

    .hero-description {
        font-size: 0.98rem;
        line-height: 1.55;
        margin-bottom: 18px;
    }

    .hero-stats {
        gap: 8px;
    }

    .stat-bubble {
        min-width: 86px;
        padding: 10px 12px;
    }

    .hero-services-grid {
        gap: 10px;
    }

    .hero-service-card {
        border-width: 3px;
        padding: 12px 12px;
        transform: none;
    }

    .projects-section {
        min-height: auto;
        padding-top: 24px;
        padding-bottom: 28px;
        overflow: visible;
    }

    .projects-intro-block {
        margin-bottom: 8px;
        padding: 6px 8px 8px;
    }

    .projects-section .skills-integrated {
        flex-wrap: wrap;
        justify-content: center;
        overflow-x: visible;
        overflow-y: visible;
        gap: 6px;
        padding: 0 0 8px;
        border-bottom: 0;
    }

    .projects-section .skills-integrated .skill-tag {
        min-height: 38px;
        padding: 7px 10px;
        font-size: 0.75rem;
        white-space: normal;
        line-height: 1.15;
    }

    .projects-section .projects-grid {
        gap: 12px;
        padding-top: 12px;
    }

    .projects-section .project-card {
        min-height: 0;
        border-width: 2px;
        padding: 16px 12px 12px;
        transform: none;
    }

    .projects-section .project-icon {
        font-size: 1.45rem;
        margin-bottom: 6px;
    }

    .projects-section .project-title {
        font-size: 0.98rem;
        margin-bottom: 6px;
    }

    .projects-section .project-desc {
        font-size: 0.84rem;
        line-height: 1.4;
    }

    .testimonials-section {
        min-height: auto;
        padding-top: 26px;
        padding-bottom: 26px;
    }

    .speech-bubble {
        border-width: 3px;
        border-radius: 20px;
        padding: 16px;
    }

    .testimonial-text {
        font-size: 0.94rem;
        line-height: 1.45;
    }

    .testimonial-author {
        margin-top: 12px;
        padding-left: 10px;
    }

    .contact-section {
        padding: 56px 16px;
    }

    .contact-card.main-cta {
        padding: 24px 16px;
    }

    .contact-title {
        font-size: 1.25rem;
    }

    .contact-sub {
        margin-bottom: 14px;
    }

    .contact-value {
        font-size: 0.9rem;
        margin-bottom: 14px;
    }

    .contact-card .comic-btn,
    .comic-btn {
        width: 100%;
        max-width: none;
        padding: 14px 16px;
        font-size: 1rem;
    }

    .footer-content {
        gap: 14px;
    }
}
