/* ═══════════════════════════════════════════
   DevCraft Portugal — Mobile-First Stylesheet
   ═══════════════════════════════════════════ */

:root {
    --bg-dark: #0a0e17;
    --bg-card: #111827;
    --accent: #22d3ee;
    --accent-warm: #f59e0b;
    --text-primary: #f1f5f9;
    --text-muted: #94a3b8;
    --border: rgba(255,255,255,0.06);
    --glass: rgba(17, 24, 39, 0.7);
    --radius: 12px;
    --transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

/* ── Background ── */
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(34,211,238,0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(245,158,11,0.04) 0%, transparent 50%);
    pointer-events: none;
}

.bg-grid::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* ── Container ── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

section { position: relative; z-index: 1; }

/* ═══════════════════════════════════════════
   NAVIGATION — Mobile First
   ═══════════════════════════════════════════ */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 1rem 1.25rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(10, 14, 23, 0.85);
    border-bottom: 1px solid var(--border);
    transition: all var(--transition);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
    text-decoration: none;
    color: var(--text-primary);
}
.logo span { color: var(--accent); }
.logo i { color: var(--accent-warm); font-style: normal; }

/* Hamburger */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 110;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s;
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav panel */
.nav-right {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: rgba(10, 14, 23, 0.97);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    padding: 5rem 2rem 2rem;
    transition: right 0.4s var(--transition);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    z-index: 105;
    border-left: 1px solid var(--border);
}

.nav-right.active { right: 0; }

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.nav-links li { border-bottom: 1px solid var(--border); }

.nav-links a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    padding: 1rem 0;
    transition: color 0.3s;
}

.nav-links a:hover { color: var(--accent); }

.nav-cta {
    display: inline-block !important;
    background: transparent !important;
    color: #22d3ee !important;
    padding: 0.45rem 1rem !important;
    border-radius: 6px;
    font-weight: 700 !important;
    text-align: center;
    margin-top: 0;
    border: 1.5px solid rgba(34,211,238,0.5) !important;
    transition: all 0.3s;
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
}

.nav-cta:hover {
    background: rgba(34,211,238,0.1) !important;
    border-color: #22d3ee !important;
    color: #22d3ee !important;
}

/* Mobile overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 104;
}
.nav-overlay.active { display: block; }

/* Language switcher */
.lang-switcher { position: relative; }

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s;
}

.lang-btn:hover { border-color: var(--accent); color: var(--accent); }

.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 160px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    z-index: 200;
}

.lang-dropdown.active { display: block; }

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    transition: all 0.2s;
}

.lang-option:hover { background: rgba(255,255,255,0.05); color: var(--text-primary); }
.lang-option.active { color: var(--accent); background: rgba(34,211,238,0.05); }

/* Flags */
.lang-flag {
    display: inline-block;
    width: 20px;
    height: 14px;
    border-radius: 2px;
    flex-shrink: 0;
}
.lang-flag[data-lang="pt"] { background: linear-gradient(90deg, #006600 40%, #ff0000 40%); }
.lang-flag[data-lang="en"] { background: linear-gradient(180deg, #00247d 33%, #fff 33% 66%, #cf142b 66%); }
.lang-flag[data-lang="fr"] { background: linear-gradient(90deg, #002395 33%, #fff 33% 66%, #ed2939 66%); }
.lang-flag[data-lang="es"] { background: linear-gradient(180deg, #c60b1e 25%, #ffc400 25% 75%, #c60b1e 75%); }

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
    padding-bottom: 2rem;
}

.hero-content { max-width: 750px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(34,211,238,0.08);
    border: 1px solid rgba(34,211,238,0.15);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.2rem;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.hero h1 em {
    font-style: italic;
    background: linear-gradient(135deg, var(--accent), var(--accent-warm));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero > .container > .hero-content > p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.8rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #06b6d4);
    color: var(--bg-dark);
    box-shadow: 0 0 30px rgba(34,211,238,0.15);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(34,211,238,0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--text-primary);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    animation: fadeInUp 0.8s ease 0.4s both;
}

.stat h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent);
}
.stat p { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.2rem; }

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

/* ═══════════════════════════════════════════
   SECTIONS COMMON
   ═══════════════════════════════════════════ */
.section-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 600px;
}

/* ═══════════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════════ */
#servicos { padding: 5rem 0; }

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.service-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    transition: all 0.4s var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-warm));
    transform: scaleX(0);
    transition: transform 0.4s;
}

.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(34,211,238,0.15);
}

.service-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
}
.service-icon.web { background: rgba(34,211,238,0.1); }
.service-icon.mobile { background: rgba(168,85,247,0.1); }
.service-icon.desktop { background: rgba(34,197,94,0.1); }
.service-icon.accounting { background: rgba(245,158,11,0.1); }
.service-icon.api { background: rgba(239,68,68,0.1); }
.service-icon.consult { background: rgba(99,102,241,0.1); }

