/* Base Styles */
:root {
    --primary-color: #4A90E2;
    --secondary-color: #6BBBF7;
    --accent-color: #FF6B6B;
    --light-color: #F7F9FC;
    --dark-color: #333333;
    --text-color: #444444;
    --bg-color: #FFFFFF;
    --pastel-blue: #A6D0E4;
    --pastel-green: #B8E0D2;
    --pastel-yellow: #EFE3AB;
    --pastel-pink: #F7C9C9;
    --pastel-purple: #D3C0F9;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    color: var(--dark-color);
}

p {
    margin-bottom: 1.5rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navbar Styles */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background-color: var(--bg-color);
    transition: all 0.3s ease;
}

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

.navbar-item:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
}

.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-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
}

.hero-body {
    padding: 12rem 1.5rem;
    position: relative;
    z-index: 1;
}

.hero-description {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 2rem auto 0;
}

/* Buttons */
.button {
    font-weight: 600;
    border-radius: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

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

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

/* Section Styles */
.section {
    padding: 5rem 1.5rem;
}

.section:nth-child(even) {
    background-color: var(--light-color);
}

/* History Section */
.history-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.history-image-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.history-image-container:hover img {
    transform: scale(1.03);
}

/* Workshops Section */
.workshop-card {
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.workshop-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.workshop-card .card-image {
    overflow: hidden;
}

.workshop-card .image-container {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.workshop-card .image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.workshop-card:hover .image-container img {
    transform: scale(1.05);
}

.workshop-card .card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.workshop-card .card-content h3 {
    margin-bottom: 1rem;
}

.workshop-card .card-content p {
    margin-bottom: 1.5rem;
}

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

/* Resource Section */
.resource-card {
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.resource-card .card-content {
    padding: 1.5rem;
}

.resource-card h3 {
    margin-bottom: 1rem;
}

/* Research Section */
.research-content {
    margin-bottom: 2rem;
}

.research-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.research-image-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.research-image-container:hover img {
    transform: scale(1.03);
}

/* Gallery Section */
.gallery-card {
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.gallery-card .image-container {
    position: relative;
    overflow: hidden;
    padding-top: 75%; /* 4:3 Aspect Ratio */
}

.gallery-card .image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover .image-container img {
    transform: scale(1.05);
}

.gallery-card .image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    transition: opacity 0.3s ease;
}

.gallery-card .image-overlay h3 {
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Contact Section */
.contact-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-map {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-map img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.contact-form .field {
    margin-bottom: 1.5rem;
}

.contact-form .label {
    font-weight: 600;
}

.contact-form .input,
.contact-form .textarea,
.contact-form .select select {
    border-radius: 5px;
    box-shadow: none;
    border: 1px solid #E0E0E0;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form .input:focus,
.contact-form .textarea:focus,
.contact-form .select select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px var(--primary-color);
}

/* Modal Styles */
.modal-card {
    max-width: 800px;
    border-radius: 10px;
    overflow: hidden;
}

.modal-card-head,
.modal-card-foot {
    background-color: var(--light-color);
    border: none;
}

.modal-card-body {
    padding: 2rem;
}

.modal-card-title {
    color: var(--dark-color);
}

.modal .delete {
    background-color: var(--dark-color);
}

/* Research Modal */
.research-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.research-item {
    background-color: var(--light-color);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.research-item h3 {
    margin-bottom: 0.5rem;
}

.research-item p {
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: #FFFFFF;
    padding: 4rem 1.5rem 2rem;
}

.footer .title {
    color: #FFFFFF;
}

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

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

.footer-links a,
.social-links a {
    color: #CCCCCC;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.social-links a:hover {
    color: var(--primary-color);
}

.social-links {
    margin-bottom: 1.5rem;
}

.copyright {
    color: #AAAAAA;
    font-size: 0.9rem;
    margin-top: 2rem;
}

/* About Page */
.about-content {
    margin-bottom: 2rem;
}

.about-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.about-image-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about-image-container:hover img {
    transform: scale(1.03);
}

.value-card {
    height: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.value-card .card-content {
    padding: 1.5rem;
}

/* Contact Page */
.office-card {
    height: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.office-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.office-card .card-content {
    padding: 1.5rem;
}

.map-card {
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.map-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.map-card .image-container {
    position: relative;
    overflow: hidden;
    padding-top: 75%; /* 4:3 Aspect Ratio */
}

.map-card .image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.map-card:hover .image-container img {
    transform: scale(1.05);
}

.contact-form-card {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.faq-card {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.faq-card .card-content {
    padding: 1.5rem;
}

/* Legal Pages */
.legal-content {
    margin-bottom: 2rem;
}

.legal-box {
    margin-bottom: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Success Page */
.success-section {
    padding: 8rem 1.5rem;
}

.success-content {
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background-color: var(--light-color);
}

.success-icon {
    font-size: 5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.success-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

.success-image-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Responsive Styles */
@media screen and (max-width: 1023px) {
    .hero-body {
        padding: 8rem 1.5rem;
    }
    
    .section {
        padding: 4rem 1.5rem;
    }
    
    .research-list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media screen and (max-width: 768px) {
    .hero-body {
        padding: 6rem 1.5rem;
    }
    
    .section {
        padding: 3rem 1.5rem;
    }
    
    .research-list {
        grid-template-columns: 1fr;
    }
    
    .contact-form-section {
        margin-top: 3rem;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.fade-in.is-visible {
    opacity: 1;
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

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

/* Additional Biomorphic Design Elements */
.biomorphic-shape {
    position: absolute;
    border-radius: 50%;
    background-color: var(--pastel-blue);
    opacity: 0.1;
    z-index: -1;
}

.biomorphic-shape-1 {
    width: 400px;
    height: 400px;
    top: -200px;
    right: -200px;
}

.biomorphic-shape-2 {
    width: 300px;
    height: 300px;
    bottom: -150px;
    left: -150px;
}

.biomorphic-shape-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: -100px;
}

.biomorphic-shape-4 {
    width: 250px;
    height: 250px;
    bottom: 10%;
    right: -125px;
}

/* Ensure high contrast for text on images */
.has-text-white {
    color: #FFFFFF !important;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Add a darker gradient overlay for hero images to ensure text readability */
.hero-background::before {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
}