/* Base Styles */
:root {
    --primary-color: #4a5568;
    --primary-light: #718096;
    --primary-dark: #2d3748;
    --accent-color: #667eea;
    --accent-dark: #5a67d8;
    --text-color: #2d3748;
    --text-light: #4a5568;
    --text-lighter: #a0aec0;
    --bg-color: #ffffff;
    --bg-light: #f7fafc;
    --bg-dark: #edf2f7;
    --success-color: #48bb78;
    --warning-color: #ed8936;
    --danger-color: #e53e3e;
    --border-radius: 12px;
    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --neomorph-shadow: 8px 8px 16px rgba(0, 0, 0, 0.1), -8px -8px 16px rgba(255, 255, 255, 0.7);
    --neomorph-pressed: inset 4px 4px 8px rgba(0, 0, 0, 0.1), inset -4px -4px 8px rgba(255, 255, 255, 0.7);
    --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
}

/* Global Styles */
html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
    color: var(--primary-dark);
}

p {
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s var(--transition-bounce);
}

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

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xl) 0;
}

/* Button Styles */
.button, button, input[type="submit"], input[type="button"] {
    display: inline-block;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: var(--neomorph-shadow);
    transition: all 0.3s var(--transition-bounce);
    text-align: center;
    font-family: 'Manrope', sans-serif;
}

.button:hover, button:hover, input[type="submit"]:hover, input[type="button"]:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.button:active, button:active, input[type="submit"]:active, input[type="button"]:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: var(--neomorph-pressed);
}

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

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

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

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

.button.is-outlined {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

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

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

.button.is-primary.is-outlined:hover {
    background-color: var(--accent-color);
    color: white;
}

/* Form Elements */
.input, .textarea, .select select {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--bg-color);
    border: 2px solid var(--bg-dark);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.05);
}

.input:focus, .textarea:focus, .select select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.05), 0 0 0 3px rgba(102, 126, 234, 0.25);
}

.field {
    margin-bottom: var(--spacing-md);
}

.label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
    color: var(--text-color);
}

.checkbox, .radio {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.checkbox input, .radio input {
    margin-right: var(--spacing-sm);
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-menu {
    display: flex;
}

.navbar-item {
    margin-left: 1.5rem;
    color: var(--text-color);
    font-weight: 500;
    position: relative;
}

.navbar-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s var(--transition-bounce);
}

.navbar-item:hover::after {
    width: 100%;
}

.navbar-burger {
    display: none;
    cursor: pointer;
    width: 3.25rem;
    height: 3.25rem;
    position: relative;
}

.navbar-burger span {
    background-color: var(--text-color);
    display: block;
    height: 2px;
    width: 24px;
    position: absolute;
    left: calc(50% - 12px);
    transition: all 0.3s var(--transition-bounce);
}

.navbar-burger span:nth-child(1) {
    top: calc(50% - 8px);
}

.navbar-burger span:nth-child(2) {
    top: calc(50% - 1px);
}

.navbar-burger span:nth-child(3) {
    top: calc(50% + 6px);
}

.navbar-burger.is-active span:nth-child(1) {
    transform: rotate(45deg);
    top: calc(50% - 1px);
}

.navbar-burger.is-active span:nth-child(2) {
    opacity: 0;
}

.navbar-burger.is-active span:nth-child(3) {
    transform: rotate(-45deg);
    top: calc(50% - 1px);
}

@media screen and (max-width: 1023px) {
    .navbar-burger {
        display: block;
    }
    
    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
        padding: 1rem;
        flex-direction: column;
    }
    
    .navbar-menu.is-active {
        display: flex;
    }
    
    .navbar-end {
        flex-direction: column;
        width: 100%;
    }
    
    .navbar-item {
        margin: 0.5rem 0;
        width: 100%;
        text-align: center;
    }
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: 80px; /* Offset for fixed header */
    overflow: hidden;
}

.hero.is-fullheight-with-navbar {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
}

.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.3));
}

.hero-body {
    padding: 5rem 0;
    position: relative;
    z-index: 1;
}

.hero .title, .hero .subtitle, .hero p {
    color: #FFFFFF;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero .title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

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

.hero .buttons {
    margin-top: 2rem;
}

/* About Section */
.about-section {
    background-color: var(--bg-light);
}

.content p {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--neomorph-shadow);
    transition: all 0.3s var(--transition-bounce);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.card-image {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.card-image figure {
    width: 100%;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

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

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

.card-content .title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card .button {
    align-self: flex-start;
    margin-top: auto;
}

/* Methodology Section */
.methodology-section {
    background-color: var(--bg-color);
}

.methodology-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--neomorph-shadow);
    transition: all 0.3s var(--transition-bounce);
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

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

.methodology-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--neomorph-shadow);
}

.methodology-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.methodology-content {
    flex-grow: 1;
}

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

.progress-container {
    width: 100%;
    height: 10px;
    background-color: var(--bg-dark);
    border-radius: 10px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-bar {
    height: 100%;
    background-color: var(--accent-color);
    border-radius: 10px;
    transition: width 1.5s var(--transition-bounce);
}

.methodology-benefits {
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--neomorph-shadow);
}

