/* APENAS CORREÇÕES DE RESPONSIVIDADE - SEM ALTERAÇÕES DE DESIGN */

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    line-height: 1.6;
    color: #000;
    background-color: #fff;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-weight: bold;
    letter-spacing: -0.02em;
}
ul {
    list-style-position: inside;
    padding-left: 10px;
}
li {
    margin-bottom: 5px;
}

/* Navigation - MANTÉM ORIGINAL */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #000;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    font-weight: bold;
    position: relative;
}

.nav-logo img {
    width: 70px;
    margin-top: 8px;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #000;
    font-weight: 500;
    position: relative;
    padding: 10px 0;
    transition: all 0.3s ease;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #000;
    transition: width 0.3s ease;
}

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

/* Hero Section - MANTÉM ORIGINAL */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 100px 0 50px;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0,0,0,0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0,0,0,0.05) 0%, transparent 50%);
}

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

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-title .sketch-text {
    font-size: 1.2rem;
    display: block;
    margin-bottom: 10px;
    opacity: 0.8;
}

.main-name {
    display: block;
    font-size: 4rem;
    font-weight: bold;
    position: relative;
}

.main-name::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80%;
    height: 4px;
    background: repeating-linear-gradient(
        to right,
        #000 0px,
        #000 6px,
        transparent 6px,
        transparent 12px
    );
}

.subtitle {
    display: block;
    font-size: 1.8rem;
    margin-top: 15px;
    opacity: 0.7;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.8;
    max-width: 400px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid #000;
    position: relative;
    transition: all 0.3s ease;
    background: #fff;
    color: #000;
}

.btn-primary {
    background: #000;
    color: #fff;
}

.btn-primary:hover {
    background: #fff;
    color: #000;
    transform: translate(-3px, -3px);
    box-shadow: 3px 3px 0px #000;
}

.btn-secondary:hover {
    transform: translate(-3px, -3px);
    box-shadow: 3px 3px 0px #000;
}

.hero-image {
    display: flex;
    justify-content: center;
}

.image-frame {
    position: relative;
    width: 350px;
    height: 350px;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    opacity: 0.6;
}

.scroll-line {
    width: 2px;
    height: 30px;
    background: #000;
    animation: scroll-bounce 2s ease-in-out infinite;
}

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

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.title-underline {
    width: 100px;
    height: 3px;
    background: repeating-linear-gradient(
        to right,
        #000 0px,
        #000 8px,
        transparent 8px,
        transparent 16px
    );
    margin: 0 auto;
}

/* About Section - MANTÉM ORIGINAL */
.about {
    padding: 100px 0;
    background: 
        linear-gradient(45deg, transparent 49%, rgba(0,0,0,0.02) 50%, transparent 51%),
        linear-gradient(-45deg, transparent 49%, rgba(0,0,0,0.02) 50%, transparent 51%);
    background-size: 20px 20px;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.about-top {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    width: 300px;
    height: 300px;
}

.image-sketch {
    position: relative;
    width: 100%;
    height: 100%;
}

.about-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 3px solid #000;
}

.sketch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid #000;
    pointer-events: none;
}

.about-intro {
    font-size: 1.3rem;
    margin-bottom: 0;
    line-height: 1.8;
    position: relative;
    padding-left: 20px;
}

.about-intro::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #000;
}

.about-details {
    display: flex;
    gap: 30px;
    align-items: stretch;
}

.detail-item {
    flex: 1;
    margin-bottom: 0;
    padding: 20px;
    border: 2px solid #000;
    position: relative;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.detail-item > p, .detail-item > ul {
    flex-grow: 1;
}

.detail-item::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 1px dashed #000;
    opacity: 0.3;
}

.detail-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    position: relative;
}
.detail-item h4 {
    font-size: 1.1rem;
    margin-top: 20px;
    margin-bottom: 10px;
}

.detail-item h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 2px;
    background: #000;
}

/* Projects Section - MANTÉM ORIGINAL */
.projects {
    padding: 100px 0;
    background: #f8f8f8;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.project-card {
    background: #fff;
    border: 3px solid #000;
    position: relative;
    transition: all 0.3s ease;
    height: 100%;
    cursor: pointer;
}

