*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a, #2a2a2a);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: #e0e0e0;
    text-align: center;
    user-select: none;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img {
    user-drag: none;
    -webkit-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.background-animated-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    filter: blur(80px);
    animation: floatAndMorph 30s infinite ease-in-out alternate;
    will-change: transform, opacity;
}

.shape:nth-child(1) {
    background-color: #00e676;
    width: 400px;
    height: 400px;
    top: 10%;
    left: 15%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.shape:nth-child(2) {
    background-color: #00aaff;
    width: 500px;
    height: 500px;
    bottom: 5%;
    right: 10%;
    animation-delay: 5s;
    animation-duration: 35s;
}

.shape:nth-child(3) {
    background-color: #e600e6;
    width: 300px;
    height: 300px;
    top: 40%;
    left: 40%;
    animation-delay: 10s;
    animation-duration: 30s;
}

@keyframes floatAndMorph {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 0.15; }
    25% { transform: translate(20vw, -10vh) scale(1.1) rotate(45deg); opacity: 0.2; }
    50% { transform: translate(0, -20vh) scale(1.2) rotate(90deg); opacity: 0.25; }
    75% { transform: translate(-20vw, -10vh) scale(1.05) rotate(135deg); opacity: 0.2; }
    100% { transform: translate(0, 0) scale(1) rotate(180deg); opacity: 0.15; }
}

.sparkle-particle {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    animation: sparkleFloat 8s infinite ease-out, sparkleFade 3s infinite alternate;
    will-change: transform, opacity;
}

@keyframes sparkleFloat {
    0% { transform: translate(0, 0); }
    100% { transform: translate(calc(var(--randX) * 1px), calc(var(--randY) * 1px)); }
}

@keyframes sparkleFade {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 0.8; transform: scale(1.2); }
}

.main-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    width: 100%;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}

.main-header {
    background: rgba(25, 25, 35, 0.9);
    padding: 40px 60px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    animation: fadeIn 1.2s ease-out forwards;
    max-width: 700px;
    width: 90%;
    border: 1px solid rgba(50, 50, 60, 0.3);
}

h1 {
    font-size: 4em;
    color: #00e676;
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(0, 230, 118, 0.5);
    letter-spacing: 1px;
}

h2 {
    font-size: 1.6em;
    color: #b3cde0;
    opacity: 0.9;
    margin-top: 0;
    margin-bottom: 40px;
}

.company-link {
    color: #00aaff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.company-link:hover {
    color: #66ccff;
    text-decoration: none;
}

.buttons-group {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.action-button {
    padding: 16px 35px;
    font-size: 1.2em;
    font-weight: 600;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    min-width: 180px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    user-select: none;
}

.action-button.primary {
    background: linear-gradient(45deg, #00e676, #00c853);
    color: #1a1a2e;
}

.action-button.primary:hover {
    background: linear-gradient(45deg, #00c853, #00e676);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 230, 118, 0.5);
}

.action-button.secondary {
    background: linear-gradient(45deg, #2a2a2a, #4a4a4a);
    color: #e0e0e0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(80, 80, 90, 0.5);
}

.action-button.secondary:hover {
    background: linear-gradient(45deg, #4a4a4a, #2a2a2a);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.action-button:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.top-nav-menu {
    position: absolute;
    top: 25px;
    width: calc(100% - 50px);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 3;
    padding: 0 25px;
    box-sizing: border-box;
}

.nav-toggle-button {
    background: rgba(35, 35, 45, 0.9);
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    border: 1px solid rgba(60, 60, 70, 0.4);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    user-select: none;
}

.nav-toggle-button.left {
    background: linear-gradient(45deg, #ff9f00, #ffb84d);
    color: #222;
}

.nav-toggle-button.right {
    background: linear-gradient(45deg, #00aaff, #00c2ff);
    color: #222;
}

.nav-toggle-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.4);
}

.nav-toggle-button.left:hover {
    background: linear-gradient(45deg, #ffb84d, #ff9f00);
}

.nav-toggle-button.right:hover {
    background: linear-gradient(45deg, #00c2ff, #00aaff);
}

.dropdown-menu {
    position: absolute;
    background: rgba(25, 25, 35, 0.95);
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0px 6px 18px 0px rgba(0,0,0,0.5);
    display: none;
    z-index: 10;
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    min-width: 160px;
    text-align: left;
    border: 1px solid rgba(60, 60, 70, 0.4);
    top: calc(100% + 10px);
    user-select: none;
}

.dropdown-menu.left {
    left: 0;
}

.dropdown-menu.right {
    right: 0;
}

.dropdown-menu.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    color: #e0e0e0;
    padding: 8px 12px;
    text-decoration: none;
    border-bottom: 1px solid rgba(60, 60, 70, 0.2);
    transition: all 0.2s ease;
    font-size: 0.95em;
    letter-spacing: 0.3px;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background-color: rgba(0, 170, 255, 0.1);
    color: #00aaff;
    transform: translateX(3px);
}

.site-footer {
    width: 100%;
    padding: 18px 0;
    background: rgba(0, 0, 0, 0.9);
    color: #888;
    font-size: 0.85em;
    position: relative;
    z-index: 2;
    box-shadow: 0 -3px 15px rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(40, 40, 50, 0.3);
    user-select: none;
}

.site-footer a {
    color: #00e676;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: #66ff99;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .main-header {
        padding: 30px 40px;
    }
    h1 {
        font-size: 3em;
    }
    h2 {
        font-size: 1.4em;
    }
    .action-button {
        padding: 14px 25px;
        font-size: 1.1em;
        min-width: 150px;
    }
    .buttons-group {
        gap: 15px;
    }
    .top-nav-menu {
        top: 15px;
        width: calc(100% - 30px);
        padding: 0 15px;
    }
    .nav-toggle-button {
        padding: 8px 15px;
        font-size: 0.9em;
    }
    .dropdown-menu {
        min-width: 140px;
    }
    .site-footer {
        padding: 15px 0;
        font-size: 0.8em;
    }
}

@media (max-width: 480px) {
    .main-header {
        padding: 20px 25px;
    }
    h1 {
        font-size: 2.5em;
    }
    h2 {
        font-size: 1.2em;
        margin-bottom: 25px;
    }
    .action-button {
        padding: 12px 20px;
        font-size: 1em;
        min-width: 130px;
    }
    .buttons-group {
        flex-direction: column;
        gap: 10px;
    }
    .top-nav-menu {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        position: static;
        width: 100%;
        padding: 10px 0;
    }
    .nav-toggle-button {
        width: 80%;
        max-width: 250px;
        justify-content: center;
    }
    .dropdown-menu {
        position: static;
        width: 80%;
        max-width: 250px;
        margin-top: 5px;
    }
    .dropdown-menu.left, .dropdown-menu.right {
        left: auto;
        right: auto;
    }
    .site-footer {
        padding: 10px 0;
        font-size: 0.75em;
    }
}
