/* style.css */

/* CSS Variables */
:root {
    --primary-color: #FF6B6B; /* Lively Coral/Red */
    --primary-color-darker: #e05252;
    --secondary-color: #4ECDC4; /* Medium Aquamarine/Teal */
    --secondary-color-darker: #3aa89f;
    --accent-color: #FFE66D; /* Maize Yellow */
    --text-color-dark: #363636; /* Dark Grey for readability on light backgrounds */
    --text-color-light: #FFFFFF; /* White for readability on dark backgrounds */
    --text-color-medium: #555555;
    --background-light: #F8F9FA; /* Very light grey */
    --background-grey: #f0f2f5;
    --background-dark: #2c3e50; /* Dark blue-grey for contrasts or dark sections */
    --border-color: #dbdbdb;
    --border-radius-small: 4px;
    --border-radius-medium: 8px;
    --border-radius-large: 12px;
    --shadow-light: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-medium: 0 5px 15px rgba(0,0,0,0.1);
    --shadow-strong: 0 8px 25px rgba(0,0,0,0.15);
    --font-family-headings: 'Inter', sans-serif;
    --font-family-body: 'IBM Plex Sans', sans-serif;
    --transition-speed-fast: 0.2s;
    --transition-speed-normal: 0.3s;
    --header-height: 70px; /* Approximate height of the fixed header */
}

/* Global Styles */
html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base font size */
}

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

.main-container {
    overflow-x: hidden; /* Prevents horizontal scroll from animations */
}

h1, h2, h3, h4, h5, h6, .title, .subtitle {
    font-family: var(--font-family-headings);
    color: var(--text-color-dark); /* Default dark for titles */
}
.title {
    font-weight: 700;
    color: #222222; /* Extra dark for section titles */
}
.subtitle {
    color: var(--text-color-medium);
}

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

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

.section {
    padding: 3rem 1.5rem; /* Default Bulma padding, can be adjusted */
}

/* Override Bulma section padding for larger screens */
@media screen and (min-width: 769px) {
    .section {
        padding: 4.5rem 1.5rem;
    }
}


/* Global Button Styles */
.button, button, input[type='submit'], input[type='button'] {
    font-family: var(--font-family-headings);
    font-weight: 700;
    border-radius: var(--border-radius-medium);
    transition: all var(--transition-speed-normal) cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: var(--shadow-light);
    border: none;
    padding: 0.8em 1.8em;
    font-size: 1rem;
}

.button.is-primary, button.is-primary, input[type='submit'].is-primary {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}
.button.is-primary:hover, button.is-primary:hover, input[type='submit'].is-primary:hover {
    background-color: var(--primary-color-darker);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}
.button.is-primary:focus, button.is-primary:focus, input[type='submit'].is-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 107, 0.3); /* --primary-color with alpha */
}

.button.is-secondary {
    background-color: var(--secondary-color);
    color: var(--text-color-light);
}
.button.is-secondary:hover {
    background-color: var(--secondary-color-darker);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Modern Input Styles */
.modern-input, .modern-textarea, .modern-select select {
    border-radius: var(--border-radius-medium);
    border: 1px solid var(--border-color);
    padding: 0.75em 1em;
    font-family: var(--font-family-body);
    transition: border-color var(--transition-speed-fast), box-shadow var(--transition-speed-fast);
    box-shadow: var(--shadow-light);
}
.modern-input:focus, .modern-textarea:focus, .modern-select select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.125em rgba(255, 107, 107, 0.25); /* --primary-color with alpha */
    outline: none;
}
.modern-select::after { /* Style the dropdown arrow if needed */
    border-color: var(--primary-color);
}
.label.contact-label {
    color: var(--text-color-light); /* For contact form on dark background */
    font-weight: bold;
}


/* Header & Navigation */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9); /* Slight transparency */
    backdrop-filter: blur(10px); /* Glassmorphism */
    box-shadow: var(--shadow-medium);
}
.navbar.is-transparent {
    background-color: transparent; /* Override Bulma default */
}
.navbar-item.logo-text {
    font-family: var(--font-family-headings);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}
