/* Project Mind Matters - Main Stylesheet */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Arial', sans-serif;
}

:root {
    /* Pastel Green Mental Health Color Scheme */
    --color-primary: #8CC084;      /* Main green */
    --color-secondary: #A0D995;    /* Lighter green */
    --color-accent: #D4ECC4;       /* Pale green */
    --color-highlight: #BBF0DA;    /* Mint green */
    --color-text: #2C3E50;         /* Dark text */
    --color-text-light: #607D8B;   /* Lighter text */
    --color-bg-light: #ffffff;     /* White background */
    --color-bg-light-green: #f3fbf1; /* Very light green background */
    --transition-standard: all 0.3s ease;
    
    /* Standardized color palette */
    --primary-green: #5dcb85;
    --light-green: #e6f7ee;
    --medium-green: #98e2bd;
    --dark-green: #3ca366;
    --accent-green: #75d79e;
    --fade-green: rgba(93, 203, 133, 0.1);
    --lightest-green: #f3fbf1;
}

body {
    background: linear-gradient(135deg, var(--color-bg-light-green), var(--color-accent));
    min-height: 100vh;
    color: var(--color-text);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Common Elements - Shared across all pages */
/* Header & Navigation */
header {
    text-align: center;
    padding: 15px 0 5px;
    background: rgba(198, 238, 180, 0.9);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition-standard);
    display: flex;
    flex-direction: column;
    align-items: center;
}

header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.logo {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    transition: transform 0.5s ease;
    object-fit: cover;
}

.logo:hover {
    transform: rotate(10deg);
}

.site-title {
    font-size: 2em;
    color: #333;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

nav {
    text-align: center;
    padding: 10px 0;
    display: flex;
    justify-content: center;
    width: 100%;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 5px;
}

nav a {
    color: #333;
    text-decoration: none;
    margin: 0 15px;
    font-size: 1rem;
    position: relative;
    transition: var(--transition-standard);
    padding: 5px 0;
}

nav a:hover {
    color: var(--color-primary);
    background: transparent;
    transform: none;
}

nav a.active {
    background: transparent;
    color: var(--color-primary);
    font-weight: bold;
}

nav a:not(:last-child)::after {
    content: '|';
    position: absolute;
    right: -15px;
    color: rgba(0, 0, 0, 0.2);
}

.logo-container .image-placeholder {
    min-height: 60px;
    height: 60px;
    width: 60px;
    border-radius: 0;
    margin: 0;
    border: none;
}

/* Footer */
footer {
    background-color: white;
    padding: 50px 0 20px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column {
    padding: 0 15px;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--primary-green);
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--color-secondary);
}

.footer-column p {
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
}

.footer-links a {
    color: var(--color-text-light);
    text-decoration: none;
    margin-bottom: 10px;
    transition: var(--transition-standard);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--color-primary);
    transform: translateX(5px);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(140, 192, 132, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: var(--color-primary);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-bottom p {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* Section and common elements */
.page-section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5em;
    color: var(--dark-green);
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--color-secondary);
    border-radius: 3px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--color-primary);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: var(--transition-standard);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background: var(--color-secondary);
}

/* Image Placeholder */
.image-placeholder {
    background-color: rgba(0, 0, 0, 0.05);
    border: 2px dashed rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 200px;
    color: #888;
    position: relative;
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.image-placeholder:empty::before {
    content: 'Image Placeholder';
    font-style: italic;
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 100;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: var(--color-secondary);
    transform: translateY(-3px);
}

.scroll-top i {
    color: white;
    font-size: 24px;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

.float-animation {
    animation: float 5s ease-in-out infinite;
}

/* Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
}

.fade-in.appear {
    animation: fadeIn 1s forwards;
}

/* Responsive Media Queries */
@media screen and (max-width: 992px) {
    .section-title h2 {
        font-size: 2.2em;
    }
}

@media screen and (max-width: 768px) {
    header {
        padding: 8px 0;
        height: auto;
        min-height: 60px;
        flex-direction: column;
    }
    
    header .container {
        flex-direction: column;
        padding: 5px;
    }
    
    .site-title {
        font-size: 1.2em;
    }
    
    nav {
        padding: 5px 0;
        justify-content: center;
    }
    
    nav a {
        margin: 2px 5px;
        font-size: 0.8rem;
    }
    
    .logo {
        width: 30px;
        height: 30px;
    }
    
    .logo-container .image-placeholder {
        min-height: 30px;
        height: 30px;
        width: 30px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .section-title h2 {
        font-size: 2em;
    }
}

@media screen and (max-width: 576px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    .section-title h2 {
        font-size: 1.8em;
    }
    
    header {
        padding: 5px 0;
    }
    
    nav {
        flex-wrap: wrap;
        justify-content: center;
        padding-top: 3px;
    }
    
    nav a {
        padding: 3px 6px;
        margin: 2px 4px;
        font-size: 0.75rem;
    }
    
    .site-title {
        font-size: 1.1em;
    }
    
    .logo-container {
        margin-bottom: 5px;
    }
    
    .logo, 
    .logo-container .image-placeholder {
        width: 25px;
        height: 25px;
        min-height: 25px;
    }
}

/* Typography - Consistent font styling */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Arial', sans-serif;
    color: var(--dark-green);
    font-weight: 600;
    line-height: 1.3;
}

/* Only the footer headings should be primary-green */
.footer-column h3 {
    color: var(--primary-green);
}
