:root {
    --primary: #ea580c;
    --secondary: #f97316;
    --dark-gray: #1a1a1a;
    --medium-gray: #4b5563;
    --light-gray: #e5e7eb;
    --lighter-gray: #d1d5db;
    --white: #ffffff;
    --off-white: #f9fafb;
    --transparent-white: rgba(255, 255, 255, 0.95);
    --transparent-white-90: rgba(255, 255, 255, 0.9);
    --transparent-black: rgba(0, 0, 0, 0.5);
    --transparent-black-light: rgba(0, 0, 0, 0.1);
    --transparent-black-medium: rgba(0, 0, 0, 0.15);
    --transparent-black-dark: rgba(0, 0, 0, 0.2);
    --portfolio-gradient-start: #fed7aa;
}

::selection {
    color: var(--off-white);
    /* Text color when selected */
    background: var(--primary);
    /* Background color when selected */
}

/* WebKit-based browsers (Chrome, Edge, Safari) */
::-webkit-scrollbar {
    width: 12px;
    /* Width of the vertical scrollbar */
    height: 12px;
    /* Height of the horizontal scrollbar */
}

::-webkit-scrollbar-track {
    background: var(--lighter-gray);
    /* Background color of the scrollbar track */
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    /* Scrollbar thumb color (the draggable part) */
    border-radius: 6px;
    /* Rounded corners for the thumb */
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
    /* Darker shade when hovering over the thumb */
}

/* Firefox */
html {
    scrollbar-color: var(--primary) var(--lighter-gray);
    /* Thumb color and track color */
    scrollbar-width: thin;
    /* Options: auto, thin, or none */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--off-white);
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navbar */
nav {
    position: fixed;
    width: 100%;
    background: var(--transparent-black);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 4px var(--transparent-black-light);
    z-index: 1000;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1rem;
}

nav .logo {
    font-size: 1.75rem;
    font-weight: 800;
    width: 3rem;
    text-decoration: none;
    color: var(--primary);
}

nav .nav-links {
    display: flex;
    gap: 1.5rem;
}

nav .nav-links a {
    color: var(--off-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

nav .nav-links a:hover {
    color: var(--primary);
    transform: scale(1.05);
}

nav .menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

nav .menu-toggle svg {
    width: 1.75rem;
    height: 1.75rem;
    color: var(--dark-gray);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: var(--dark-gray);
    padding: 4rem 1rem;
    z-index: 1001;
    transition: right 0.3s ease;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    display: block;
    padding: 1rem;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background 0.3s ease, color 0.3s ease;
}

.mobile-menu a:hover {
    background: var(--medium-gray);
    color: var(--primary);
}

.mobile-menu .close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.mobile-menu .close-btn:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.mobile-menu .close-btn svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--white);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--transparent-black);
    z-index: 1000;
    display: none;
}

.overlay.active {
    display: block;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--primary), var(--dark-gray));
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('12a947c9b8a78fab710f4d5785adda8d.jpg') no-repeat center center/cover;
    opacity: 0.1;
    z-index: 0;
}

.hero-content {
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    color: var(--light-gray);
}

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    border-radius: 9999px;
    transition: background 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    transform: translateY(-2px);
}

/* Sections */
.section {
    padding: 5rem 1rem;
}

.section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary);
}

/* Serviços Section Background */
#portfolio {
    background: linear-gradient(135deg, var(--portfolio-gradient-start), var(--white));
    position: relative;
}

#portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L0 30l30 30 30-30L30 0z' fill='%231e40af' fill-opacity='0.05'/%3E%3C/svg%3E");
    background-repeat: repeat;
    opacity: 0.3;
    z-index: 0;
}

#portfolio.container {
    position: relative;
    z-index: 1;
}

/* Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--transparent-white-90);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px var(--transparent-black-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card i {
    color: var(--primary);
    stroke-width: 2;
    margin-bottom: 1rem;
}

.card:hover i {
    color: var(--secondary);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px var(--transparent-black-medium);
}

.card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.card p {
    color: var(--medium-gray);
    font-size: 0.95rem;
    line-height: 1.5;
}

.card svg {
    width: 2rem;
    height: 2rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

/* Form */
.form-container {
    max-width: 500px;
    margin: 1.5rem auto;
    background: var(--transparent-white);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--transparent-black-light);
}

.form-container label {
    display: block;
    font-weight: 600;
    color: var(--dark-gray);
    font-size: 0.95rem;
}

.form-container input,
.form-container textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-container input:focus,
.form-container textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-container textarea {
    resize: vertical;
    min-height: 120px;
}

.form-container form>div {
    margin-bottom: 1rem;
}

/* Checkbox Styling */
.checkbox-container {
    display: flex;
    align-items: center;
    /* Vertically center flex items */
    margin-bottom: 1rem;
}

.checkbox-container input[type="checkbox"] {
    appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--medium-gray);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    flex-shrink: 0;
}

.checkbox-container input[type="checkbox"]:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.checkbox-container input[type="checkbox"]:checked::after {
    content: '\2713';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    font-size: 0.9rem;
}

.checkbox-container label {
    margin-left: 0.5rem;
    font-size: 0.95rem;
    color: var(--medium-gray);
    line-height: 1.25rem;
    display: inline;
    vertical-align: middle;
}

.checkbox-container a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.checkbox-container a:hover {
    color: var(--secondary);
}

