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

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #10b981;
    --accent: #f59e0b;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --light: #f8fafc;
    --text: #334155;
    --text-light: #64748b;
    --border: #e2e8f0;
    --success: #10b981;
    --warning: #f59e0b;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: #ffffff;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============ Navbar ============ */
.navbar {
    background: var(--dark);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.logo:hover {
    transform: rotate(180deg) scale(1.1);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
}

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

.nav-links a.active {
    color: var(--primary);
}

@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
        font-size: 0.85rem;
    }
}

/* ============ Hero Section ============ */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 120px 20px 80px;
    text-align: center;
}

.hero-content {
    text-align: center;
    margin-bottom: 4rem;
}

.hero-profile {
    margin-bottom: 2rem;
    animation: slideDown 0.8s ease-out;
}

.profile-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.9);
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.profile-photo:hover {
    transform: scale(1.05);
}

.hero-content h1 {
    font-size: 3.8rem;
    margin-bottom: 0.8rem;
    font-weight: 900;
    animation: slideDown 0.8s ease-out;
    color: white;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.8rem;
    font-weight: 600;
    animation: slideUp 0.8s ease-out 0.1s both;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    opacity: 0.9;
    animation: slideUp 0.8s ease-out 0.2s both;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-university {
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.85;
    font-weight: 500;
    animation: slideUp 0.8s ease-out 0.3s both;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: slideUp 0.8s ease-out 0.4s both;
}

.btn {
    padding: 14px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid white;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: white;
    color: var(--primary);
    border-color: white;
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* ============ Stats Grid ============ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    animation: fadeIn 1s ease-out 0.6s both;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    animation: fadeIn 0.8s ease-out backwards;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

.stat-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 600;
}

/* ============ Keyframes ============ */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(99, 102, 241, 0.3), 0 0 10px rgba(99, 102, 241, 0.1);
    }
    50% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.6), 0 0 30px rgba(99, 102, 241, 0.3);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes rotate-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ============ Destaque Section ============ */
.destaque {
    padding: 100px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.destaque-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    animation: slideDown 0.6s ease-out, pulse 2s ease-in-out infinite;
}

.destaque h2 {
    font-size: 2.8rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-weight: 900;
    animation: slideUp 0.6s ease-out 0.1s both;
}

.destaque-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    animation: slideUp 0.6s ease-out 0.2s both;
}

.destaque-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    animation: scaleIn 0.8s ease-out 0.3s both;
}

