/* ========================================
   MDNet - Estilos da Página Principal
   Arquivo: index-styles.css
   ======================================== */

/* ========== VARIÁVEIS CSS ========== */
:root {
    --mdnet-primary: #1e3a8a;
    --mdnet-secondary: #3b82f6;
    --mdnet-accent: #0ea5e9;
    --mdnet-dark: #1e293b;
    --mdnet-light: #f1f5f9;
    --mdnet-gray: #64748b;
}

/* ========== RESET E BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    padding-top: 80px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
}

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

/* ========== HEADER RESPONSIVO ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, var(--mdnet-primary) 0%, var(--mdnet-secondary) 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 0;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
}

/* Logo e Nome da Empresa */
.header-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.header-logo {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.05);
}

.header-company-name {
    color: white;
    font-size: 1.5em;
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
}

/* Menu de Navegação */
.header-nav {
    display: flex;
    align-items: center;
    gap: 0;
}

.header-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.header-menu li {
    margin: 0;
}

.header-menu a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    font-weight: 500;
    font-size: 0.95em;
    transition: all 0.3s ease;
    border-radius: 8px;
    position: relative;
}

.header-menu a::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: white;
    transition: transform 0.3s ease;
}

.header-menu a:hover {
    background: rgba(255,255,255,0.1);
}

.header-menu a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.header-menu a.active {
    background: rgba(255,255,255,0.2);
}

/* Botão Login Destacado */
.header-menu a.btn-login {
    background: white;
    color: var(--mdnet-primary);
    font-weight: 600;
    border-radius: 50px;
    padding: 12px 30px;
}

.header-menu a.btn-login::after {
    display: none;
}

.header-menu a.btn-login:hover {
    background: var(--mdnet-accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Menu Hamburguer */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Animação do Hamburguer quando ativo */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

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

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

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* ========== SLIDESHOW HERO ========== */
.hero-slideshow {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    border-radius: 0;
    margin-bottom: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Overlay gradiente sobre as imagens */
.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30,58,138,0.7) 0%, rgba(59,130,246,0.6) 100%);
    z-index: 1;
}

/* Conteúdo sobre o slide */
.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    width: 90%;
    max-width: 800px;
}

.slide-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 30px;
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.5));
    animation: fadeInDown 1s ease-out;
}

.slide-title {
    font-size: 3.5em;
    margin: 20px 0;
    text-shadow: 3px 3px 8px rgba(0,0,0,0.5);
    font-weight: 700;
    letter-spacing: 2px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.slide-subtitle {
    font-size: 1.5em;
    opacity: 0.95;
    margin-bottom: 30px;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out 0.4s both;
}

.slide-description {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 35px;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* Navegação do slideshow */
.slide-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.slide-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.slide-dot:hover {
    background: rgba(255,255,255,0.8);
    transform: scale(1.2);
}

.slide-dot.active {
    background: white;
    width: 40px;
    border-radius: 7px;
}

/* Setas de navegação */
.slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.3);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5em;
    z-index: 3;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-arrow:hover {
    background: rgba(255,255,255,0.5);
    transform: translateY(-50%) scale(1.1);
}

.slide-arrow.prev {
    left: 20px;
}

.slide-arrow.next {
    right: 20px;
}

/* ========== ANIMAÇÕES ========== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* ========== FEATURE CARDS ========== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.feature-card {
    background: white;
    padding: 35px 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-top: 5px solid var(--mdnet-secondary);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--mdnet-secondary), var(--mdnet-accent));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(30,58,138,0.2);
}

.feature-icon {
    font-size: 3.5em;
    margin-bottom: 20px;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

.feature-card:nth-child(1) .feature-icon { animation-delay: 0s; }
.feature-card:nth-child(2) .feature-icon { animation-delay: 0.5s; }
.feature-card:nth-child(3) .feature-icon { animation-delay: 1s; }

.feature-title {
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.feature-desc {
    color: #666;
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 1.05em;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
}

.feature-list li {
    padding: 8px 0 8px 30px;
    position: relative;
    color: #555;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
    font-size: 1.2em;
}

/* ========== BOTÕES ========== */
.btn-access {
    background: linear-gradient(135deg, var(--mdnet-secondary) 0%, var(--mdnet-primary) 100%);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30,58,138,0.3);
}

