/* Shared styles for TeamUp landing and terms pages */

/* Reset and variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6847FF;
    --surface: #191921;
    --surface-container: #1E2029;
    --on-surface: #FFFFFF;
    --error: #FF5252;
    --glow: rgba(104, 71, 255, 0.4);
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--surface);
    color: var(--on-surface);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Header / navigation */
header nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    position: relative;
}

.logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    /* center links horizontally within header */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links a {
    color: var(--on-surface);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    /* extra breathing room for select and back button */
}

.lang-select {
    background: transparent;
    color: var(--on-surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
}

.back-btn {
    padding: 0.8rem 2rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 30px rgba(104, 71, 255, 0.6);
}

/* Background animation (shared) */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.15;
}

.grid-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(104, 71, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(104, 71, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridScroll 20s linear infinite;
}

@keyframes gridScroll {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

.floating-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: float 8s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: #8B5CF6;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: #A855F7;
    bottom: 10%;
    left: 30%;
    animation-delay: 4s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Header common styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 5%;
    background: rgba(25, 25, 33, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(104, 71, 255, 0.2);
    animation: slideDown 0.8s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Footer */
.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.footer-content h3,
.footer-content h4 {
    margin-bottom: 0.5rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links a {
    color: var(--on-surface);
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
}