.destaque-text h3 {
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.destaque-features {
    list-style: none;
    margin-bottom: 2rem;
}

.destaque-features li {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 1.2rem;
    padding-left: 0;
    font-weight: 500;
    line-height: 1.6;
}

.destaque-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2.5rem 0;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.destaque-stat {
    text-align: center;
}

.stat-label-small {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.stat-value-small {
    display: block;
    font-size: 1.3rem;
    color: var(--primary);
    font-weight: 900;
}

.destaque-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon {
    color: var(--primary);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@media (max-width: 768px) {
    .destaque-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .destaque-stats {
        grid-template-columns: 1fr;
    }

    .destaque-image {
        display: none;
    }
}

/* ============ Experiência Timeline ============ */
.experiencia {
    padding: 100px 20px;
    background: white;
}

.experiencia h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: var(--dark);
    font-weight: 900;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    padding-right: 50%;
    padding-left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    padding-left: 50%;
    padding-right: 0;
    text-align: left;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 18px;
    height: 18px;
    background: white;
    border: 4px solid var(--primary);
    border-radius: 50%;
    z-index: 10;
    transition: all 0.3s ease;
}

.timeline-marker.current {
    width: 24px;
    height: 24px;
    border-color: var(--secondary);
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.timeline-item:hover .timeline-marker {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.timeline-content {
    background: var(--light);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.timeline-item:nth-child(even) .timeline-content {
    border-left: none;
    border-right: 4px solid var(--primary);
}

.timeline-item:hover .timeline-content {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateX(-10px);
}

.timeline-item:nth-child(even):hover .timeline-content {
    transform: translateX(10px);
}

.timeline-content h3 {
    font-size: 1.4rem;
    color: var(--dark);
    margin-bottom: 0.3rem;
    font-weight: 800;
}

.timeline-company {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.timeline-description {
    color: var(--text);
    line-height: 1.7;
    font-weight: 500;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding: 0 0 2rem 60px;
        text-align: left;
    }

    .timeline-marker {
        left: 20px;
    }

    .timeline-item:hover .timeline-content,
    .timeline-item:nth-child(even):hover .timeline-content {
        transform: none;
    }
}

/* ============ Projetos Section ============ */
.projetos {
    padding: 100px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.projetos h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: var(--dark);
    font-weight: 900;
}

.projetos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.projeto-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.projeto-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.projeto-card:hover::before {
    transform: scaleX(1);
}

.projeto-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 0 30px rgba(99, 102, 241, 0.1);
}

.projeto-badge {
    display: inline-block;
    background: var(--light);
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
    animation: slideDown 0.5s ease-out;
    transition: all 0.3s ease;
}

.destaque-card .projeto-badge {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
}

.projeto-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.projeto-header h3 {
    color: var(--dark);
    font-size: 1.5rem;
    margin: 0;
    font-weight: 800;
}

.github-link {
    color: var(--primary);
    transition: all 0.3s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.github-link:hover {
    color: var(--primary-dark);
    transform: scale(1.2) rotate(5deg);
}

.projeto-card p {
    color: var(--text);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-weight: 500;
}

.projeto-metrics {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.projeto-metrics span {
    font-size: 0.85rem;
    color: var(--text-light);
    background: var(--light);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-weight: 600;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.tech-tags span {
    background: var(--light);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.tech-tags span:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.05);
}

/* ============ Habilidades Section ============ */
.habilidades {
    padding: 100px 20px;
    background: white;
}

.habilidades h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: var(--dark);
    font-weight: 900;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.skill-category {
    background: var(--light);
    padding: 2.5rem;
    border-radius: 15px;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
    animation: slideUp 0.6s ease-out backwards;
}

.skill-category:nth-child(1) { animation-delay: 0.1s; }
.skill-category:nth-child(2) { animation-delay: 0.2s; }
.skill-category:nth-child(3) { animation-delay: 0.3s; }
.skill-category:nth-child(4) { animation-delay: 0.4s; }

.skill-category:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.1);
    transform: translateY(-5px);
}

.skill-category h3 {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-badge {
    background: white;
    color: var(--text);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
    cursor: default;
}

.skill-badge:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(99, 102, 241, 0.2);
}

/* ============ Prêmios Section ============ */
.premios {
    padding: 100px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.premios h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: var(--dark);
    font-weight: 900;
}

.premios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.premio-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid var(--border);
    animation: slideUp 0.6s ease-out backwards;
}

.premio-card:nth-child(1) { animation-delay: 0.1s; }
.premio-card:nth-child(2) { animation-delay: 0.2s; }
.premio-card:nth-child(3) { animation-delay: 0.3s; }
.premio-card:nth-child(4) { animation-delay: 0.4s; }

.premio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    border-color: var(--primary);
}

.premio-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    transition: all 0.3s ease;
}

.premio-card:hover .premio-icon {
    animation: rotate-slow 0.6s ease-in-out;
}

.premio-card h3 {
    color: var(--dark);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.premio-card p {
    color: var(--text-light);
    font-weight: 500;
}

/* ============ Contato Section ============ */
.contato {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 100px 20px;
    text-align: center;
}

.contato h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 900;
    letter-spacing: -1px;
}

.contato-subtitle {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    font-weight: 500;
}

.contato-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contato-btn {
    background: white;
    color: var(--primary);
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.contato-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(99, 102, 241, 0.1);
    transition: left 0.3s ease;
    z-index: -1;
}

.contato-btn:hover::before {
    left: 0;
}

.contato-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.contato-btn span {
    position: relative;
    z-index: 1;
}

/* ============ Footer ============ */
.footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 3rem 20px;
    border-top: 1px solid var(--border);
}

.footer p {
    margin: 0.5rem 0;
    opacity: 0.8;
    font-weight: 500;
}

.footer-secondary {
    opacity: 0.6;
    font-size: 0.95rem;
    margin-top: 1rem;
    font-style: italic;
}

/* ============ Responsive Design ============ */