.project-card:hover {
    transform: translate(-5px, -5px);
    box-shadow: 5px 5px 0px #000;
}

.card-sketch {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-sketch::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 1px dashed #000;
    opacity: 0.3;
    pointer-events: none;
}

.project-image {
    height: 200px;
    border-bottom: 2px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(0,0,0,0.05) 2px,
            rgba(0,0,0,0.05) 4px
        );
}

.project-placeholder {
    display: none;
}

.project-image img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.project-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    position: relative;
}

.project-content h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background: #000;
}

.project-content p {
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.project-tech {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.project-tech span {
    padding: 5px 12px;
    border: 1px solid #000;
    font-size: 0.8rem;
    font-weight: bold;
    background: #fff;
}

/* Stacks Section - MANTÉM ORIGINAL */
.stacks {
    padding: 100px 0;
    background: 
        radial-gradient(circle at 25% 75%, rgba(0,0,0,0.03) 0%, transparent 50%),
        radial-gradient(circle at 75% 25%, rgba(0,0,0,0.03) 0%, transparent 50%);
}

.stacks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.stack-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 15px;
    border: 2px solid #000;
    background: #fff;
    position: relative;
    transition: all 0.3s ease;
    text-align: center;
}

.stack-item::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 1px dashed #000;
    opacity: 0.3;
    pointer-events: none;
}

.stack-item:hover {
    transform: translate(-3px, -3px);
    box-shadow: 3px 3px 0px #000;
}

.stack-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
    filter: drop-shadow(2px 2px 0px rgba(0,0,0,0.1));
}

.stack-item:hover .stack-icon {
    transform: scale(1.1);
}

.stack-name {
    font-weight: bold;
    font-size: 0.9rem;
    color: #000;
    position: relative;
}

.stack-name::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #000;
    transition: width 0.3s ease;
}

.stack-item:hover .stack-name::after {
    width: 100%;
}

/* Contact Section - MANTÉM ORIGINAL */
.contact {
    padding: 100px 0;
    text-align: center;
    background: 
        radial-gradient(circle at 30% 70%, rgba(0,0,0,0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(0,0,0,0.05) 0%, transparent 50%);
}

.contact-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer - MANTÉM ORIGINAL */
.footer {
    background: #000;
    color: #fff;
    text-align: center;
    padding: 30px 0;
}

.footer p {
    font-size: 0.9rem;
}

/* Popup Styles - MANTÉM ORIGINAL */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s ease, opacity 0.3s ease;
    overflow-y: auto;
}

.popup-overlay.active {
    visibility: visible;
    opacity: 1;
}

.popup-content {
    background: #fff;
    border: 3px solid #000;
    position: relative;
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px 40px;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.popup-overlay.active .popup-content {
    transform: scale(1);
}

.close-popup-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #000;
    color: #fff;
    border: 2px solid #000;
    font-size: 2rem;
    font-weight: bold;
    line-height: 1;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 2010;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 25%;
}

.close-popup-btn:hover {
    background: #fff;
    color: #000;
    transform: rotate(90deg);
}

.popup-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.popup-media {
    width: 100%;
    max-width: 500px;
    border: 2px solid #000;
    padding: 8px;
    background: repeating-linear-gradient(45deg, transparent, transparent 5px, rgba(0,0,0,0.02) 5px, rgba(0,0,0,0.02) 10px);
}

.popup-media iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
}

.popup-info {
    width: 100%;
    max-width: 800px;
}

.popup-info h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    position: relative;
}

.popup-info h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #000;
}

.popup-info p {
    margin-top: 30px;
    margin-bottom: 30px;
    line-height: 1.7;
    font-size: 1.1rem;
}

#popup-tech {
    margin-top: auto;
}

/* ========== APENAS CORREÇÕES DE RESPONSIVIDADE ========== */

