/* Variáveis e Reset */
:root {
    --bg-color: #081b29;
    --second-bg-color: #112e42;
    --text-color: #ededed;
    --main-color: #FF073A;
    --hover-color: #FF2957;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Arial', sans-serif;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

/* Header e Navegação */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: rgba(0, 0, 0, .1);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    position: relative;
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 600;
    cursor: pointer;
    transition: .3s;
}

.logo:hover {
    transform: scale(1.1);
}

.logo span {
    color: var(--main-color);
}

.navbar a {
    position: relative;
    font-size: 1.7rem;
    color: var(--text-color);
    font-weight: 500;
    margin-left: 3.5rem;
    transition: .3s;
}

.navbar a::before {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--main-color);
    transition: .3s;
}

.navbar a:hover::before,
.navbar a.active::before {
    width: 100%;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
}

.menu-btn {
    font-size: 3.6rem;
    color: var(--text-color);
    cursor: pointer;
    display: none;
}

/* Seção Home - Layout e Espaçamento */
.home {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 70px 10% 0;
}

.home-content {
    max-width: 600px;
    display: flex;
    flex-direction: column;
}

.home-content h1 {
    font-size: 5.6rem;
    font-weight: 700;
    margin: -3px 0;
}

.home-content h3 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.home-content h3:nth-of-type(2) {
    margin-bottom: 30px;
}

.home-content p {
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1.8;
    margin: 2rem 0;
}

/* Botões e Links */
.btn-group {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
}

.btn {
    display: inline-block;
    padding: 1.2rem 2.8rem;
    background: var(--main-color);
    border: .2rem solid transparent;
    border-radius: .8rem;
    font-size: 1.6rem;
    color: var(--bg-color);
    font-weight: 600;
    letter-spacing: .1rem;
    transition: .5s;
}

.btn:hover {
    background: transparent;
    color: var(--main-color);
    border-color: var(--main-color);
    transform: scale(1.1);
    box-shadow: 0 0 50px var(--main-color);
}

/* Segundo botão com estilo diferente */
.btn-group .btn:nth-of-type(2) {
    background: var(--bg-color);
    color: var(--main-color);
    border: .2rem solid var(--main-color);
}

.btn-group .btn:nth-of-type(2):hover {
    background: var(--main-color);
    color: var(--bg-color);
}

/* Imagem Home */
.home-img {
    position: relative;
    width: 52vw;
    height: 52vw;
    max-width: 450px;
    max-height: 450px;
}

.home-img .glowing-circle {
    position: relative;
    width: 100%;
    height: 100%;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 5px var(--main-color);
    transition: .5s;
}

.home-img .glowing-circle:hover {
    box-shadow: 0 0 20px var(--main-color),
                0 0 60px var(--main-color),
                0 0 120px var(--main-color);
}

.glowing-circle::after {
    content: '';
    position: absolute;
    width: 92%;
    height: 92%;
    background: var(--bg-color);
    border-radius: 50%;
}

.glowing-circle .image {
    position: relative;
    width: 92%;
    height: 92%;
    border-radius: 50%;
    z-index: 1;
    overflow: hidden;
}

.image img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    object-fit: cover;
    transition: .5s;
}

/* Estilos do Menu Responsivo */
@media (max-width: 991px) {
    .header {
        padding: 2rem 4%;
    }

    section {
        padding: 10rem 4% 2rem;
    }

    .home {
        padding: 0 4%;
    }

    .footer {
        padding: 2rem 4%;
    }
}

@media (max-width: 768px) {
    .header {
        background: var(--bg-color);
    }

    .menu-btn {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: -100%;
        width: 100%;
        padding: 1rem 4%;
        background: var(--bg-color);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2);
        transition: .25s ease;
        transition-delay: .25s;
    }

    .navbar.active {
        left: 0;
        transition-delay: 0s;
    }

    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }
}

@media (max-width: 520px) {
    html {
        font-size: 50%;
    }

    .home-content h1 {
        display: flex;
        flex-direction: column;
    }

    .social-media a {
        width: 3.8rem;
        height: 3.8rem;
    }
}

@media (max-width: 462px) {
    .home-content h1 {
        font-size: 5.2rem;
    }

    .home {
        justify-content: center;
    }

    .home-img {
        display: none;
    }

    .footer {
        flex-direction: column-reverse;
    }

    .footer p {
        margin-top: 2rem;
        text-align: center;
    }
}