.navbar-item {
    font-family: var(--font-family-body);
    font-weight: 600;
    color: var(--text-color-dark);
    transition: color var(--transition-speed-fast);
}
.navbar-item:hover, .navbar-item.is-active {
    background-color: transparent !important; /* Override Bulma */
    color: var(--primary-color) !important;
}
.navbar-burger {
    color: var(--text-color-dark);
}
.navbar-burger:hover {
    background-color: transparent; /* Override Bulma */
    color: var(--primary-color);
}
.navbar-menu {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}
@media screen and (max-width: 1023px) {
    .navbar-menu.is-active {
        display: block;
        position: absolute;
        width: 100%;
        left: 0;
        top: 100%; /* Position below navbar */
        box-shadow: var(--shadow-medium);
        border-top: 1px solid var(--border-color);
    }
    .navbar-menu .navbar-item {
        padding: 0.75rem 1rem;
    }
}


/* Hero Section */
.hero-section {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    color: var(--text-color-light);
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}
.hero-section .hero-body {
    position: relative;
    z-index: 2;
    padding-top: calc(var(--header-height) + 3rem); /* Adjust for fixed header */
}
.hero-title {
    color: var(--text-color-light) !important; /* Explicitly white */
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}
.hero-subtitle {
    color: rgba(255, 255, 255, 0.9) !important; /* Slightly transparent white */
    font-size: 1.5rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.6);
}
.hero-button {
    margin-top: 1rem;
    transform: perspective(1px) translateZ(0); /* For smoother animation */
}

@media screen and (min-width: 769px) {
    .hero-title {
        font-size: 4rem;
    }
    .hero-subtitle {
        font-size: 1.75rem;
    }
}

/* Section Titles */
.section-title {
    margin-bottom: 1rem;
    font-weight: 700;
    color: #222222; /* Ensure high contrast */
}
.section-subtitle {
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Card Styles (Global) */
.card {
    background-color: var(--text-color-light);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-medium);
    transition: transform var(--transition-speed-normal) ease-in-out, box-shadow var(--transition-speed-normal) ease-in-out;
    display: flex;
    flex-direction: column;
    height: 100%; /* For equal height cards in columns */
}
.card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-strong);
}
.card .card-image { /* Container for the image */
    border-top-left-radius: var(--border-radius-large);
    border-top-right-radius: var(--border-radius-large);
    overflow: hidden; /* Ensures image respects border radius */
    position: relative;
}
.card .card-image img {
    width: 100%;
    height: 200px; /* Fixed height for consistent card image sizes */
    object-fit: cover;
    display: block;
}
.card .card-content {
    padding: 1.5rem;
    flex-grow: 1; /* Allows content to take up remaining space */
    display: flex;
    flex-direction: column;
}
.card .card-content .title, .card .card-content .subtitle {
    margin-bottom: 0.75rem;
}
.card .card-content .content {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}
.card .card-footer {
    border-top: 1px solid var(--border-color);
    background-color: var(--background-light);
    border-bottom-left-radius: var(--border-radius-large);
    border-bottom-right-radius: var(--border-radius-large);
}
.card .card-footer-item {
    font-weight: bold;
    color: var(--primary-color);
    transition: background-color var(--transition-speed-fast), color var(--transition-speed-fast);
}
.card .card-footer-item:hover {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

/* Research Section */
.research-section {
    background-color: var(--background-grey);
}
.stat-widget .card-content {
    padding: 2rem 1.5rem;
    text-align: center;
}
.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}
.stat-description {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color-dark);
    margin-bottom: 0.75rem;
}
.stat-widget .is-size-6 {
    color: var(--text-color-medium);
}

