/* ===========================================
   StemScribe - Layout (Background, Header, Hero, Footer)
   =========================================== */

/* Psychedelic animated background */
.psych-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
}

.psych-bg::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(255, 123, 84, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(198, 120, 221, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 20%, rgba(97, 175, 239, 0.1) 0%, transparent 40%),
        radial-gradient(ellipse at 30% 80%, rgba(255, 107, 157, 0.1) 0%, transparent 45%);
    animation: psych-drift 20s ease-in-out infinite;
}

@keyframes psych-drift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(2%, -2%) rotate(1deg); }
    50% { transform: translate(-1%, 2%) rotate(-1deg); }
    75% { transform: translate(-2%, -1%) rotate(0.5deg); }
}

/* Floating orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: float 15s ease-in-out infinite;
}

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

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--psych-purple);
    top: 60%;
    right: -5%;
    animation-delay: -5s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: var(--psych-teal);
    bottom: 10%;
    left: 30%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Header */
.header {
    position: relative;
    z-index: 10;
    padding: 1.5rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-symbol {
    font-size: 2rem;
    animation: spin-slow 10s linear infinite;
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.logo-img {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: contain;
}

.logo-text {
    font-family: 'Righteous', cursive;
    font-size: 1.8rem;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--psych-orange), var(--psych-pink), var(--psych-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--psych-orange);
}

/* Main Container */
.container {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Hero */
.hero {
    text-align: center;
    margin-bottom: 4rem;
}

.hero-label {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--psych-teal);
    background: rgba(86, 182, 194, 0.1);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    border: 1px solid rgba(86, 182, 194, 0.2);
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-family: 'Righteous', cursive;
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, var(--psych-orange) 0%, var(--psych-pink) 50%, var(--psych-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 5s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero p {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    color: var(--text-dim);
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Footer */
.footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 3rem 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-dim);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--psych-orange);
}