.header.sticky {
    background: var(--bg-color);
    box-shadow: 0 .1rem 1rem rgba(0, 0, 0, .2);
}

.menu-btn i {
    font-size: 3.6rem;
    color: var(--text-color);
    transition: .3s;
}

.menu-btn i.bx-x {
    transform: rotate(180deg);
}

/* Ícones Sociais */
.social-media {
    display: flex;
    gap: 2.5rem;
    margin: 3rem 0;
}

.social-media a {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4.5rem;
    height: 4.5rem;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 2.2rem;
    color: var(--main-color);
    transition: .5s;
}

.social-media a:hover {
    background: var(--main-color);
    color: var(--bg-color);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 0 20px var(--main-color);
}

/* Animações */
@keyframes floatImage {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2.4rem);
    }
    100% {
        transform: translateY(0);
    }
}

.home-img {
    animation: floatImage 4s ease-in-out infinite;
}

/* Seção Sobre */
.about {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    background: var(--second-bg-color);
    padding: 6rem 9% 2rem;
}

.about-img {
    position: relative;
    width: 25rem;
    height: 25rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-img img {
    width: 90%;
    border-radius: 50%;
    border: .2rem solid var(--main-color);
    box-shadow: 0 0 2rem var(--main-color);
}

.about-content {
    text-align: left;
    max-width: 50rem;
}

.heading {
    font-size: 4.5rem;
    margin-bottom: 3rem;
    text-align: left;
}

.heading span {
    color: var(--main-color);
}

.about-content h3 {
    font-size: 2.6rem;
    margin: 2rem 0;
}

.about-content p {
    font-size: 1.6rem;
    margin: 2rem 0 3rem;
    line-height: 1.8;
}

/* Ajustes responsivos para a seção Sobre */
@media (max-width: 768px) {
    .about {
        flex-direction: column-reverse;
        text-align: center;
    }

    .about-img {
        width: 70vw;
        height: 70vw;
        margin-top: 4rem;
    }

    .about-content {
        text-align: center;
    }

    .heading {
        text-align: center;
    }
}

@media (max-width: 462px) {
    .about-img {
        width: 90vw;
        height: 90vw;
    }
}

/* Seção Serviços */
.services {
    padding: 6rem 9% 2rem;
    background: var(--second-bg-color);
}

.services h2 {
    margin-bottom: 5rem;
    text-align: center;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 2.5rem;
    padding: 0 1rem;
}

.services-box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background: var(--bg-color);
    border-radius: 2rem;
    border: .2rem solid transparent;
    cursor: pointer;
    transition: all .5s ease;
    max-width: 600px;
    margin: 0 auto;
}

.services-box:hover {
    background: var(--second-bg-color);
    border-color: var(--main-color);
    transform: scale(1.02) translateY(-5px);
    box-shadow: 0 0 2.5rem var(--main-color);
}

.services-box i {
    font-size: 7rem;
    color: var(--main-color);
    margin-bottom: 2rem;
    transition: .5s;
}

.services-box:hover i {
    transform: scale(1.1);
    filter: drop-shadow(0 0 .5rem var(--main-color));
}

.services-box h3 {
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    transition: .5s;
}

.services-box:hover h3 {
    color: var(--main-color);
}

.services-box p {
    font-size: 1.6rem;
    line-height: 1.8;
    text-align: center;
    padding: 0 1rem;
    margin-bottom: 2rem;
}

.services-box .btn {
    margin-top: auto;
}

/* Ajustes responsivos atualizados */
@media (max-width: 1200px) {
    .services-container {
        grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr));
    }
}

@media (max-width: 768px) {
    .services-box {
        padding: 3rem 2rem;
    }

    .services-box h3 {
        font-size: 2.4rem;
    }
}

@media (max-width: 430px) {
    .services-container {
        grid-template-columns: 1fr;
    }

    .services-box {
        max-width: 100%;
    }
}

