/* ==========================================================================
   1. VARIABLES & SETUP
   ========================================================================== */

:root {
    /* Color Scheme: Complementary (Teal/Orange) */
    --bg-color: #e6eef5;
    --primary-color: #00796b; /* Teal */
    --primary-color-dark: #004d40;
    --accent-color: #f57c00;  /* Orange */
    --white-color: #ffffff;
    --text-color: #363a41;
    --header-text-color: #2c2f35;
    --subtle-text-color: #5f6773;
    --border-radius: 15px;
    --transition-speed: 0.3s;

    /* Neumorphism Shadows */
    --shadow-light: rgba(255, 255, 255, 0.9);
    --shadow-dark: rgba(163, 177, 198, 0.6);
    --neu-shadow-outset: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
    --neu-shadow-inset: inset 6px 6px 12px var(--shadow-dark), inset -6px -6px 12px var(--shadow-light);
    --neu-shadow-hover: 12px 12px 24px var(--shadow-dark), -12px -12px 24px var(--shadow-light);

    /* Typography */
    --font-header: 'Manrope', sans-serif;
    --font-body: 'Rubik', sans-serif;

    /* Layout */
    --navbar-height: 5rem;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-color);
}

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

/* ==========================================================================
   2. TYPOGRAPHY & GLOBAL ELEMENTS
   ========================================================================== */

h1, h2, h3, h4, h5, h6, .title, .subtitle {
    font-family: var(--font-header);
    color: var(--header-text-color);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.section-title {
    margin-bottom: 2rem !important;
    font-weight: 800;
    color: var(--primary-color-dark);
}

.section {
    padding: 4rem 1.5rem;
}

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

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

.main-container {
    padding-top: var(--navbar-height); /* Offset for fixed navbar */
}

/* For scroll animations */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* ==========================================================================
   3. HEADER & NAVIGATION
   ========================================================================== */

.header .navbar {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    height: var(--navbar-height);
    background-color: var(--bg-color);
    box-shadow: var(--neu-shadow-outset);
    transition: background-color var(--transition-speed) ease;
}

.navbar-item.logo {
    font-family: var(--font-header);
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--primary-color-dark);
}

.navbar-menu {
    background-color: var(--bg-color);
}

.navbar-item {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-color);
    transition: all var(--transition-speed) ease;
}

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

.navbar-burger {
    color: var(--primary-color);
    height: var(--navbar-height);
    width: var(--navbar-height);
}

@media screen and (max-width: 1023px) {
    .navbar-menu {
        box-shadow: var(--neu-shadow-inset);
        padding: 0.5rem 0;
    }
}

/* ==========================================================================
   4. GLOBAL COMPONENTS (Buttons, Forms, Cards)
   ========================================================================== */

/* Buttons */
.button {
    border-radius: var(--border-radius);
    border: none;
    font-weight: 500;
    transition: all var(--transition-speed) ease-in-out;
    box-shadow: var(--neu-shadow-outset);
    background-color: var(--bg-color);
    color: var(--text-color);
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: var(--neu-shadow-hover);
    color: var(--accent-color);
}

.button:active, .button:focus {
    box-shadow: var(--neu-shadow-inset) !important;
    transform: translateY(1px);
    outline: none;
    border: none;
    color: var(--text-color);
}

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

/* Forms */
.contact-form .label {
    color: var(--subtle-text-color);
    font-weight: 500;
}

.contact-form .input, .contact-form .textarea {
    background-color: var(--bg-color);
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--neu-shadow-inset);
    color: var(--text-color);
    transition: box-shadow var(--transition-speed) ease;
}

.contact-form .input::placeholder, .contact-form .textarea::placeholder {
    color: var(--subtle-text-color);
}

.contact-form .input:focus, .contact-form .textarea:focus {
    outline: none;
    box-shadow: var(--neu-shadow-inset), 0 0 0 2px var(--primary-color);
}

/* Cards */
.card {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--neu-shadow-outset);
    transition: all var(--transition-speed) cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--neu-shadow-hover);
}

.card .card-image {
    padding: 1.5rem 1.5rem 0 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card .card-image img {
    border-radius: calc(var(--border-radius) - 5px);
    object-fit: cover;
    width: 100%;
}

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

/* ==========================================================================
   5. PAGE SECTIONS
   ========================================================================== */

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

#hero .hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    color: var(--white-color) !important;
}

