@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono:wght@400&family=Orbitron:wght@400;700;900&display=swap');

body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Orbitron', 'Share Tech Mono', monospace;
    overflow-x: hidden; /* Previne scroll horizontal */
}

.hero-section {
    position: relative;
    z-index: 1;
    height: 100vh;
    min-height: 600px;
}

.background {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    height: 70px;
    display: flex;  
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,0.0);
    color: #fff;
    padding: 0 190px;
    z-index: 2;
}

/* Mobile header */
@media (max-width: 768px) {
    header {
        padding: 0 20px;
        height: 60px;
    }
    
    .header-left {
        font-size: 1rem;
    }
    
    .header-right {
        gap: 20px;
    }
    
    .header-right a {
        font-size: 0.9rem;
    }
    
    /* Trocar imagem de fundo para mobile */
    .background {
        content: url('eumobile.png');
    }
}
.header-left {
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 2px;
}
.header-right {
    display: flex;
    gap: 50px;
}
.header-right a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.2s;
}
.header-right a:hover {
    color: #ffd700;
}
.main-text1 {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 1.7rem;
    font-weight: bold;
    text-align: center;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    z-index: 1;
}

.main-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    z-index: 1;
}

/* Mobile hero text */
@media (max-width: 768px) {
    .main-text1 {
        font-size: 1.2rem;
        padding: 0 10px;
        top: 42%;
        width: 95%;
    }
    
    .main-text {
        font-size: 1rem;
        padding: 0 10px;
        top: 48%;
        width: 95%;
    }
}

.cards-section h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.card {
    background: rgba(255,255,255,0.08);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.2);
    padding: 32px 24px;
    color: #fff;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 300px; /* Altura fixa para todos os cards */
}

/* Cards maiores da primeira linha - cada um ocupa 1 coluna */
.card:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}

.card:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

/* Cards menores da segunda linha - usando subgrid para 3 colunas */
.card:nth-child(3) {
    grid-column: 1;
    grid-row: 2;
    width: calc(33% - 7px);
    justify-self: start;
}

.card:nth-child(4) {
    grid-column: 1/3;
    grid-row: 2;
    width: calc(33.33% - 7px);
    justify-self: center;
}

.card:nth-child(5) {
    grid-column: 2;
    grid-row: 2;
    width: calc(33% - 7px);
    justify-self: end;
}



.cards-section {
    z-index: 3;
    position: relative;
    margin: 0px;
    padding: 40px 0px;
    background: #001402;
    text-align: center;
    overflow: hidden;
}

/* Mobile cards section */
@media (max-width: 768px) {
    .cards-section {
        padding: 40px 20px;
    }
    
    .cards-section h2 {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }
}

.card-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.card:hover {
    transform: translateY(-12px) scale(1.04);
    box-shadow: 0 8px 32px rgba(0,0,0,0.35);
    background: rgba(255,255,255,0.18);
}
.card h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.3rem;
}
.card p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.85;
}
.footer-modern {
    width: 100%;
    background: linear-gradient(135deg, #061402 0%, #001202 100%);
    text-align: center;
    padding: 38px 0;
    font-family: 'Share Tech Mono', monospace;
    border-top: 2px solid #0B2E16;
    box-shadow: 0 -10px 30px rgba(0, 255, 65, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0px;
}

/* Mobile footer */
@media (max-width: 768px) {

    .footer-modern {
        padding: 30px 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-right {
        justify-content: center;
        gap: 20px;
    }
}
.footer-left {
    font-family: 'Orbitron', monospace;
    font-size: 0.85rem;
    color: #fff;
    letter-spacing: 2px;
    opacity: 1;
}
.footer-right {
    display: flex;
    gap: 28px;
}
.footer-icon img {
    width: 18px;
    width: 18px;
    height: 18px;
    filter: grayscale(1) brightness(0.7) sepia(1) hue-rotate(70deg) saturate(6) contrast(1.2);
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
    filter: grayscale(0) brightness(1.2) sepia(1) hue-rotate(70deg) saturate(8) contrast(1.5) drop-shadow(0 0 6px #00ff41);
    transform: scale(1.18) translateY(-2px);
    box-shadow: 0 0 12px #00ff41;
}
.footer-icon svg {
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}
.footer-icon:hover svg {
  filter: brightness(1.08);
  transform: scale(1.06) translateY(-1px);
  box-shadow: none;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-link {
    color: #00ff41;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 2px;
    padding: 12px 24px;
    border: 1px solid #00ff41;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(0, 255, 65, 0.05);
}

.contact-link:hover {
    background: rgba(0, 255, 65, 0.15);
    box-shadow: 0 0 15px #00ff41;
    transform: translateY(-3px);
}

.about-section {    
    margin: 0px;
    padding: 300px 0px 40px 0px;
    color: #fff;
    text-align: center;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        #051604 18%,
        #001402 100%
    );
    position: relative;
    z-index: 2;
    margin-top: -200px; /* Sobe a section, sobrepondo a hero */
}

.eu-imagem-quadrada {
    width: 520px;
    height: 520px;
    border-radius: 16px;
    object-fit: cover;
    border: 4px solid #00ff41;
    box-shadow: 0 0 12px rgba(0, 255, 65, 0.5);
    z-index: 3;
}

.texto-about-section {
    font-size: 1.4rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
    color: #fff;
    font-family: 'Share Tech Mono', monospace;
}

/* Mobile about section */
@media (max-width: 768px) {
    .about-section {
        padding: 100px 20px 40px 20px;
        margin-top: -165px;
        z-index: 4;
    }
    
    .eu-imagem-quadrada {
        width: 250px;
        height: 250px;
        margin-top: 20px;
    }
    
    .texto-about-section {
        font-size: 1rem;
        max-width: 100%;
        margin-bottom: 30px;
        text-align: center;
    }
    
    .about-section .flex {
        flex-direction: column;
        gap: 20px;
    }
    
    .about-section h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    /* Ajustes específicos para o layout mobile */
    .flex-1 {
        width: 100%;
    }
}

/* Tablet styles (iPad, etc.) */
@media (min-width: 769px) and (max-width: 1024px) {
    header {
        padding: 0 40px;
    }
    
    .main-text1 {
        font-size: 1.5rem;
        padding: 0 40px;
    }
    
    .main-text {
        font-size: 1.3rem;
        padding: 0 40px;
    }
    
    .about-section {
        padding: 200px 40px 40px 40px;
        margin-top: -100px;
    }
    
    .eu-imagem-quadrada {
        width: 350px;
        height: 350px;
    }
    
    .texto-about-section {
        font-size: 1.2rem;
    }
    
    .cards-section {
        padding: 40px 40px;
    }
    
    .footer-modern {
        padding: 35px 40px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .header-left {
        font-size: 0.9rem;
    }
    
    .header-right {
        gap: 15px;
    }
    
    .header-right a {
        font-size: 0.8rem;
    }
    
    .main-text1 {
        font-size: 1rem;
        padding: 0 10px;
        width: 98%;
        top: 42%;
    }
    
    .main-text {
        font-size: 1.1rem;
        padding: 0 10px;
        width: 98%;
        top: 47%;
    }
    
    .about-section {
        padding: 80px 15px 30px 15px;
    }
    
    .eu-imagem-quadrada {
        width: 200px;
        height: 200px;
    }
    
    .texto-about-section {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .about-section h2 {
        font-size: 1.5rem;
    }
    
    .cards-section {
        padding: 30px 15px;
    }
    
    .cards-section h2 {
        font-size: 1.3rem;
    }
    
    .footer-modern {
        padding: 25px 15px;
    }
    
    .footer-right {
        gap: 15px;
    }
}