.service-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.6rem; }
.service-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1rem;
}

.service-tags span {
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
    border-radius: 50px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════
   PORTFOLIO — Filterable Grid
   ═══════════════════════════════════════════ */
#portfolio { padding: 5rem 0; }

.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
    margin-bottom: 2.5rem;
}

.filter-btn {
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    -webkit-tap-highlight-color: transparent;
}

.filter-btn:hover { border-color: rgba(255,255,255,0.2); color: var(--text-primary); }

.filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-dark);
    font-weight: 700;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* ── Project Card ── */
.project-card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--glass);
    transition: all 0.5s var(--transition);
}

.project-card.hidden {
    display: none;
}

.project-card:hover {
    border-color: rgba(34,211,238,0.2);
    transform: translateY(-4px);
}

.project-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.project-card:hover .project-overlay { opacity: 1; }

.project-view {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
}

.project-info { padding: 1.5rem; }

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
}

.project-tags span {
    font-size: 0.68rem;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-muted);
}

.project-tags .tag-ia {
    background: rgba(34,211,238,0.1);
    border-color: rgba(34,211,238,0.2);
    color: var(--accent);
    font-weight: 700;
}

.project-tags .tag-custom {
    background: rgba(167,139,250,0.1);
    border-color: rgba(167,139,250,0.2);
    color: #a78bfa;
    font-weight: 700;
}

.project-info h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.project-info > p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.6; margin-bottom: 1rem; }

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.project-tech span {
    font-size: 0.68rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: rgba(245,158,11,0.08);
    color: var(--accent-warm);
}

/* ── Project Mockups (CSS illustrations) ── */
.project-mockup { position: relative; z-index: 1; padding: 1.5rem; width: 100%; }

/* Chatbot mockup */
.mockup-chat {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-width: 260px;
    margin: 0 auto;
}

.chat-bubble {
    padding: 0.6rem 1rem;
    border-radius: 12px;
    font-size: 0.78rem;
    max-width: 85%;
    animation: fadeInUp 0.5s ease both;
}

.chat-bubble.bot {
    background: rgba(34,211,238,0.15);
    color: var(--accent);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-bubble.user {
    background: rgba(255,255,255,0.1);
    color: var(--text-primary);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    animation-delay: 0.3s;
}

.chat-bubble.typing {
    display: flex;
    gap: 4px;
    padding: 0.8rem 1rem;
    animation-delay: 0.6s;
}

.chat-bubble.typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: typingDot 1.4s infinite;
}
.chat-bubble.typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-bubble.typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* Dashboard mockup */
.mockup-dashboard {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 140px;
    padding: 1rem;
    justify-content: center;
}

.dash-bar {
    width: 28px;
    border-radius: 4px 4px 0 0;
    transition: height 0.5s ease;
}

.dash-bar.predict { background: transparent !important; }

/* Phone mockup */
.mockup-phone {
    width: 140px;
    margin: 0 auto;
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    overflow: hidden;
    padding: 0.8rem;
}

.phone-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-height: 150px;
    justify-content: center;
}

.phone-camera { font-size: 2rem; }

.phone-scan-line {
    width: 80%;
    height: 2px;
    background: var(--accent);
    animation: scanLine 2s infinite;
    box-shadow: 0 0 10px var(--accent);
}

