/* ============================================
   PORTFÓLIO JONATHAN RIBEIRO
   Otimizado com Squeleton CSS Framework
   ============================================ */

:root {
    --primary-blue: #00d4ff;
    --dark-blue: #0066ff;
    --bg-black: #0a0a0a;
    --bg-dark: #111111;
    --bg-card: #1a1a1a;
    --text-white: #ffffff;
    --text-gray: #a0a0a0;
}

/* Reset CSS incluído no Squeleton */

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--bg-black);
    color: var(--text-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Performance: will-change aplicado dinamicamente via JS para economizar GPU */

/* Performance: reduzir animações em motion-sensitive */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Animated Background - Otimizado */
.tech-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        radial-gradient(circle at 20% 50%, rgba(0, 102, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-black) 0%, var(--bg-dark) 100%);
    will-change: auto;
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    will-change: transform;
}

@keyframes gridMove {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(0, 50px, 0); }
}

/* Floating Particles - Otimizado com transform3d */
.particle {
    position: fixed;
    background: var(--primary-blue);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.3;
    animation: float 15s infinite ease-in-out;
    will-change: transform;
}

.particle:nth-child(1) { width: 4px; height: 4px; top: 20%; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { width: 6px; height: 6px; top: 60%; left: 20%; animation-delay: 2s; }
.particle:nth-child(3) { width: 3px; height: 3px; top: 40%; right: 15%; animation-delay: 4s; }
.particle:nth-child(4) { width: 5px; height: 5px; top: 80%; right: 30%; animation-delay: 1s; }
.particle:nth-child(5) { width: 4px; height: 4px; top: 30%; left: 70%; animation-delay: 3s; }

@keyframes float {
    0%, 100% { transform: translate3d(0, 0, 0); }
    25% { transform: translate3d(20px, -30px, 0); }
    50% { transform: translate3d(-20px, -60px, 0); }
    75% { transform: translate3d(10px, -30px, 0); }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-blue);
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.nav-link {
    color: var(--text-gray);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
}

.glitch {
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 700;
    line-height: 1.2;
    position: relative;
    color: var(--text-white);
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--primary-blue);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--dark-blue);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2s infinite linear alternate-reverse;
}

/* Glitch simplificado - visual idêntico com menos keyframes */
@keyframes glitch-anim {
    0% { clip: rect(42px, 9999px, 44px, 0); }
    20% { clip: rect(12px, 9999px, 59px, 0); }
    40% { clip: rect(94px, 9999px, 18px, 0); }
    60% { clip: rect(77px, 9999px, 85px, 0); }
    80% { clip: rect(25px, 9999px, 119px, 0); }
    100% { clip: rect(61px, 9999px, 33px, 0); }
}

.typing-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(16px, 2.8vw, 22px);
    color: var(--primary-blue);
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.typing-text::after {
    content: '';
    display: inline-block;
    width: 2px;
    height: 1em;
    background: var(--primary-blue);
    margin-left: 5px;
    animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--primary-blue); }
}

.cta-btn {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: var(--text-white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cta-btn:hover {
    transform: translate3d(0, -3px, 0);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

.cta-btn-outline {
    background: transparent !important;
    border: 2px solid var(--primary-blue) !important;
    color: var(--primary-blue) !important;
}

.cta-btn-outline:hover {
    background: var(--primary-blue) !important;
    color: var(--bg-black) !important;
}

/* Stats Section */
.stat-card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translate3d(0, -10px, 0);
    border-color: var(--primary-blue);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.3);
}

/* Card clicável */
a .stat-card {
    cursor: pointer;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-blue);
    font-family: 'JetBrains Mono', monospace;
}

/* Projects Section */
.project-card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    height: 100%;
}

.project-card:hover {
    transform: translate3d(0, -10px, 0) scale(1.02);
    border-color: var(--primary-blue);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.4);
}

.project-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
    backface-visibility: hidden;
}

.project-card:hover .project-image {
    transform: scale3d(1.1, 1.1, 1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.9) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.tech-tag {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    font-size: 12px;
    color: var(--primary-blue);
    margin: 5px;
    font-family: 'JetBrains Mono', monospace;
}

/* Skills Section - Badges Minimalistas */
.skill-category-title {
    color: var(--primary-blue);
    position: relative;
    display: inline-block;
}

.skill-category-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-blue), transparent);
}

.skill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: default;
    position: relative;
    padding-bottom: 15px;
}

.skill-badge:hover {
    background: rgba(0, 212, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.4);
    transform: translate3d(0, -2px, 0);
}

.skill-badge-icon {
    font-size: 18px;
    line-height: 1;
}

.skill-badge-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-gray);
    white-space: nowrap;
}

.skill-badge:hover .skill-badge-text {
    color: var(--text-white);
}

