/* style.css */

/*--------------------------------------------------------------
# Root Variables & Global Styles
--------------------------------------------------------------*/
:root {
    /* Triad Color Scheme */
    --primary-color: #3A0CA3; /* Deep Indigo */
    --primary-color-darker: #2c097a;
    --primary-color-lighter: #532cf5;

    --secondary-color: #4CC9F0; /* Vivid Sky Blue */
    --secondary-color-darker: #38a8d1;
    --secondary-color-lighter: #6ee3ff;

    --tertiary-color: #F72585; /* Paradise Pink */
    --tertiary-color-darker: #d01f6f;
    --tertiary-color-lighter: #fa50a0;

    /* Text Colors */
    --text-dark: #1E1E1E;
    --text-light: #F0F0F0;
    --text-medium: #333333; /* For general text on light backgrounds */
    --text-muted: #adb5bd; /* Lighter gray for less important text */

    /* Background Colors */
    --background-dark: #0B021A; /* Very dark blue/purple */
    --background-light: #F8F9FA; /* Off-white */
    --background-medium: #160A2E; /* Slightly lighter dark for depth */
    --background-section-dark: #100522; 
    --background-section-light: #ffffff;

    /* Futuristic Elements */
    --futuristic-border-color: rgba(76, 201, 240, 0.3); /* --secondary-color with alpha */
    --futuristic-glow: 0 0 5px var(--secondary-color), 0 0 10px var(--secondary-color), 0 0 15px var(--tertiary-color);
    --card-background-glass: rgba(22, 10, 46, 0.6); /* Darker, less purple glass */
    --card-border-glass: rgba(76, 201, 240, 0.2);

    /* Fonts */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Work Sans', sans-serif;

    /* Transitions */
    --transition-speed-fast: 0.2s;
    --transition-speed-normal: 0.4s;
    --transition-timing: ease-in-out;

    /* Header Height */
    --header-height: 5.5rem; /* Adjust based on your navbar's actual height */
}

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

body {
    font-family: var(--font-secondary);
    color: var(--text-medium);
    background-color: var(--background-light);
    line-height: 1.7;
    overflow-x: hidden;
    padding-top: var(--header-height); /* For fixed header */
}

h1, h2, h3, h4, h5, h6,
.title, .subtitle {
    font-family: var(--font-primary);
    color: var(--text-dark);
    font-weight: 600;
}

.title {
    color: var(--text-dark); /* Ensure titles are dark on light backgrounds */
    text-shadow: none; /* Default for light backgrounds */
}

.section-title {
    margin-bottom: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 10px;
    color: var(--text-dark); /* Darker for better contrast */
}

.section-title::after {
    content: "";
    position: absolute;
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    bottom: 0;
    left: calc(50% - 30px);
}

.section {
    padding: 60px 0; /* Natural height, adjusted padding */
}

/* Ensure sections alternate background for visual separation if desired */
.section:nth-child(even) {
    background-color: var(--background-light);
}
.section:nth-child(odd) {
    background-color: var(--background-section-light); /* Or slightly different light color */
}
/* Dark theme sections (if any were planned) */
.section.is-dark {
    background-color: var(--background-section-dark);
}
.section.is-dark .title,
.section.is-dark .subtitle,
.section.is-dark .content,
.section.is-dark .label {
    color: var(--text-light);
}
.section.is-dark .section-title {
    color: var(--text-light);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
.section.is-dark .section-title::after {
    background: var(--secondary-color);
}


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

a:hover {
    color: var(--tertiary-color);
}

.content p {
    margin-bottom: 1.25rem;
    color: var(--text-medium);
}

.content strong {
    color: var(--text-dark);
}

/*--------------------------------------------------------------
# Global Button Styles
--------------------------------------------------------------*/
.button, button, input[type="submit"], input[type="button"] {
    font-family: var(--font-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 30px;
    border-radius: 50px; /* Modern rounded buttons */
    transition: all var(--transition-speed-normal) var(--transition-timing);
    border: 2px solid transparent;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.button.is-primary, .futuristic-button.is-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-light);
}
.button.is-primary:hover, .futuristic-button.is-primary:hover {
    background-color: var(--primary-color-darker);
    border-color: var(--primary-color-darker);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(58, 12, 163, 0.4);
}

.button.is-secondary, .futuristic-button.is-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--text-dark);
}
.button.is-secondary:hover, .futuristic-button.is-secondary:hover {
    background-color: var(--secondary-color-darker);
    border-color: var(--secondary-color-darker);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 201, 240, 0.4);
}

.button.is-tertiary, .futuristic-button.is-tertiary {
    background-color: var(--tertiary-color);
    border-color: var(--tertiary-color);
    color: var(--text-light);
}
.button.is-tertiary:hover, .futuristic-button.is-tertiary:hover {
    background-color: var(--tertiary-color-darker);
    border-color: var(--tertiary-color-darker);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 37, 133, 0.4);
}

