/* ===================================================================
   1. CSS Variables & Theme Setup
   =================================================================== */

:root {
    /* Bright Color Scheme */
    --primary-color: #6a11cb;
    --accent-color: #2575fc;
    --gradient-primary: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    
    /* Neumorphism Base */
    --background-color: #e0e5ec;
    --light-shadow-color: #ffffff;
    --dark-shadow-color: #a3b1c6;
    
    /* Typography */
    --text-color: #3d4a5f;
    --heading-color: #2c3647;
    --white-color: #FFFFFF;
    --font-family-headings: 'Manrope', sans-serif;
    --font-family-body: 'Rubik', sans-serif;

    /* UI Elements */
    --border-radius: 15px;
    --transition-speed: 0.3s;
    
    /* Shadows */
    --shadow-neumorphic: 8px 8px 16px var(--dark-shadow-color), -8px -8px 16px var(--light-shadow-color);
    --shadow-neumorphic-inset: inset 8px 8px 16px var(--dark-shadow-color), inset -8px -8px 16px var(--light-shadow-color);
    --text-shadow-dark: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* ===================================================================
   2. Base & Body Styles
   =================================================================== */

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

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

/* ===================================================================
   3. Typography
   =================================================================== */

h1, h2, h3, h4, h5, h6, .title, .subtitle {
    font-family: var(--font-family-headings);
    color: var(--heading-color);
}

.title.has-text-shadow, .subtitle.has-text-shadow {
    text-shadow: var(--text-shadow-dark);
}

.title {
    font-weight: 800;
}

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

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

/* ===================================================================
   4. Layout & Sections
   =================================================================== */

.section {
    padding: 4rem 1.5rem;
}

@media screen and (min-width: 769px) {
    .section {
        padding: 6rem 3rem;
    }
}

[data-parallax] {
    transition: transform 0.2s ease-out;
    will-change: transform;
}

#particles-js {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: -1;
    background-color: var(--background-color);
}


/* ===================================================================
   5. Header & Navigation
   =================================================================== */

.navbar.is-fixed-top {
    background: rgba(224, 229, 236, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.navbar-item.logo-text {
    font-family: var(--font-family-headings);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--heading-color);
}

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

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

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

@media screen and (max-width: 1023px) {
    .navbar-menu {
        background-color: rgba(240, 245, 250, 0.95);
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        border-radius: 0 0 var(--border-radius) var(--border-radius);
    }
}

/* ===================================================================
   6. Global Components (Buttons, Cards, Inputs)
   =================================================================== */

/* Buttons */
.button, button, input[type='submit'] {
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: all var(--transition-speed) ease-in-out;
    border: none;
}

.neumorphic-button {
    background: var(--background-color);
    color: var(--text-color);
    box-shadow: var(--shadow-neumorphic);
}

.neumorphic-button:hover {
    color: var(--primary-color);
    box-shadow: 4px 4px 8px var(--dark-shadow-color), -4px -4px 8px var(--light-shadow-color);
}

.neumorphic-button:active, .neumorphic-button:focus {
    box-shadow: var(--shadow-neumorphic-inset);
    color: var(--accent-color);
}

.button.is-primary {
    background: var(--gradient-primary);
    color: var(--white-color);
    box-shadow: 4px 4px 12px rgba(0,0,0,0.2);
}

.button.is-primary:hover {
    transform: translateY(-3px);
    box-shadow: 6px 6px 16px rgba(0,0,0,0.25);
    color: var(--white-color);
}

.button.is-text {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: bold;
}

.button.is-text:hover {
    background-color: transparent;
    color: var(--accent-color);
    transform: translateX(5px);
}

/* Cards */
.card {
    background: var(--background-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Aligns content to the top */
    text-align: center;
}

.neumorphic-card {
    box-shadow: var(--shadow-neumorphic);
    transition: all var(--transition-speed) ease;
}

.neumorphic-card.has-hover-effect:hover {
    transform: translateY(-10px);
    box-shadow: 12px 12px 24px var(--dark-shadow-color), -12px -12px 24px var(--light-shadow-color);
}

.neumorphic-card-inset {
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-neumorphic-inset);
}

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

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

.card-content {
    flex-grow: 1; /* Allows content to fill the remaining space */
}


/* Inputs */
.input, .textarea {
    background: var(--background-color);
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-neumorphic-inset);
    color: var(--text-color);
    transition: all var(--transition-speed) ease;
}

.input::placeholder, .textarea::placeholder {
    color: var(--dark-shadow-color);
}

.input:focus, .textarea:focus {
    box-shadow: var(--shadow-neumorphic-inset), 0 0 0 2px var(--accent-color);
    outline: none;
}

.label {
    color: var(--heading-color);
    font-weight: 500;
}

/* ===================================================================
   7. Section-Specific Styles
   =================================================================== */

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

.hero#hero .title, .hero#hero .subtitle {
    color: var(--white-color);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

/* Statistics Section */
#statistics .animated-number {
    font-weight: 800;
    color: var(--primary-color);
}

/* Accordion */
.accordion-item {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-neumorphic);
}

.accordion-header {
    margin-bottom: 0 !important;
}

.accordion-button {
    width: 100%;
    background-color: transparent;
    border: none;
    text-align: left;
    padding: 1.5rem;
    font-family: var(--font-family-headings);
    font-size: 1.25rem;
    color: var(--heading-color);
    cursor: pointer;
    position: relative;
    border-radius: var(--border-radius);
}

.accordion-button::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: 300;
    transition: transform var(--transition-speed) ease;
    color: var(--primary-color);
}

.accordion-button[aria-expanded="true"]::after {
    transform: rotate(45deg);
}

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

.accordion-content p {
    padding: 1.5rem 0;
    border-top: 1px solid var(--dark-shadow-color);
    margin-top: -1px;
}

/* Modal */
.modal-card.neumorphic-modal {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-neumorphic);
}

.modal-card-head, .modal-card-foot {
    background-color: transparent;
    border: none;
}

/* ===================================================================
   8. Footer
   =================================================================== */

.footer {
    background-color: #d1d9e6; /* A slightly darker shade for contrast */
    padding: 3rem 1.5rem 3rem;
    border-top: 1px solid var(--dark-shadow-color);
}

.footer .title {
    color: var(--heading-color);
}

.footer a {
    color: var(--text-color);
}

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

.footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer ul li {
    padding-bottom: 0.5rem;
}

/* ===================================================================
   9. Specific Page Styles
   =================================================================== */

/* For pages like Privacy, Terms */
.static-page-content {
    padding-top: 100px;
    padding-bottom: 4rem;
}

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

.success-page .card {
    max-width: 600px;
    padding: 2rem;
}

/* ===================================================================
   10. Utility & Helper Classes
   =================================================================== */

.neumorphic-image {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-neumorphic);
    object-fit: cover;
    width: 100%;
    height: 100%;
}