* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-image: url('background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    background-color: #111;
}

header {
    background-color: #000;
    border-bottom: 2px solid #1E90FF;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.menu {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 20px;
    position: relative;
}

.menu ul {
    list-style: none;
    display: flex;
    gap: 20px;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 15px 30px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    align-items: center;
}

.menu ul li {
    position: relative;
    overflow: hidden;
}

.menu ul li a {
    text-decoration: none;
    color: #fff;
    font-size: 16px;
    padding: 10px;
    display: block;
    position: relative;
    z-index: 1;
    text-transform: uppercase;
}

.menu ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #1E90FF;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.menu ul li a:hover::after {
    width: 100%;
}

.logo-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    margin-right: 4px;
    display: inline-block;
    line-height: 0;
}

.logo-btn img {
    height: 80px;
    transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
}

.logo-btn img:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
    box-shadow: 0 4px 15px rgba(30, 144, 255, 0.5);
}

.page-content {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.page-content.fade-in {
    opacity: 1;
}

.page-content.fade-out {
    opacity: 0;
}

main {
    margin-top: 120px;
    padding: 20px;
    text-align: center;
}

.main-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 48px;
    margin: 0 auto 20px;
    color: #fff;
    text-transform: uppercase;
    line-height: 1.2;
    max-width: 800px;
}

.main-title .highlight {
    color: #1E90FF;
}

.content {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 40px;
    border-radius: 10px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.content h3 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 20px;
    margin: 20px 0 10px;
    color: #1E90FF;
    text-align: left;
}

.content p {
    font-size: 16px;
    margin-bottom: 15px;
    line-height: 1.6;
    text-align: left;
}

.content p:first-of-type {
    text-align: center;
}

.content ul {
    list-style: none;
    padding-left: 20px;
    margin-bottom: 15px;
    text-align: left;
}

.content ul li {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.content ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #1E90FF;
    font-size: 18px;
}

.content ul li strong {
    color: #fff;
}

.blue-line {
    border: 0;
    height: 2px;
    background-color: #1E90FF;
    margin: 20px 0;
    width: 100%;
}

.company-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(30, 144, 255, 0.1);
    border: 1px solid #1E90FF;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.company-item.no-icon {
    align-items: center;
}

.company-logo {
    height: 30px;
    width: auto;
    margin-bottom: 15px;
    object-fit: contain;
    transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
}

.company-logo:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
    box-shadow: 0 4px 15px rgba(30, 144, 255, 0.5);
}

.company-icon {
    height: 60px;
    width: auto;
    margin-bottom: 15px;
    object-fit: contain;
    transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
}

.company-icon:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
    box-shadow: 0 4px 15px rgba(30, 144, 255, 0.5);
}

.company-icon-text {
    display: inline-block;
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #FFA500;
    padding: 8px 16px;
    background-color: rgba(30, 144, 255, 0.1);
    border-radius: 4px;
    transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
}

.company-icon-text:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
    box-shadow: 0 4px 15px rgba(30, 144, 255, 0.5);
}

.company-link {
    text-decoration: none;
    color: inherit;
    display: block;
    text-align: center;
}

.company-text {
    width: 100%;
    text-align: left;
}

.company-text h3 {
    font-size: 20px;
    margin: 10px 0;
    color: #1E90FF;
}

.company-text p {
    font-size: 16px;
    line-height: 1.6;
    margin: 5px 0;
}

.company-text strong {
    color: #fff;
}

.company-text strong.eu-posso-programar {
    color: #FFA500;
}

.company-access {
    font-size: 14px;
    color: #fff;
    margin-top: 10px;
    text-align: center;
}

.company-access a {
    color: #1E90FF;
    text-decoration: underline;
}

.company-access a:hover {
    color: #1C86EE;
}

body:has(main[id="main-content"]) .company-text {
    text-align: center;
}

body:has(main[id="main-content"]) .company-text h3 {
    font-size: 20px;
    margin: 10px 0;
    color: #1E90FF;
}

body:has(main[id="main-content"]) .company-text p {
    font-size: 16px;
    line-height: 1.6;
    margin: 5px 0;
}

body:has(main[id="main-content"]) .company-access {
    font-size: 14px;
    color: #fff;
    margin-top: 10px;
}

body:has(main[id="main-content"]) .company-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

/* Alteração: Estilo dos blocos conforme a imagem */
.page-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    justify-items: center;
    margin-top: 30px;
}

.page-links a.link-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 200px;
    height: 200px;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid var(--title-color);
    border-radius: 10px;
    text-decoration: none;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.page-links a.link-block:hover {
    transform: translateY(-5px);
    background-color: rgba(0, 0, 0, 0.7);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-links a.link-block .link-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--title-color);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.page-links a.link-block .link-icon {
    font-size: 24px;
    color: var(--title-color);
    margin-bottom: 10px;
}

.page-links a.link-block .link-description {
    font-size: 14px;
    color: #fff;
    line-height: 1.4;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #1E90FF;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.scroll-top.visible {
    display: flex;
}

.scroll-top:hover {
    background-color: #1C86EE;
}

.ripple {
    position: absolute;
    background: rgba(30, 144, 255, 0.3);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
    z-index: 0;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.hamburger {
    display: none;
    font-size: 30px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 10px;
    transition: transform 0.3s ease;
}

.hamburger:hover {
    transform: scale(1.1);
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 300px;
    background-color: rgba(0, 0, 0, 0.9);
    border: 1px solid #1E90FF;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(30, 144, 255, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.popup.minimized {
    height: 40px;
    overflow: hidden;
}

.popup-header {
    background-color: rgba(30, 144, 255, 0.2);
    padding: 5px 10px;
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid #1E90FF;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.popup-header span {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
}

.popup-buttons button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #fff;
    margin-left: 5px;
    transition: color 0.3s ease;
}