.timeline-container {
    margin-top: 3rem;
}
.timeline-title {
    margin-bottom: 2rem;
}
.timeline .timeline-item .timeline-marker {
    background-color: var(--secondary-color);
}
.timeline .timeline-item .timeline-marker.is-icon {
    background-color: var(--secondary-color);
    color: var(--text-color-light);
}
.timeline .timeline-item .timeline-marker.is-primary { /* Bulma primary */
    background-color: var(--primary-color);
}
.timeline .timeline-item .timeline-content .heading {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}
.timeline .timeline-header .tag {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    font-weight: bold;
}
.research-text, .news-text-more, .testimonials-text-more, .pricing-text-more, .external-resources-text-more {
    margin-top: 2.5rem;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-color-medium);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: justify;
}

/* News Section */
.news-card .card-image figure {
    height: 200px; /* Ensure consistent image height */
}
.news-card .card-image img {
    height: 100%;
    object-fit: cover;
}
.news-item-title {
    font-size: 1.3rem;
    line-height: 1.3;
    color: var(--text-color-dark);
}
.news-item-date {
    color: var(--text-color-medium);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--background-grey);
}
.testimonial-card .media-left img {
    border: 2px solid var(--primary-color);
}
.testimonial-card .media-content .title {
    color: var(--text-color-dark);
}
.testimonial-card .media-content .subtitle {
    color: var(--text-color-medium);
}
.testimonial-card .content {
    font-style: italic;
    color: var(--text-color-medium);
    border-left: 3px solid var(--primary-color);
    padding-left: 1rem;
    margin-top: 1rem;
}
.testimonial-card .content time {
    display: block;
    font-style: normal;
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin-top: 0.5rem;
}

/* Pricing Section */
.pricing-card .card-header-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-color-dark);
    background-color: var(--secondary-color);
    color: var(--text-color-light);
    border-top-left-radius: var(--border-radius-large);
    border-top-right-radius: var(--border-radius-large);
}
.pricing-card .card-image figure {
    height: 180px;
}
.pricing-card .card-image img {
    height: 100%;
    object-fit: cover;
}
.price-tag {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}
.pricing-card ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 1rem;
    color: var(--text-color-medium);
}
.pricing-card ul li {
    margin-bottom: 0.5rem;
}
.pricing-card .card-footer-item.button.is-primary { /* Make footer button full width */
    width: 100%;
    border-radius: 0; /* Override button radius if it's full width in footer */
    border-bottom-left-radius: var(--border-radius-large);
    border-bottom-right-radius: var(--border-radius-large);
}


/* External Resources Section */
.external-links-section {
    background-color: var(--background-grey);
}
.external-link-item.box { /* Bulma box styling */
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--secondary-color);
    transition: transform var(--transition-speed-normal), box-shadow var(--transition-speed-normal);
}
.external-link-item.box:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-medium);
}
.external-link-item h4 a {
    color: var(--primary-color);
    font-weight: 600;
}
.external-link-item h4 a:hover {
    text-decoration: underline;
    color: var(--primary-color-darker);
}
.external-link-item p {
    color: var(--text-color-medium);
    font-size: 0.9rem;
}


/* Contact Section */
.contact-main-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding: 4rem 1.5rem;
}
.contact-form-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7));
    z-index: 1;
}
.contact-main-section .container {
    position: relative;
    z-index: 2;
}
.contact-title, .contact-subtitle {
    color: var(--text-color-light) !important;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
#contact-form .label { /* Contact form labels on dark background */
    color: var(--text-color-light);
    font-weight: 600;
}
.contact-info-text {
    margin-top: 2rem;
    color: rgba(255,255,255,0.85);
}
.contact-link {
    color: var(--accent-color);
    font-weight: bold;
}
.contact-link:hover {
    color: var(--text-color-light);
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: var(--background-dark);
    color: rgba(255,255,255,0.8);
    padding: 3rem 1.5rem 2rem;
}
.footer .footer-logo-text {
    font-family: var(--font-family-headings);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}
.footer .title.is-5.footer-title {
    color: var(--text-color-light);
    margin-bottom: 1rem;
    font-weight: 600;
}
.footer ul {
    list-style: none;
    margin-left: 0;
}
.footer ul li {
    margin-bottom: 0.5rem;
}
.footer .footer-link {
    color: rgba(255,255,255,0.7);
    transition: color var(--transition-speed-fast), padding-left var(--transition-speed-fast);
}
.footer .footer-link:hover {
    color: var(--text-color-light);
    padding-left: 5px; /* Subtle hover effect */
}
.footer .content p { /* Copyright text */
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    margin-top: 2rem;
}

