@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Syne:wght@400;600;800&display=swap');

:root {
    --bg: #0f0f0f;
    --surface: #161616;
    --border: #1a1a1a;
    --accent: #00ff88;
    --text: #e8e8e8;
    --muted: #606060;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Syne', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}
/* Suaviza a rolagem para links internos */

html {

    scroll-behavior: smooth;
}

/* ─── NAV ─── */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: rgba(10,10,10,0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
}

nav .logo {
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 2px;
}

/* Icon */

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

nav ul { list-style: none; display: flex; gap: 2rem; }
nav ul a {
    color: var(--muted);
    text-decoration: none;
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 1px;
    transition: color 0.2s;
}
nav ul a:hover,
nav ul a.active { color: var(--accent); }

/* ─── BOTÕES ─── */
.btn {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    letter-spacing: 1px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    border: none;
}

.btn-primary { background: var(--accent); color: #000; font-weight: 700; }
.btn-primary:hover { background: #00cc6e; }

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

/* ─── SEÇÕES ─── */
section { max-width: 1200px; margin: 0 auto; padding: 5rem 3rem; }

.section-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.section-tag {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: var(--accent);
    letter-spacing: 3px;
    white-space: nowrap;
}

.section-header h2 { font-size: 2rem; font-weight: 800; white-space: nowrap; }
.section-line { flex: 1; height: 1px; background: var(--border); }

/* ─── HERO ─── */
.hero {
    min-height: calc(100vh - 73px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 3rem;
    gap: 4rem;
}

.hero-left { display: flex; flex-direction: column; gap: 1.5rem; }

.hero-tag {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 0.3rem 0.8rem;
    display: inline-block;
    letter-spacing: 2px;
    width: fit-content;
}

.hero h1 {
    font-size: clamp(2.8rem, 5vw, 5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
}

.hero h1 .accent { color: var(--accent); }

.hero-sub {
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    color: var(--muted);
    border-left: 2px solid var(--accent);
    padding-left: 1rem;
    line-height: 1.8;
}

.hero-desc {
    color: #999;
    font-size: 0.95rem;
    line-height: 1.8;
    max-width: 480px;
}

.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

.social-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.social-links a {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: 1px;
    border: 1px solid var(--border);
    padding: 0.4rem 0.8rem;
    transition: all 0.2s;
}
.social-links a:hover { color: var(--accent); border-color: var(--accent); }

/* Terminal */
.hero-right {
    background: var(--surface);
    border: 1px solid var(--border);
}

.terminal-bar {
    background: #1a1a1a;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.terminal-dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.terminal-title {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: var(--muted);
    margin-left: 0.5rem;
}

.terminal-body {
    padding: 1.5rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.78rem;
    line-height: 2;
}

.terminal-body .line { display: flex; gap: 0.5rem; }
.terminal-body .prompt { color: var(--accent); }
.terminal-body .cmd { color: #aaa; }
.terminal-body .output { color: var(--muted); padding-left: 1rem; }
.terminal-body .hi { color: var(--accent); }
.terminal-body .cursor {
    display: inline-block;
    width: 8px; height: 14px;
    background: var(--accent);
    animation: blink 1s infinite;
    vertical-align: middle;
}

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

/* ─── SKILLS ─── */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

.skill-card {
    background: var(--surface);
    padding: 2rem;
    transition: background 0.2s;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 100%;
    background: var(--accent);
    transform: scaleY(0);
    transition: transform 0.3s;
    transform-origin: bottom;
}

.skill-card:hover::before { transform: scaleY(1); }
.skill-card:hover { background: #161616; }

.skill-icon { font-size: 1.8rem; margin-bottom: 0.75rem; }
.skill-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.skill-card p { color: var(--muted); font-size: 0.85rem; line-height: 1.6; }

/* ─── PROJETOS CTA ─── */

#videoModal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
}

#videoModal.active {
  display: flex;
}

.modal-content {
  width: 90vw;
  max-width: 1100px;
  background: #0d1117;
  border: 1px solid #21262d;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.7);
  animation: modalSlideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.modal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  background: #161b22;
  border-bottom: 1px solid #21262d;
}

.modal-dots { display: flex; gap: 6px; }
.modal-dot  { width: 12px; height: 12px; border-radius: 50%; }
.modal-dot.red    { background: #ff5f57; }
.modal-dot.yellow { background: #febc2e; }
.modal-dot.green  { background: #28c840; }

.modal-title {
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  color: #8b949e;
}

.modal-close {
  background: none;
  border: none;
  color: #8b949e;
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.2s;
}
.modal-close:hover { color: #ff5f57; }

.modal-video-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.modal-content {
  width: 90vw;
  max-width: 1100px;
  max-height: 90vh;        /* ← isso é o mais importante */
  overflow: hidden;
}

.modal-video-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: calc(90vh - 45px); /* desconta a topbar */
  background: #000;
  overflow: hidden;
}
.projects-cta {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.projects-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg, transparent, transparent 30px,
        rgba(0,255,136,0.02) 30px, rgba(0,255,136,0.02) 60px
    );
    pointer-events: none;
}

.projects-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
    position: relative;
}

.preview-card {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 1.25rem;
    text-align: left;
    transition: border-color 0.2s;
}
.preview-card:hover { border-color: var(--accent); }
.preview-card .num {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}
.preview-card h4 { font-size: 0.9rem; margin-bottom: 0.4rem; }
.preview-card p { color: var(--muted); font-size: 0.75rem; line-height: 1.5; }

.projects-cta h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 0.75rem; position: relative; }
.projects-cta h2 span { color: var(--accent); }
.projects-cta > p { color: var(--muted); font-size: 0.95rem; margin-bottom: 2rem; position: relative; }
.projects-cta .btn { position: relative; }

/* ─── PROJETOS GRID (projetos.html) ─── */
.projects-grid {
    padding: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 2px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s, transform 0.3s;
}

.project-card:hover { border-color: var(--accent); transform: translateY(-4px); }

.card-image {
    height: 200px;
    background: linear-gradient(135deg, #111 0%, #1a1a2e 50%, #111 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg, transparent, transparent 10px,
        rgba(0,255,136,0.03) 10px, rgba(0,255,136,0.03) 20px
    );
}

.card-image .img-icon { font-size: 3.5rem; z-index: 1; }
.card-image .img-label {
    position: absolute;
    bottom: 0.75rem; right: 0.75rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    color: var(--accent);
    letter-spacing: 1px;
    opacity: 0.7;
}

.card-num {
    position: absolute;
    top: 1rem; left: 1rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: var(--accent);
    background: rgba(0,255,136,0.1);
    padding: 0.2rem 0.5rem;
    border: 1px solid rgba(0,255,136,0.2);
}

.card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.75rem;
}

.card-body h2 { font-size: 1.2rem; font-weight: 800; line-height: 1.2; }
.card-body p { color: var(--muted); font-size: 0.875rem; line-height: 1.6; flex: 1; }

.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; }
.tag {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    padding: 0.25rem 0.6rem;
    border: 1px solid var(--border);
    color: var(--muted);
}

.card-buttons { display: flex; gap: 0.75rem; margin-top: 1rem; }

/* ─── TIMELINE (sobre.html) ─── */
.timeline { display: flex; flex-direction: column; }

.timeline-item {
    display: grid;
    grid-template-columns: 180px 1px 1fr;
    gap: 0 2rem;
}

.timeline-date {
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    color: var(--muted);
    text-align: right;
    padding: 2rem 0;
    line-height: 1.6;
}

.timeline-line { display: flex; flex-direction: column; align-items: center; }

.timeline-dot {
    width: 10px; height: 10px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    background: var(--bg);
    margin-top: 2.2rem;
    flex-shrink: 0;
}

.timeline-connector { width: 1px; flex: 1; background: var(--border); }
.timeline-item:last-child .timeline-connector { display: none; }

.timeline-content { padding: 2rem 0; border-bottom: 1px solid var(--border); }
.timeline-item:last-child .timeline-content { border-bottom: none; }

.timeline-content h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.25rem; }
.timeline-content .company {
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    color: var(--accent);
    margin-bottom: 0.75rem;
}
.timeline-content p { color: var(--muted); font-size: 0.875rem; line-height: 1.7; }

/* ─── FORMAÇÃO (sobre.html) ─── */
.edu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

.edu-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 2rem;
    transition: border-color 0.3s;
}
.edu-card:hover { border-color: var(--accent); }

.edu-year {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: var(--accent);
    margin-bottom: 0.75rem;
}
.edu-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.25rem; }
.edu-card .institution { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.75rem; }
.edu-card p { color: #777; font-size: 0.85rem; line-height: 1.6; }

/* ─── CONTATO ─── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.contact-left h2 { font-size: 2.2rem; font-weight: 800; line-height: 1.1; margin-bottom: 1rem; }
.contact-left h2 span { color: var(--accent); }
.contact-left p { color: var(--muted); line-height: 1.8; }

.contact-links { display: flex; flex-direction: column; gap: 1rem; }

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.2s, transform 0.2s;
}
.contact-link:hover { border-color: var(--accent); transform: translateX(4px); }
.contact-link-icon { font-size: 1.2rem; width: 36px; text-align: center; }
.contact-link-info { flex: 1; }
.contact-link-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.62rem;
    color: var(--muted);
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
}
.contact-link-value { font-size: 0.88rem; font-weight: 600; }
.contact-link-arrow { color: var(--accent); }

/* ─── FOOTER ─── */
footer {
    border-top: 1px solid var(--border);
    padding: 2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer p {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: var(--muted);
}
footer a { color: var(--accent); text-decoration: none; }

/* ─── HERO SOBRE ─── */
.page-hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 3rem 2rem;
}

.page-hero .hero-tag {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 0.3rem 0.8rem;
    display: inline-block;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.page-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 1rem;
}

.page-hero h1 span { color: var(--accent); }

.page-hero p {
    color: var(--muted);
    font-size: 1rem;
    max-width: 550px;
    line-height: 1.8;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
    nav { padding: 1rem 1.5rem; }
    nav ul { gap: 1rem; }

    .hero { grid-template-columns: 1fr; padding: 3rem 1.5rem; gap: 2rem; min-height: auto; }
    .hero-right { display: none; }

    section { padding: 3rem 1.5rem; }
    .page-hero { padding: 3rem 1.5rem 1rem; }

    .timeline-item { grid-template-columns: 90px 1px 1fr; gap: 0 1rem; }

    .projects-preview { grid-template-columns: 1fr; }
    .projects-cta { padding: 2rem 1.5rem; }
    .projects-grid { padding: 1.5rem; grid-template-columns: 1fr; }

    .edu-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 2rem; }

    footer { flex-direction: column; gap: 0.75rem; text-align: center; padding: 1.5rem; }
}

@media (max-width: 600px) {
    nav ul { display: none; }
    .timeline-item { grid-template-columns: 1fr; }
    .timeline-date { text-align: left; padding-bottom: 0; }
    .timeline-line { display: none; }
}

/* ─── MODAL DE VÍDEO (projetos.html) ─── */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
}

.close-btn {
    position: absolute;
    top: -40px; right: 0;
    color: white;
    font-size: 32px;
    cursor: pointer;
}