.button.is-outlined.is-link { /* Example for event buttons */
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.button.is-outlined.is-link:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* Morphing Button Effect (example) */
.morph-button span {
    display: inline-block;
    transition: transform var(--transition-speed-fast) var(--transition-timing);
}
.morph-button:hover span {
    transform: scale(1.05) skewX(-5deg);
}

/*--------------------------------------------------------------
# Header & Navigation
--------------------------------------------------------------*/
.header .navbar {
    background-color: rgba(11, 2, 26, 0.85); /* --background-dark with transparency */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: var(--header-height);
}

.header .navbar-item, .header .navbar-link {
    font-family: var(--font-primary);
    color: var(--text-light);
    font-weight: 500;
    transition: color var(--transition-speed-fast) var(--transition-timing);
    padding: 0.75rem 1.25rem;
}

.header .navbar-item:hover, .header .navbar-link:hover, .header .navbar-item.is-active {
    color: var(--secondary-color);
    background-color: transparent;
}

.header .logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color) !important; /* Important to override Bulma if needed */
    letter-spacing: 1px;
}
.header .logo-text:hover {
    color: var(--text-light) !important;
}

.header .navbar-burger {
    color: var(--text-light);
    height: var(--header-height);
    width: var(--header-height);
}
.header .navbar-burger span {
    background-color: var(--secondary-color);
    height: 2px;
}

@media screen and (max-width: 1023px) {
    .header .navbar-menu {
        background-color: rgba(11, 2, 26, 0.98); /* Darker for mobile menu */
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        padding-bottom: 1rem;
    }
    .header .navbar-item {
        padding: 0.75rem 1.5rem;
    }
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
#hero {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    color: var(--text-light); /* Enforced white text */
}

#hero .hero-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(11, 2, 26, 0.6), rgba(11, 2, 26, 0.8)); /* Dark overlay */
    z-index: 1;
}

#hero .hero-body {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

#hero .hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--text-light) !important; /* Ensure white */
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

#hero .hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    color: var(--text-light) !important; /* Ensure white */
    font-weight: 400;
    opacity: 0.9;
}

#hero .button {
    font-size: 1.1rem;
    padding: 15px 40px;
}

@media screen and (max-width: 768px) {
    #hero .hero-title {
        font-size: 2.5rem;
    }
    #hero .hero-subtitle {
        font-size: 1.2rem;
    }
}

/*--------------------------------------------------------------
# Innovation Section
--------------------------------------------------------------*/
.innovation-section {
    background-color: var(--background-light);
}

.innovation-section .image-container img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.statistical-widgets-container {
    margin-top: 3rem;
}
.stat-widget {
    padding: 20px;
    background-color: var(--background-section-light);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform var(--transition-speed-normal) var(--transition-timing), box-shadow var(--transition-speed-normal) var(--transition-timing);
}
.stat-widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.stat-widget .stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}
.stat-widget .stat-label {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

/*--------------------------------------------------------------
# History Section
--------------------------------------------------------------*/
.history-section {
    background-color: var(--background-section-light);
}
.history-section .image-container img {
    border-radius: 10px;
}

/*--------------------------------------------------------------
# Services & General Card Styling
--------------------------------------------------------------*/
.services-section, .team-section, .events-section /* other sections with cards */ {
    background-color: var(--background-light);
}

.futuristic-card, .event-card, .team-member-card {
    background: var(--card-background-glass);
    border: 1px solid var(--card-border-glass);
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text-light);
    transition: transform var(--transition-speed-normal) var(--transition-timing), box-shadow var(--transition-speed-normal) var(--transition-timing);
    height: 100%; /* For uniform card height in columns */
    display: flex;
    flex-direction: column;
}

.services-section .futuristic-card, 
.team-section .futuristic-card {
     background: var(--background-section-light); /* Lighter cards for these sections */
     color: var(--text-dark);
     border: 1px solid #e0e0e0;
}

.services-section .futuristic-card .title, 
.services-section .futuristic-card .content,
.team-section .futuristic-card .title,
.team-section .futuristic-card .subtitle,
.team-section .futuristic-card p {
    color: var(--text-dark); /* Ensure text in light cards is dark */
}


