/* =========================================
   VARIÁVEIS GLOBAIS
   Altere as cores do site inteiro por aqui.
========================================= */

:root {
    /* Cores principais */
    --primary: #38bdf8;
    --primary-dark: #2563eb;
    --gradient: linear-gradient(135deg, #0ea5e9, #2563eb);

    /* Fundo e texto */
    --bg-dark: #020617;
    --text: #ffffff;
    --text-muted: #cbd5e1;
    --text-soft: #94a3b8;

    /* Superfícies (cards, bordas) */
    --surface: rgba(255, 255, 255, 0.04);
    --surface-hover: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.08);

    /* Efeitos */
    --shadow-btn: 0 15px 35px rgba(37, 99, 235, 0.35);
    --transition: 0.3s ease;
    --radius: 16px;
    --radius-lg: 24px;
}

/* =========================================
   RESET E BASE
========================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: radial-gradient(circle at top left, #1f2937 0%, #0f172a 40%, var(--bg-dark) 100%);
    color: var(--text);
    overflow-x: hidden;
    transition: 0.4s ease;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: auto;
    padding: 0 40px;
}

/* Título padrão das seções */
.section-title {
    text-align: center;
    margin-bottom: 70px;
}

.section-title span {
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-title h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin: 15px 0 20px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

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

header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border);
}

.menu {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    text-decoration: none;
    color: var(--text);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
    transition: var(--transition);
}

.logo span {
    color: var(--primary);
}

.logo:hover {
    color: var(--primary);
}

.menu ul {
    display: flex;
    align-items: center;
    gap: 45px;
    list-style: none;
}

.menu ul a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 16px;
    position: relative;
    transition: var(--transition);
}

.menu ul a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.menu ul a:hover {
    color: var(--text);
}

.menu ul a:hover::after {
    width: 100%;
}

.github-btn {
    text-decoration: none;
    color: var(--text);
    padding: 12px 26px;
    border-radius: 14px;
    background: var(--gradient);
    font-weight: 500;
    transition: var(--transition);
}

.github-btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-btn);
}

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

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 70px;
    padding-top: 60px;
    padding-bottom: 60px;
}

.content {
    width: 48%;
}

.mini-title {
    display: inline-block;
    margin-bottom: 20px;
    padding: 10px 18px;
    border-radius: 100px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.2);
    color: #7dd3fc;
    font-size: 14px;
}

.content h1 {
    font-size: 72px;
    line-height: 1.1;
    margin-bottom: 25px;
}

.line {
    width: 120px;
    height: 5px;
    border-radius: 100px;
    margin-bottom: 30px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
}

.content p {
    font-size: 20px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 30px;
}

/* Botões do hero */

.buttons {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.primary-btn,
.secondary-btn {
    text-decoration: none;
    padding: 18px 34px;
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
}

.primary-btn {
    background: var(--gradient);
    color: var(--text);
}

.primary-btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-btn);
}

.secondary-btn {
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text);
    background: var(--surface);
}

.secondary-btn:hover {
    background: var(--surface-hover);
}

/* Botões de tecnologias */

.techs {
    display: flex;
    gap: 40px;
    margin-top: 50px;
}

.tech-btn {
    width: 120px;
    height: 110px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(14, 164, 233, 0.36), rgba(37, 100, 235, 0.09));
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.35s ease;
}

.tech-btn:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55);
}

.tech-btn img {
    width: 70px;
}

/* Galeria (mosaico de imagens) */

.gallery {
    width: 52%;
    display: flex;
    gap: 18px;
    align-items: stretch;
}

.column {
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex: 1;
}

.big {
    flex: 1.2;
    min-height: 786px;
}

.gallery figure {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: 0.5s ease;
}

.column figure {
    height: 250px;
}

.gallery figure:hover img {
    transform: scale(1.08);
}

.gallery figure::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.35), transparent);
    opacity: 0;
    transition: 0.4s ease;
}

.gallery figure:hover::after {
    opacity: 1;
}

/* =========================================
   SOBRE MIM
========================================= */

