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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: #1a1a1a;
}

/* Buttons - Unified and improved */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1.4;
}

.btn-primary {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #dc2626;
    border: 2px solid #dc2626;
}

.btn-outline:hover {
    background: #dc2626;
    color: white;
    transform: translateY(-2px);
}

/* Buttons for hero section */
.hero .btn-primary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: none;
}

.hero .btn-primary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: white;
    transform: translateY(-2px);
    box-shadow: none;
}

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

.hero .btn-outline:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: white;
    transform: translateY(-2px);
}

.btn-service {
    background: #f8fafc;
    color: #dc2626;
    border: 1px solid #e2e8f0;
    font-size: 13px;
    padding: 10px 20px;
}

.btn-service:hover {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
}

.btn-form {
    width: 100%;
    padding: 15px;
    font-size: 16px;
}

/* Specific buttons for engineers page */
.btn-download {
    background: #f8fafc;
    color: #374151;
    border: 1px solid #e5e7eb;
    font-size: 13px;
    padding: 8px 16px;
    margin-right: 10px;
    margin-bottom: 8px;
}

.btn-download:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.btn-small {
    margin: 0; 
    font-size: 12px;
}

.btn-course {
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
    padding: 14px 28px;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.btn-course:hover {
    background: linear-gradient(135deg, #047857, #065f46);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
    transform: translateY(-2px);
}

/* Success Message Styles */
.success-message {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
    display: none;
    animation: slideInFromTop 0.5s ease-out;
}

.success-message.show {
    display: block;
}

.success-message i {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

.success-message h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: white;
}

.success-message p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 0;
}

@keyframes slideInFromTop {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0;
    border-bottom: 3px solid #dc2626;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo-img {
    height: 70px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #4a5568;
    border-radius: 2px;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background-image: linear-gradient(135deg, rgba(255, 240, 240, 0.06), rgba(255, 245, 245, 0.1)), url('img/background-nakaya.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

/* For engineers page hero - smaller height */
.hero.hero-engineers {
    min-height: 70vh;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(220, 38, 38, 0.7) 0%,
        rgba(185, 28, 28, 0.8) 50%,
        rgba(153, 27, 27, 0.9) 100%
    );
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1400 900"><g opacity="0.1"><polygon points="150,50 220,90 220,170 150,210 80,170 80,90" fill="%23ffffff"/><polygon points="800,120 900,180 900,300 800,360 700,300 700,180" fill="%23ffffff"/><polygon points="1200,200 1280,250 1280,350 1200,400 1120,350 1120,250" fill="%23ffffff"/><polygon points="400,80 550,320 250,320" fill="%23ffffff" opacity="0.05"/><polygon points="1000,400 1150,650 850,650" fill="%23ffffff" opacity="0.05"/></g></svg>');
    background-size: 1400px 900px;
    animation: geometricFloat 25s ease-in-out infinite;
    z-index: 1;
}

@keyframes geometricFloat {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg); 
    }
    25% { 
        transform: translate(-20px, -10px) rotate(0.5deg); 
    }
    50% { 
        transform: translate(-10px, -20px) rotate(-0.3deg); 
    }
    75% { 
        transform: translate(15px, -15px) rotate(0.4deg); 
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 600px;
    text-align: center;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-bottom: 24px;
    font-weight: 500;
    opacity: 0.95;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.6);
}

.hero-description {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 32px;
    opacity: 0.9;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

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

/* Section Styling */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 16px;
    color: #1a1a1a;
}

.section-subtitle {
    font-size: 18px;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    background: #f8fafc;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border-radius: 12px 12px 0 0;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(220, 38, 38, 0.2);
}

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

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
}

.service-icon i {
    font-size: 32px;
    color: white;
}