@media (max-width: 768px) {
    /* Logo menor no mobile */
    .nav-logo img {
        width: 60px;
    }
    
    /* Menu escondido no mobile */
    .nav-menu {
        display: none;
    }
    
    /* Hero responsivo */
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .main-name {
        font-size: 3rem;
    }
    .hero-buttons {
        justify-content: center;
    }
    
    /* About responsivo */
    .about-top {
        grid-template-columns: 1fr;
        gap: 30px;
        justify-items: center;
        text-align: center;
    }
    .about-intro {
        padding-left: 0;
    }
    .about-intro::before {
        display: none;
    }
    .about-details {
        flex-direction: column;
    }
    
    /* Projects responsivo */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Stacks responsivo */
    .stacks-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    /* Títulos responsivos */
    .section-title {
        font-size: 2.5rem;
    }
    
    /* Contact responsivo */
    .contact-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Popup responsivo */
    .popup-content {
        padding: 20px 25px;
        margin: 10px;
    }
}

@media (max-width: 480px) {
    /* Navegação muito pequena */
    .nav-container {
        padding: 0 15px;
    }
    .nav-logo img {
        width: 50px;
    }
    
    /* Hero muito pequeno */
    .hero {
        padding: 80px 0 30px;
    }
    .hero-title {
        font-size: 2rem;
    }
    .main-name {
        font-size: 2.5rem;
    }
    .image-frame {
        width: 250px;
        height: 250px;
    }
    .hero-description {
        font-size: 1rem;
        max-width: 100%;
    }
    
    /* About muito pequeno */
    .about-image {
        width: 250px;
        height: 250px;
    }
    .about-intro {
        font-size: 1.1rem;
    }
    .detail-item {
        padding: 15px;
    }
    
    /* Projetos muito pequeno */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .project-image {
        height: 150px;
    }
    .project-content {
        padding: 20px;
    }
    
    /* Stacks muito pequeno */
    .stacks-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .stack-item {
        padding: 15px 10px;
    }
    .stack-icon {
        width: 50px;
        height: 50px;
    }
    
    /* Títulos muito pequenos */
    .section-title {
        font-size: 2rem;
    }
    
    /* Botões muito pequenos */
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Popup muito pequeno */
    .popup-overlay {
        padding: 10px;
    }
    .popup-content {
        padding: 15px 20px;
        margin: 5px;
    }
    .close-popup-btn {
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }
    .popup-info h3 {
        font-size: 1.5rem;
    }
    .popup-info p {
        font-size: 1rem;
    }
    
    /* Container global menor */
    .container {
        padding: 0 15px;
    }
    
    /* Seções com padding menor */
    .about, .projects, .stacks, .contact {
        padding: 60px 0;
    }
    
    /* Scroll indicator escondido */
    .hero-scroll {
        display: none;
    }
}

/* ... (código anterior) ... */

@media (max-width: 768px) {
    /* ... (outras regras) ... */

    /* Garante que a imagem diminua */
    .image-frame {
        width: 200px !important;
        height: 200px !important;
    }

    .hero-image {
        display: flex;
        justify-content: center;
        margin-top: 20px;
    }

    /* ... (outras regras) ... */
}

@media (max-width: 480px) {
    /* ... (outras regras) ... */

    /* Garante que a imagem fique ainda menor em celulares */
    .image-frame {
        width: 150px !important;
        height: 150px !important;
    }

    /* ... (outras regras) ... */
}

/* ... (restante do código) ... */


/* ... (código existente antes das media queries) ... */

/* ========== APENAS CORREÇÕES DE RESPONSIVIDADE ========== */

@media (max-width: 768px) {
    /* ... (outras regras existentes para 768px) ... */
    
    /* Remove a imagem da seção hero em telas menores que 768px */
    .hero-image {
        display: none;
    }
    
    /* Ajusta o conteúdo do texto para ocupar todo o espaço */
    .hero-content {
        grid-template-columns: 1fr; /* Garante que o texto ocupe uma coluna completa */
        text-align: center;
        gap: 40px;
        place-items: center; 
    }

    /* ... (remova as regras .image-frame e .profile-image que estavam aqui para o hero,
           já que a imagem não será exibida) ... */
}

@media (max-width: 480px) {
    /* ... (outras regras existentes para 480px, que agora também aplicarão a remoção da imagem) ... */
    
    /* A regra de display: none; do 768px já é suficiente,
       mas você pode repetir aqui se quiser ser explícito, embora não seja estritamente necessário */
    .hero-image {
        display: none;
    }

    /* ... (remova as regras .image-frame e .profile-image que estavam aqui para o hero,
           já que a imagem não será exibida) ... */
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* A regra mais importante: esconde o scroll horizontal */
}