.futuristic-card:hover, .event-card:hover, .team-member-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.card .card-image, .card .image-container { /* Bulma's .card-image or our .image-container */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.services-section .card-image img, 
.workshops-section .slider .card-image img { /* specific height for service/workshop images */
    height: 200px; /* Fixed height */
    width: 100%;
    object-fit: cover;
}

.team-member-card .card-image img {
    width: 150px; /* Smaller for profile pics */
    height: 150px;
    object-fit: cover;
    border-radius: 50%; /* Circular team images */
    margin-top: 20px; /* Spacing for profile pic */
    border: 3px solid var(--secondary-color);
}

.event-card .card-image img {
    height: 220px;
    width: 100%;
    object-fit: cover;
}

.card .card-content {
    padding: 1.5rem;
    flex-grow: 1; /* Allows content to fill space if card heights are uniform */
    display: flex;
    flex-direction: column;
    text-align: center; /* Center text content in cards */
}

.card .card-content .title {
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}
.services-section .card .card-content .title {
     color: var(--primary-color);
}

.card .card-content .content, .card .card-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: auto; /* Pushes button/footer to bottom if card is flex column */
}

.team-member-card .card-content {
    text-align: center;
}
.team-member-card .card-content .title {
    font-size: 1.25rem;
    margin-top: 0.5rem;
    color: var(--primary-color);
}
.team-member-card .card-content .subtitle {
    font-size: 0.9rem;
    color: var(--tertiary-color);
    margin-bottom: 0.75rem;
}


/*--------------------------------------------------------------
# Workshops Section
--------------------------------------------------------------*/
.workshops-section {
    background-color: var(--background-section-light); /* Light background for workshops */
}
.custom-slider-container {
    position: relative;
    margin-top: 2rem;
}
.custom-slider-container .slider {
    display: flex; /* Basic setup for JS slider */
    overflow-x: auto; /* Or handled by JS */
    scroll-snap-type: x mandatory;
}
.custom-slider-container .slide {
    flex: 0 0 100%; /* Full width slide, adjust for multiple visible */
    scroll-snap-align: center;
    margin-right: 15px; /* Spacing between slides */
}
.custom-slider-container .slider .card {
    background: var(--background-light); /* Light cards for slider */
    color: var(--text-dark);
    border: 1px solid #e0e0e0;
}
.custom-slider-container .slider .card .title,
.custom-slider-container .slider .card .subtitle,
.custom-slider-container .slider .card p {
    color: var(--text-dark);
}
.custom-slider-container .slider .card .title.is-5{
    color: var(--primary-color);
}

.slider-prev, .slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
}
.slider-prev { left: -20px; }
.slider-next { right: -20px; }

/*--------------------------------------------------------------
# Events Section
--------------------------------------------------------------*/
.events-section .event-card {
    background: var(--background-dark); /* Dark cards for events */
}
.events-section .event-card .title,
.events-section .event-card .subtitle,
.events-section .event-card p {
    color: var(--text-light);
}
.events-section .event-card .title {
    color: var(--secondary-color);
}
.events-section .event-card .button {
    margin-top: 1rem;
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}
.events-section .event-card .button:hover {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

/*--------------------------------------------------------------
# External Resources Section
--------------------------------------------------------------*/
.external-resources-section {
    background-color: var(--background-section-light);
}
.external-link-item.box {
    background-color: #fff;
    border: 1px solid var(--futuristic-border-color);
    transition: var(--transition-speed-normal) all;
    margin-bottom: 1.5rem;
}
.external-link-item.box:hover {
    box-shadow: 0 5px 20px rgba(76, 201, 240, 0.2);
    border-color: var(--secondary-color);
}
.external-link-item .title a {
    color: var(--primary-color);
}
.external-link-item .title a:hover {
    color: var(--tertiary-color);
}

/*--------------------------------------------------------------
# FAQ Section
--------------------------------------------------------------*/
.faq-section {
    background-color: var(--background-light);
}
.faq-item {
    margin-bottom: 15px;
    border: 1px solid #ddd; /* Lighter border for FAQ items */
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
}
.faq-question {
    background-color: transparent; /* Button itself transparent */
    color: var(--text-dark);
    font-weight: 600;
    text-align: left;
    padding: 15px 20px;
    border: none; /* Remove default button border */
    border-radius: 0; /* Remove default button radius if it's part of .faq-item */
    box-shadow: none; /* Remove default button shadow */
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question:hover {
    background-color: #f9f9f9; /* Slight hover for question */
    color: var(--primary-color);
}
.faq-question .icon .fas {
    transition: transform var(--transition-speed-fast) var(--transition-timing);
}
.faq-item.active .faq-question .icon .fas {
    transform: rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-speed-normal) ease-in-out, padding var(--transition-speed-normal) ease-in-out;
    padding: 0 20px;
}
.faq-item.active .faq-answer {
    padding: 15px 20px;
    /* max-height will be set by JS */
}
.faq-answer p {
    margin: 0;
    color: var(--text-medium);
}


/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact-section {
    background-color: var(--background-medium); /* Darker background for contact */
    color: var(--text-light);
}
.contact-section .section-title,
.contact-section .subtitle {
    color: var(--text-light);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}
.contact-section .section-title::after {
    background: var(--secondary-color);
}

.futuristic-label {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.futuristic-input, .futuristic-textarea {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--futuristic-border-color);
    color: var(--text-light);
    padding: 12px 15px;
    border-radius: 8px;
    transition: border-color var(--transition-speed-fast) var(--transition-timing), box-shadow var(--transition-speed-fast) var(--transition-timing);
    box-shadow: none; /* Override Bulma default */
    width: 100%; /* Ensure full width */
}
.futuristic-input::placeholder, .futuristic-textarea::placeholder {
    color: rgba(240, 240, 240, 0.5);
}
.futuristic-input:focus, .futuristic-textarea:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.125em rgba(76, 201, 240, 0.25); /* Bulma-like focus */
    outline: none;
}
.contact-section .button.is-primary { /* Submit button */
    background-color: var(--secondary-color);
    color: var(--background-dark);
    border-color: var(--secondary-color);
}
.contact-section .button.is-primary:hover {
    background-color: var(--secondary-color-darker);
    border-color: var(--secondary-color-darker);
    box-shadow: 0 6px 20px rgba(76, 201, 240, 0.5);
}
.contact-details p, .contact-details a {
    color: var(--text-light);
}
.contact-details a:hover {
    color: var(--secondary-color);
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.futuristic-footer {
    background-color: var(--background-dark);
    color: var(--text-muted);
    padding: 40px 0 20px 0;
    font-size: 0.9rem;
}
.futuristic-footer .footer-title {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}
.futuristic-footer p {
    color: var(--text-muted);
}
.futuristic-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.futuristic-footer ul li {
    margin-bottom: 0.5rem;
}
.futuristic-footer .footer-link {
    color: var(--text-muted);
    transition: color var(--transition-speed-fast) var(--transition-timing);
    text-decoration: none; /* Ensure no underline for text-only social links */
}
.futuristic-footer .footer-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}
.futuristic-footer .content p { /* Copyright */
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    color: var(--text-muted);
}

