/* Base Styles */
:root {
    --primary-color: #ff6b6b;
    --primary-dark: #e74c3c;
    --secondary-color: #4ecdc4;
    --secondary-dark: #3db9b1;
    --accent-color: #ffbe0b;
    --accent-dark: #e6a800;
    --dark-color: #2d3436;
    --light-color: #f9f9f9;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --text-color: #333333;
    --text-light: #ffffff;
    --neumorph-light: #ffffff;
    --neumorph-dark: rgba(0, 0, 0, 0.07);
    --biomorph-radius: 28px;
    --transition-speed: 0.3s;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    color: var(--text-color);
    background-color: #f0f2f5;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.3;
}

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

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

/* Neumorph Design System */
.neumorph-card {
    background: #f0f2f5;
    border-radius: var(--biomorph-radius);
    box-shadow: 8px 8px 16px var(--neumorph-dark), 
                -8px -8px 16px var(--neumorph-light);
    padding: 30px;
    transition: all var(--transition-speed) ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.neumorph-card:hover {
    transform: translateY(-5px);
    box-shadow: 10px 10px 20px var(--neumorph-dark), 
                -10px -10px 20px var(--neumorph-light);
}

.neumorph-button {
    box-shadow: 4px 4px 8px var(--neumorph-dark), 
                -4px -4px 8px var(--neumorph-light);
    border: none;
    border-radius: 50px;
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
    margin: 5px;
}

.neumorph-button:hover {
    transform: translateY(-2px);
    box-shadow: 6px 6px 12px var(--neumorph-dark), 
                -6px -6px 12px var(--neumorph-light);
}

.neumorph-button:active {
    transform: translateY(0);
    box-shadow: inset 4px 4px 8px var(--neumorph-dark), 
                inset -4px -4px 8px var(--neumorph-light);
}

.neumorph-input, .neumorph-select, .neumorph-textarea {
    background: #f0f2f5;
    border: none;
    border-radius: 10px;
    box-shadow: inset 4px 4px 8px var(--neumorph-dark), 
                inset -4px -4px 8px var(--neumorph-light);
    padding: 12px 20px;
    transition: all var(--transition-speed) ease;
}

.neumorph-input:focus, .neumorph-select:focus, .neumorph-textarea:focus {
    box-shadow: inset 6px 6px 10px var(--neumorph-dark), 
                inset -6px -6px 10px var(--neumorph-light);
    outline: none;
}

.neumorph-item {
    background: #f0f2f5;
    border-radius: 15px;
    box-shadow: 6px 6px 12px var(--neumorph-dark), 
                -6px -6px 12px var(--neumorph-light);
    padding: 20px;
    margin-bottom: 20px;
    transition: all var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Buttons */
.button {
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all var(--transition-speed) ease;
}

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

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

.button.is-rounded {
    border-radius: 50px;
}

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

.button.is-light:hover {
    background-color: #eaeaea;
}

/* Navbar */
.navbar {
    background-color: rgba(240, 242, 245, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 30;
    transition: all var(--transition-speed) ease;
}

.navbar-item {
    font-weight: 600;
    color: var(--dark-color);
    transition: color var(--transition-speed) ease;
}

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

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

.navbar-brand .title {
    margin-bottom: 0;
}

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

.hero-header {
    position: sticky;
    top: 0;
    z-index: 30;
}

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

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.7));
    z-index: 1;
}

.hero-body {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    min-height: 80vh;
}