/* Read More Link Style */
.read-more-link {
    display: inline-block;
    margin-top: 1rem;
    font-weight: bold;
    color: var(--secondary-color);
    text-decoration: none;
    position: relative;
}
.read-more-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--secondary-color);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform var(--transition-speed-normal) ease-out;
}
.read-more-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}


/* Specific Page Styles */

/* Privacy & Terms pages content padding */
.privacy-policy-page .page-content-container,
.terms-conditions-page .page-content-container {
    padding-top: calc(var(--header-height) + 2rem); /* Space for fixed header */
    padding-bottom: 2rem;
}
.privacy-policy-page .content h2, .terms-conditions-page .content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}
.privacy-policy-page .content h3, .terms-conditions-page .content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
}
.privacy-policy-page .content p, .terms-conditions-page .content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* Success Page Styling */
.success-page-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 2rem;
    background-color: var(--background-grey);
}
.success-page-container .success-icon {
    font-size: 5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}
.success-page-container .title {
    color: var(--text-color-dark);
    margin-bottom: 1rem;
}
.success-page-container .subtitle {
    color: var(--text-color-medium);
    margin-bottom: 2rem;
    max-width: 500px;
}

/* About Page Styling */
.about-page-section {
    padding-top: calc(var(--header-height) + 2rem);
}
.about-page-section .image-column img {
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-strong);
    max-width: 100%;
    height: auto;
}
.about-page-section .content-column .title {
    margin-bottom: 1.5rem;
}
.about-page-section .content-column p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Contacts Page Styling */
.contacts-page-section {
     padding-top: calc(var(--header-height) + 2rem);
}
.contact-details-box {
    background-color: var(--text-color-light);
    padding: 2rem;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-medium);
    margin-bottom: 2rem;
}
.contact-details-box .icon-text .icon {
    color: var(--primary-color);
}
.contact-details-box .icon-text .title {
    margin-bottom: 0.5rem;
}
.contact-details-box .icon-text a {
    color: var(--primary-color);
}
.contact-map-container {
    border-radius: var(--border-radius-large);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    height: 400px; /* Or desired height */
}
.contact-map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}


/* Asymmetric balance subtle touches */
/* Example: offset an image slightly in a two-column layout */
/*
@media screen and (min-width: 769px) {
    .asymmetric-image-container {
        position: relative;
        left: -30px;
    }
}
*/

/* Drawn animation subtle underline for specific links if desired */
/*
.drawn-underline {
    position: relative;
    text-decoration: none;
}
.drawn-underline::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform-origin: left;
    transition: transform 0.3s ease-out;
    transform: scaleX(0);
}
.drawn-underline:hover::after {
    transform: scaleX(1);
    animation: draw-line 0.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}
@keyframes draw-line {
    0% { transform: scaleX(0); transform-origin: left; }
    50% { transform: scaleX(1); transform-origin: left; }
    51% { transform-origin: right; }
    100% { transform: scaleX(0); transform-origin: right; }
}
Add this class to links you want this effect on, this example animation makes it draw and then un-draw.
A simpler version is just to animate scaleX from 0 to 1 on hover.
*/

/* Ensure high contrast for all text */
body, p, li, span, div {
    /* Most text will be dark on light backgrounds by default */
}

.has-text-light { /* Bulma class, ensure it's truly light */
    color: var(--text-color-light) !important;
}

/* Utility class for forcing dark text on potentially tricky backgrounds */
.force-dark-text {
    color: var(--text-color-dark) !important;
}

/* Ensure Bulma titles are sufficiently dark */
.title { color: #222222 !important; }
.subtitle { color: #4a4a4a !important; }

/* Contact form labels on dark overlay */
#contact .label, .contact-main-section .label {
    color: var(--text-color-light) !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}
*{
    opacity: 1 !important;
}