/*
   ___            ___            ___            ___
  /\__\          /\__\          /\__\          /\__\
 /:/ _/_        /:/ _/_        /:/ _/_        /:/ _/_
/:/ /\__\      /:/ /\__\      /:/ /\__\      /:/ /\__\
/:/ /:/ _/_    /:/ /:/ _/_    /:/ /:/ _/_    /:/ /:/ _/_
/:/_/:/ /\__\  /:/_/:/ /\__\  /:/_/:/ /\__\  /:/_/:/ /\__\
\:\:\/:/ /:/  \:\:\/:/ /:/  \:\:\/:/ /:/  \:\:\/:/ /:/
 \:\::/_/:/    \:\::/_/:/    \:\::/_/:/    \:\::/_/:/
  \:\:\/:/      \:\:\/:/      \:\:\/:/      \:\:\/:/
   \:\::/        \:\::/        \:\::/        \:\::/
    \:\/          \:\/          \:\/          \:\/

    G              R              P              S

    G.R.P.S — Gustavo Ribeiro Portfolio System
    github.com/Gustavo-Codes-lab
*/
:root {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --primary-color: #3b82f6;
    --primary-hover: #60a5fa;
    --accent-color: #f8fafc;
    --border-color: #334155;
    --header-bg: rgba(15, 23, 42, 0.9);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --error-color: #ef4444;
    --success-color: #10b981;
}

/* Modo Claro */
body.light-mode {
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --accent-color: #0f172a;
    --border-color: #e2e8f0;
    --header-bg: rgba(255, 255, 255, 0.9);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
}

ul { list-style: none; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; display: block; }

/* --- Header --- */
.header {
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    position: fixed; width: 100%; top: 0; z-index: 1000;
    border-bottom: 1px solid var(--border-color); padding: 1rem 0;
}
.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
    display: flex; justify-content: space-between; align-items: center;
}
.logo { font-size: 1.5rem; font-weight: 800; color: var(--accent-color); }
.highlight { color: var(--primary-color); }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a:hover { color: var(--primary-color); }
.btn-contact { background: var(--primary-color); color: white !important; padding: 0.5rem 1.2rem; border-radius: 6px; }
.theme-btn { background: transparent; border: 1px solid var(--border-color); color: var(--text-primary); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.3s; }
.theme-btn:hover { background: var(--border-color); }

/* --- Hero & Badge Piscante --- */
.hero {
    min-height: 90vh; padding-top: 100px;
    display: grid; grid-template-columns: 1.2fr 1fr; align-items: center;
    max-width: 1200px; margin: 0 auto; padding-left: 20px; padding-right: 20px;
}
.hero h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 1.5rem; color: var(--accent-color); }
.hero p { font-size: 1.15rem; color: var(--text-secondary); margin-bottom: 2rem; max-width: 500px; }

/* Badge nova piscando inteira */
.status-badge {
    display: inline-flex; align-items: center;
    background: rgba(16, 185, 129, 0.2); /* Fundo verde um pouco mais forte */
    color: #10b981;
    padding: 8px 16px; border-radius: 30px;
    font-size: 0.9rem; font-weight: 700;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Animação de pulso no balão inteiro */
.pulse-badge {
    animation: badgePulse 2s infinite ease-in-out;
}

@keyframes badgePulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-btns { display: flex; gap: 1rem; }
.btn-primary { background: var(--primary-color); color: white; padding: 12px 28px; border-radius: 8px; font-weight: 600; border: none; cursor: pointer; transition: 0.3s; }
.btn-primary:hover { transform: translateY(-2px); background: var(--primary-hover); }
.btn-secondary { border: 1px solid var(--border-color); color: var(--text-primary); padding: 12px 28px; border-radius: 8px; font-weight: 600; display: inline-flex; gap: 8px; align-items: center; transition: 0.3s; }
.btn-secondary:hover { border-color: var(--primary-color); color: var(--primary-color); }
.hero-image-container { display: flex; justify-content: center; }
.profile-pic { width: 280px; height: 280px; object-fit: cover; border-radius: 50%; border: 4px solid var(--card-bg); box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15); }
.tech-stack-animated { display: flex; gap: 20px; margin-bottom: 2rem; font-size: 2rem; color: var(--text-secondary); }
.floating-icon { animation: float 3s ease-in-out infinite; animation-delay: calc(var(--i) * 0.5s); }
.floating-icon:hover { color: var(--primary-color); transform: scale(1.2); }

