/* style.css */

/* --- CSS Variables --- */
:root {
    --primary-color: #2a9d8f; /* A calming teal green */
    --primary-color-dark: #238478;
    --secondary-color: #264653; /* Dark slate blue, for text and headings */
    --accent-color: #e9c46a; /* Warm sandy yellow */
    --accent-color-dark: #d4b25f;
    --background-light: #f7f9f9;
    --background-white: #ffffff;
    --text-color: #4a4a4a; /* Bulma's default text color, good contrast */
    --headings-color: var(--secondary-color);
    --border-color: #dbdbdb;
    --border-radius: 8px;
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.1);
    --font-family-headings: 'Manrope', sans-serif;
    --font-family-body: 'Rubik', sans-serif;
    --transition-speed: 0.3s;
}

/* --- Global Styles --- */
html {
    scroll-behavior: smooth;
    background-color: var(--background-white);
}

body {
    font-family: var(--font-family-body);
    color: var(--text-color);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#page-wrapper {
    transition: opacity var(--transition-speed) ease-in-out;
}

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

.section-title {
    margin-bottom: 2rem !important;
    font-weight: 800;
}

.content h1, .content h2, .content h3 {
    margin-bottom: 1.5rem;
}

p {
    margin-bottom: 1.25rem;
}

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

a:hover {
    color: var(--primary-color-dark);
}

/* --- Header & Navigation --- */
.navbar {
    transition: background-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.navbar.is-transparent {
    background-color: transparent;
}

.navbar.is-scrolled {
    background-color: var(--background-white);
    box-shadow: var(--shadow-medium);
}

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

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

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

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

/* Burger menu for mobile */
.navbar-burger {
    color: var(--background-white);
}

.navbar.is-scrolled .navbar-burger {
    color: var(--text-color);
}

@media screen and (max-width: 1023px) {
    .navbar-menu {
        background-color: var(--background-white);
        box-shadow: 0 8px 16px rgba(10, 10, 10, 0.1);
        border-radius: 0 0 var(--border-radius) var(--border-radius);
    }
    .navbar-menu .navbar-item {
        color: var(--text-color) !important;
    }
    .navbar-menu .navbar-item:hover {
        color: var(--primary-color) !important;
    }
}


/* --- Button Styles (Global) --- */
.button {
    font-family: var(--font-family-headings);
    font-weight: 700;
    border-radius: var(--border-radius);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease, background-color var(--transition-speed) ease;
    border-width: 2px;
}

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

.button.is-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.button.is-primary:hover {
    background-color: var(--primary-color-dark);
    border-color: var(--primary-color-dark);
}

.button.is-large {
    padding: 1.5rem 2.5rem;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

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

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

.hero-title, .hero-subtitle {
    color: var(--background-white) !important;
}

/* Parallax Effect */
.parallax-background {
    background-attachment: fixed;
}

/* --- Section Styling --- */
.section {
    padding: 4rem 1.5rem;
}

@media screen and (min-width: 769px) {
    .section {
        padding: 6rem 1.5rem;
    }
}

/* --- Card Styles --- */
.card {
    background-color: var(--background-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Ensures border-radius is respected by children */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.card .card-image {
    width: 100%;
    text-align: center;
}

.card .card-image img {
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    object-fit: cover;
    width: 100%;
    height: 200px; /* Fixed height for consistent card appearance */
}

.card .card-content {
    padding: 1.5rem;
    text-align: left;
    flex-grow: 1; /* Allows content to fill the remaining space */
    display: flex;
    flex-direction: column;
}

.card .card-content .content {
    margin-top: auto;
}

/* --- Timeline / Case Studies Section --- */
.timeline-container {
    max-width: 800px;
    margin: 2rem auto;
}

.timeline {
    position: relative;
    padding-left: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-marker {
    position: absolute;
    left: -31px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--background-light);
    border: 3px solid var(--primary-color);
    z-index: 1;
}

.timeline-content .heading {
    color: var(--headings-color);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.timeline-content p:last-child {
    margin-bottom: 0;
}

/* Progress Indicators */
progress.progress {
    height: 12px;
    border-radius: var(--border-radius);
}
progress.progress::-webkit-progress-bar {
    background-color: #eee;
}
progress.progress.is-primary::-webkit-progress-value {
    background-color: var(--primary-color);
}
progress.progress.is-success::-webkit-progress-value {
    background-color: var(--accent-color);
}

/* --- Contact Form --- */
.box {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}
.input, .textarea {
    border-radius: var(--border-radius);
    border-color: var(--border-color);
    box-shadow: none;
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.input:focus, .textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.125em rgba(42, 157, 143, 0.25);
}

/* --- External Resources Section --- */
.resource-list ul {
    list-style: none;
    margin-left: 0;
}

.resource-list li {
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    transition: all var(--transition-speed) ease;
}

.resource-list li:hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.resource-list a {
    font-weight: 500;
    font-size: 1.1rem;
}

/* --- Footer --- */
.footer {
    background-color: var(--secondary-color);
    color: rgba(255, 255, 255, 0.8);
}

.footer .title {
    color: var(--background-white);
}

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

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

.footer hr {
    background-color: rgba(255, 255, 255, 0.1);
}

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

/* --- Special Pages (Success, Privacy, Terms) --- */
.page-container {
    padding-top: 100px; /* Avoid header overlap */
    padding-bottom: 4rem;
}

.success-page-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    padding: 2rem;
}

/* --- AOS Animation Overrides --- */
[data-aos] {
    transition-property: transform, opacity;
}