/* style.css */

/* --- CSS Variables --- */
:root {
    --primary-color: #485fc7;
    --primary-color-dark: #3e51b3;
    --accent-color: #9b59b6;
    --accent-gradient: linear-gradient(135deg, #8e44ad, #3498db);
    --futuristic-gradient: linear-gradient(135deg, rgba(72, 95, 199, 1) 0%, rgba(149, 89, 182, 1) 100%);

    --dark-bg: #0a0f21;
    --light-bg: #f4f7f9;
    --card-bg: #ffffff;
    --card-dark-bg: rgba(20, 25, 50, 0.7);

    --text-light: #f5f5f5;
    --text-dark: #333333;
    --text-grey: #888;
    
    --font-header: 'Raleway', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    --border-radius-smooth: 15px;
    --border-radius-biomorphic: 60% 40% 30% 70% / 60% 30% 70% 40%;
    
    --shadow-light: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 15px rgba(72, 95, 199, 0.5), 0 0 30px rgba(149, 89, 182, 0.3);
}

/* --- Global Styles & Reset --- */
html {
    scroll-behavior: smooth;
    background-color: var(--light-bg);
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6, .title, .subtitle {
    font-family: var(--font-header);
    font-weight: 700;
    color: var(--text-dark);
}

.title.is-1, .title.is-2 {
    font-weight: 900;
}

h2.title, .title.is-2 {
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 3rem !important;
}

p {
    margin-bottom: 1rem;
}

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

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

/* --- Layout & Sections --- */
.section {
    padding: 6rem 1.5rem;
}

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

/* --- Header & Navigation --- */
.header.is-fixed-top {
    background: rgba(10, 15, 33, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-item, .navbar-link {
    color: var(--text-light);
    font-family: var(--font-header);
    transition: all 0.3s ease;
    padding: 0.75rem 1.25rem;
}

.navbar-item:hover, .navbar-item.is-active {
    background-color: transparent !important;
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

.logo-text {
    font-family: var(--font-header);
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

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

@media screen and (max-width: 1023px) {
    .navbar-menu {
        background: rgba(10, 15, 33, 0.95);
        backdrop-filter: blur(10px);
        padding: 1rem 0;
    }
}


/* --- Hero Section --- */
.hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero .title {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    color: #FFFFFF !important;
}

.hero .subtitle {
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
    color: #FFFFFF !important;
}

/* --- Buttons --- */
.button.futuristic-button {
    background: var(--futuristic-gradient);
    border: none;
    color: var(--text-light);
    font-family: var(--font-header);
    font-weight: 700;
    border-radius: 50px;
    padding: 1.5rem 3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2), inset 0 -2px 0 rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.button.futuristic-button span {
    position: relative;
    z-index: 2;
}

.button.futuristic-button:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: 1;
}

.button.futuristic-button:hover {
    color: var(--text-light);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(72, 95, 199, 0.4);
}

.button.futuristic-button:hover:before {
    width: 200%;
    height: 200%;
}

/* --- Cards (Features, Instructors, etc.) --- */
.card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-smooth);
    box-shadow: var(--shadow-light);
    transition: all 0.4s ease;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card.biomorphic-card {
    border-radius: var(--border-radius-biomorphic);
}

.card .image-container {
    height: 250px; /* Fixed height for consistent card appearance */
    width: 100%;
    overflow: hidden;
}

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

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

.card-content {
    flex-grow: 1;
    text-align: left;
    padding: 2rem;
}

.team-card {
    text-align: center;
    border-radius: var(--border-radius-smooth);
}

.team-card .image-container {
    width: 150px;
    height: 150px;
    margin: 2rem auto 1rem;
    border-radius: 50%;
    border: 5px solid var(--card-bg);
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.team-card .image-container img {
    border-radius: 50%;
}

/* --- Timeline (Team Section) --- */
.timeline {
    position: relative;
    padding: 2rem 0;
}
.timeline .timeline-item .timeline-marker {
    background-color: var(--primary-color) !important;
}
.timeline .timeline-item .timeline-content {
    background: #fff;
    padding: 1.5rem;
    border-radius: var(--border-radius-smooth);
    box-shadow: var(--shadow-light);
}

/* --- Resources Section --- */
.message.is-link {
    border-left: 5px solid var(--primary-color);
    background-color: #fff;
    box-shadow: var(--shadow-light);
    transition: box-shadow 0.3s ease;
}
.message.is-link:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.message-header {
    background: var(--futuristic-gradient);
}
.message-body a.button.is-link.is-outlined {
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.message-body a.button.is-link.is-outlined:hover {
    background-color: var(--primary-color);
    color: white;
}

/* --- Awards Section --- */
.award-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-smooth);
    padding: 2rem;
    text-align: center;
}
.award-icon {
    font-size: 4rem;
}

/* --- FAQ Accordion --- */
.accordion-item {
    background-color: #fff;
    border-radius: var(--border-radius-smooth);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-light);
    overflow: hidden;
}

.accordion-header {
    width: 100%;
}

.accordion-button {
    width: 100%;
    background-color: transparent;
    border: none;
    padding: 1.5rem;
    text-align: left;
    font-family: var(--font-header);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dark);
}

.accordion-button .icon {
    transition: transform 0.3s ease;
    width: 1em;
    height: 1em;
    position: relative;
}
.accordion-button .icon::before, .accordion-button .icon::after {
    content: '';
    position: absolute;
    background-color: var(--primary-color);
    transition: transform 0.3s ease-in-out;
}
.accordion-button .icon::before {
    width: 100%;
    height: 2px;
    top: 50%;
    transform: translateY(-50%);
}
.accordion-button .icon::after {
    height: 100%;
    width: 2px;
    left: 50%;
    transform: translateX(-50%);
}
.accordion-button[aria-expanded="true"] .icon {
    transform: rotate(135deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.accordion-body {
    padding: 0 1.5rem;
    color: var(--text-dark);
}

.accordion-item[aria-expanded="true"] .accordion-content {
    max-height: 500px; /* Adjust as needed */
    transition: max-height 0.5s ease-in;
}

.accordion-item[aria-expanded="true"] .accordion-body {
    padding: 0 1.5rem 1.5rem;
}

/* --- Contact Form --- */
.contact-form {
    background-color: #fff;
    padding: 3rem;
    border-radius: var(--border-radius-smooth);
    box-shadow: var(--shadow-light);
}

.input.futuristic-input, .textarea.futuristic-input {
    background-color: var(--light-bg);
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 1.5rem 1rem;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.input.futuristic-input:focus, .textarea.futuristic-input:focus {
    background-color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(72, 95, 199, 0.3);
    outline: none;
}

.label {
    font-family: var(--font-header);
    font-weight: 700;
    color: var(--text-dark);
}

/* --- Footer --- */
.footer.futuristic-footer {
    color: var(--text-light);
    background-size: cover;
    background-position: center;
    padding: 6rem 1.5rem 3rem;
}

.footer .title {
    color: var(--text-light) !important;
}

.footer a.footer-link {
    color: var(--text-grey);
    transition: all 0.3s ease;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
}

.footer a.footer-link:hover {
    color: var(--text-light);
    border-bottom-color: var(--primary-color);
}

/* --- Other Pages (Success, Privacy, Terms) --- */
.success-page-body, .content-page-body {
    background-color: var(--dark-bg);
    color: var(--text-light);
}

.success-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    padding: 2rem;
}

.success-container h1 {
    color: var(--text-light);
    font-size: 3rem;
}

.success-container p {
    font-size: 1.2rem;
}

.success-container .button {
    margin-top: 2rem;
}

.content-page-section {
    padding-top: 120px !important;
    padding-bottom: 60px !important;
    background-color: var(--light-bg);
    min-height: 80vh;
}

.content-page-section h1, .content-page-section h2 {
    color: var(--text-dark);
}

.content-page-section p, .content-page-section li {
    color: #555;
}

/* --- Responsive Design --- */
@media screen and (max-width: 768px) {
    .section {
        padding: 4rem 1.5rem;
    }
    
    .hero.is-fullheight .hero-body {
        padding: 8rem 1.5rem;
    }

    h1.title, .title.is-1 {
        font-size: 2.5rem;
    }
    h2.title, .title.is-2 {
        font-size: 2rem;
    }

    .contact-form {
        padding: 2rem;
    }
}