@keyframes scanLine {
    0%, 100% { opacity: 0.3; transform: scaleX(0.5); }
    50% { opacity: 1; transform: scaleX(1); }
}

.phone-result {
    font-size: 0.72rem;
    color: #34d399;
    font-weight: 600;
}

/* ERP mockup */
.mockup-erp {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 260px;
    margin: 0 auto;
}

.erp-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.8rem;
    background: rgba(255,255,255,0.04);
    border-radius: 8px;
    font-size: 0.75rem;
}

.erp-label { color: var(--text-muted); }
.erp-auto { color: var(--accent); font-weight: 600; }
.erp-check { color: #34d399; font-weight: 600; }

/* Recommendation mockup */
.mockup-reco { text-align: center; }

.reco-title {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1rem;
}

.reco-items { display: flex; gap: 0.8rem; justify-content: center; }

.reco-item {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    gap: 0.2rem;
}

.reco-item span {
    font-size: 0.6rem;
    color: #34d399;
    font-weight: 700;
}

/* Content gen mockup */
.mockup-gen { max-width: 260px; margin: 0 auto; }

.gen-prompt {
    font-size: 0.78rem;
    color: var(--accent-warm);
    padding: 0.6rem 1rem;
    background: rgba(245,158,11,0.08);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.gen-output { padding: 0 0.5rem; }

.gen-line {
    height: 8px;
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
    margin-bottom: 0.5rem;
    width: 100%;
}

.gen-cursor {
    color: var(--accent);
    animation: blink 1s infinite;
    font-weight: 300;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ═══════════════════════════════════════════
   TECH STACK
   ═══════════════════════════════════════════ */
#tech { padding: 5rem 0; }

.tech-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.tech-category {
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s;
}

.tech-category:hover {
    border-color: rgba(34,211,238,0.15);
}

.tech-category h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border);
}

.tech-items { display: flex; flex-direction: column; gap: 0.5rem; }

.tech-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    padding: 0.3rem 0;
}

.tech-logo {
    color: var(--accent);
    font-size: 0.6rem;
}

.tech-discreet {
    margin-top: 0.6rem;
    padding-top: 0.6rem;
    border-top: 1px solid var(--border);
    font-size: 0.72rem;
    color: rgba(148,163,184,0.4);
    font-style: italic;
}

/* ═══════════════════════════════════════════
   PROCESS
   ═══════════════════════════════════════════ */
#processo { padding: 5rem 0; }

.process-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.step { text-align: center; padding: 1.5rem 0.5rem; }

.step-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent), transparent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.4;
    line-height: 1;
    margin-bottom: 0.8rem;
}

.step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.step p { color: var(--text-muted); font-size: 0.85rem; }

/* ═══════════════════════════════════════════
   PRICING — Starting-from + Free support
   ═══════════════════════════════════════════ */
#precos { padding: 5rem 0; }

/* ── Free support banner ── */
.free-support-banner {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 2.5rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(34,211,238,0.08), rgba(245,158,11,0.08));
    border: 1px solid rgba(34,211,238,0.2);
    position: relative;
    overflow: hidden;
}

.free-support-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(34,211,238,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.fsb-icon { font-size: 2.5rem; flex-shrink: 0; }

.fsb-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.3rem;
}

.fsb-content p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.5; }

/* ── Pricing grid ── */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.pricing-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.8rem 1.5rem;
    transition: all 0.3s;
}

.pricing-card:hover {
    border-color: rgba(34,211,238,0.2);
    transform: translateY(-3px);
}

.pricing-card-icon { font-size: 2rem; margin-bottom: 0.8rem; }

.pricing-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.6rem; }

.pricing-card .price { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 0.8rem; }

.pricing-card .price strong {
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent), var(--accent-warm));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-card .desc { font-size: 0.84rem; color: var(--text-muted); margin-bottom: 1.2rem; line-height: 1.5; }

.pricing-features { list-style: none; padding: 0; margin: 0 0 1.2rem 0; }