.skill-badge-level {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: var(--primary-blue);
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    font-family: 'JetBrains Mono', monospace;
}

.skill-badge:hover .skill-badge-level {
    opacity: 1;
}

/* Contact Section */
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--bg-card);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    color: var(--primary-blue);
    font-size: 28px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary-blue);
    color: var(--bg-black);
    transform: translate3d(0, -5px, 0) rotate(5deg);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.5);
}

/* Footer */
.footer {
    background: var(--bg-dark);
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    padding: 40px 0;
    text-align: center;
    color: var(--text-gray);
}

/* Section Titles */
.section-title {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 700;
    color: var(--text-white);
    position: relative;
    display: inline-block;
    margin-bottom: 50px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), transparent);
}

/* Custom Utility Classes */
.bg-dark {
    background: var(--bg-dark);
}

/* Classe utilitária para cards com hover animado - evita repetição */
.hover-lift {
    transition: all 0.4s ease;
    position: relative;
}

/* Efeito brilho no hover - reutilizável */
.shine-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
    pointer-events: none;
}

.shine-effect:hover::before {
    left: 100%;
}

.border-cyan-30 {
    border-color: rgba(0, 212, 255, 0.3);
}

.social-link-small {
    width: 40px;
    height: 40px;
    font-size: 20px;
}

/* Education & Experience Section */
.timeline {
    position: relative;
    padding: 40px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg,
        transparent 0%,
        var(--primary-blue) 10%,
        var(--dark-blue) 90%,
        transparent 100%
    );
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    width: 100%;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
    margin-right: auto;
    padding-right: 60px;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    margin-right: 0;
    padding-left: 60px;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-icon-wrapper {
    margin-left: auto;
}

.timeline-content {
    background: linear-gradient(135deg,
        rgba(26, 26, 26, 0.9) 0%,
        rgba(20, 20, 20, 0.95) 100%
    );
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 20px;
    padding: 35px;
    width: calc(50% - 40px);
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(0, 212, 255, 0.05) 0%,
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.timeline-content:hover::before {
    opacity: 1;
}

.timeline-content::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    border-radius: 20px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.5s ease;
}

.timeline-content:hover {
    transform: translate3d(0, -8px, 0) scale(1.02);
    border-color: var(--primary-blue);
    box-shadow:
        0 20px 60px rgba(0, 212, 255, 0.3),
        0 0 40px rgba(0, 212, 255, 0.2);
}

.timeline-content:hover::after {
    opacity: 0.3;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    border: 5px solid var(--bg-black);
    border-radius: 50%;
    top: 35px;
    z-index: 3;
    box-shadow:
        0 0 20px rgba(0, 212, 255, 0.8),
        0 0 40px rgba(0, 212, 255, 0.4);
    transition: all 0.4s ease;
}

.timeline-item:hover .timeline-dot {
    transform: translateX(-50%) scale(1.3);
    box-shadow:
        0 0 30px rgba(0, 212, 255, 1),
        0 0 60px rgba(0, 212, 255, 0.6);
}

.timeline-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.5; transform: translate(-50%, -50%) scale(1.3); }
}

.timeline-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg,
        rgba(0, 212, 255, 0.1) 0%,
        rgba(0, 102, 255, 0.1) 100%
    );
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    margin-bottom: 20px;
    position: relative;
    transition: all 0.4s ease;
}

.timeline-item:nth-child(even) .timeline-icon-wrapper {
    margin-left: auto;
}

.timeline-content:hover .timeline-icon-wrapper {
    transform: rotateY(360deg);
    border-color: var(--primary-blue);
    background: linear-gradient(135deg,
        rgba(0, 212, 255, 0.2) 0%,
        rgba(0, 102, 255, 0.2) 100%
    );
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.timeline-icon {
    font-size: 42px;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.3));
}

.timeline-date {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg,
        rgba(0, 212, 255, 0.15) 0%,
        rgba(0, 102, 255, 0.15) 100%
    );
    border: 1px solid rgba(0, 212, 255, 0.4);
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-blue);
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
}