.about-section {
    padding-top: 120px;
    padding-bottom: 60px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text p {
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1.9;
    margin-bottom: 25px;
}

.about-highlights {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.highlight {
    flex: 1;
    text-align: center;
    padding: 24px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.highlight strong {
    display: block;
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 6px;
}

.highlight span {
    font-size: 13px;
    color: var(--text-soft);
}

.about-skills {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.about-skills h3 {
    font-size: 24px;
    margin-bottom: 30px;
}

.about-skills ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-skills li span {
    display: block;
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.skill-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    overflow: hidden;
}

.skill-bar div {
    height: 100%;
    border-radius: 100px;
    background: var(--gradient);
}

/* =========================================
   FUNCIONALIDADES (INTERATIVIDADE)
========================================= */

.features {
    padding-top: 120px;
    padding-bottom: 120px;
}

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

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 40px;
    backdrop-filter: blur(10px);
    transition: 0.35s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.feature-card h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 25px;
}

.counter {
    font-size: 72px;
    font-weight: bold;
    margin-bottom: 25px;
    color: var(--primary);
}

.feature-card button {
    width: 100%;
    border: none;
    padding: 18px 24px;
    border-radius: var(--radius);
    background: var(--gradient);
    color: var(--text);
    font-size: 16px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: 0.35s ease;
    margin-top: 10px;
}

.feature-card button:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-btn);
}

/* =========================================
   PORTFÓLIO
========================================= */

.portfolio-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.portfolio-section::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.portfolio-header {
    text-align: center;
    margin-bottom: 56px;
    padding: 0 20px;
}

.portfolio-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--primary);
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.25);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
}

.portfolio-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.15;
}

.portfolio-header p {
    font-size: 1rem;
    color: var(--text-soft);
    max-width: 480px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

/* Filtros */

.portfolio-filters {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-soft);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: 'Poppins', sans-serif;
}

.filter-btn:hover {
    border-color: rgba(56, 189, 248, 0.5);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--text);
}

/* Grid */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Card */

.portfolio-card {
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    cursor: pointer;
}

.portfolio-card:hover {
    transform: translateY(-6px);
    border-color: rgba(56, 189, 248, 0.35);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(56, 189, 248, 0.15);
}

.portfolio-card.featured {
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.08);
}

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

/* Thumb (janela de navegador simulada) */

