/*
 * New template styling for NeuroVibe
 *
 * This stylesheet defines a bold, modern colour palette inspired by the provided design
 * and implements a responsive layout for the navigation and hero section.
 */

:root {
    /* Primary brand colours */
    --purple: #6b5cff;
    --purple-dark: #513cbc;
    --green: #b2fa70;
    --text-dark: #000000;
    --text-light: #ffffff;
    /* Gradients for the hero columns */
    --gradient-left: linear-gradient(135deg, #6b5cff, #a288f7);
    --gradient-right: linear-gradient(135deg, #7ed6df, #22a6b3);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: #fdfdfd;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Navigation bar styling */
.navbar {
    background-color: var(--purple-dark);
    padding: 0.5rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-item {
    display: inline-block;
    margin: 0.5rem;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-dark);
    background-color: var(--text-light);
    border: 2px solid var(--text-dark);
    border-radius: 0.4rem;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-decoration: none;
}

.nav-item:hover {
    background-color: var(--green);
    color: var(--text-dark);
}

/* Header image styling */
.image-header img {
    width: 100%;
    height: auto;
    display: block;
}

.image-header {
    margin: 0;
    /* ensures the header image sits flush with adjacent sections */
}

/* Hero section */
.hero {
    display: flex;
    flex-wrap: wrap;
    min-height: 80vh;
}

.hero-left {
    flex: 1 1 50%;
    background: var(--gradient-left);
    /* To replace with a custom image, uncomment the next line and set your image URL */
    /* background-image: url('path/to/your/image.jpg'); */
    background-size: cover;
    background-position: center;
}

.hero-right {
    flex: 1 1 50%;
    background: var(--gradient-right);
    padding: 2rem 2.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-brand {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.hero-brand a {
    color: var(--text-dark);
    text-decoration: none;
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.tagline-highlight {
    background-color: var(--green);
    border: 2px solid var(--text-dark);
    padding: 0.5rem 1rem;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1rem;
    max-width: 90%;
}

/* Footer styles */
.footer {
    text-align: center;
    padding: 1rem 0;
    background-color: #f1f1f1;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.footer a {
    color: var(--purple-dark);
    text-decoration: none;
    font-weight: 600;
}

.footer a:hover {
    text-decoration: underline;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .nav-item {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    .hero {
        flex-direction: column;
    }
    .hero-left,
    .hero-right {
        flex: 1 1 100%;
    }
    .hero h1 {
        font-size: 1.6rem;
    }
    .tagline-highlight {
        font-size: 0.9rem;
    }
}