.pricing-features li {
    padding: 0.35rem 0;
    font-size: 0.84rem;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.pricing-features li::before { content: '✓'; color: var(--accent); font-weight: 700; flex-shrink: 0; }

.pricing-includes {
    padding-top: 0.8rem;
    border-top: 1px solid var(--border);
    font-size: 0.82rem;
    font-weight: 600;
    color: #34d399;
}

/* ── Custom quote block ── */
.pricing-custom {
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem 1.5rem;
}

.pricing-custom-inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.pricing-custom h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.pricing-custom-inner > div > p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

.pricing-factors {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--border);
}

.pricing-factors span {
    font-size: 0.75rem;
    padding: 0.35rem 0.8rem;
    border-radius: 50px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════
   DUAL SECTIONS — Devis + Contact Side by Side
   ═══════════════════════════════════════════ */
#contacto { padding: 5rem 0; }

.dual-sections {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.dual-section {
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem 1.5rem;
}

.devis-section { border-color: rgba(34,211,238,0.15); }

.dual-header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.8rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--border);
}

.dual-icon { font-size: 2rem; flex-shrink: 0; }

.dual-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.dual-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.contact-details-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--border);
}

.contact-details-mini .contact-detail {
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
} — TABS + QUOTE SYSTEM
   ═══════════════════════════════════════════ */
#contacto { padding: 5rem 0; }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-top: 2.5rem;
}

.contact-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}
.contact-info > p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.92rem;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.2rem;
}
.contact-detail .icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius);
    background: rgba(34,211,238,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.contact-detail strong { display: block; font-size: 0.82rem; margin-bottom: 0.15rem; }
.contact-detail span { color: var(--text-muted); font-size: 0.88rem; }

/* ── Form Tabs ── */
.contact-forms-wrapper {
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
}

.form-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
}

.form-tab {
    flex: 1;
    padding: 1rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.form-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 3px;
    background: var(--accent);
    border-radius: 3px 3px 0 0;
    transform: scaleX(0);
    transition: transform 0.3s;
}

.form-tab.active { color: var(--accent); }
.form-tab.active::after { transform: scaleX(1); }
.form-tab:hover { color: var(--text-primary); }

.tab-icon { font-size: 1.1rem; }

/* ── Tab Content ── */
.contact-form.tab-content {
    display: none;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 0;
    padding: 2rem 1.5rem;
}

.contact-form.tab-content.active { display: block; }

/* ── Quote Steps Indicator ── */
.quote-steps-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.quote-step-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: all 0.4s;
    flex-shrink: 0;
}

.quote-step-dot.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-dark);
}

.quote-step-dot.done {
    background: rgba(34,211,238,0.15);
    border-color: var(--accent);
    color: var(--accent);
}

.quote-step-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    max-width: 80px;
    transition: background 0.4s;
}

.quote-step-line.done { background: var(--accent); }

/* ── Quote Steps ── */
.quote-step {
    display: none;
    animation: fadeInUp 0.4s ease;
}
.quote-step.active { display: block; }

.quote-step-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.quote-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    gap: 1rem;
}

.quote-nav .btn { min-width: 120px; padding: 0.75rem 1.2rem; font-size: 0.88rem; }

/* ── Checkbox Cards (Service Selection) ── */
.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.check-card {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.check-card input { display: none; }

.check-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 1rem 0.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.02);
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    transition: all 0.3s;
}

.check-icon { font-size: 1.4rem; }

.check-card input:checked + .check-card-inner {
    border-color: var(--accent);
    background: rgba(34,211,238,0.08);
    color: var(--text-primary);
    box-shadow: 0 0 20px rgba(34,211,238,0.1);
}

.check-card:hover .check-card-inner {
    border-color: rgba(255,255,255,0.15);
}

/* ── File Upload Zone ── */
.file-upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.file-upload-zone:hover,
.file-upload-zone.dragover {
    border-color: var(--accent);
    background: rgba(34,211,238,0.03);
}

.file-upload-content { pointer-events: none; }

.file-upload-icon { font-size: 2rem; display: block; margin-bottom: 0.5rem; }