.card-thumb {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.thumb-browser {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.browser-bar {
    background: #1e1e1e;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.browser-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.browser-dot:nth-child(1) { background: #ff5f57; }
.browser-dot:nth-child(2) { background: #ffbd2e; }
.browser-dot:nth-child(3) { background: #28ca41; }

.browser-url {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 10px;
    color: #666;
    font-family: monospace;
}

.thumb-preview {
    flex: 1;
    padding: 12px;
    overflow: hidden;
    position: relative;
}

/* Fundos dos previews (um por projeto) */

.preview-bg-crm {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.preview-bg-dashboard {
    background: #f8fafc;
}

.preview-bg-landing {
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
}

.preview-bg-orkut {
    background: linear-gradient(180deg, #d9e6f7 0%, #eef4fb 100%);
}

/* Overlay de hover */

.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 20, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
    backdrop-filter: blur(4px);
}

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

.view-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-dark);
    color: var(--text);
    border: none;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transform: translateY(8px);
    transition: transform 0.25s ease, background 0.2s;
}

.view-btn svg {
    width: 16px;
    height: 16px;
}

.portfolio-card:hover .view-btn {
    transform: translateY(0);
}

.view-btn:hover {
    background: #1d4ed8;
}

/* Selo de destaque */

.featured-badge {
    position: absolute;
    top: 44px;
    right: 12px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: var(--text);
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    z-index: 2;
}

/* Informações do card */

.card-info {
    padding: 18px 20px 20px;
}

.card-tags {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.tag {
    font-size: 10px;
    font-weight: 600;
    color: #7dd3fc;
    background: rgba(56, 189, 248, 0.12);
    padding: 3px 10px;
    border-radius: 50px;
    letter-spacing: 0.5px;
}

.card-info h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #f1f1f1;
    margin-bottom: 6px;
}

.card-info p {
    font-size: 13px;
    color: var(--text-soft);
    line-height: 1.6;
    margin-bottom: 14px;
}

.card-actions {
    display: flex;
    gap: 10px;
}

.action-link {
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.action-link.demo {
    background: var(--primary-dark);
    color: var(--text);
}

.action-link.demo:hover {
    background: #1d4ed8;
}

.action-link.code {
    background: rgba(255, 255, 255, 0.06);
    color: #aaa;
    border: 1px solid var(--border);
}

.action-link.code:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

/* =========================================
   MINI PREVIEWS DOS PROJETOS
========================================= */

/* Preview: Landing (Bússola) */

.preview-hero {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 4px;
}

.preview-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.preview-logo-bar {
    width: 50px;
    height: 6px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 3px;
}

.preview-nav-links {
    display: flex;
    gap: 6px;
}

.preview-nav-links span {
    width: 20px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.preview-headline {
    width: 75%;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    margin-bottom: 4px;
}

.preview-subline {
    width: 55%;
    height: 6px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 3px;
    margin-bottom: 10px;
}

.preview-btns {
    display: flex;
    gap: 8px;
}

.preview-btn {
    height: 18px;
    border-radius: 9px;
}

.preview-btn.primary {
    width: 60px;
    background: var(--primary-dark);
}

.preview-btn.secondary {
    width: 50px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Preview: Dashboard Financeiro */

.preview-dashboard {
    display: flex;
    height: 100%;
    gap: 8px;
}

.preview-sidebar {
    width: 28px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-top: 4px;
}

.sidebar-item {
    width: 100%;
    height: 14px;
    background: #e2e8f0;
    border-radius: 4px;
}

.sidebar-item.active {
    background: #3b82f6;
}

.preview-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.preview-cards-row {
    display: flex;
    gap: 6px;
}

.mini-card {
    flex: 1;
    height: 24px;
    border-radius: 6px;
}

.mini-card.blue { background: #e0f2fe; }
.mini-card.green { background: #dcfce7; }
.mini-card.yellow { background: #fef3c7; }

.preview-chart-box {
    flex: 1;
    background: #f1f5f9;
    border-radius: 6px;
    display: flex;
    align-items: flex-end;
    padding: 8px 8px 4px;
}

.chart-bars {
    display: flex;
    gap: 5px;
    align-items: flex-end;
    width: 100%;
    height: 100%;
}

.chart-bar {
    flex: 1;
    border-radius: 3px 3px 0 0;
    background: #60a5fa;
}

/* Preview: CRM */

.preview-crm {
    display: flex;
    height: 100%;
    gap: 8px;
}

.crm-sidebar {
    width: 28px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-top: 4px;
}

.crm-sidebar .sidebar-item {
    background: rgba(255, 255, 255, 0.12);
}

.crm-sidebar .sidebar-item.active {
    background: var(--primary);
}

.crm-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.crm-toolbar {
    height: 16px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 5px;
    margin-bottom: 2px;
}

.crm-row {
    height: 14px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}

/* Preview: Orkut */

.preview-orkut {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.orkut-header {
    height: 14px;
    background: #ed64a6;
    border-radius: 4px;
}

.orkut-body {
    flex: 1;
    display: flex;
    gap: 6px;
}

.orkut-profile {
    width: 34%;
    background: #ffffff;
    border: 1px solid #c3d4ea;
    border-radius: 6px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.orkut-avatar {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: #b6c9e2;
}

.orkut-name {
    width: 80%;
    height: 5px;
    background: #90a8c6;
    border-radius: 2px;
}

.orkut-feed {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.orkut-post {
    flex: 1;
    background: #ffffff;
    border: 1px solid #c3d4ea;
    border-radius: 6px;
}

.orkut-post.short {
    flex: 0.6;
}

/* =========================================
   CARROSSEL DE PRINTS DOS PROJETOS
========================================= */

.carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    background: #0b1120;
}

/* Nos cards, o carrossel cobre o preview ilustrativo */
.carousel-thumb {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.45s ease;
}

.carousel-slide {
    flex: 0 0 100%;
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* No modal, mostra o print inteiro */
.carousel-modal .carousel-slide img {
    object-fit: contain;
    background: #0b1120;
}

/* Setas (modal) */

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(2, 6, 23, 0.65);
    color: var(--text);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 4px;
}

.carousel-arrow:hover {
    background: var(--primary-dark);
}

.carousel-arrow.prev { left: 12px; }
.carousel-arrow.next { right: 12px; }

/* Bolinhas de navegação */

.carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 3;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

/* =========================================
   HALL DA FAMA (CERTIFICADOS)
========================================= */

.hall-section {
    padding: 120px 8%;
    background:
        linear-gradient(rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.95)),
        url('https://images.unsplash.com/photo-1516321318423-f06f85e504b3?q=80&w=1600&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hall-header {
    text-align: center;
    margin-bottom: 70px;
}

.hall-tag {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(234, 179, 8, 0.12);
    border: 1px solid rgba(234, 179, 8, 0.3);
    color: #facc15;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.hall-header h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hall-header p {
    max-width: 700px;
    margin: auto;
    line-height: 1.8;
    color: var(--text-muted);
}

.hall-wall {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 35px;
    align-items: center;
}

/* Moldura dos certificados */

.frame {
    position: relative;
    background: linear-gradient(145deg, #5b3a1a, #8b5a2b);
    padding: 14px;
    border-radius: 12px;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.5),
        inset 0 0 8px rgba(255, 255, 255, 0.15);
    transition: 0.4s ease;
    transform: rotate(-1deg);
}

.frame:nth-child(even) {
    transform: rotate(1deg);
}

.frame:hover {
    transform: scale(1.15) rotate(0deg);
    z-index: 5;
}

.frame-inner {
    background: #111827;
    padding: 10px;
    border: 4px solid var(--border);
    border-radius: 4px;
}

.frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 2px;
}

.frame.large {
    grid-row: span 2;
}

/* =========================================
   CONTATO (RODAPÉ)
========================================= */

.contact-section {
    padding: 100px 0 40px;
    border-top: 1px solid var(--border);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto 70px;
}

.contact-card {
    text-decoration: none;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-8px);
    border-color: rgba(56, 189, 248, 0.4);
    background: var(--surface-hover);
}

.contact-icon {
    font-size: 32px;
    margin-bottom: 6px;
}

.contact-card strong {
    color: var(--text);
    font-size: 17px;
}

.contact-card span:last-child {
    color: var(--text-soft);
    font-size: 13px;
    word-break: break-all;
}

.footer-bottom {
    text-align: center;
    color: var(--text-soft);
    font-size: 14px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

/* =========================================
   BOTÃO VOLTAR AO TOPO
========================================= */

#topButton {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: var(--gradient);
    color: var(--text);
    font-size: 22px;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 90;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

#topButton:hover {
    transform: translateY(-4px);
}

/* =========================================
   MODAL DE PROJETO
========================================= */

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(8px);
    animation: fadeIn 0.2s ease;
}

.modal-overlay.open {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-box {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    max-width: 640px;
    width: 100%;
    overflow: hidden;
    position: relative;
    animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUp {
    from { transform: translateY(40px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
}

.modal-close svg {
    width: 16px;
    height: 16px;
    stroke: #aaa;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
}

.modal-preview-area {
    width: 100%;
    height: 280px;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.modal-info {
    padding: 24px 28px 28px;
}

.modal-tags {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.modal-info h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #f1f1f1;
    margin-bottom: 10px;
}

.modal-info p {
    font-size: 14px;
    color: var(--text-soft);
    line-height: 1.7;
    margin-bottom: 20px;
}

.modal-links {
    display: flex;
    gap: 12px;
}

.modal-links .action-link {
    padding: 10px 24px;
    font-size: 13px;
    border-radius: 10px;
}

/* =========================================
   MODO CLARO
========================================= */

.light-mode {
    background: #f1f5f9;
    color: #0f172a;
}

.light-mode header {
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.light-mode p,
.light-mode .menu ul a,
.light-mode .about-text p {
    color: #334155;
}

.light-mode h1,
.light-mode h2,
.light-mode h3,
.light-mode .logo,
.light-mode .contact-card strong {
    color: #0f172a;
}

.light-mode .feature-card,
.light-mode .highlight,
.light-mode .about-skills,
.light-mode .contact-card,
.light-mode .tech-btn {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.light-mode .gallery figure {
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.light-mode .secondary-btn {
    color: #0f172a;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.light-mode .skill-bar {
    background: rgba(0, 0, 0, 0.08);
}

.light-mode .portfolio-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.light-mode .card-info h3 {
    color: #0f172a;
}

.light-mode .contact-section {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.light-mode .footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    color: #64748b;
}

/* =========================================
   RESPONSIVO
========================================= */

@media (max-width: 1200px) {

    .hero {
        flex-direction: column;
    }

    .content,
    .gallery {
        width: 100%;
    }

    .content h1 {
        font-size: 56px;
    }

    .big {
        min-height: 500px;
    }

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

@media (max-width: 900px) {

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

    .menu ul {
        gap: 25px;
    }

    .hall-header h2 {
        font-size: 2.3rem;
    }
}

@media (max-width: 768px) {

    .menu {
        flex-direction: column;
        justify-content: center;
        gap: 20px;
        height: auto;
        padding: 20px 0;
    }

    .menu ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        padding-top: 40px;
    }

    .content h1 {
        font-size: 42px;
    }

    .content p {
        font-size: 18px;
    }

    .buttons {
        flex-direction: column;
    }

    .techs {
        flex-wrap: wrap;
        gap: 20px;
    }

    .gallery {
        flex-direction: column;
    }

    .big {
        min-height: 400px;
    }

    .about-highlights {
        flex-direction: column;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        padding: 0 16px;
    }

    .portfolio-section {
        padding: 60px 0 80px;
    }

    .modal-box {
        margin: 10px;
    }

    .modal-preview-area {
        height: 200px;
    }
}

@media (max-width: 480px) {

    .portfolio-filters {
        gap: 8px;
    }

    .filter-btn {
        padding: 6px 14px;
        font-size: 12px;
    }

    #topButton {
        bottom: 20px;
        right: 20px;
    }
}
