/* --- Reset e fontes --- */
@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Montserrat:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', Arial, sans-serif;
    background: linear-gradient(120deg, #181818 60%, #3498db 100%);
    color: #f5f5f5;
    min-height: 100vh;
    transition: background 0.5s;
}

/* --- Navbar --- */
.main-nav {
    position: fixed;
    top: 0; left: 0; width: 100%;
    background: rgba(34,34,34,0.97);
    box-shadow: 0 2px 12px rgba(52,152,219,0.10);
    display: flex; justify-content: center; gap: 32px;
    padding: 14px 0; z-index: 100;
    animation: fadeDown 1s;
}
@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-30px);}
    to { opacity: 1; transform: translateY(0);}
}
.main-nav a {
    color: #f5f5f5;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.08rem;
    transition: color 0.2s, background 0.2s, transform 0.2s;
    padding: 8px 18px;
    border-radius: 6px;
    display: flex; align-items: center; gap: 8px;
    letter-spacing: 1px;
}
.main-nav a:hover {
    color: #fff;
    background: #3498db;
    transform: scale(1.08);
    box-shadow: 0 2px 12px #00eaff44;
}

/* --- Header --- */
header {
    margin-top: 80px;
    background:rgba(34,34,34,0.97); text-align:center; padding:48px 20px 32px 20px; border-radius:0 0 32px 32px;
    box-shadow:0 8px 32px rgba(0,0,0,0.25); margin-bottom:32px; position:relative;
    animation: fadeIn 1.2s;
}
header img {
    width:130px; height:130px; border-radius:50%; margin-top:18px; box-shadow:0 2px 12px rgba(52,152,219,0.18); border:3px solid #3498db;
    transition:transform 0.3s;
    object-fit: cover;
}
header img:hover {transform:scale(1.07) rotate(-2deg);}
.wave {
    position:absolute; top:18px; left:50%; transform:translateX(-50%); font-size:2.2rem; animation:waveAnim 1.5s infinite alternate;
}
@keyframes waveAnim {from{transform:translateX(-50%) rotate(-10deg);} to{transform:translateX(-50%) rotate(10deg);}}
header h1 {
    font-family: 'Share Tech Mono', monospace;
    font-size: 2.5rem;
    color: #00eaff;
    letter-spacing: 2px;
    margin-bottom: 8px;
}
header p {
    font-size: 1.2rem;
    color: #b0c4de;
    margin-bottom: 18px;
}
.social {
    margin-top: 18px;
    display: flex;
    justify-content: center;
    gap: 18px;
}
.social a {
    color: #3498db;
    background: #222;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    box-shadow: 0 2px 8px rgba(52,152,219,0.10);
    transition: background 0.2s, color 0.2s, transform 0.2s;
}
.social a:hover {
    background: #00eaff;
    color: #181818;
    transform: scale(1.12);
}

/* --- Cards e Seções --- */
section {
    max-width:900px; margin:0 auto 32px auto; padding:0 20px;
    animation: fadeIn 1.2s;
}
h2 {
    border-bottom:2px solid #3498db; padding-bottom:10px; color:#00eaff; margin-top:0;
    font-size:1.35rem; letter-spacing:1px;
    font-family: 'Share Tech Mono', monospace;
}
.card-list {
    display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:24px; margin-top:18px;
}
.card {
    background:#23272b; border-radius:14px; box-shadow:0 2px 12px rgba(52,152,219,0.10);
    padding:24px 18px; display:flex; flex-direction:column; align-items:center; transition:transform 0.2s, box-shadow 0.2s;
    border:2px solid #3498db33;
    position: relative;
    overflow: hidden;
    animation: fadeUp 1.2s;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px);}
    to { opacity: 1; transform: translateY(0);}
}
.card i {
    font-size:2.2rem; color:#3498db; margin-bottom:12px;
    transition: color 0.2s;
}
.card:hover i {
    color: #00eaff;
}
.card-title {
    font-size:1.15rem; font-weight:600; margin-bottom:8px; color:#f5f5f5; text-align:center;
}
.card-desc {
    font-size:1rem; color:#b0c4de; margin-bottom:10px; text-align:center;
}
.card-link {
    color:#3498db; background:#181818; padding:6px 18px; border-radius:4px; text-decoration:none; font-weight:500;
    transition:background 0.2s, color 0.2s; margin-top:8px;
}
.card-link:hover {background:#00eaff; color:#181818;}

/* --- Projetos --- */
.project-card {
    background: #23272b;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(52,152,219,0.18);
    padding: 28px 22px 22px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid #3498db33;
    position: relative;
    overflow: hidden;
}
.project-card:hover {
    transform: translateY(-8px) scale(1.04);
    box-shadow: 0 12px 36px rgba(52,152,219,0.22);
    border-color: #00eaff;
}
.project-card i {
    font-size: 2.3rem;
    color: #00eaff;
    margin-bottom: 14px;
    background: #181818;
    padding: 12px;
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(52,152,219,0.10);
}
.project-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #f5f5f5;
    text-align: center;
    letter-spacing: 1px;
}
.project-desc {
    font-size: 1.08rem;
    color: #b0c4de;
    margin-bottom: 14px;
    text-align: center;
}
.project-card img {
    width: 100%;
    max-width: 340px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(52,152,219,0.18);
    margin: 14px 0;
    object-fit: cover;
    background: #181818;
    transition: transform 0.3s;
}
.project-card img:hover {
    transform: scale(1.04) rotate(-2deg);
}
.project-link {
    color: #fff;
    background: #3498db;
    padding: 8px 22px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.08rem;
    box-shadow: 0 2px 8px rgba(52,152,219,0.15);
    transition: background 0.2s, color 0.2s;
    margin-top: 8px;
    display: inline-block;
}
.project-link:hover {
    background: #00eaff;
    color: #181818;
}