/* --- Sections & Cards --- */
.section-padding { padding: 5rem 20px; }
.container { max-width: 1200px; margin: 0 auto; }
.section-header h2 { font-size: 2.2rem; color: var(--accent-color); margin-bottom: 3rem; position: relative; display: inline-block; }
.section-header h2::after { content: ''; display: block; width: 60px; height: 4px; background: var(--primary-color); margin-top: 8px; border-radius: 2px; }
.about-card, .skill-card, .project-card, .cert-card, .contact-form-col { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 16px; box-shadow: var(--shadow); }
.about-card, .skill-card { padding: 2.5rem; }
.about-card p { font-size: 1.1rem; color: var(--text-secondary); }
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.icon-box { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 1rem; }
.skill-card ul li { margin-bottom: 0.5rem; color: var(--text-secondary); display: flex; align-items: center; gap: 10px; }
.skill-card ul li::before { content: ''; width: 6px; height: 6px; background: var(--primary-color); border-radius: 50%; }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem; }
.project-card { overflow: hidden; transition: 0.3s; }
.project-card:hover { transform: translateY(-5px); }
.card-image { height: 160px; display: flex; justify-content: center; align-items: center; font-size: 4rem; color: white; }
.chess-bg { background: linear-gradient(135deg, #1e293b, #334155); }
.strategy-bg { background: linear-gradient(135deg, #ea580c, #c2410c); }
.project-info { padding: 2rem; }
.tech-tag { display: inline-block; background: rgba(37, 99, 235, 0.1); color: var(--primary-color); padding: 4px 12px; border-radius: 50px; font-size: 0.8rem; font-weight: 700; margin-bottom: 1rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; margin-top: 1.5rem; color: var(--primary-color); font-weight: 600; }

/* --- SWIPER / CERTIFICADOS (Com ajuste para texto longo) --- */
.mySwiper { padding: 2rem 0 4rem 0; }
.cert-card {
    height: auto; /* Altura automática para caber o texto */
    min-height: 100%; /* Garante que fiquem alinhados */
    display: flex; flex-direction: column; overflow: hidden; transition: 0.3s;
}
.cert-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.cert-card img { width: 100%; height: 200px; object-fit: cover; border-bottom: 1px solid var(--border-color); }
.cert-info { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.cert-info h3 { font-size: 1.1rem; color: var(--primary-color); margin-bottom: 0.8rem; }
/* Ajuste para o texto longo não quebrar o layout */
.cert-info p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.5; text-align: justify; }

.swiper-button-next, .swiper-button-prev { color: var(--primary-color); width: 40px; height: 40px; background: rgba(255,255,255,0.8); border-radius: 50%; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.swiper-pagination-bullet-active { background: var(--primary-color); }

/* --- Contact Form --- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; }
.contact-item { display: flex; align-items: center; gap: 15px; margin-bottom: 1.5rem; }
.contact-item i { font-size: 1.5rem; color: var(--primary-color); width: 24px; text-align: center; }
.contact-form-col { padding: 2.5rem; }
.input-group { margin-bottom: 1.2rem; }
.input-group label { display: block; margin-bottom: 0.5rem; font-size: 0.9rem; font-weight: 500; }
.input-group input, .input-group textarea { width: 100%; padding: 12px; border: 2px solid var(--border-color); border-radius: 8px; background: var(--bg-color); color: var(--text-primary); transition: 0.3s; }
.input-group input:focus, .input-group textarea:focus { border-color: var(--primary-color); outline: none; }
.full-width { width: 100%; }
.feedback-msg { margin-top: 1rem; text-align: center; font-weight: 600; }

/* Footer & Extras */
footer { text-align: center; padding: 2rem; border-top: 1px solid var(--border-color); color: var(--text-secondary); }
#back-to-top { position: fixed; bottom: 20px; right: 20px; background: var(--primary-color); color: white; border: none; width: 45px; height: 45px; border-radius: 50%; cursor: pointer; opacity: 0; visibility: hidden; transition: 0.3s; }
#back-to-top.show { opacity: 1; visibility: visible; }

/* Mobile & Animations */
.hamburger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; z-index: 1002; }
.hamburger .bar { width: 25px; height: 3px; background-color: var(--text-primary); transition: 0.3s; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; text-align: center; padding-top: 120px; } .contact-layout { grid-template-columns: 1fr; } }
@media (max-width: 768px) { .hamburger { display: flex; } .nav-links { position: fixed; background: var(--card-bg); height: 100vh; width: 70%; top: 0; right: -100%; flex-direction: column; justify-content: center; transition: 0.4s; z-index: 1001; box-shadow: -5px 0 10px rgba(0,0,0,0.1); } .nav-links.active { right: 0; } .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); } .hamburger.active .bar:nth-child(2) { opacity: 0; } .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); } }
@keyframes float { 0% { transform: translateY(0); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0); } }
.fade-in { opacity: 0; transform: translateY(20px); transition: 0.6s ease-out; } .fade-in.visible { opacity: 1; transform: translateY(0); }