.service-title {
    font-size: 20px;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.service-description {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 24px;
    font-size: 14px;
}

/* Courses Section */
.courses {
    background: #f8fafc;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.course-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #059669;
    transition: all 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.course-title {
    font-size: 18px;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.course-description {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Documentation Section */
.documentation {
    background: #fff;
}

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

.doc-section {
    background: #f8fafc;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.doc-title {
    font-size: 22px;
    color: #1a1a1a;
    margin-bottom: 20px;
    border-bottom: 2px solid #dc2626;
    padding-bottom: 10px;
}

.doc-subtitle-small {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 15px;
}

.doc-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.doc-item:last-child {
    border-bottom: none;
}

.doc-name {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

.doc-buttons {
    display: flex;
    gap: 8px;
}

.it-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.it-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px 10px;
    text-align: center;
    transition: all 0.2s ease;
}

.it-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.it-number {
    font-size: 16px;
    font-weight: 600;
    color: #dc2626;
    margin-bottom: 8px;
}

/* Contact Section */
.contact {
    background: #f8fafc;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
    align-items: flex-start;
}

.contact-form-container {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 15px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    color: #333;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.contact-info {
    display: flex;
    flex-direction: column; /* Changed to column for stacking */
    gap: 25px;
    padding: 20px;
    background: #f1f5f9;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-icon {
    width: 45px;
    height: 45px;
    min-width: 45px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.2);
}

.contact-details h4 {
    font-size: 16px;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.contact-details p,
.contact-details a {
    font-size: 14px;
    color: #6b7280;
    text-decoration: none;
    line-height: 1.5;
}

.contact-details a:hover {
    color: #dc2626;
}

/* About Section */
.sobre {
    background: #fff;
}

.sobre-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    margin-top: 40px;
}

.sobre-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 20px;
}

.sobre-buttons {
    margin-top: 30px;
}

/* Clients Section */
.clientes {
    background: #f8fafc;
}

.clientes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.cliente-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;

    display: flex;
    flex-direction: column;
    align-items: center;   /* centraliza horizontal */
    justify-content: center; /* centraliza vertical */
}

.cliente-card img {
    max-width: 100%;
    height: auto;
    display: block;
}


.cliente-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.cliente-logo {
    max-width: 100px;
    height: auto;
    filter: grayscale(50%);
    transition: filter 0.3s ease;
}

.cliente-card:hover .cliente-logo {
    filter: grayscale(0%);
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: #f8fafc;
    padding: 60px 0 20px;
    font-size: 14px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: white;
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 3px;
    background: #dc2626;
    border-radius: 2px;
}

.footer-section p {
    text-align: left; 
    line-height: 1.8;
    color: #cbd5e1;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #dc2626;
}

.footer-section .fab,
.footer-section .fas {
    margin-right: 10px;
    color: #dc2626;
}

.footer-logo {
  display: block;          /* imagem vira bloco */
  max-width: 150px;        /* limita largura */
  margin: 0 auto 20px;     /* centraliza horizontal + espaçamento inferior */
  filter: brightness(0) invert(1); /* opcional se precisar da logo branca */
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #2d3748;
    padding-top: 20px;
    margin-top: 20px;
    color: #a0aec0;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float i::before {
  display: inline-block;
  vertical-align: middle;
}


.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.05);
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 110px; /* Adjust based on whatsapp button */
    right: 40px;
    background-color: #dc2626;
    color: #FFF;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: #b91c1c;
    transform: scale(1.05);
}

/* IT Menu Styles */
.it-menu-toggle {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #374151;
}

.it-menu-toggle:hover {
    background: #e5e7eb;
    border-color: #dc2626;
}

.it-menu-toggle span {
    font-size: 16px;
}

.it-menu-toggle i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.it-menu-toggle.active i {
    transform: rotate(180deg);
}

.it-menu-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.it-menu-content.active {
    max-height: 1000px; /* Adjust based on content */
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 20px;
    }

    .nav-link {
        padding: 6px 12px;
    }

    .hero-title {
        font-size: clamp(2rem, 6vw, 3.5rem);
    }

    .hero-subtitle {
        font-size: clamp(1rem, 3.5vw, 1.3rem);
    }

    .services-grid,
    .courses-grid,
    .clientes-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-form-container,
    .contact-info {
        padding: 30px;
    }

    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .whatsapp-float,
    .scroll-top {
        bottom: 20px;
        right: 20px;
    }

    .scroll-top {
        bottom: 90px; /* Adjust for smaller screens */
    }
}

@media (max-width: 768px) {
    .header {
        padding: 10px 0;
    }

    .nav-wrapper {
        padding: 10px 20px;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 90px; /* Height of header */
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #eee;
        padding: 20px 0;
        z-index: 999;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .nav-link {
        display: block;
        padding: 12px 0;
        border-radius: 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero {
        min-height: 80vh;
        padding-top: 100px;
    }

    .hero-engineers {
        min-height: 60vh;
    }

    .hero-content {
        max-width: 90%;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-title {
        font-size: clamp(1.8rem, 5vw, 2.2rem);
    }

    .section-subtitle {
        font-size: 16px;
    }

    .services-grid,
    .courses-grid,
    .clientes-grid {
        grid-template-columns: 1fr;
    }

    .service-card,
    .course-card,
    .cliente-card {
        padding: 25px;
    }

    .doc-grid {
        grid-template-columns: 1fr;
    }

    .doc-section {
        padding: 25px;
    }

    .it-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }

    .contact-form-container,
    .contact-info {
        padding: 25px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .whatsapp-float,
    .scroll-top {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 15px;
        right: 15px;
    }

    .scroll-top {
        bottom: 80px; /* Adjust for smaller screens */
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn-form {
        font-size: 14px;
        padding: 12px;
    }

    .contact-form-container,
    .contact-info {
        padding: 20px;
    }

    .it-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    }

    .whatsapp-float,
    .scroll-top {
        width: 45px;
        height: 45px;
        font-size: 22px;
        bottom: 10px;
        right: 10px;
    }

    .scroll-top {
        bottom: 70px; /* Adjust for smaller screens */
    }
}