.file-upload-zone p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 0.3rem;
}

.file-upload-hint {
    font-size: 0.72rem;
    color: rgba(148,163,184,0.6);
}

.file-list {
    margin-top: 0.8rem;
    text-align: left;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 0.6rem;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    margin-bottom: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.file-item-name {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.file-item-remove {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 1rem;
    padding: 0 0.3rem;
    flex-shrink: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.form-group { margin-bottom: 1rem; }

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 16px; /* Prevents iOS zoom */
    transition: border-color 0.3s;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent);
}

.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select option { background: var(--bg-dark); }

.form-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--accent), #06b6d4);
    color: var(--bg-dark);
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s;
    -webkit-tap-highlight-color: transparent;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(34,211,238,0.3);
}

.form-submit:active { transform: scale(0.98); }

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    padding: 2.5rem 1.25rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

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

.footer-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.82rem;
    transition: color 0.3s;
}
.footer-links a:hover { color: var(--accent); }

.portugal-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

.pt-flag {
    display: inline-block;
    width: 20px;
    height: 14px;
    border-radius: 2px;
    background: linear-gradient(90deg, #006600 40%, #ff0000 40%);
    position: relative;
}
.pt-flag::after {
    content: '';
    position: absolute;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #ffcc00;
    top: 3px; left: 5px;
}

/* ═══════════════════════════════════════════
   TOAST
   ═══════════════════════════════════════════ */
.toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--accent);
    color: var(--bg-dark);
    padding: 0.9rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.88rem;
    z-index: 200;
    opacity: 0;
    transition: all 0.4s var(--transition);
    white-space: nowrap;
    max-width: 90vw;
    text-align: center;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.error { background: #ef4444; color: #fff; }

/* ═══════════════════════════════════════════
   LEGAL PAGE
   ═══════════════════════════════════════════ */
.legal-page { padding: 7rem 0 4rem; }

.back-link {
    display: inline-block;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    transition: opacity 0.3s;
}
.back-link:hover { opacity: 0.7; }

.legal-content { margin-top: 2rem; }

.legal-block {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border);
}
.legal-block:last-child { border-bottom: none; }

.legal-block h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--accent);
}
.legal-block p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.8; }

.legal-info-grid {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.legal-info-grid div { font-size: 0.9rem; color: var(--text-muted); }
.legal-info-grid strong { color: var(--text-primary); }
.placeholder { color: var(--accent-warm); font-style: italic; }

/* ═══════════════════════════════════════════
   REVEAL ANIMATIONS
   ═══════════════════════════════════════════ */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s var(--transition);
}
[data-reveal].visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════
   TABLET — 640px+
   ═══════════════════════════════════════════ */
@media (min-width: 640px) {
    .container { padding: 0 2rem; }

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

    .hero-actions { flex-direction: row; }

    .services-grid { grid-template-columns: repeat(2, 1fr); }

    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }

    .tech-grid { grid-template-columns: repeat(2, 1fr); }

    .form-row { grid-template-columns: 1fr 1fr; gap: 1rem; }

    .stat h3 { font-size: 2rem; }
    .stat p { font-size: 0.82rem; }

    .pricing-grid { grid-template-columns: repeat(2, 1fr); }

    .pricing-custom-inner { flex-direction: row; align-items: center; }

    .checkbox-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ═══════════════════════════════════════════
   DESKTOP — 768px+
   ═══════════════════════════════════════════ */
@media (min-width: 768px) {
    .menu-toggle { display: none; }

    .nav-right {
        position: static;
        width: auto;
        max-width: none;
        height: auto;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        padding: 0;
        flex-direction: row;
        align-items: center;
        gap: 1.5rem;
        border-left: none;
    }

    .nav-links {
        flex-direction: row;
        gap: 2rem;
    }

    .nav-links li { border-bottom: none; }

    .nav-links a {
        font-size: 0.88rem;
        padding: 0;
        position: relative;
    }

    .nav-links a:not(.nav-cta)::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--accent);
        transition: width 0.3s;
    }
    .nav-links a:not(.nav-cta):hover::after { width: 100%; }

    .nav-cta { margin-top: 0; }

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

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

    .services-grid { grid-template-columns: repeat(2, 1fr); }

    .process-steps { grid-template-columns: repeat(4, 1fr); }

    .step-number { font-size: 3.5rem; }

    .contact-grid { grid-template-columns: 1fr 1.2fr; gap: 3.5rem; }

    .contact-form.tab-content { padding: 2rem; }

    .footer-inner { flex-direction: row; text-align: left; }
}