.hero-title, .hero-subtitle, .hero-description {
    color: var(--text-light);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero-description {
    font-size: 1.25rem;
    max-width: 80%;
    margin: 0 auto 2.5rem;
}

/* Vision Section */
.vision-section {
    padding: 5rem 1.5rem;
    background-color: #f8f9fa;
}

.progress-container {
    margin-top: 2rem;
    width: 100%;
}

.progress {
    height: 1.5rem;
    border-radius: 10px;
    box-shadow: inset 3px 3px 6px var(--neumorph-dark), 
                inset -3px -3px 6px var(--neumorph-light);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.progress::-webkit-progress-bar {
    background-color: #f0f2f5;
}

.progress::-webkit-progress-value {
    background-color: var(--primary-color);
    transition: width 1.5s ease;
}

.progress::-moz-progress-bar {
    background-color: var(--primary-color);
}

/* Team Section */
.team-section {
    padding: 5rem 1.5rem;
}

.team-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.team-card .card-image {
    flex: 0 0 auto;
    width: 100%;
    text-align: center;
}

.team-card .card-image figure {
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--biomorph-radius) var(--biomorph-radius) 0 0;
}

.team-card .card-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.team-card .card-content {
    flex: 1 1 auto;
    padding: 1.5rem;
    text-align: center;
}

.team-card .title {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.team-card .subtitle {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Portfolio Section */
.portfolio-section {
    padding: 5rem 1.5rem;
    background-color: #f8f9fa;
}

.portfolio-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.portfolio-card .card-image {
    width: 100%;
    text-align: center;
    overflow: hidden;
    border-radius: var(--biomorph-radius) var(--biomorph-radius) 0 0;
}

.portfolio-card .card-image img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.portfolio-card .card-content {
    padding: 1.5rem;
    text-align: center;
}

.portfolio-card .title {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.portfolio-card p {
    color: var(--text-color);
}

/* Resources Section */
.resources-section {
    padding: 5rem 1.5rem;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    width: 100%;
}

.resource-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    height: 100%;
    text-align: center;
}

/* Gallery Section */
.gallery-section {
    padding: 5rem 1.5rem;
    background-color: #f8f9fa;
}

.gallery-card {
    overflow: hidden;
    padding: 0;
    border-radius: var(--biomorph-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-card .image-container {
    width: 100%;
    height: 0;
    padding-bottom: 75%;
    position: relative;
    overflow: hidden;
    border-radius: var(--biomorph-radius);
}

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

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

/* Events Section */
.events-section {
    padding: 5rem 1.5rem;
}

.event-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.event-card .card-image {
    width: 100%;
    text-align: center;
    overflow: hidden;
    border-radius: var(--biomorph-radius) var(--biomorph-radius) 0 0;
}

.event-card .card-image img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.event-card .card-content {
    padding: 1.5rem;
    text-align: center;
    flex-grow: 1;
}

.event-date {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.event-card .title {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

/* Calendar Section */
.calendar-section {
    padding: 5rem 1.5rem;
    background-color: #f8f9fa;
}

.calendar-events {
    margin-top: 2rem;
}

.calendar-event {
    display: flex;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.calendar-event:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.calendar-event .event-date {
    flex: 0 0 150px;
    font-weight: 700;
    color: var(--primary-color);
}

.calendar-event .event-details {
    flex: 1;
}

.calendar-event .event-details h4 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

/* Contact Section */
.contact-section {
    padding: 5rem 1.5rem;
}

.contact-info, .contact-form {
    height: 100%;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-item .icon {
    flex: 0 0 30px;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
    text-align: center;
}

.contact-item span:last-child {
    flex: 1;
}

.map-container {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    text-align: center;
}

.map-container img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Contact Page Styles */
.contact-info-section, .map-section, .contact-form-section, .faq-section {
    padding: 4rem 1.5rem;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    height: 100%;
}

.contact-detail .icon {
    flex: 0 0 50px;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-right: 1rem;
    text-align: center;
}

.contact-detail div {
    flex: 1;
}

.directions {
    margin-top: 2rem;
}

.direction-item {
    height: 100%;
    text-align: left;
}

.faq-item {
    padding: 1.5rem;
    text-align: left;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 1.5rem;
}

.footer .title {
    color: white;
}

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

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

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

.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    flex-direction: column;
}

.social-links a {
    color: rgba(255,255,255,0.8);
    margin-bottom: 0.75rem;
    transition: color var(--transition-speed) ease;
    font-weight: 600;
}

.social-links a:hover {
    color: white;
    text-decoration: none;
}

.copyright {
    margin-top: 2rem;
    opacity: 0.8;
    text-align: center;
}

/* About Page */
.history-section, .mission-section, .methodology-section, .achievements-section {
    padding: 4rem 1.5rem;
}

.history-section {
    background-color: #f8f9fa;
}

.values-list {
    list-style: none;
    padding: 0;
}

.values-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.values-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.methodology-item {
    height: 100%;
    text-align: left;
}

.achievements-container {
    margin-top: 2rem;
}

.achievement {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    text-align: left;
}

.achievement-icon {
    flex: 0 0 50px;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-right: 1rem;
    text-align: center;
}

.achievement-content {
    flex: 1;
}

/* Privacy and Terms Pages */
.privacy-section, .terms-section {
    padding: 5rem 1.5rem;
    padding-top: 100px;
}

.privacy-content h2, .terms-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.privacy-list, .terms-list {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.privacy-list li, .terms-list li {
    margin-bottom: 0.75rem;
}

/* Success Page */
.success-section {
    padding: 5rem 1.5rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-card {
    text-align: center;
    padding: 3rem;
}

.success-icon {
    margin: 0 auto;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    margin: 0 auto;
}

.additional-info-section {
    padding: 3rem 1.5rem;
}

.info-item {
    height: 100%;
    text-align: center;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 1rem;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(45, 52, 54, 0.95);
    color: white;
    padding: 15px;
    z-index: 40;
    display: none;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-content p {
    margin-right: 20px;
    margin-bottom: 0;
}

/* Read More Links */
.read-more {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 0.75rem;
    position: relative;
    padding-right: 25px;
    transition: color var(--transition-speed) ease;
}

.read-more::after {
    content: '→';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform var(--transition-speed) ease;
}

.read-more:hover {
    color: var(--primary-dark);
}

.read-more:hover::after {
    transform: translate(5px, -50%);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.fadeIn {
    animation: fadeIn 1s ease forwards;
}

.slideUp {
    animation: slideUp 0.8s ease forwards;
}

.scaleIn {
    animation: scaleIn 0.8s ease forwards;
}

/* Responsive Adjustments */
@media screen and (max-width: 1023px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .calendar-event {
        flex-direction: column;
    }
    
    .calendar-event .event-date {
        margin-bottom: 0.5rem;
    }
}

@media screen and (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .resources-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .contact-item, .contact-detail, .achievement {
        flex-direction: column;
    }
    
    .contact-item .icon, .contact-detail .icon, .achievement-icon {
        margin-bottom: 1rem;
        margin-right: 0;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-content p {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

/* Animation classes for JavaScript */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Specific page adjustments */
.about-hero, .contact-hero, .privacy-hero, .terms-hero {
    padding-top: 80px;
}

.page-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.7));
    z-index: 1;
}

.page-hero .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.page-hero .title, .page-hero .subtitle {
    color: var(--text-light);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}