/* style.css */

/* --- 1. CSS Variables --- */
:root {
    --primary-color: #007BFF; /* A vibrant, tech-inspired blue */
    --primary-color-dark: #0056b3;
    --accent-color: #4CAF50; /* A green accent for sustainability */
    
    --text-dark: #222222;
    --text-medium: #333333;
    --text-light: #555555;
    --text-on-dark: #FFFFFF;
    
    --background-light: #f4f7f6;
    --background-neutral: #FFFFFF;
    --border-color: #dee2e6;

    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Nunito', sans-serif;
    
    --box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    --box-shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.12);
    --border-radius: 12px;
    --transition-speed: 0.3s ease-in-out;
}

/* --- 2. General & Typographical Styles --- */
html {
    scroll-behavior: smooth;
    background-color: var(--background-neutral);
}

body {
    font-family: var(--font-body);
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Adaptive Typography */
h1, h2, h3, h4, .title {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 700;
}

.title.is-1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
.title.is-2 { font-size: clamp(2rem, 5vw, 3.5rem); }
.title.is-3 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
.title.is-4 { font-size: clamp(1.2rem, 3vw, 1.8rem); }

.subtitle {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--text-light);
    font-size: clamp(1rem, 2.5vw, 1.25rem);
}

p {
    margin-bottom: 1.25rem;
}

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

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

.section {
    padding: 4rem 1.5rem;
}

.section-title {
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* --- 3. Header & Navigation --- */
.navbar.is-fixed-top {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: background-color var(--transition-speed);
}

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

.navbar-item {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    transition: color var(--transition-speed);
}

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

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

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

/* --- 4. Hero Section --- */
.hero.is-fullheight .hero-body {
    padding: 0 1.5rem;
}

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

.hero-title, .hero-subtitle {
    color: var(--text-on-dark);
}

/* --- 5. Global Button Styles --- */
.button {
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 1.5em 2.5em;
    border: none;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.button.is-primary {
    background-color: var(--primary-color);
    color: var(--text-on-dark);
}

.button.is-primary:hover {
    background-color: var(--primary-color-dark);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-hover);
}

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

.button.is-link.is-outlined:hover {
    background-color: var(--primary-color);
    color: var(--text-on-dark);
}

/* --- 6. Component Styles --- */

/* Cards */
.card {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
}

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

.card-image {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 250px; /* Fixed height for image container */
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1; /* Allows content to fill space */
}
.card-content .title {
    margin-bottom: 0.5rem;
}
.card-content .subtitle {
    margin-top: 0;
}

/* Stat Widgets */
.stat-widget {
    padding: 2rem;
    text-align: center;
    border-radius: var(--border-radius);
    height: 100%;
}
.stat-number {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Timeline */
.timeline .timeline-item {
    padding-bottom: 2.5rem;
}
.timeline .timeline-content {
    padding: 1em 2em;
    border-radius: var(--border-radius);
    background-color: var(--background-light);
}

/* Client Logos */
.client-logos img {
    max-height: 60px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter var(--transition-speed), opacity var(--transition-speed);
}
.client-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Resource List */
.resource-list .media:not(:last-child) {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}
.resource-list a {
    font-weight: 600;
}

/* --- 7. Contact Form --- */
#contact-form .label {
    font-weight: 600;
    color: var(--text-dark);
}
.custom-input {
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: none;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}
.custom-input:focus, .custom-input:active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.125em rgba(0, 123, 255, 0.25);
}

/* --- 8. Parallax & Animation Effects --- */
.parallax-container {
    position: relative;
    overflow: hidden;
}

.parallax-container .hero-background,
.parallax-container .sustainability-background {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.sustainability-background {
    z-index: 0;
}
#sustainability .container {
    position: relative;
    z-index: 1;
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 1;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.215, 0.610, 0.355, 1);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* "Hand-drawn" Wobble Effect on Micro-interactions */
.micro-interaction:hover {
    animation: micro-wobble 0.5s ease-in-out;
}

@keyframes micro-wobble {
    0%, 100% { transform: translateY(-3px) rotate(0deg); }
    25% { transform: translateY(-3px) rotate(-1deg); }
    75% { transform: translateY(-3px) rotate(1deg); }
}

/* --- 9. Specific Page Styles --- */
.page-content {
    padding-top: 100px;
    padding-bottom: 4rem;
}

.page-content .content h1, .page-content .content h2 {
    margin-bottom: 2rem;
}

/* Success Page */
.success-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100vh;
    padding: 2rem;
    background-color: var(--background-light);
}
.success-page .success-box {
    background-color: var(--background-neutral);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 600px;
}
.success-page .success-icon {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}


/* --- 10. Footer --- */
.footer {
    background-color: var(--text-dark);
    color: rgba(255, 255, 255, 0.7);
}

.footer .title {
    color: var(--text-on-dark);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-speed);
}

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

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

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


/* --- 11. Responsive Adjustments --- */
@media screen and (max-width: 768px) {
    .section {
        padding: 3rem 1rem;
    }
    .section-title {
        margin-bottom: 2rem;
    }
    .columns.is-multiline .column {
        margin-bottom: 1.5rem;
    }
    .client-logos .column {
        flex-basis: 50%;
    }
    .footer {
        text-align: center;
    }
    .footer .column:not(:last-child) {
        margin-bottom: 2rem;
    }
}