* {
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

@keyframes backgroundShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background: linear-gradient(270deg, #181818, #0d0d0d, #121212, #181818);
    background-size: 800% 800%;
    animation: backgroundShift 30s ease infinite;
    color: #f0f0f0;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

header {
    background: rgba(0, 0, 0, 0.92);
    padding: 20px 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(30, 255, 30, 0.5);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid #1ce715;
}

.title-logo {
    width: 280px;
    animation: pulse 3s infinite;
    cursor: pointer;
}

.title-logo:hover {
    animation: pulseFaster 1.5s infinite;
}

@keyframes pulseFaster {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

nav ul {
    list-style: none;
    padding: 10px 0 0 0;
    margin: 0;
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
}

nav ul li {
    display: inline-block;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding: 5px 0;
    user-select: none;
}

nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background-color: #1ce715;
    transition: width 0.4s ease-in-out;
    border-radius: 2px;
}

nav a:hover::after,
nav a:focus::after {
    width: 100%;
}

nav a:hover {
    color: #1ce715;
    text-shadow:
        0 0 5px #1ce715,
        0 0 10px #1ce715,
        0 0 20px #1ce715;
}

.container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
    gap: 40px;
    perspective: 1000px;
}

.side-images img {
    width: 90%;
    max-width: 250px;
    border-radius: 12px;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    transform-style: preserve-3d;
    cursor: pointer;
}

.side-images img:hover {
    transform:
        scale(1.07)
        rotateY(10deg)
        rotateX(5deg);
    box-shadow: 0 8px 20px rgba(28, 231, 21, 0.8);
}

section {
    padding: 40px;
    margin: 40px auto;
    background: rgba(12, 12, 12, 0.85);
    border-radius: 12px;
    box-shadow:
        0 0 10px rgba(28, 231, 21, 0.6),
        inset 0 0 8px rgba(28, 231, 21, 0.4);
    border: 2px solid transparent;
    transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.35s ease;
    cursor: default;
}

section:hover {
    transform: scale(1.04);
    border-color: #1ce715;
    box-shadow:
        0 0 25px rgba(28, 231, 21, 0.9),
        inset 0 0 15px rgba(28, 231, 21, 0.6);
}

h2 {
    margin-bottom: 20px;
    color: #1ce715;
    text-transform: uppercase;
    font-size: 32px;
    letter-spacing: 2px;
    text-align: center;
    text-shadow:
        0 0 8px #1ce715,
        0 0 15px #1ce715;
}

h3 {
    margin-bottom: 20px;
    color: #cf1e1e;
    text-transform: uppercase;
    font-size: 24px;
    letter-spacing: 2px;
    text-align: center;
    text-shadow:
        0 0 8px #cf1e1e,
        0 0 15px #cf1e1e;
}

ul li {
    font-size: 18px;
    line-height: 2;
    color: #7cfc00;
    cursor: default;
    transition: color 0.3s ease;
}

ul li:hover {
    color: #a7ff5a;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.image-gallery img {
    width: 100%;
    border-radius: 12px;
    border: 3px solid transparent;
    box-shadow: 0 0 5px rgba(28, 231, 21, 0.2);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.image-gallery img:hover {
    transform: scale(1.1);
    border-color: #1ce715;
    box-shadow:
        0 0 15px #1ce715,
        0 0 30px #1ce715;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* Proporção 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin-top: 20px;
    border: 2px solid #00ff00;
    border-radius: 10px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    margin: 10px 0 5px;
    color: #e0e0e0;
    font-weight: 500;
}

input, textarea {
    padding: 12px;
    border: 2px solid #444;
    border-radius: 6px;
    background: #222;
    color: #e0e0e0;
    font-size: 16px;
    margin-bottom: 15px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, textarea:focus {
    border-color: #1ce715;
    box-shadow:
        0 0 8px #1ce715;
    outline: none;
}

button {
    padding: 15px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(45deg, #1ce715, #12b813);
    color: #121212;
    font-size: 18px;
    cursor: pointer;
    font-weight: 700;
    box-shadow:
        0 0 8px #1ce715;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.15s ease;
}

button:hover {
    background: linear-gradient(45deg, #12b813, #0da40d);
    box-shadow:
        0 0 20px #1ce715,
        0 0 40px #12b813;
    transform: scale(1.05);
}

footer {
    text-align: center;
    padding: 20px;
    background: #0d0d0d;
    color: #fff;
    position: relative;
    bottom: 0;
    width: 100%;
    box-shadow:
        0 0 10px rgba(28, 231, 21, 0.6),
        inset 0 0 8px rgba(28, 231, 21, 0.3);
    font-size: 1rem;
    user-select: none;
}

/* >>> ADDED THIS TO CONTAIN GIF/IMAGE INSIDE SECTION <<< */
section img,
section video,
section iframe {
    display: block;
    max-width: 100%;
    width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 12px;
    box-sizing: border-box;
}

@media (min-width: 769px) {
    section.contact-section,
    section:last-of-type {
        max-width: 600px;
        width: 600px;
        margin: 40px auto;
        padding: 40px 30px;
        box-sizing: border-box;
    }

    section.contact-section input,
    section.contact-section textarea,
    section.contact-section button {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column !important;
        align-items: center;
        max-width: 100vw;
        padding: 10px 15px;
        gap: 30px;
        box-sizing: border-box;
        overflow: hidden;
        flex-wrap: wrap;
    }

    .side-images img,
    .image-gallery img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto;
        display: block;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
        overflow: hidden;
    }

    .side-images img {
        display: none;
    }

    section {
        max-width: 100vw !important;
        width: 100% !important;
        margin: 0 auto 40px auto;
        box-sizing: border-box;
        overflow-wrap: break-word;
    }

    header {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 15px 10px;
        box-sizing: border-box;
        text-align: center;
    }

    .title-logo {
        width: 200px;
        margin: 0 auto;
        display: block;
        cursor: pointer;
        animation: pulse 3s infinite;
    }

    nav ul {
        margin-top: 10px;
        padding: 0;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        width: 100%;
        box-sizing: border-box;
    }

    footer {
        max-width: 100vw;
        box-sizing: border-box;
        padding: 15px 10px;
    }

    img, iframe, embed, video {
        max-width: 100%;
        height: auto;
        display: block;
        object-fit: contain;
    }

    body, p, li, h2, h3 {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}
