* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    overflow: hidden;
    font-family: system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

.background {
    position: fixed;
    inset: 0;
    display: flex;
    z-index: 0;
}

.left,
.right {
    width: 50%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: background-image 0.2s ease-in-out,
                background-position 0.2s ease-in-out,
                transform 1s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.2s ease;
}

.left { background-image: url("public/terra_default.jpg"); }
.right { background-image: url("public/hydro_default.jpg"); }

.content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
    padding: 1rem; 
}

.stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    pointer-events: auto;
    text-align: center; 
}

.logo {
    max-width: 900px !important;
    width: 100%;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.button-pill {
    position: relative;
    display: flex;
    width: 300px;
    max-width: 90vw; 
    border-radius: 999px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(2px);
}

.button-pill button {
    flex: 1;
    padding: 14px 0;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    color: white;
    background: transparent;
    transition: background-color 100ms ease, color 100ms ease;
}

.button-pill button:focus {
    outline: none;
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.12);
}

.button-pill button.terra:hover {
    background-color: rgba(40, 167, 69, 0.95);
}

.button-pill button.hydro:hover {
    background-color: rgba(0, 123, 255, 0.95);
}

body:has(.terra:hover) .left {
    background-image: url("public/terra_hover.png");
    background-size: cover;
    background-position: 80% center;
    filter: brightness(1.1) saturate(1.05);
}

body:has(.hydro:hover) .right {
    background-image: url("public/hydro_hover.png");
    background-size: cover;
    background-position: 80% center;
    filter: brightness(1.1) saturate(1.05);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.stack { animation: fadeInUp 1s ease-out forwards; }
.logo { animation: fadeInUp 1.2s ease-out forwards; }
.button-pill { 
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.8s;
}

@keyframes scaleUp {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes floatLogo {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.02); }
}

@keyframes bounceLogo {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.05); }
}

.logo {
  animation:
    scaleUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards,
    floatLogo 4s ease-in-out infinite;
  transform-origin: center;
}

.logo:hover {
  animation: bounceLogo 0.6s ease-in-out;
  filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.9));
}

@media (max-width: 1024px) {
    .button-pill { width: 250px; }
    .logo { max-width: 280px; }
}

@media (max-width: 768px) {
    .stack { gap: 20px; }
    .button-pill { width: 200px; }
    .logo { max-width: 220px; }
}

@media (max-width: 480px) {
    .stack { gap: 16px; }
    .button-pill { width: 90vw; padding: 12px 0; }
    .button-pill button { font-size: 0.9rem; padding: 10px 0; }
    .logo { max-width: 180px; }
}
