/* style.css */

/*
--- Table of Contents ---
1.  CSS Variables
2.  Global Styles & Typography
3.  Header & Navigation
4.  Hero Section
5.  Button & Form Styles
6.  Card Styles
7.  Section Specific Styles
    - Methodology (Timeline)
    - Success Stories & Webinars
    - Testimonials & Awards
    - External Resources
    - Contact & Community
8.  Footer
9.  Page Specific Styles (Privacy, Terms, Success)
10. Animation & Utility Classes
11. Responsive Design (Media Queries)
*/

/* 1. CSS Variables */
:root {
    /* Gradient Color Scheme */
    --gradient-start: #4A00E0;
    --gradient-end: #8E2DE2;
    --gradient-background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    
    /* Corporate & Biomorphic Palette */
    --primary-color: #6A11CB;
    --accent-color: #2575FC;
    --light-background: #f7f9fc;
    --dark-background: #1c1d2e;
    
    /* Text Colors */
    --text-dark: #363636; /* Bulma's default dark text */
    --text-dark-contrast: #222222;
    --text-light: #ffffff;
    --text-muted: #7a7a7a;

    /* Fonts */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'IBM Plex Sans', sans-serif;

    /* UI Elements */
    --border-radius-smooth: 12px;
    --border-radius-biomorphic: 60% 40% 30% 70% / 60% 30% 70% 40%;
    --box-shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.08);
    --box-shadow-interactive: 0 12px 30px rgba(106, 17, 203, 0.3);
    --transition-smooth: all 0.3s ease-in-out;
}

/* 2. Global Styles & Typography */
html {
    scroll-behavior: smooth;
    background-color: var(--text-light);
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.section {
    padding: 5rem 1.5rem;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
}

a {
    color: var(--primary-color);
    transition: var(--transition-smooth);
}

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

/* 3. Header & Navigation */
.navbar.is-fixed-top {
    background-color: transparent;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.navbar.is-scrolled {
    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.1);
}

.navbar-item, .navbar-link {
    font-family: var(--font-body);
    font-weight: 500;
    transition: var(--transition-smooth);
}

.navbar.is-transparent .navbar-item {
    color: var(--text-light);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}
.navbar.is-scrolled .navbar-item {
    color: var(--text-dark);
}


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

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

.navbar-burger span {
    background-color: var(--text-light);
    height: 2px;
}
.navbar.is-scrolled .navbar-burger span {
    background-color: var(--text-dark);
}

/* 4. Hero Section */
#hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

#hero .title.is-1 {
    font-size: 3.5rem;
    font-weight: 800;
}

#hero .subtitle.is-3 {
    font-weight: 400;
    opacity: 0.9;
}

/* 5. Button & Form Styles */
.button {
    font-family: var(--font-body);
    border-radius: var(--border-radius-smooth);
    border: none;
    transition: var(--transition-smooth);
    font-weight: 600;
    padding: 1.25em 2.5em;
}

.button.is-primary {
    background: var(--gradient-background);
    color: var(--text-light);
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-interactive);
}
.button:active {
    transform: translateY(-1px);
}

.input, .textarea, .select select {
    border-radius: var(--border-radius-smooth);
    border-color: #dbdbdb;
    box-shadow: none;
    transition: var(--transition-smooth);
    padding: 1.25em 1em;
}

.input:focus, .textarea:focus, .select select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.125em rgba(106, 17, 203, 0.25);
}
.select::after {
    border-color: var(--primary-color);
}

/* 6. Card Styles */
.card {
    border: none;
    border-radius: var(--border-radius-smooth);
    box-shadow: var(--box-shadow-soft);
    transition: var(--transition-smooth);
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: center; /* Center text content */
}

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

.card .card-image {
    padding: 1.5rem 1.5rem 0 1.5rem; /* Padding around the image */
}

.card .card-image img {
    border-radius: 8px;
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    margin: 0 auto; /* Ensures centering if width is less than container */
}

.card .card-content {
    flex-grow: 1; /* Allow content to fill remaining space */
}

/* 7. Section Specific Styles */

/* Methodology (Timeline) */
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: auto;
}
.timeline-container::after {
    content: '';
    position: absolute;
    width: 4px;
    background-image: var(--gradient-background);
    top: 0;
    bottom: 0;
    left: 20px;
}
.timeline-item {
    padding: 10px 40px 30px 60px;
    position: relative;
}
.timeline-marker {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background: var(--gradient-background);
    border: 4px solid var(--light-background);
    top: 20px;
    left: 10px;
    border-radius: 50%;
    z-index: 1;
}
.timeline-content {
    background: var(--text-light);
    border-radius: var(--border-radius-smooth);
    padding: 1.5rem;
    box-shadow: var(--box-shadow-soft);
}

/* Success Stories & Webinars */
.box.has-biomorphic-shape {
    border-radius: var(--border-radius-biomorphic);
    padding: 2rem;
    background: var(--light-background);
}
.card.has-biomorphic-shape-soft {
    border-radius: 30px;
}

progress.progress.is-primary::-webkit-progress-value {
    background: var(--gradient-background);
}
progress.progress.is-primary::-moz-progress-bar {
    background: var(--gradient-background);
}

/* Testimonials & Awards */
.testimonial-box {
    border-left: 5px solid var(--primary-color);
    background-color: var(--light-background);
    border-radius: 0 var(--border-radius-smooth) var(--border-radius-smooth) 0;
    padding: 2rem;
}
#awards .column img {
    transition: var(--transition-smooth);
}
#awards .column:hover img {
    transform: scale(1.1);
}

/* External Resources */
.resource-card {
    background-color: var(--text-light);
}

.resource-card .card-content a {
    text-decoration: none;
    color: var(--text-dark-contrast);
}

.resource-card:hover {
    border-left: 4px solid var(--accent-color);
}

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

/* Contact & Community */
.contact-form, #community form {
    background-color: var(--light-background);
    padding: 2.5rem;
    border-radius: var(--border-radius-smooth);
}

/* 8. Footer */
.footer {
    background-color: var(--dark-background);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 1.5rem;
}

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

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

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

.footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer li {
    margin-bottom: 0.5rem;
}

/* 9. Page Specific Styles (Privacy, Terms, Success) */
.static-page-content {
    padding-top: 100px;
    padding-bottom: 4rem;
}

.success-page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--light-background);
}

.success-box {
    background: var(--text-light);
    padding: 3rem;
    border-radius: var(--border-radius-smooth);
    box-shadow: var(--box-shadow-soft);
}

/* 10. Animation & Utility Classes */
.reveal {
    opacity: 1;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.has-text-dark-contrast {
    color: var(--text-dark-contrast) !important;
}

/* 11. Responsive Design (Media Queries) */
@media screen and (max-width: 1023px) {
    .navbar-menu {
        background-color: var(--text-light);
        box-shadow: 0 8px 16px rgba(10, 10, 10, 0.1);
        border-radius: var(--border-radius-smooth);
    }
    .navbar.is-transparent .navbar-menu .navbar-item {
        color: var(--text-dark);
        text-shadow: none;
    }
    .navbar-item {
        padding: 1rem 1.5rem;
    }
}

@media screen and (max-width: 768px) {
    .section {
        padding: 3rem 1rem;
    }
    #hero .title.is-1 {
        font-size: 2.5rem;
    }
    #hero .subtitle.is-3 {
        font-size: 1.25rem;
    }
    .timeline-container::after {
        left: 11px;
    }
    .timeline-item {
        padding-left: 50px;
    }
    .timeline-marker {
        left: 0;
        width: 24px;
        height: 24px;
    }
}