* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
}

.page-wrapper {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: radial-gradient(ellipse at 20% 20%, rgb(0 188 212 / .3) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgb(255 111 0 / .25) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgb(0 150 180 / .2) 0%, transparent 60%),
        radial-gradient(ellipse at 90% 20%, rgb(255 152 0 / .15) 0%, transparent 40%),
        radial-gradient(ellipse at 10% 80%, rgb(0 172 193 / .2) 0%, transparent 45%),
        linear-gradient(135deg, #0a1628 0%, #0d2137 25%, #0f2847 50%, #102a4a 75%, #0a1628 100%);
}

.bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: .1;
}

.shape-1 {
    top: 40px;
    left: 40px;
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, #00bcd4, #ff6f00);
    animation: pulse 4s ease-in-out infinite;
}

.shape-2 {
    bottom: 80px;
    right: 40px;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #ff9800, #00acc1);
    animation: pulse 5s ease-in-out infinite 1s;
}

.shape-3 {
    top: 33%;
    right: 25%;
    width: 100px;
    height: 100px;
    background: linear-gradient(90deg, #00bcd4, #ff6f00);
    animation: pulse 6s ease-in-out infinite 2s;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: .1;
    }

    50% {
        transform: scale(1.1);
        opacity: .15;
    }
}

.header {
    position: relative;
    z-index: 100;
    display: grid;
    grid-template-columns: 248px 1fr 200px;
    align-items: center;
    padding: 20px 40px;
    gap: 20px;
}

.logo-link {
    display: block;
    width: 162px;
    height: 128px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-placeholder {
    width: 248px;
    height: 196px;
    border-radius: 16px;
    background: linear-gradient(145deg, rgb(0 188 212 / .15), rgb(255 111 0 / .08));
    border: 2px solid rgb(0 188 212 / .3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(255 255 255 / .4);
    font-size: 12px;
}

.title-section {
    text-align: center;
}

.main-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: 3px;
    background: linear-gradient(90deg, #00e5ff, #ffffff, #ff9800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.contracts-menu {
    position: relative;
    display: flex;
    justify-content: flex-end;
    z-index: 1000;
}

#menu-checkbox {
    display: none;
}

.menu-toggle {
    background: linear-gradient(135deg, rgb(0 188 212 / .2), rgb(255 111 0 / .2));
    border: 2px solid rgb(0 188 212 / .5);
    border-radius: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #00e5ff;
    font-weight: 600;
    box-shadow: 0 0 20px rgb(0 188 212 / .2);
    user-select: none;
}

.menu-toggle:hover {
    box-shadow: 0 0 30px rgb(0 188 212 / .4);
    transform: scale(1.05);
}

.menu-toggle svg {
    width: 24px;
    height: 24px;
    stroke: #00e5ff;
    transition: transform 0.3s ease;
}

.menu-toggle:hover svg {
    transform: rotate(20deg);
}

.dropdown {
    position: absolute;
    top: 0;
    right: calc(100% + 10px);
    background: rgb(10 22 40 / .95);
    border: 2px solid rgb(0 188 212 / .4);
    border-radius: 12px;
    padding: 8px;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    box-shadow: 0 0 40px rgb(0 188 212 / .3);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.contracts-menu:hover .dropdown,
#menu-checkbox:checked~.dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

@media (hover: none) {
    .contracts-menu:hover .dropdown {
        opacity: 0;
        visibility: hidden;
    }
}

.dropdown-item {
    display: block;
    padding: 12px 16px;
    color: rgb(255 255 255 / .8);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
    border: 1px solid transparent;
}

.dropdown-item:hover {
    background: rgb(0 188 212 / .2);
    border-color: rgb(0 188 212 / .4);
    color: #00e5ff;
    transform: translateX(-5px);
}

.dropdown-item.active {
    background: linear-gradient(135deg, rgb(0 188 212 / .3), rgb(255 111 0 / .2));
    border-color: rgb(0 188 212 / .6);
    color: #00e5ff;
    font-weight: 600;
    box-shadow: 0 0 15px rgb(0 188 212 / .2);
}

.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0 40px;
    overflow: hidden;
    z-index: 10;
}

.content-area {
    flex: 1;
    background: linear-gradient(145deg, rgb(0 188 212 / .08), rgb(255 111 0 / .03));
    border: 2px solid rgb(0 188 212 / .2);
    border-radius: 20px;
    padding: 40px;
    overflow-y: auto;
    box-shadow: 0 0 40px rgb(0 188 212 / .15), inset 0 0 40px rgb(0 0 0 / .3);
    margin-bottom: 20px;
}

.content-area::-webkit-scrollbar {
    width: 10px;
}

.content-area::-webkit-scrollbar-track {
    background: rgb(0 0 0 / .3);
    border-radius: 10px;
}

.content-area::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00bcd4, #ff6f00);
    border-radius: 10px;
}

.content-area::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #00e5ff, #ff9800);
}

.contract-text {
    color: rgb(255 255 255 / .9);
    line-height: 1.8;
    font-size: 18px;
    text-align: justify;
}

.content-footer {
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    background: linear-gradient(145deg, rgb(0 188 212 / .1), rgb(255 111 0 / .05));
    border: 2px solid rgb(0 188 212 / .2);
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgb(0 188 212 / .1);
}

.update-date {
    color: rgb(255 255 255 / .7);
    font-size: 13px;
}

.team-signature {
    color: #00e5ff;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.footer {
    z-index: 10;
    padding: 20px;
    text-align: center;
}

.author-image {
    transition: transform 0.3s ease;
    display: inline-block;
}

.author-image:hover {
    transform: scale(1.03);
}

@media (max-width: 1024px) {
    .header {
        grid-template-columns: 180px 1fr 180px;
        padding: 15px 20px;
    }

    .logo-link,
    .logo-placeholder {
        width: 180px;
        height: 142px;
    }

    .main-title {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }
}

@media (max-width: 768px) {
    .header {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: center;
    }

    .logo-link,
    .logo-placeholder {
        width: 150px;
        height: 118px;
        margin: 0 auto;
    }

    .contracts-menu {
        justify-content: center;
    }

    .dropdown {
        right: auto;
        left: 50%;
        transform: translateX(-50%) translateY(10px);
        top: auto;
        bottom: calc(100% + 10px);
    }

    .contracts-menu:hover .dropdown,
    #menu-checkbox:checked~.dropdown {
        transform: translateX(-50%) translateY(0);
    }

    .content-wrapper {
        padding: 0 20px;
    }

    .content-area {
        padding: 25px;
    }

    .content-footer {
        flex-direction: column;
        height: auto;
        gap: 10px;
        padding: 15px;
    }

    .shape-1 {
        width: 120px;
        height: 120px;
    }

    .shape-2 {
        width: 90px;
        height: 90px;
    }

    .shape-3 {
        width: 60px;
        height: 60px;
    }
}