:root {
    --bg-main: #0a0f1d;
    --bg-accent: #1e1b4b;
    --card-bg: rgba(30, 41, 59, 0.7);
    --text-main: #f1f5f9;
    --accent: #2dd4bf;
    --border: rgba(255, 255, 255, 0.1);
}

body { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    line-height: 1.8;
    color: var(--text-main);
    
    /* NEW: Essential for the layer to sit behind content */
    position: relative; 
    background-color: #020617; /* Fallback color */
}

/* --- THE BACKGROUND ENGINE --- */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Sends it to the back */

    /* The Colors: Deep Green -> Blue -> Purple -> Deep Green */
    background-image: linear-gradient(-45deg, 
        #064e3b, /* Deep Emerald */
        #0369a1, /* Sky Blue */
        #4c1d95, /* Purple */
        #064e3b  /* Back to Emerald */
    );

    background-size: 400% 400%;

    /* The Movement (40s = slow and fluid) */
    animation: gradientSlide 40s ease-in-out infinite;

    /* THE RANDOMIZER: This accepts the time jump from your JavaScript */
    animation-delay: var(--random-start, 0s);

    pointer-events: none;
    will-change: background-position;
}

@keyframes gradientSlide {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.container { 
    max-width: 1100px; 
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.intro-column {
    animation: fadeIn 1.2s ease-out;
}

.hero-image {
    width: 100%;
    border-radius: 40px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    border: 1px solid var(--border);
    transition: transform 0.5s ease;
}

.hero-image:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(45, 212, 191, 0.2);
}

h1 { 
    font-size: 4rem; 
    margin: 30px 0 10px 0; 
    letter-spacing: -3px;
    line-height: 1;
    color: white;
}

.bio { 
    font-size: 1.15rem;
    color: #cbd5e1;
    max-width: 500px;
    margin-bottom: 25px;
}

.interaction-zone {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    padding: 60px;
    border-radius: 40px;
    border: 1px solid var(--border);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    animation: slideUp 1s ease-out;
}

h3 { 
    margin-top: 0; 
    color: var(--accent); 
    font-size: 1.5rem;
    margin-bottom: 20px;
}

form { display: flex; flex-direction: column; gap: 25px; }

input, textarea { 
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border);
    color: white;
    padding: 20px;
    border-radius: 15px;
    font-family: inherit;
    font-size: 1rem;
    transition: border 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
}

textarea { min-height: 120px; resize: vertical; }

button { 
    background: var(--accent);
    color: #0f172a;
    font-weight: 800;
    padding: 22px;
    font-size: 1.1rem;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

button:hover { 
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(45, 212, 191, 0.4);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

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

.footer-message {
    width: 100%;
    text-align: center;
    margin-top: 60px;
    color: var(--text-main);
    display: flex;
    justify-content: center;
}

.psychology-today-badge {
    display: flex;
    justify-content: center;
    transform: scale(1.5);       
    transform-origin: top center; 
    margin-bottom: 0;
}

.faq-container {
    align-items: start;
}

.faq-zone {
    padding: 40px;
}

.faq-item {
    margin-bottom: 30px;
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-item h4 {
    color: var(--accent);
    margin: 0 0 10px 0;
    font-size: 1.1rem;
}

.faq-item p {
    color: #cbd5e1;
    margin: 0 0 10px 0;
}

.faq-item p:last-child {
    margin-bottom: 0;
}

.faq-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    background: var(--accent);
    color: #0f172a;
    font-weight: 800;
    padding: 15px 30px;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.faq-link:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(45, 212, 191, 0.4);
}

.connect-intro {
    color: #cbd5e1;
    margin: 0 0 15px 0;
    font-size: 0.95rem;
}

.connect-intro a {
    color: var(--accent);
    text-decoration: none;
}

.connect-intro a:hover {
    text-decoration: underline;
}

.contact-details {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.contact-details .divider {
    color: #475569;
}

.form-label {
    color: #94a3b8;
    font-size: 0.85rem;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-details a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.contact-details a:hover {
    text-decoration: underline;
}

/* Hide the bottom button by default (Desktop) */
.mobile-home-btn {
    display: none;
}

/* MOBILE VERSION */
@media (max-width: 900px) {
    /* 1. Turn the Grid into a vertical Stack */
    .container {
        display: flex;
        flex-direction: column;
        gap: 40px;
        height: auto;
        padding-top: 0;
    }

    /* 2. Center the text and photo for a cleaner look */
    .intro-column {
        text-align: center;
    }

    /* 3. Make the main photo slightly smaller/centered */
    .hero-image {
        max-width: 80%;
        margin: 0 auto;
        display: block;
    }

    /* 4. Shrink the giant name text a bit so it fits */
    h1 {
        font-size: 3rem;
    }

    /* 5. Keep the badge tweaks you already had */
    .psychology-today-badge {
        transform: scale(1.3);
    }

    /* Show the bottom FAQ Home button only on Mobile */
    .mobile-home-btn {
        display: block;
        margin-top: 40px;
        text-align: center;
    }
}