* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

:root {
    --primary-gray: #1a1a1a;
    --secondary-gray: #2d2d2d;
    --light-gray: #4a4a4a;
    --cyan: #00ffff;
    --cyan-dark: #00cccc;
    --cyan-light: #33ffff;
    --white: #ffffff;
    --text-gray: #e0e0e0;
    --bg-overlay: rgba(0, 0, 0, 0.7);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #000;
    background-image: url('Imgs/Fundo.svg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--white);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('Imgs/Fundo.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    z-index: -2;
    opacity: 0;
    animation: fadeInBackground 0.5s ease-in forwards;
}

@keyframes fadeInBackground {
    to {
        opacity: 1;
    }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: -1;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    padding: 1rem 2rem;
    z-index: 1000;
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
    color: var(--white);
}

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

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 400;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-menu a:hover {
    color: var(--cyan);
}

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

.nav-menu a.active {
    color: var(--cyan);
    font-weight: 600;
}

.nav-menu a.active::after {
    width: 100%;
}


.menu-toggle {
    display: none;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid var(--cyan);
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: rgba(0, 255, 255, 0.2);
}

.menu-icon {
    width: 24px;
    height: 24px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3px;
}

.menu-icon span {
    background: var(--cyan);
    border-radius: 2px;
}


.main-content {
    padding-top: 0;
    margin-top: 0;
    position: relative;
    min-height: 100vh;
}

section[id] {
    display: flex;
    align-items: center;
}

.hero-section {
    min-height: 100vh;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 0 0 0;
    margin: 0;
    margin-bottom: 0;
    position: relative;
}

.hero-section .content-wrapper {
    padding: 2rem 2rem 0 2rem;
    margin: 0 auto;
    margin-bottom: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.subtitle {
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--cyan-light);
    margin-bottom: 2rem;
    opacity: 0.9;
    text-align: center;
}

.main-title {
    font-size: clamp(5.5rem, 16vw, 11rem);
    font-weight: 700;
    line-height: 0.95;
    margin-bottom: 3rem;
    text-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
    background: linear-gradient(135deg, var(--white), var(--cyan-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.description {
    font-size: 1.9rem;
    line-height: 1.8;
    color: var(--text-gray);
    max-width: 850px;
    margin: 0 auto;
    font-weight: 300;
    text-align: center;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--cyan), var(--cyan-dark));
    color: var(--primary-gray);
    border: 2px solid var(--cyan);
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 255, 0.5);
    background: linear-gradient(135deg, var(--cyan-light), var(--cyan));
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--cyan);
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(0, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 255, 0.4);
}

.about-section {
    padding: 0 0 2rem 0;
    background: transparent;
    margin: 0;
    margin-top: 0;
}

.about-section .content-wrapper {
    padding-top: 0;
}

.hero-section + .about-section {
    margin-top: 0;
    padding-top: 0;
}

.hero-section + .about-section .section-title {
    margin-top: 0;
    padding-top: 0;
}

.services-section,
.contact-section {
    padding: 2rem 0;
    background: transparent;
    margin: 0;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--white);
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.about-content {
    display: flex;
    align-items: stretch;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-image {
    flex: 0 0 50%;
    max-width: 50%;
    display: flex;
    align-items: stretch;
}

.about-image img {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.2);
    filter: brightness(0.6) contrast(1.1);
}

.about-text-wrapper {
    flex: 0 0 50%;
    max-width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.about-text {
    font-size: 1.3rem;
    line-height: 1.7;
    color: var(--text-gray);
    margin-bottom: 1.2rem;
    text-align: justify;
    letter-spacing: normal;
    word-spacing: normal;
}

.about-text strong {
    color: var(--cyan);
    font-weight: 600;
}


.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    background: rgba(26, 26, 26, 0.3);
    backdrop-filter: blur(5px);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    border: 2px solid rgba(0, 255, 255, 0.15);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--cyan);
    box-shadow: 0 15px 40px rgba(0, 255, 255, 0.4);
    background: rgba(26, 26, 26, 0.5);
}