/* ═══════════════════════════════════════════
   LARGE DESKTOP — 1024px+
   ═══════════════════════════════════════════ */
@media (min-width: 1024px) {
    .hero h1 { font-size: 4.2rem; }

    .hero > .container > .hero-content > p { font-size: 1.15rem; }

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

    .services-grid { grid-template-columns: repeat(3, 1fr); }

    .portfolio-grid { grid-template-columns: repeat(3, 1fr); }

    .tech-grid { grid-template-columns: repeat(4, 1fr); }

    .pricing-grid { grid-template-columns: repeat(4, 1fr); }

    .service-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    }

    .contact-form.tab-content { padding: 2.5rem; }

    .dual-sections { grid-template-columns: 1.2fr 0.8fr; }

    .checkbox-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ═══════════════════════════════════════════
   ULTRA-WIDE — 1440px+
   ═══════════════════════════════════════════ */
@media (min-width: 1440px) {
    .hero h1 { font-size: 5rem; }
}

/* ═══════════════════════════════════════════
   SAFE AREA (iPhone notch etc.)
   ═══════════════════════════════════════════ */
@supports (padding: env(safe-area-inset-bottom)) {
    footer { padding-bottom: calc(2.5rem + env(safe-area-inset-bottom)); }
    .toast { bottom: calc(1.5rem + env(safe-area-inset-bottom)); }
}

/* ═══════════════════════════════════════════
   PREMIUM ANIMATIONS — FULL MODE
   ═══════════════════════════════════════════ */

/* ── Cascade Reveal Animations ── */
[data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Section Title Animation ── */
.section-title {
    opacity: 1;
    transform: none;
}

.section-title.title-animate {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ── Button Ripple ── */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    transform: scale(0);
    animation: rippleAnim 0.7s ease-out forwards;
    pointer-events: none;
}

@keyframes rippleAnim {
    to { transform: scale(2.5); opacity: 0; }
}

/* ── Hero Particles ── */
.hero-particles {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    background: rgba(34,211,238,0.15);
    border-radius: 50%;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0; }
    10% { opacity: 1; }
    50% { transform: translate(30px, -60px) scale(1.5); opacity: 0.6; }
    90% { opacity: 0.2; }
}

/* ── Section Transitions ── */
section {
    opacity: 1;
    transform: none;
}

/* ── Enhanced Card Hover Glow ── */
.service-card, .project-card, .pricing-card, .tech-category {
    will-change: transform;
    transform-style: preserve-3d;
}

.service-card::after, .pricing-card::after {
    content: '';
    position: absolute;
    top: -1px; left: -1px; right: -1px; bottom: -1px;
    border-radius: inherit;
    border: 1px solid transparent;
    transition: border-color 0.4s;
    pointer-events: none;
}

.service-card:hover::after, .pricing-card:hover::after {
    border-color: rgba(34,211,238,0.2);
}

/* ── Smooth scroll behavior ── */
html { scroll-behavior: smooth; }

/* ── Portfolio filter animation ── */
.project-card.hidden { display: none; }

/* ── Enhanced hover on project cards ── */
.project-card { transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); }

.project-overlay {
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Stat numbers styling for counters ── */
.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent), var(--accent-warm));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* nav-cta defined above */

/* ═══════════════════════════════════════════
   PORTFOLIO ENHANCEMENTS
   ═══════════════════════════════════════════ */