.popup-buttons button:hover {
    color: #1E90FF;
}

.popup-content {
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.popup-content textarea {
    width: 100%;
    height: 150px;
    border: 1px solid #1E90FF;
    border-radius: 4px;
    resize: none;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 8px;
    margin-bottom: 10px;
}

.popup-content textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.copy-button, .clear-button {
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.copy-button {
    background-color: #1E90FF;
    color: #fff;
}

.copy-button:hover {
    background-color: #1C86EE;
}

.clear-button {
    background-color: #4a4a4a;
    color: #fff;
}

.clear-button:hover {
    background-color: #3a3a3a;
}

.hidden {
    display: none;
}

.notification {
    position: fixed;
    bottom: 140px;
    right: 20px;
    background-color: #1E90FF;
    color: #fff;
    padding: 10px;
    border-radius: 4px;
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
}

.notification.error {
    background-color: #ff4d4d;
}

.notification.show {
    opacity: 1;
}

.menu ul li a:focus,
.page-links a:focus,
.scroll-top:focus,
.copy-button:focus,
.clear-button:focus {
    outline: 2px solid #1E90FF;
    outline-offset: 2px;
}

@media (max-width: 1024px) {
    body:has(main[id="main-content"]) .company-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    header {
        padding: 0;
        background: transparent;
        border-bottom: none;
    }

    .menu {
        position: fixed;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 1200px;
        background: rgba(0, 0, 0, 0.9);
        padding: 15px 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
        border: 1px solid #1E90FF;
        border-radius: 10px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .hamburger {
        display: block;
        position: absolute;
        right: 20px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: rgba(0, 0, 0, 0.95);
        padding: 10px 0;
        border: 1px solid #1E90FF;
        border-radius: 0 0 10px 10px;
        opacity: 0;
        transform: scaleY(0.8);
        transform-origin: top;
        transition: opacity 0.3s ease, transform 0.3s ease;
        pointer-events: none;
        z-index: -1;
        aria-hidden: true;
    }

    .nav-links.active {
        display: flex;
        opacity: 1;
        transform: scaleY(1);
        pointer-events: auto;
        z-index: 1000;
        aria-hidden: false;
    }

    .menu ul li {
        margin: 10px 0;
        padding: 0;
        width: 100%;
        text-align: center;
        background: none;
        box-shadow: none;
        opacity: 0;
        transform: translateY(10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .menu ul li a {
        font-size: 14px;
        padding: 10px 20px;
        width: 100%;
        transition: background-color 0.3s ease;
    }

    .menu ul li a:hover {
        background-color: rgba(30, 144, 255, 0.2);
    }

    .logo-btn {
        margin-right: 0;
    }

    .logo-btn img {
        height: 70px;
    }

    main {
        margin-top: 120px;
    }

    .main-title {
        font-size: 36px;
    }

    .content {
        padding: 20px;
    }

    .content h3 {
        font-size: 18px;
        margin: 15px 0 8px;
    }

    .content p {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .content ul {
        padding-left: 15px;
        margin-bottom: 12px;
    }

    .content ul li {
        font-size: 14px;
        margin-bottom: 6px;
        padding-left: 15px;
    }

    .content ul li::before {
        font-size: 16px;
    }

    .blue-line {
        margin: 15px 0;
    }

    .company-item {
        padding: 10px;
        margin-bottom: 10px;
    }

    .company-logo {
        height: 28px;
        margin-bottom: 12px;
    }

    .company-icon {
        height: 50px;
        margin-bottom: 12px;
    }

    .company-icon-text {
        font-size: 20px;
        padding: 6px 12px;
        margin-bottom: 12px;
    }

    .company-text p {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .company-access {
        font-size: 13px;
        margin-top: 8px;
    }

    body:has(main[id="main-content"]) .company-grid {
        grid-template-columns: 1fr;
    }

    .page-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-links a.link-block {
        width: 160px;
        height: 160px;
        padding: 10px;
    }

    .page-links a.link-block .link-icon {
        font-size: 20px;
    }

    .page-links a.link-block .link-title {
        font-size: 16px;
    }

    .page-links a.link-block .link-description {
        font-size: 12px;
    }

    .scroll-top {
        width: 40px;
        height: 40px;
    }

    .scroll-top svg {
        width: 20px;
        height: 20px;
    }

    .popup {
        width: 250px;
        bottom: 70px;
    }

    .popup.minimized {
        height: 36px;
    }

    .popup-content textarea {
        height: 120px;
        font-size: 13px;
    }

    .popup-header span {
        font-size: 13px;
    }

    .popup-buttons button {
        font-size: 14px;
    }

    .copy-button, .clear-button {
        padding: 6px 12px;
        font-size: 13px;
    }

    .notification {
        bottom: 120px;
        font-size: 13px;
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 28px;
    }

    .page-links a.link-block {
        width: 140px;
        height: 140px;
    }

    .page-links a.link-block .link-icon {
        font-size: 18px;
    }

    .page-links a.link-block .link-title {
        font-size: 14px;
    }

    .page-links a.link-block .link-description {
        font-size: 11px;
    }
}