.service-icon {
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.6));
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon img {
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: var(--cyan);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.service-card p {
    color: var(--text-gray);
    line-height: 1.8;
    font-size: 1rem;
    font-weight: 300;
}


.contact-section {
    text-align: center;
}

.contact-text {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.contact-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.quote-section {
    text-align: center;
    margin-top: 2rem;
}

.quote-label {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
    font-weight: 400;
}


.footer {
    background: transparent;
    padding: 2rem;
    text-align: center;
}

.footer-content p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 1rem;
}

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

.modal-container {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: none;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    padding: 0;
    pointer-events: auto;
    flex-shrink: 0;
}


.modal-close:hover {
    opacity: 0.7;
}

.modal-close i,
.modal-close svg {
    width: 36px;
    height: 36px;
    color: var(--cyan) !important;
    stroke: var(--cyan) !important;
    fill: none !important;
}

.modal-close svg path {
    stroke: var(--cyan) !important;
}

.modal-content {
    padding: 2.5rem;
    max-height: 90vh;
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.modal-content::-webkit-scrollbar {
    display: none;
}

.modal-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
    text-align: center;
}

.modal-subtitle {
    font-size: 1rem;
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 2rem;
}

.quote-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.required {
    color: var(--cyan);
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(26, 26, 26, 0.8);
    border: 2px solid rgba(0, 255, 255, 0.2);
    border-radius: 10px;
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    background: rgba(26, 26, 26, 0.9);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(224, 224, 224, 0.5);
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background: var(--primary-gray);
    color: var(--white);
    padding: 0.5rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.btn-submit {
    width: 100%;
    margin-top: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, var(--cyan), var(--cyan-dark));
    color: var(--primary-gray);
    border: 2px solid var(--cyan);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--cyan-light), var(--cyan));
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(0, 255, 0, 0.1);
    border: 2px solid rgba(0, 255, 0, 0.3);
    color: #00ff00;
}

.form-message.error {
    display: block;
    background: rgba(255, 0, 0, 0.1);
    border: 2px solid rgba(255, 0, 0, 0.3);
    color: #ff4444;
}



@media (max-width: 768px) {
    .navbar.scrolled {
        background: rgba(26, 26, 26, 0.7);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        pointer-events: none;
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background: transparent;
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: left 0.3s ease;
        padding-top: 80px;
        padding-bottom: 2rem;
        gap: 1.5rem;
        z-index: 1000;
        overflow-y: auto;
        overflow-x: hidden;
        justify-content: flex-start;
        align-items: center;
        scroll-behavior: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .nav-menu li:first-child {
        margin-top: 0;
    }

    .menu-toggle {
        display: block;
    }

    section[id] {
        align-items: flex-start;
    }

    .hero-section {
        align-items: center !important;
        justify-content: center !important;
        padding: 2rem 0 0 0 !important;
        min-height: 100vh;
        display: flex !important;
        margin: 0 !important;
        margin-bottom: 0 !important;
    }

    .main-content {
        min-height: auto;
    }

    .hero-section .content-wrapper {
        padding: 1rem 1rem 0 1rem !important;
        margin-bottom: 0 !important;
    }

    .about-section {
        padding: 0 0 1rem 0 !important;
        margin: 0 !important;
        margin-top: 0 !important;
    }

    .about-section .content-wrapper {
        padding: 0 1rem 1rem 1rem !important;
        margin-top: 0 !important;
    }

    
    .hero-section + .about-section {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .hero-section + .about-section .section-title {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .services-section,
    .contact-section {
        padding: 1rem 0;
        margin: 0;
    }

    .section-title {
        margin-bottom: 1.5rem;
        font-size: clamp(2rem, 6vw, 2.5rem);
    }

    .main-title {
        font-size: 4rem;
        margin-bottom: 1.5rem;
    }

    .subtitle {
        margin-bottom: 1rem;
        font-size: 1.1rem;
    }

    .description {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .about-text {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .about-content {
        flex-direction: column;
        gap: 1rem;
    }

    .about-text {
        text-align: left;
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .about-text:last-child {
        margin-bottom: 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .service-card {
        padding: 1.5rem 1rem;
        margin-bottom: 0;
    }

    .service-icon {
        margin-bottom: 1rem;
    }

    .service-card h3 {
        margin-bottom: 0.75rem;
        font-size: 1.1rem;
    }

    .contact-text {
        margin-bottom: 1rem;
        font-size: 1rem;
    }

    .contact-buttons {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .quote-section {
        margin-top: 1.5rem;
    }

    .quote-label {
        font-size: 1rem;
        margin-bottom: 0.875rem;
    }

    .btn {
        padding: 0.875rem 2rem;
        font-size: 0.95rem;
    }

    .about-image {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .about-text-wrapper {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .footer {
        padding: 1rem;
    }

    .modal-container {
        max-width: 100%;
        margin: 0;
        border-radius: 15px;
    }

    .modal-content {
        padding: 2rem 1.5rem;
    }

    .modal-title {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    .modal-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .quote-form {
        gap: 1.25rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.75rem;
        font-size: 0.95rem;
    }

    .btn-submit {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .modal-close {
        width: 45px;
        height: 45px;
        top: 12px;
        right: 12px;
        position: absolute;
    }

    .modal-close i,
    .modal-close svg {
        width: 32px;
        height: 32px;
        color: var(--cyan) !important;
        stroke: var(--cyan) !important;
        fill: none !important;
    }

    .modal-close svg path {
        stroke: var(--cyan) !important;
    }
}