.btn-access:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(30,58,138,0.4);
    text-decoration: none;
    color: white;
}

/* ========== ESTATÍSTICAS ========== */
.stats-section {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin: 50px 0;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 15px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    min-width: 150px;
}

.stat-number {
    font-size: 3em;
    font-weight: bold;
    background: linear-gradient(135deg, var(--mdnet-primary) 0%, var(--mdnet-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: #666;
    font-size: 1em;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========== INFO SECTIONS ========== */
.info-section {
    background: linear-gradient(135deg, var(--mdnet-light) 0%, #e0e7ff 100%);
    padding: 30px;
    border-radius: 15px;
    margin: 40px 0;
    border-left: 5px solid var(--mdnet-secondary);
}

.info-section h3 {
    color: var(--mdnet-primary);
    margin-bottom: 20px;
    font-size: 1.8em;
}

/* ========== TECNOLOGIAS ========== */
.tech-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px 0;
}

.tech-badges .logo_bancos {
    width: 90px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tech-badges .logo_bancos img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.tech-badges .logo_bancos:hover {
    transform: scale(1.07);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}


.badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.badge.php { border-left: 4px solid #777BB3; }
.badge.mysql { border-left: 4px solid #4479A1; }
.badge.js { border-left: 4px solid #F7DF1E; color: #000; }
.badge.css { border-left: 4px solid #1572B6; }

/* ========== SCREENSHOT CARDS ========== */
.screenshot-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(30,58,138,0.2) !important;
}

.screenshot-card img {
    transition: transform 0.3s ease;
}

.screenshot-card:hover img {
    transform: scale(1.05);
}

/* ========== FOOTER ========== */
footer {
    margin-top: 0;
    padding: 40px 20px 30px;
    background: linear-gradient(135deg, var(--mdnet-dark) 0%, var(--mdnet-primary) 100%);
    color: white;
    border-radius: 0;
    text-align: center;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

footer a {
    color: var(--mdnet-accent);
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: #38bdf8;
}

.contact-info {
    margin: 25px 0;
    padding: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

.contact-info p {
    margin: 8px 0;
    font-size: 0.95em;
}

.footer-map {
    width: 100%;
    height: 350px;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* ========== RESPONSIVO ========== */

/* Tablets */
@media (max-width: 992px) {
    .header-menu a {
        padding: 12px 15px;
        font-size: 0.9em;
    }
    
    .header-company-name {
        font-size: 1.3em;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .header-container {
        padding: 12px 20px;
    }
    
    .header-logo {
        height: 40px;
    }
    
    .header-company-name {
        font-size: 1.2em;
    }
    
    .hamburger {
        display: flex;
    }
    
    .header-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(180deg, var(--mdnet-primary) 0%, var(--mdnet-dark) 100%);
        padding: 80px 0 30px;
        transition: right 0.4s ease;
        z-index: 999;
        box-shadow: -5px 0 15px rgba(0,0,0,0.3);
        overflow-y: auto;
    }
    
    .header-nav.active {
        right: 0;
    }
    
    .header-menu {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    
    .header-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .header-menu a {
        padding: 18px 30px;
        border-radius: 0;
        font-size: 1.1em;
    }
    
    .header-menu a::after {
        display: none;
    }
    
    .header-menu a.btn-login {
        background: var(--mdnet-accent);
        color: white;
        margin: 20px 20px 0;
        border-radius: 50px;
        text-align: center;
    }
    
    .hero-slideshow {
        height: 450px;
    }
    
    .slide-title {
        font-size: 2em;
    }
    
    .slide-subtitle {
        font-size: 1.1em;
    }
    
    .slide-description {
        font-size: 0.95em;
    }
    
    .slide-logo {
        max-width: 150px;
    }
    
    .slide-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2em;
    }
    
    .slide-arrow.prev {
        left: 10px;
    }
    
    .slide-arrow.next {
        right: 10px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2.5em;
    }
    
    .footer-container {
        padding: 0 20px;
    }
    
    .footer-map {
        height: 250px;
    }
}

/* Mobile pequeno */
@media (max-width: 480px) {
    .header-company-name {
        font-size: 1em;
    }
    
    .slide-title {
        font-size: 1.5em;
    }
    
    .slide-subtitle {
        font-size: 1em;
    }
}