/* Mobile Pequeno (até 480px) */
@media (max-width: 480px) {
    * {
        -webkit-tap-highlight-color: transparent;
    }

    body {
        font-size: 14px;
    }

    .container {
        padding: 0 12px;
    }

    /* Navbar responsivo */
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background: var(--dark);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        gap: 0;
        padding: 2rem 0;
        list-style: none;
        z-index: 1000;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        padding: 0.5rem 0;
    }

    .nav-links a {
        display: block;
        padding: 1rem;
        font-size: 0.9rem;
    }

    /* Hero */
    .hero {
        padding: 50px 12px 30px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
        margin-bottom: 0.4rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .hero-university {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }

    .profile-photo {
        width: 80px;
        height: 80px;
        border: 2px solid rgba(255, 255, 255, 0.9);
    }

    .cta-buttons {
        gap: 0.8rem;
    }

    .btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
        margin-top: 1.5rem;
    }

    .stat-card {
        padding: 1.2rem;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    /* Destaque */
    .destaque {
        padding: 50px 12px;
    }

    .destaque-badge {
        font-size: 0.65rem;
        padding: 0.35rem 0.7rem;
        margin-bottom: 1rem;
    }

    .destaque h2 {
        font-size: 1.4rem;
        margin-bottom: 0.3rem;
    }

    .destaque-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .destaque-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .destaque-text h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .destaque-features li {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .destaque-stats {
        grid-template-columns: 1fr;
        padding: 1.2rem;
        gap: 1rem;
        margin: 1.5rem 0;
    }

    .stat-label-small {
        font-size: 0.75rem;
    }

    .stat-value-small {
        font-size: 1rem;
    }

    /* Timeline */
    .experiencia {
        padding: 50px 12px;
    }

    .experiencia h2 {
        font-size: 1.4rem;
        margin-bottom: 2rem;
    }

    .timeline::before {
        left: 12px;
    }

    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding: 0 0 1.5rem 45px;
        text-align: left;
        margin-bottom: 2rem;
    }

    .timeline-marker {
        left: 12px;
        width: 14px;
        height: 14px;
        border-width: 3px;
    }

    .timeline-content {
        padding: 1.2rem;
    }

    .timeline-content h3 {
        font-size: 1.1rem;
        margin-bottom: 0.2rem;
    }

    .timeline-company {
        font-size: 0.85rem;
    }

    .timeline-description {
        font-size: 0.9rem;
    }

    /* Projetos */
    .projetos {
        padding: 50px 12px;
    }

    .projetos h2 {
        font-size: 1.4rem;
        margin-bottom: 2rem;
    }

    .projeto-card {
        padding: 1.2rem;
    }

    .projeto-header {
        margin-bottom: 1rem;
        gap: 0.5rem;
    }

    .projeto-header h3 {
        font-size: 1.1rem;
    }

    .github-link {
        width: 24px;
        height: 24px;
    }

    .projeto-card p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .projeto-metrics {
        gap: 0.4rem;
        margin-bottom: 1rem;
    }

    .projeto-metrics span {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }

    .tech-tags {
        gap: 0.4rem;
    }

    .tech-tags span {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    /* Habilidades */
    .habilidades {
        padding: 50px 12px;
    }

    .habilidades h2 {
        font-size: 1.4rem;
        margin-bottom: 2rem;
    }

    .skill-category {
        padding: 1.2rem;
    }

    .skill-category h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .skill-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.7rem;
    }

    /* Prêmios */
    .premios {
        padding: 50px 12px;
    }

    .premios h2 {
        font-size: 1.4rem;
        margin-bottom: 2rem;
    }

    .premio-card {
        padding: 1.2rem;
    }

    .premio-icon {
        font-size: 2rem;
        margin-bottom: 0.7rem;
    }

    .premio-card h3 {
        font-size: 1rem;
    }

    .premio-card p {
        font-size: 0.9rem;
    }

    /* Contato */
    .contato {
        padding: 50px 12px;
    }

    .contato h2 {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
    }

    .contato-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .contato-links {
        gap: 0.8rem;
        flex-direction: column;
    }

    .contato-btn {
        width: 100%;
        padding: 10px 18px;
        font-size: 0.9rem;
    }

    /* Footer */
    .footer {
        padding: 1.5rem 12px;
    }

    .footer p {
        font-size: 0.85rem;
        margin: 0.3rem 0;
    }

    .footer-secondary {
        font-size: 0.75rem;
        margin-top: 0.5rem;
    }
}

/* Tablet Pequeno (481px até 640px) */
@media (min-width: 481px) and (max-width: 640px) {
    .container {
        padding: 0 15px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background: var(--dark);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        gap: 0;
        padding: 2rem 0;
        z-index: 1000;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        padding: 0.5rem 0;
    }

    /* Hero */
    .hero {
        padding: 60px 15px 40px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .profile-photo {
        width: 100px;
        height: 100px;
    }

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

    /* Sections */
    .destaque,
    .experiencia,
    .projetos,
    .habilidades,
    .premios,
    .contato {
        padding: 60px 15px;
    }

    .destaque h2,
    .projetos h2,
    .habilidades h2,
    .premios h2,
    .experiencia h2 {
        font-size: 1.6rem;
    }

    .projeto-card {
        padding: 1.5rem;
    }

    .skill-category {
        padding: 1.5rem;
    }

    .skill-badge {
        font-size: 0.8rem;
        padding: 0.5rem 0.9rem;
    }

    .premio-card {
        padding: 1.4rem;
    }

    .contato-links {
        flex-direction: column;
    }

    .contato-btn {
        width: 100%;
    }
}

/* Tablet Médio (641px até 768px) */
@media (min-width: 641px) and (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero h2,
    .projetos h2,
    .habilidades h2,
    .premios h2,
    .experiencia h2 {
        font-size: 1.8rem;
    }

    .destaque h2 {
        font-size: 1.8rem;
    }

    .projetos-grid,
    .skills-grid,
    .premios-grid {
        grid-template-columns: 1fr;
    }

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

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .contato-links {
        flex-direction: column;
    }

    .contato-btn {
        width: 100%;
    }
}

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

/* ============ Utilities ============ */
a {
    color: inherit;
}

svg {
    width: 100%;
    height: 100%;
}

/* ============ Scroll Animations ============ */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s ease-out forwards;
}