.timeline-content:hover .timeline-date {
    background: linear-gradient(135deg,
        rgba(0, 212, 255, 0.25) 0%,
        rgba(0, 102, 255, 0.25) 100%
    );
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

.timeline-title {
    color: var(--text-white);
    margin-bottom: 12px;
    font-size: 22px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.timeline-subtitle {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.timeline-item:nth-child(even) .timeline-subtitle {
    justify-content: flex-end;
}

.timeline-subtitle::before {
    content: '▸';
    font-size: 14px;
    color: var(--primary-blue);
}

.timeline-item:nth-child(even) .timeline-subtitle::before {
    order: 2;
    content: '◂';
}

.timeline-description {
    color: var(--text-gray);
    line-height: 1.7;
    font-size: 15px;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mobile-menu-btn:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: scale(1.05);
}

.mobile-menu-btn.active {
    background: var(--primary-blue);
    color: var(--bg-black);
    transform: rotate(90deg);
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* GitHub Card States */
.github-loader {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 212, 255, 0.2);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: github-spin 1s linear infinite;
}

@keyframes github-spin {
    to { transform: rotate(360deg); }
}

/* GitHub Dev State */
.github-dev-icon {
    position: relative;
    width: 70px;
    height: 70px;
    margin: 0 auto;
}

.github-dev-ring {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 50%;
    animation: dev-ring-pulse 2s ease-in-out infinite;
}

.github-dev-ring::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 2px solid rgba(0, 212, 255, 0.2);
    border-radius: 50%;
    animation: dev-ring-pulse 2s ease-in-out infinite 0.3s;
}

@keyframes dev-ring-pulse {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

.github-dev-emoji {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    animation: dev-float 2.5s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.4));
}

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

/* ============================================
   RESPONSIVE - MEDIA QUERIES
   ============================================ */

/* Tablet (max-width: 991px) */
@media (max-width: 991px) {
    .mobile-menu-btn {
        display: block;
        z-index: 1001;
        padding: 6px 10px;
        font-size: 19px;
    }

    .nav-menu {
        display: flex;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 30px 20px;
        gap: 25px;
        border-bottom: 1px solid rgba(0, 212, 255, 0.3);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        pointer-events: none;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-link {
        font-size: 18px;
        padding: 10px 0;
        border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    /* Stats responsivo */
    .stat-number {
        font-size: 40px;
    }

    /* Timeline responsivo para tablet */
    .timeline-content {
        padding: 28px;
    }
}

/* Tablet pequeno e mobile landscape (max-width: 768px) */
@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }

    .timeline-dot {
        left: 30px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px;
        padding: 25px;
        text-align: left;
    }

    .timeline-item:nth-child(even) .timeline-icon-wrapper {
        margin-left: 0;
    }

    .timeline-item:nth-child(even) .timeline-subtitle {
        justify-content: flex-start;
    }

    .timeline-item:nth-child(even) .timeline-subtitle::before {
        order: 0;
        content: '▸';
    }

    /* Hero ajustes */
    .hero {
        padding-top: 70px;
        min-height: auto;
        padding-bottom: 60px;
    }

    /* Section titles menores */
    .section-title {
        margin-bottom: 35px;
    }

    /* Social links menores */
    .social-link {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    /* Project cards */
    .project-card:hover {
        transform: translate3d(0, -5px, 0) scale(1.01);
    }

    /* Stat cards */
    .stat-card {
        padding: 20px;
    }
}

/* Mobile (max-width: 639px) */
@media (max-width: 639px) {
    .mobile-menu-btn {
        padding: 5px 9px;
        font-size: 17px;
        border-radius: 7px;
    }

    /* Logo menor em mobile */
    .logo {
        font-size: 20px;
    }

    /* Hero compacto */
    .hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 40px;
    }

    .typing-text {
        min-height: 45px;
    }

    /* CTAs empilhados */
    .cta-btn {
        padding: 12px 30px;
        font-size: 14px;
        width: 100%;
        text-align: center;
    }

    /* Stats */
    .stat-number {
        font-size: 36px;
    }

    .stat-card {
        padding: 20px 15px;
    }

    /* About - imagem menor */
    .about-img {
        max-height: 300px;
    }

    /* Timeline compacto */
    .timeline-item {
        margin-bottom: 40px;
    }

    .timeline-content {
        padding: 20px;
    }

    .timeline-icon-wrapper {
        width: 60px;
        height: 60px;
    }

    .timeline-icon {
        font-size: 32px;
    }

    .timeline-title {
        font-size: 18px;
    }

    .timeline-description {
        font-size: 14px;
    }

    .timeline-date {
        font-size: 11px;
        padding: 8px 14px;
    }

    /* Skills badges */
    .skill-badge {
        padding: 8px 14px;
        padding-bottom: 12px;
    }

    .skill-badge-text {
        font-size: 12px;
    }

    .skill-badge-icon {
        font-size: 16px;
    }

    /* Section paddings */
    .section-title {
        margin-bottom: 30px;
    }

    /* Footer */
    .footer {
        padding: 30px 0;
    }

    /* Project card altura menor */
    .project-card {
        min-height: auto !important;
    }
}

/* Mobile muito pequeno (max-width: 374px) */
@media (max-width: 374px) {
    .glitch {
        font-size: 32px;
    }

    .typing-text {
        font-size: 14px;
        min-height: 40px;
    }

    .stat-number {
        font-size: 30px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px;
        padding: 15px;
    }

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

    .timeline-dot {
        left: 20px;
    }

    .social-link {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}
