/* Color tokens are defined centrally in root.css (loaded before this file)
 * as --color-primary/--bg/etc., scoped to [data-bs-theme="dark|light"]. The
 * landing page is always forced to data-bs-theme="dark" (see landing.html).
 * These are just local aliases so the rest of this file (and the animation
 * stylesheets) can keep using their original, more descriptive names. */
:root {
    --primary-color: var(--color-primary);
    --secondary-color: var(--color-secondary);
    --tertiary-color: var(--color-tertiary);
    --background-color: var(--bg);
    --text-color: var(--text);

    --primary-color-75: var(--color-primary-75);
    --primary-color-50: var(--color-primary-50);
    --primary-color-25: var(--color-primary-25);

    --secondary-color-75: var(--color-secondary-75);
    --secondary-color-50: var(--color-secondary-50);
    --secondary-color-25: var(--color-secondary-25);

    --tertiary-color-75: var(--color-tertiary-75);
    --tertiary-color-50: var(--color-tertiary-50);
    --tertiary-color-25: var(--color-tertiary-25);
}

/* Scrollbar styling is handled centrally in root.css. */

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    min-height: 100dvh;
    width: 100vw;
    overflow-y: scroll;
    overflow-x: hidden;

    margin: 0;
    padding: 0;
    font-family: var(--font-mono);
    background-color: var(--background-color);
    color: var(--text-color);
    -ms-overflow-style: none; /* for Internet Explorer, Edge */
    scrollbar-gutter: stable; /* Prevent layout shift when scrollbar appears */
}

body:hover {
    -ms-overflow-style: auto; /* Show on hover for IE/Edge */
}

#circles-container-primary {
    z-index: 7;
}

#circles-container-secondary {
    z-index: 6;
}

.content {
    width: 100vw;
    height: 100vh;
    background: #000;
}

.footer {
    z-index: 20;
    margin-top: 100dvh;
    height: 30px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 0.5rem;
    
    border-top: 1px solid #696969;
    color: #696969;
    background-color: rgba(69, 69, 69, 0.33);
    backdrop-filter: blur(10px);    
}

.background-animation, .main-overlay {
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    top: 0;
    left: 0;
    width: 100dvw;
    height: 100dvh;
}


.background-animation {    
    z-index: 3;
    opacity: 0.69;
}

.main-overlay {
    z-index: 4;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    max-width: 60vw;
    max-height: 50vh;
}

.logo {
    max-width: 60vw;
    max-height: 50vh;
    z-index: 11;
}

.logo-circle {
    position: absolute;    
    border-radius: 50%;
    
    opacity: 0.33;
    filter: blur(15px);
    background: radial-gradient(circle, var(--primary-color) 0%, var(--secondary-color) 100%);
    background-size: 200% 200%;
    background-position: 0% 0%;
    animation: gradient-animation 10s infinite alternate ease-in-out;
    box-shadow: 0 0 20px var(--primary-color-50);

    z-index: 10;
}

@keyframes gradient-animation {
    0% { background-position: 0% 0%; scale: 1; rotate: 30deg; }
    25% { background-position: 100% 0%; scale: 1.025;}
    50% { background-position: 100% 100%; scale: 1; rotate: 60deg; }
    75% { background-position: 0% 100%; scale: 1.025; }
    100% { background-position: 0% 0%; scale: 1; rotate: 30deg; }
}

.logo-circle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-color) 0%, var(--secondary-color) 100%);
    background-size: 200% 200%;
    animation: gradient-animation 10s infinite alternate ease-in-out;
}


.logo-text {
    font-size: 2rem;
    text-align: center;
    margin-top: 10px;
    z-index: 11;
}

.logo-text .primary {
    color: var(--primary-color);
}
.logo-text .secondary {
    color: var(--secondary-color);
}

.contact,
.actions {
    margin-top: 25px;
    display: flex;
    gap: 16px;
}

/* Stacks multiple .actions rows (e.g. DASHBOARD then TERMINAL) so they all
 * share the width of the widest row, instead of each row shrinking to its
 * own content. */
.action-rows {
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
}

.action-rows .actions {
    justify-content: center;
}

.actions a.button,
.actions button.button {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
}

.button {
    padding: 5px 20px;
    font-size: 1.2rem;
    
    color: var(--tertiary-color);
    background-color: rgba(69, 69, 69, 0.33);
    backdrop-filter: blur(5px);  
    border: 2px solid var(--tertiary-color);
    border-radius: 10px;
    scale: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 11;
}

.button:hover {
    color: var(--secondary-color);
    border: 2px solid var(--primary-color);
    scale: 1.2;      
}


img.pulse {
    animation: imgpulse 10s infinite alternate ease-in-out;
}

@keyframes imgpulse {
    0% { scale: 1; rotate: 0deg; }
    20% { scale: 1; rotate: -2deg; }
    40% { scale: 1.05; }
    60% { scale: 1.05; }
    80% { scale: 1; rotate: 2deg; }
    100% { scale: 1; rotate: 0deg; }
}

.pulse1 {
    animation: pulse1 2s infinite alternate ease-in-out;
}

.pulse2 {
    animation: pulse2 2s infinite alternate ease-in-out;
}

@keyframes pulse1 {
    0% { opacity: 0.8; }
    33% { opacity: 1; }
    66% { opacity: 1; }
    100% { opacity: 1; }
}

@keyframes pulse2 {
    0% { opacity: 1; }
    33% { opacity: 1; }
    66% { opacity: 1; }
    100% { opacity: 0.8; }
}