.form-group .checkbox-container label {
    display: inline;
}

/* Cookie Consent Popup */
.cookie-consent {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--transparent-white);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px var(--transparent-black-dark);
    max-width: 600px;
    width: 90%;
    z-index: 1002;
    opacity: 0;
    transform: translate(-50%, 20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.cookie-consent.visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.cookie-consent p {
    font-size: 0.95rem;
    color: var(--medium-gray);
    margin-bottom: 1rem;
}

.cookie-consent a {
    color: var(--primary);
    text-decoration: none;
}

.cookie-consent a:hover {
    color: var(--secondary);
}

.cookie-consent .buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.cookie-consent button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 9999px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.cookie-consent .accept {
    background: var(--primary);
    color: var(--white);
}

.cookie-consent .accept:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

.cookie-consent .reject {
    background: var(--light-gray);
    color: var(--dark-gray);
}

.cookie-consent .reject:hover {
    background: var(--lighter-gray);
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 3rem 1rem;
}

footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

footer h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

footer p,
footer a {
    font-size: 0.95rem;
    color: var(--light-gray);
    line-height: 1.6;
    text-decoration: none;
}

footer a:hover {
    color: var(--primary);
}

footer .social-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

footer .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    transition: background 0.3s ease;
}

footer .social-links a:hover {
    background: var(--primary);
}

footer .social-links i {
    color: var(--white);
}

footer .footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    nav .nav-links {
        display: none;
    }

    nav .menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section h2 {
        font-size: 1.75rem;
    }

    .cookie-consent .buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .cookie-consent button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .hero .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .form-container {
        padding: 1rem;
    }

    .cookie-consent {
        padding: 1rem;
    }
}

#year {
    display: inline-block
}


.dhBOoQ {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 3rem 0 1rem;
    position: relative;
    /* Necessário para o posicionamento absoluto do texto */
}

.dhBOoQ img {
    width: 1.5rem;
    margin: 0.5rem;
    -webkit-animation-duration: 1s;
    animation-duration: 1s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
    -webkit-animation-name: tada;
    animation-name: tada;
}

.dhBOoQ a {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #fff;
    /* Cor do texto, ajuste conforme necessário */
    font-size: 0.8rem;
    /* Ajuste o tamanho do texto conforme necessário */
    text-align: center;
    text-decoration: none;
    /* Removes the underline from the link, if desired */
}

@-webkit-keyframes tada {
    0% {
        -webkit-transform: scale3d(1, 1, 1);
        transform: scale3d(1, 1, 1);
    }

    10%,
    20% {
        -webkit-transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);
        transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);
    }

    30%,
    50%,
    70%,
    90% {
        -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
        transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
    }

    40%,
    60%,
    80% {
        -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
        transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
    }

    100% {
        -webkit-transform: scale3d(1, 1, 1);
        transform: scale3d(1, 1, 1);
    }
}

@keyframes tada {
    0% {
        -webkit-transform: scale3d(1, 1, 1);
        -ms-transform: scale3d(1, 1, 1);
        transform: scale3d(1, 1, 1);
    }

    10%,
    20% {
        -webkit-transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);
        -ms-transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);
        transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);
    }

    30%,
    50%,
    70%,
    90% {
        -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
        -ms-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
        transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
    }

    40%,
    60%,
    80% {
        -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
        -ms-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
        transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
    }

    100% {
        -webkit-transform: scale3d(1, 1, 1);
        -ms-transform: scale3d(1, 1, 1);
        transform: scale3d(1, 1, 1);
    }
}

/* Main WhatsApp button container */
#whatsapp-button {
    /* Positioning */
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;

    /* Size and shape */
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background: #18c161;
    padding: 7px;

    /* Center content */
    display: flex;
    justify-content: center;
    align-items: center;

    /* Animation */
    cursor: pointer;
    animation: pulse 1.5s infinite linear;
}

/* SVG icon inside the link */
#whatsapp-button>a>svg {
    width: 49px;
    height: 49px;
    color: #fff;
    transition: transform 0.4s ease;
}

/* Hover effect for the icon */
#whatsapp-button:hover>a>svg {
    transform: scale(1.1);
}

/* Badge (number indicator) */
#whatsapp-button>div {
    /* Positioning */
    position: absolute;
    top: -5px;
    right: -5px;

    /* Size and shape */
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e44436;

    /* Text styling */
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    line-height: 20px;
    text-align: center;

    /* Animation */
    animation: badge-bounce 5s infinite 2s;

    animation: badge-appear-disappear 4s infinite, badge-bounce 5s infinite 2s;
}

/* Pulse animation for the button */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 transparent, 0 1px 0 5px transparent;
    }

    30% {
        box-shadow: 0 0 0 5px rgba(56, 132, 93, 0.8), 0 1px 0 5px transparent;
    }

    70% {
        box-shadow: 0 0 0 8px rgba(40, 94, 67, 0.5), 0 1px 0 5px transparent;
    }

    100% {
        box-shadow: 0 0 0 10px transparent, 0 1px 0 5px transparent;
    }
}

/* Badge bounce animation */
@keyframes badge-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes badge-appear-disappear {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #333;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 1000;
}

.toast.show {
    opacity: 1;
}

.toast.success {
    background-color: #28a745;
}

.toast.error {
    background-color: #dc3545;
}

.grecaptcha-badge {
    bottom: 120px !important;
}