/*--------------------------------------------------------------
# Specific Page Styles (success.html, privacy.html, terms.html)
--------------------------------------------------------------*/
body.success-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--background-medium);
    color: var(--text-light);
}
.success-page main {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}
.success-page .success-container .title {
    color: var(--secondary-color);
    font-size: 2.5rem;
}
.success-page .success-container .subtitle {
    color: var(--text-light);
    font-size: 1.2rem;
}
.success-page .button {
    margin-top: 1.5rem;
}

body.privacy-page main, body.terms-page main, body.about-page main, body.contacts-page main {
    padding-top: 40px; /* Space below fixed header for content start */
    padding-bottom: 60px;
    background-color: var(--background-section-light);
    color: var(--text-dark);
}
body.privacy-page .section, body.terms-page .section, body.about-page .section, body.contacts-page .section {
    background-color: transparent; /* Avoid double background */
}
body.privacy-page .title, body.terms-page .title,
body.about-page .title, body.contacts-page .title {
    color: var(--text-dark);
}
body.privacy-page h1, body.privacy-page h2, body.privacy-page h3,
body.terms-page h1, body.terms-page h2, body.terms-page h3,
body.about-page h1, body.about-page h2, body.about-page h3,
body.contacts-page h1, body.contacts-page h2, body.contacts-page h3 {
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    color: var(--primary-color);
}
body.privacy-page h1:first-child, body.terms-page h1:first-child,
body.about-page h1:first-child, body.contacts-page h1:first-child {
    margin-top: 0;
}
body.privacy-page p, body.terms-page p,
body.about-page p, body.contacts-page p {
    color: var(--text-medium);
    margin-bottom: 1em;
}

/*--------------------------------------------------------------
# Parallax & Scroll Animations (Setup - JS will control activation)
--------------------------------------------------------------*/
.parallax-element {
    /* JS will set transform */
}
.animated-text-fill, .animated-text-reveal {
    opacity: 0; /* Initial state for JS animation */
}

/* Example scroll animation class */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--transition-timing), transform 0.6s var(--transition-timing);
}
.scroll-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/*--------------------------------------------------------------
# Responsive Adjustments (complementing Bulma)
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
    .section {
        padding: 40px 0;
    }
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    .content.is-medium { /* If used for main text blocks */
        font-size: 1rem;
    }
    .columns.is-vcentered .column.is-one-third,
    .columns.is-vcentered .column.is-half { /* Stack images above/below text on mobile */
        text-align: center;
    }
    .columns.is-vcentered .column.is-one-third img,
    .columns.is-vcentered .column.is-half img {
        margin: 0 auto 1.5rem auto;
    }
    .stat-widget .stat-number {
        font-size: 2.5rem;
    }
    .slider-prev, .slider-next {
        /* Adjust positioning or hide on very small screens */
        display: none; 
    }
}