/* Seção Contato */
.contact {
    min-height: auto;
    padding: 6rem 9% 2rem;
    background: var(--bg-color);
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.contact form {
    max-width: 70rem;
    margin: 0 auto;
    text-align: center;
}

.contact form .input-group {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.contact form .input-field {
    position: relative;
    width: 49%;
    margin: .8rem 0;
}

.contact form .input-field input,
.contact form .textarea-field textarea {
    width: 100%;
    height: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: transparent;
    border-radius: .6rem;
    border: .2rem solid var(--main-color);
}

.contact form .input-field input::placeholder,
.contact form .textarea-field textarea::placeholder {
    color: var(--text-color);
}

.contact form .focus {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--second-bg-color);
    border-radius: .6rem;
    z-index: -1;
    transition: .5s;
}

.contact form .input-field input:focus ~ .focus,
.contact form .input-field input:valid ~ .focus,
.contact form .textarea-field textarea:focus ~ .focus,
.contact form .textarea-field textarea:valid ~ .focus {
    width: 100%;
}

.contact form .textarea-field {
    position: relative;
    width: 100%;
    margin: 2rem 0;
}

.contact form .textarea-field textarea {
    width: 100%;
    height: 20rem;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: .6rem;
    resize: none;
}

.contact form .btn {
    cursor: pointer;
}

/* Efeito de foco nos campos */
.contact form .input-field input:focus,
.contact form .textarea-field textarea:focus {
    box-shadow: 0 0 1rem var(--main-color);
}

/* Footer */
.footer {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 9%;
    background: var(--second-bg-color);
}

.footer-nav {
    display: flex;
    gap: 2rem;
}

.footer-nav a {
    font-size: 1.6rem;
    color: var(--text-color);
    transition: .3s;
}

.footer-nav a:hover {
    color: var(--main-color);
}

.footer-text {
    position: relative;
    text-align: center;
}

.footer-text::before {
    content: '';
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 2px;
    background: var(--main-color);
}

.footer-iconTop a {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem;
    background: var(--main-color);
    border: .2rem solid var(--main-color);
    border-radius: .6rem;
    z-index: 1;
    overflow: hidden;
}

.footer-iconTop a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--second-bg-color);
    z-index: -1;
    transition: .5s;
}

.footer-iconTop a:hover::before {
    width: 100%;
}

.footer-iconTop a i {
    font-size: 2.4rem;
    color: var(--bg-color);
    transition: .5s;
}

.footer-iconTop a:hover i {
    color: var(--main-color);
}

/* Responsividade do Contato e Footer */
@media (max-width: 768px) {
    .contact form .input-field {
        width: 100%;
    }

    .footer {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-text {
        order: 1;
    }

    .footer-iconTop {
        order: 0;
    }
}

/* Estilos para o preview do projeto */
.project-preview {
    width: 100%;
    margin: 1rem 0;
    border-radius: .8rem;
    overflow: hidden;
    box-shadow: 0 0 1rem var(--main-color);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.project-preview iframe {
    border: none;
    background: #fff;
    transition: .3s;
    max-width: 100%;
    border-radius: .6rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.card-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.project-preview:hover {
    box-shadow: 0 0 2rem var(--main-color);
}

.card-buttons {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.project-card .heading {
    margin-bottom: 2rem;
}

.project-card {
    background: var(--bg-color);
    border-radius: 2rem;
    border: .2rem solid transparent;
    transition: .5s;
}

.project-card:hover {
    border-color: var(--main-color);
    transform: scale(1.02);
    box-shadow: 0 0 2rem var(--main-color);
}

.contact form .input-field input[type="tel"] {
    letter-spacing: 1px;
}

/* Remove as setas do input type number no Chrome, Safari, Edge, Opera */
.contact form .input-field input::-webkit-outer-spin-button,
.contact form .input-field input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Remove as setas do input type number no Firefox */
.contact form .input-field input[type="number"] {
    -moz-appearance: textfield;
}

/* Seção Projetos - Layout */
.project-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(35rem, 1fr));
    gap: 3rem;
    padding: 0 1rem;
}

.project-card {
    max-width: 100%;
    margin: 0 auto;
}

.project-preview iframe {
    max-width: 100%;
    height: 60vh;
    min-height: 400px;
}

/* Ajustes responsivos para projetos */
@media (max-width: 768px) {
    .project-container {
        grid-template-columns: 1fr;
    }

    .project-preview iframe {
        height: 50vh;
    }
}

@media (max-width: 480px) {
    .project-preview {
        padding: 1rem;
    }

    .project-preview iframe {
        height: 40vh;
    }
} 