.benefit-item {
    padding: 1rem;
    background-color: white;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    box-shadow: var(--neomorph-shadow);
}

/* Instructors Section */
.instructor-card {
    text-align: center;
}

.instructor-card .card-image {
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    overflow: hidden;
}

.instructor-card .image.is-1by1 {
    padding-top: 100%;
    position: relative;
}

.instructor-card .image.is-1by1 img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instructor-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: center;
}

.tag {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    background-color: var(--bg-light);
    color: var(--accent-color);
    box-shadow: var(--neomorph-shadow);
}

.instructor-cta {
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--neomorph-shadow);
    text-align: center;
}

/* Projects Section */
.projects-section {
    background-color: var(--bg-light);
}

.project-card .card-image {
    height: 240px;
}

.project-card .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Partners Section */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
}

.partner-item {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--neomorph-shadow);
    text-align: center;
    transition: all 0.3s var(--transition-bounce);
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.partner-item img {
    max-width: 150px;
    margin-bottom: 1rem;
}

.partner-cta {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--neomorph-shadow);
    text-align: center;
    margin-top: 3rem;
}

/* Resources Section */
.resource-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--neomorph-shadow);
    transition: all 0.3s var(--transition-bounce);
    margin-bottom: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

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

.resource-description {
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.resource-link {
    margin-top: auto;
}

/* Contact Section */
.contact-section {
    background-color: var(--bg-color);
}

.contact-info {
    margin-bottom: 2rem;
}

.info-item {
    margin-bottom: 1rem;
}

.info-item strong {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-map {
    margin-top: 2rem;
}

.contact-form-container {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--neomorph-shadow);
}

/* Footer */
.footer {
    background-color: var(--primary-dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer .title {
    color: white;
}

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

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

.footer a {
    color: var(--text-lighter);
    transition: color 0.3s ease;
}

.footer a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-links a {
    color: var(--text-lighter);
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: white;
    transform: translateY(-3px);
}

.newsletter-form {
    margin-top: 1rem;
}

.copyright {
    margin-top: 3rem;
    text-align: center;
    color: var(--text-lighter);
}

/* FAQ Section */
.faq-item {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--neomorph-shadow);
    margin-bottom: 1.5rem;
    transition: all 0.3s var(--transition-bounce);
}

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

.faq-item h3 {
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

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

.success-message {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--neomorph-shadow);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.success-icon {
    margin-bottom: 2rem;
}

.success-icon img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    box-shadow: var(--neomorph-shadow);
    margin: 0 auto;
}

.additional-info {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--bg-dark);
}

.newsletter-box {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--neomorph-shadow);
    text-align: center;
    margin: 3rem 0;
}

.newsletter-form-large {
    max-width: 600px;
    margin: 0 auto;
}

/* Privacy & Terms Pages */
.privacy-content, .terms-content {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--neomorph-shadow);
    margin-top: 100px; /* Offset for fixed header */
}

/* About Page Styles */
.mission-card, .vision-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--neomorph-shadow);
    height: 100%;
    transition: all 0.3s var(--transition-bounce);
}

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

.mission-image, .vision-image {
    margin-top: 1.5rem;
}

.mission-image img, .vision-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--neomorph-shadow);
}

.value-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--neomorph-shadow);
    text-align: center;
    height: 100%;
    transition: all 0.3s var(--transition-bounce);
}

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

.value-icon {
    margin-bottom: 1.5rem;
}

.value-icon img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    box-shadow: var(--neomorph-shadow);
    margin: 0 auto;
}

.team-card {
    text-align: center;
}

.cta-box {
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--neomorph-shadow);
    text-align: center;
    margin: 3rem 0;
}

/* Contacts Page Styles */
.info-block {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--neomorph-shadow);
    margin-bottom: 2rem;
}

.social-contact {
    margin-top: 2rem;
}

.social-links-large {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-links-large a {
    display: inline-block;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-links-large a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.callback-form {
    margin-top: 2rem;
}

/* Cookie Consent */
#cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 1rem;
    z-index: 9999;
    display: none;
    text-align: center;
}

#cookie-consent p {
    margin-bottom: 1rem;
}

#accept-cookies {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

#accept-cookies:hover {
    background-color: var(--accent-dark);
}

/* Animation Classes */
.animate-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s var(--transition-bounce);
}

.animate-element.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .hero .title {
        font-size: 2.5rem;
    }
    
    .hero .subtitle {
        font-size: 1.25rem;
    }
    
    .methodology-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .methodology-icon {
        margin-bottom: 1.5rem;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-info {
        margin-bottom: 3rem;
    }
}

@media screen and (max-width: 480px) {
    .hero .title {
        font-size: 2rem;
    }
    
    .hero .subtitle {
        font-size: 1.1rem;
    }
    
    .partners-grid {
        grid-template-columns: 1fr;
    }
    
    .buttons {
        flex-direction: column;
    }
    
    .buttons .button {
        width: 100%;
        margin-right: 0 !important;
        margin-bottom: 1rem;
    }
}