/* --- Certificados --- */
.cert-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 18px;
}
.cert-card {
    background: #23272b;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(52,152,219,0.10);
    padding: 20px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid #3498db33;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.cert-card:hover {
    box-shadow: 0 6px 24px rgba(52,152,219,0.18);
    border-color: #00eaff;
}
.cert-card i {
    font-size: 2rem;
    color: #00eaff;
    margin-bottom: 10px;
}
.cert-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #f5f5f5;
    text-align: center;
}
.cert-org {
    font-size: 1rem;
    color: #b0c4de;
    margin-bottom: 4px;
}
.cert-date {
    font-size: 0.95rem;
    color: #3498db;
    margin-bottom: 8px;
}
.cert-link {
    color: #fff;
    background: #3498db;
    padding: 6px 18px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
    margin-top: 8px;
}
.cert-link:hover {
    background: #00eaff;
    color: #181818;
}

/* --- Contato --- */
.contact-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 24px;
}
.contact-item {
    background: #23272b;
    border-radius: 10px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 2px 8px rgba(52,152,219,0.10);
    font-size: 1.08rem;
    transition: box-shadow 0.2s, background 0.2s;
    justify-content: center;
}
.contact-item i {
    font-size: 1.5rem;
    color: #3498db;
    min-width: 32px;
    text-align: center;
}
.contact-item a {
    color: #f5f5f5;
    background: #3498db;
    padding: 4px 12px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
    font-weight: 500;
}
.contact-item a:hover {
    background: #00eaff;
    color: #181818;
}
.social-row {
    display: flex;
    gap: 22px;
    justify-content: center;
    margin: 18px 0 0 0;
}
.social-row a {
    color: #3498db;
    background: #222;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 2px 8px rgba(52,152,219,0.10);
    transition: background 0.2s, color 0.2s, transform 0.2s;
}
.social-row a:hover {
    background: #00eaff;
    color: #181818;
    transform: scale(1.13);
}
.back-link {
    display: inline-block;
    margin-top: 32px;
    color: #fff;
    background: #3498db;
    padding: 10px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(52,152,219,0.15);
    transition: background 0.2s;
    text-align: center;
}
.back-link:hover {
    background: #00eaff;
    color: #181818;
}

/* --- Footer --- */
footer {
    background:rgba(34,34,34,0.97); text-align:center; padding:20px; margin-top:40px; border-radius:24px 24px 0 0;
    box-shadow:0 -4px 24px rgba(52,152,219,0.10); color:#b0c4de; font-size:1.05rem;
    font-family: 'Share Tech Mono', monospace;
}

/* --- Responsivo --- */
@media (max-width:700px) {
    header {padding:32px 8px 24px 8px;}
    section {padding:0 8px;}
    .card-list {grid-template-columns:1fr;}
    .cert-list {grid-template-columns:1fr;}
    .contact-list {flex-direction:column; gap:12px;}
    header img {width:90px; height:90px;}
    .main-nav {gap: 10px;}
    .container {padding: 12px 2vw;}
    .project-card img {max-width: 98vw;}
}