/* Code Source Banner */
.code-source-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    background: linear-gradient(135deg, rgba(34,211,238,0.08), rgba(167,139,250,0.08));
    border: 1px solid rgba(34,211,238,0.15);
    border-radius: 14px;
    margin-bottom: 2rem;
}
.csb-icon { font-size: 2rem; flex-shrink: 0; }
.csb-text strong { color: var(--accent); font-size: 0.95rem; display: block; margin-bottom: 0.2rem; }
.csb-text p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; margin: 0; }

/* Project Footer (code badge + CTA) */
.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--border);
}
.project-badge {
    font-size: 0.7rem;
    color: #a78bfa;
    font-weight: 600;
}
.project-cta {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s;
}
.project-cta:hover { color: var(--accent-warm); }

/* Portfolio CTA */
.portfolio-cta {
    text-align: center;
    margin-top: 2.5rem;
    padding: 2rem;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 14px;
}
.portfolio-cta p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; }

/* Site Mockup for web projects */
.mockup-site {
    padding: 0.8rem;
    font-size: 0.6rem;
    text-align: center;
}
.site-header-mock {
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}
.site-nav-mock {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    font-size: 0.5rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}
.site-hero-mock {
    font-size: 0.6rem;
    font-weight: 600;
    padding: 0.4rem;
    margin-bottom: 0.4rem;
    color: var(--accent);
}
.site-cards-mock {
    display: flex;
    gap: 0.3rem;
    justify-content: center;
}
.site-cards-mock span {
    font-size: 0.45rem;
    padding: 0.2rem 0.35rem;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
    border: 1px solid var(--border);
}

/* Project Modal */
.project-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.project-modal.active { display: flex; }

.modal-backdrop {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 2rem;
    animation: modalIn 0.3s ease;
}

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

.modal-close {
    position: absolute;
    top: 1rem; right: 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: var(--text);
    width: 36px; height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.modal-close:hover { background: rgba(248,113,113,0.1); color: #f87171; }

.modal-header { margin-bottom: 1.5rem; }
.modal-header h2 { font-family: 'Playfair Display', serif; font-size: 1.3rem; margin-bottom: 0.5rem; }
.modal-header p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; }

.modal-preview {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    min-height: 200px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}
.modal-footer .project-badge { font-size: 0.85rem; }

/* ── Project clickable link ── */
.project-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* ═══════════════════════════════════════════
   MOBILE FIXES & SMARTPHONE OPTIMIZATION
   ═══════════════════════════════════════════ */

/* Mobile: stack dual sections */
@media (max-width: 639px) {
    .dual-sections { grid-template-columns: 1fr; gap: 1.5rem; }

    .code-source-banner { flex-direction: column; text-align: center; padding: 1rem; }
    .csb-text strong { font-size: 0.85rem; }

    .portfolio-filters { flex-wrap: wrap; gap: 0.4rem; }
    .filter-btn { font-size: 0.72rem; padding: 0.4rem 0.7rem; }

    .project-footer { flex-direction: column; gap: 0.5rem; align-items: flex-start; }

    .portfolio-cta { padding: 1.2rem; }
    .portfolio-cta p { font-size: 0.82rem; }

    .hero h1 { font-size: 2rem; }
    .hero-actions { flex-direction: column; gap: 0.8rem; }
    .hero-actions .btn { width: 100%; text-align: center; }

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

    .modal-content { width: 95%; padding: 1.2rem; }
    .modal-header h2 { font-size: 1.1rem; }

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

    .mockup-site { font-size: 0.5rem; }
    .site-cards-mock { flex-wrap: wrap; }
}

/* Mobile nav: fix devis button in mobile menu */
@media (max-width: 767px) {
    .nav-cta {
        margin-top: 0.5rem !important;
        width: 100%;
        text-align: center !important;
        padding: 0.7rem 1rem !important;
    }
}

/* Touch devices: disable tilt and magnetic effects */
@media (hover: none) {
    .service-card, .project-card, .pricing-card, .tech-category {
        transform: none !important;
    }
}

/* ═══════════════════════════════════════════
   PROFESSIONAL IMPROVEMENTS
   ═══════════════════════════════════════════ */

/* Improved footer */
.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
}

