/*
    style.css
    Theme: Personal & Corporate Budget
    Design System: Retro + Biomorphic
    Color Scheme: Gradient
    Animation: Particle Animation
*/

/* -------------------------------------------------- */
/* 1. CSS Variables & Global Styles
/* -------------------------------------------------- */

:root {
    /* Color Palette - Retro Gradient */
    --primary-color: #8E2DE2; /* Vibrant Purple */
    --secondary-color: #4A00E0; /* Deep Blue */
    --accent-color: #FF8C00; /* Bright Orange */
    --accent-color-hover: #FFA500;

    /* Text Colors */
    --text-color-light: #FFFFFF;
    --text-color-dark: #363636;
    --text-color-headings: #222222;
    --text-color-muted: #7a7a7a;

    /* Backgrounds */
    --background-light: #f7f8fa;
    --background-dark: #1e1e2f;
    --background-card: #ffffff;
    
    /* Fonts */
    --font-headings: 'Archivo Black', sans-serif;
    --font-body: 'Roboto', sans-serif;
    
    /* Biomorphic Design Elements */
    --border-radius-soft: 15px;
    --border-radius-round: 50px;

    /* Glassmorphism Effect */
    --glass-background: rgba(255, 255, 255, 0.1);
    --glass-blur: 10px;
    --glass-border: 1px solid rgba(255, 255, 255, 0.2);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color-dark);
    line-height: 1.6;
    background-color: #fff;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6, .title, .subtitle {
    font-family: var(--font-headings);
    color: var(--text-color-headings);
}

.section {
    padding: 4rem 1.5rem;
}

.section-title {
    margin-bottom: 3rem !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* -------------------------------------------------- */
/* 2. Header & Navigation
/* -------------------------------------------------- */

.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.navbar-item.logo-text {
    font-family: var(--font-headings);
    font-size: 1.5rem;
    color: var(--primary-color);
}

.navbar-item {
    font-weight: bold;
    transition: color 0.3s ease;
}

.navbar-item:hover, .navbar-item.is-active {
    color: var(--primary-color);
    background-color: transparent !important;
}

/* -------------------------------------------------- */
/* 3. Global Button Styles
/* -------------------------------------------------- */
.button.is-primary.is-gradient,
input[type='submit'].is-primary.is-gradient {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    background-size: 250% auto;
    color: var(--text-color-light);
    border: none;
    border-radius: var(--border-radius-round);
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.4s ease-in-out;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.button.is-primary.is-gradient:hover,
input[type='submit'].is-primary.is-gradient:hover {
    background-position: right center;
    color: var(--text-color-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* -------------------------------------------------- */
/* 4. Hero Section
/* -------------------------------------------------- */
#hero {
    position: relative;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: var(--text-color-light);
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
    z-index: 1;
}

.hero-body {
    position: relative;
    z-index: 2;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

#hero .title.is-1, #hero .subtitle.is-3 {
    color: var(--text-color-light);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}


/* -------------------------------------------------- */
/* 5. Features Section
/* -------------------------------------------------- */
.tabs.is-toggle li.is-active a {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-color-light);
}

.tabs.is-toggle a {
    border-radius: var(--border-radius-round);
}

.features-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.features-content.is-active {
    display: block;
}

.feature-card {
    border-radius: var(--border-radius-soft);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* -------------------------------------------------- */
/* 6. Card Styles (Team, Accolades, Resources)
/* -------------------------------------------------- */
.card {
    border-radius: var(--border-radius-soft);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-content {
    text-align: center;
    flex-grow: 1;
}

.accolade-card {
    background-color: var(--background-dark);
    color: var(--text-color-light);
    border-left: 5px solid var(--accent-color);
}

.accolade-card .has-text-weight-bold {
    color: var(--accent-color);
}

.team-card {
    align-items: center; /* Ensures content is centered horizontally */
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.team-card .card-image {
    width: 100%;
}

.team-card .card-image img {
    height: 250px;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.resource-card a {
    color: var(--primary-color);
    font-weight: bold;
    transition: color 0.3s ease;
}

.resource-card a:hover {
    color: var(--accent-color);
}

/* -------------------------------------------------- */
/* 7. Sustainability Section (Parallax & Glassmorphism)
/* -------------------------------------------------- */
.parallax-section {
    position: relative;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.parallax-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.parallax-section .container {
    position: relative;
    z-index: 1;
}

.content-box {
    background: var(--glass-background);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: var(--glass-border);
    border-radius: var(--border-radius-soft);
    padding: 2.5rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Disable parallax on mobile for performance */
@media (max-width: 768px) {
    .parallax-section {
        background-attachment: scroll;
    }
}

/* -------------------------------------------------- */
/* 8. Events Calendar (Timeline)
/* -------------------------------------------------- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-marker {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--background-card);
    border: 4px solid var(--primary-color);
    top: 25px;
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-marker {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-marker {
    left: -10px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: var(--background-light);
    border-radius: var(--border-radius-soft);
    position: relative;
}

@media (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
        left: 0 !important;
    }
    .timeline-marker {
        left: 21px !important;
    }
}


/* -------------------------------------------------- */
/* 9. Contact Form
/* -------------------------------------------------- */
#contact-form .input,
#contact-form .textarea {
    border-radius: var(--border-radius-soft);
    border: 2px solid #dbdbdb;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#contact-form .input:focus,
#contact-form .textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.125em rgba(142, 45, 226, 0.25);
}

/* -------------------------------------------------- */
/* 10. Footer
/* -------------------------------------------------- */
.footer {
    background-color: var(--background-dark);
    color: var(--text-color-light);
    padding: 3rem 1.5rem 2rem;
}

.footer .title {
    color: var(--text-color-light);
}

.footer .footer-title {
    color: var(--text-color-light);
    margin-bottom: 1rem;
}

.footer a {
    color: var(--text-color-light);
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--accent-color);
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
}

/* -------------------------------------------------- */
/* 11. Standalone Pages (Success, Privacy, Terms)
/* -------------------------------------------------- */
/* Container for Privacy & Terms to avoid header overlap */
.static-page-content {
    padding-top: 100px;
    padding-bottom: 50px;
}

/* Success Page Styling */
.success-page-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--text-color-light);
}

.success-page-container .title,
.success-page-container .subtitle {
    color: var(--text-color-light);
}

.success-page-container .button {
    margin-top: 2rem;
}

/* -------------------------------------------------- */
/* 12. Utility & Animation Classes
/* -------------------------------------------------- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.has-text-shadow {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}