#hero .hero-subtitle {
    margin-top: 1rem;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.7);
    color: var(--white-color) !important;
}

/* Statistics Section */
#statistics {
    background: linear-gradient(145deg, #f0f5fb, #cad2d9);
}

.stat-card {
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--neu-shadow-inset);
    text-align: center;
}

.stat-number {
    font-family: var(--font-header);
    font-weight: 800;
    color: var(--primary-color);
    font-size: 3.5rem !important;
}

.stat-label {
    color: var(--subtle-text-color);
    font-weight: 500;
}

/* Research (Timeline) Section */
.timeline .timeline-item .timeline-marker {
    background-color: var(--bg-color);
    border: 3px solid var(--primary-color);
}
.timeline .timeline-item .timeline-marker.is-image {
    border: none;
}
.timeline .timeline-header .tag {
    background-color: var(--primary-color);
    font-weight: bold;
}
.timeline .timeline-item .timeline-content {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--neu-shadow-outset);
    padding: 1.5rem;
}

/* Accolades Section */
.accolade-card {
    box-shadow: var(--neu-shadow-inset);
}
.accolade-card .title {
    color: var(--primary-color);
}
.accolade-card .subtitle {
    color: var(--accent-color);
    font-weight: bold;
}

/* Blog Section */
.blog-card .button {
    box-shadow: none;
    font-weight: bold;
    color: var(--primary-color);
}
.blog-card .button:hover {
    color: var(--accent-color);
    background-color: transparent !important;
}

/* Partners Section */
#partners {
    background: linear-gradient(145deg, #f0f5fb, #cad2d9);
}
.partner-logos img {
    transition: transform var(--transition-speed) ease;
    filter: grayscale(100%);
    opacity: 0.7;
}
.partner-logos img:hover {
    transform: scale(1.1);
    filter: grayscale(0%);
    opacity: 1;
}

/* External Resources Section */
.resource-list ul {
    list-style: none;
    margin-left: 0;
}
.resource-list li {
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--neu-shadow-outset);
    transition: all var(--transition-speed) ease;
}
.resource-list li:hover {
    transform: translateX(10px);
    box-shadow: var(--neu-shadow-hover);
}
.resource-list a::after {
    content: ' →';
    display: inline-block;
    transition: transform var(--transition-speed) ease;
}
.resource-list a:hover::after {
    transform: translateX(5px);
}

/* FAQ Section */
.faq-item {
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--neu-shadow-outset);
    overflow: hidden;
}
.faq-question {
    width: 100%;
    background: var(--bg-color);
    border: none;
    padding: 1.5rem;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--header-text-color);
}
.faq-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform var(--transition-speed) ease-in-out;
}
.faq-item.active .faq-icon {
    transform: rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), padding 0.5s ease;
    padding: 0 1.5rem;
}
.faq-answer p {
    margin: 0;
    padding-bottom: 1.5rem;
}

/* ==========================================================================
   6. FOOTER
   ========================================================================== */
.footer {
    background: linear-gradient(-145deg, #d8dfe6, #ffffff);
    padding: 3rem 1.5rem 2rem;
    color: var(--subtle-text-color);
}
.footer .footer-title {
    color: var(--header-text-color);
}
.footer a {
    color: var(--text-color);
}
.footer a:hover {
    color: var(--accent-color);
}
.footer ul {
    list-style: none;
    margin: 0;
}
.footer li {
    margin-bottom: 0.5rem;
}
.footer .content p {
    margin-top: 2rem;
}

/* ==========================================================================
   7. OTHER PAGES (Success, Privacy, Terms)
   ========================================================================== */

/* Centering content on Success page */
.success-page-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
}
.success-container {
    padding: 3rem;
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--neu-shadow-outset);
}

/* Padding for legal pages */
.legal-page-content {
    padding-top: calc(var(--navbar-height) + 2rem);
    padding-bottom: 3rem;
}

.legal-page-content .container h1 {
    margin-bottom: 2rem;
}

/* ==========================================================================
   8. RESPONSIVE DESIGN
   ========================================================================== */

@media screen and (max-width: 768px) {
    .section {
        padding: 3rem 1rem;
    }

    #hero .hero-title {
        font-size: 2.5rem;
    }

    #hero .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .columns.is-multiline .column {
        margin-bottom: 1.5rem;
    }

    .main-container {
        padding-top: var(--navbar-height);
    }
}