.footer-brand { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.footer-tagline { color: var(--text-muted); font-size: 0.82rem; max-width: 350px; line-height: 1.5; }

.footer-contact-info {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}
.footer-contact-info p { font-size: 0.82rem; color: var(--text-muted); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 0.5rem;
}
.footer-bottom p { font-size: 0.78rem; color: var(--text-muted); }

@media (min-width: 768px) {
    .footer-inner { flex-direction: column; }
}

/* Stat number plus after counter */
.stat-number::after { content: '+'; }

/* Smooth page load */
body {
    animation: pageLoad 0.5s ease;
}
@keyframes pageLoad {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Better focus styles for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Hero badge pulse animation improvement */
.hero-badge .pulse {
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

/* Improve form inputs on focus */
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(34,211,238,0.1);
}

/* Loading skeleton for images */
.project-image { position: relative; overflow: hidden; }
.project-image::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; right: 0; bottom: 0;
    width: 200%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
    animation: shimmer 2s infinite;
}
@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Improve service card hover */
.service-card { transition: transform 0.3s ease, box-shadow 0.3s ease; }

/* Better selection color */
::selection { background: rgba(34,211,238,0.2); color: #fff; }

/* Print styles */
@media print {
    nav, .hero-particles, .bg-grid, .toast { display: none !important; }
    body { background: #fff; color: #000; }
    section { opacity: 1 !important; }
}

/* ═══════════════════════════════════════════
   LEGAL PAGE IMPROVEMENTS
   ═══════════════════════════════════════════ */
.legal-page { padding: 6rem 0 3rem; }
.legal-page .back-link { color: var(--accent); text-decoration: none; font-size: 0.88rem; display: inline-block; margin-bottom: 1.5rem; transition: opacity 0.2s; }
.legal-page .back-link:hover { opacity: 0.7; }

.legal-content { max-width: 800px; }

.legal-block { margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.legal-block:last-child { border-bottom: none; }
.legal-block h2 { font-family: 'Playfair Display', serif; font-size: 1.3rem; margin-bottom: 1rem; color: var(--text); }
.legal-block h3 { font-size: 0.95rem; font-weight: 700; color: var(--accent); margin: 1.2rem 0 0.5rem; }
.legal-block p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 0.8rem; }

.legal-info-grid {
    display: grid;
    gap: 0.5rem;
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: 10px;
}
.legal-info-grid div { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }
.legal-info-grid strong { color: var(--text); }

.legal-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin: 0.8rem 0;
    padding-left: 0.5rem;
}
.legal-list span {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    padding-left: 1rem;
    position: relative;
}
.legal-list span::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* ═══════════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════════ */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
}
@media (min-width: 640px) { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .testimonials-grid { grid-template-columns: repeat(4, 1fr); } }

.testimonial-card {
    padding: 1.5rem;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.testimonial-stars { font-size: 0.8rem; margin-bottom: 0.8rem; }

.testimonial-text {
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--border);
}

.testimonial-avatar {
    width: 40px; height: 40px;
    background: rgba(34,211,238,0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.testimonial-author strong {
    display: block;
    font-size: 0.85rem;
}
.testimonial-author span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--glass);
    transition: border-color 0.3s;
}
.faq-item:hover, .faq-item.open {
    border-color: rgba(34,211,238,0.2);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.2rem;
    background: none;
    border: none;
    color: var(--text);
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    gap: 1rem;
}

.faq-icon {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--accent);
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding: 0 1.2rem 1rem;
}

.faq-answer p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ═══════════════════════════════════════════
   PROJECT RESULTS STRIP (Case Study)
   ═══════════════════════════════════════════ */
.project-results {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.7rem;
    padding: 0.5rem 0.6rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.72rem;
    line-height: 1.4;
    flex-wrap: wrap;
}

.result-item {
    color: var(--text-muted);
}

.result-arrow {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.result-item.result-win {
    color: #34d399;
    font-weight: 700;
}

@media (max-width: 639px) {
    .project-results {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }
    .result-arrow { display: none; }
    .result-item.result-win::before { content: '→ '; color: var(--accent); }
}
