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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #000000;
    color: #fafafa;
    line-height: 1.6;
}

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

/* Header */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: all 0.3s ease;
    background-color: transparent;
}

#header.scrolled {
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    height: 3rem;
    width: 3rem;             
    border-radius: 50%;      
    object-fit: cover;
}

.nav-desktop {
    display: none;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
}

.nav-link {
    position: relative;
    color: #fafafa;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

/* linha azul animada embaixo do menu */
.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.25rem;
    width: 0;
    height: 2px;
    background-color: #0f5ce7;
    transition: width 0.25s ease;
}

.nav-link:hover {
    color: #0f5ce7;
}

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

.instagram-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fafafa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.instagram-link:hover {
    color: #ffffff;
}

.instagram-text {
    display: none;
    font-weight: 500;
}

@media (min-width: 640px) {
    .instagram-text {
        display: inline;
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, #000000, rgba(0, 0, 0, 0.9), #000000);
}

.hero-container {
    z-index: 10;
    text-align: center;
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.hero-logo {
    margin: 0 auto 2rem;
    height: 8rem;
    width: 8rem;
    border-radius: 50%;      
    object-fit: cover;
    border: 2px solid #ffffff;
    animation: drip 1.2s ease-out forwards;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #ffffff, #ffffff, #fafafa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #999999;
    margin-bottom: 2rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

.hero-description {
    font-size: 1.125rem;
    color: rgba(250, 250, 250, 0.8);
    margin-bottom: 3rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 8rem;
    background: linear-gradient(to top, #000000, transparent);
    z-index: 10;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: bold;
    background-color: #4b4b4b;
    color: #ffffff;              /* branco padrão */
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px rgba(75, 75, 75, 0.3);
}

.btn-primary svg {
    flex-shrink: 0;
}

.btn-primary:hover {
    background-color: rgba(75, 75, 75, 0.9);
    box-shadow: 0 0 50px rgba(75, 75, 75, 0.5);
    transform: translateY(-2px);
    color: #0f5ce7;              /* fica azul só no hover */
}

.btn-large {
    padding: 1.5rem 3rem;
}

/* Sections */
.section {
    padding: 6rem 0;
}

.section-alt {
    background-color: rgba(26, 26, 26, 0.3);
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
    text-align: center;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3rem;
    }
}

.text-primary {
    color: #ffffff;
}

.section-description {
    font-size: 1.25rem;
    color: #999999;
    max-width: 42rem;
    margin: 0 auto 4rem;
    text-align: center;
}

.section-header {
    margin-bottom: 4rem;
}

/* About Section */
.about-content {
    max-width: 56rem;
    margin: 0 auto;
}

.about-text {
    font-size: 1.125rem;
    color: rgba(250, 250, 250, 0.8);
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-highlight {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.25rem;
    text-align: center;
    margin-top: 3rem;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background-color: #0d0d0d;
    border: 1px solid #333333;
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: all 0.5s ease;
}

.service-card:hover {
    border-color: #4b4b4b;
    box-shadow: 0 0 30px rgba(75, 75, 75, 0.2);
    transform: translateY(-5px);
}

.service-icon {
    color: #0f5ce7; /* ícones de serviços azuis */
    margin-bottom: 1rem;
}

.service-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #fafafa;
    margin-bottom: 0.75rem;
}

.service-description {
    color: #999999;
    line-height: 1.7;
}

/* Portfolio */
.portfolio-container {
    margin: 0 auto;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 900px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.portfolio-card {
    background-color: #050505;
    border: 1px solid #333333;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.5s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.portfolio-card:hover {
    border-color: #4b4b4b;
    box-shadow: 0 0 40px rgba(75, 75, 75, 0.3);
    transform: translateY(-4px);
}

.portfolio-image-wrapper {
    position: relative;
    overflow: hidden;
}

.portfolio-image {
    width: 100%;
    height: auto;              /* sem altura fixa */
    display: block;            /* tira espaços estranhos embaixo */
    transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-image {
    transform: scale(1.02);
}

.portfolio-content {
    padding: 1.5rem;
    text-align: center;
}

.portfolio-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 999px;
    background-color: #111111;
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.portfolio-text {
    color: #999999;
    line-height: 1.7;
    font-size: 0.98rem;
}

.portfolio-note {
    text-align: center;
    color: #999999;
    margin-top: 2rem;
    font-size: 1.05rem;
}

/* Contact */
.contact-content {
    max-width: 56rem;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background-color: #0d0d0d;
    border: 1px solid #333333;
    border-radius: 0.5rem;
    transition: border-color 0.3s ease;
}

.contact-card:hover {
    border-color: #4b4b4b;
}

.contact-icon {
    color: #0f5ce7; /* ícones de contato azuis */
    flex-shrink: 0;
}

.contact-title {
    font-size: 1.125rem;
    font-weight: bold;
    color: #fafafa;
    margin-bottom: 0.5rem;
}

.contact-text {
    color: #999999;
}

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

/* Footer */
.footer {
    background-color: rgba(26, 26, 26, 0.5);
    border-top: 1px solid #333333;
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-logo {
    height: 4rem;
    width: 4rem;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.footer-text {
    color: #999999;
    line-height: 1.7;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: bold;
    color: #fafafa;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #999999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #999999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-social-link:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid #333333;
    padding-top: 2rem;
    text-align: center;
    color: #999999;
}

/* Floating Buttons */
.floating-buttons {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.floating-btn {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Botão WhatsApp – verde oficial com movimento */
.floating-btn-whatsapp {
    background-color: #25D366 !important;
    color: #ffffff !important;
    box-shadow: 0 0 25px rgba(37, 211, 102, 0.7);
    animation: whatsappFloat 2s ease-in-out infinite;
    font-size: 1.7rem;
}

.floating-btn-whatsapp:hover {
    box-shadow: 0 0 35px rgba(37, 211, 102, 0.9);
    transform: scale(1.05);
}

/* Botão de voltar ao topo – estilo branco com seta azul */
.floating-btn-scroll {
    background: radial-gradient(circle at top, #e8f5ff 0, #ffffff 40%, #ffffff 100%);
    color: #0f5ce7;
    border: none;
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.3s ease;
}

/* seta interna azul */
.floating-btn-scroll svg {
    color: #0f5ce7;
}

.floating-btn-scroll.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.floating-btn-scroll:hover {
    box-shadow: 0 0 26px rgba(0, 0, 0, 0.7);
    transform: scale(1.06) translateY(0);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes drip {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* movimento suave pro botão do WhatsApp */
@keyframes whatsappFloat {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 0 25px rgba(37, 211, 102, 0.7);
    }
    50% {
        transform: translateY(-6px);
        box-shadow: 0 0 40px rgba(37, 211, 102, 0.9);
    }
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(75, 75, 75, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(75, 75, 75, 0.6);
    }
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
