/* --- CSS Variables --- */
:root {
    /* Bright Color Palette */
    --primary-color: #007BFF; /* Bright Blue */
    --primary-color-dark: #0056b3;
    --accent-color: #FF4E50;  /* Vibrant Coral */
    --secondary-accent-color: #F9D423; /* Bright Yellow */
    --gradient-start: #007BFF;
    --gradient-end: #00C6FF;
    
    /* Typography */
    --text-color-dark: #222222;
    --text-color-grey: #5a5a5a;
    --text-color-light: #FFFFFF;
    --font-heading: 'Inter', sans-serif;
    --font-body: 'IBM Plex Sans', sans-serif;

    /* UI Elements */
    --background-light: #F8F9FA;
    --border-color: #dee2e6;
    --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.08), 0 3px 6px rgba(0, 0, 0, 0.05);
    --card-hover-shadow: 0 15px 30px rgba(0, 0, 0, 0.12), 0 5px 10px rgba(0, 0, 0, 0.08);
    --radius: 8px;
}

/* --- Global & Typography --- */
html {
    scroll-behavior: smooth;
    background-color: var(--text-color-light); /* Prevents flicker on load */
}

body {
    font-family: var(--font-body);
    color: var(--text-color-dark);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.section {
    padding: 4rem 1.5rem;
}

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

.subtitle {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--text-color-grey);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
}

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

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

/* --- Header & Navigation --- */
.navbar.is-fixed-top {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

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

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-color-dark) !important;
}

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

/* --- Hero Section --- */
.hero#hero-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax effect */
    position: relative;
    color: var(--text-color-light);
}

.hero#hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
}

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

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

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    color: var(--text-color-light) !important;
    font-weight: 400;
    opacity: 0.9;
}


/* --- Global Components (Buttons, Cards, Forms) --- */

/* Buttons */
.button.is-primary {
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    border: none;
    border-radius: var(--radius);
    font-weight: 500;
    padding: 1.5em 2.5em;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-size: 200% auto;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px 0 rgba(0, 123, 255, 0.35);
}

.button.is-primary:hover {
    background-position: right center; /* change the direction of the change here */
    box-shadow: 0 6px 20px 0 rgba(0, 123, 255, 0.5);
    transform: translateY(-2px);
}

.button.is-primary strong {
    color: var(--text-color-light);
}

/* Cards */
.card {
    background-color: var(--text-color-light);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease-in-out;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
}

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

.card-image {
    width: 100%;
    height: 200px;
}

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

.card-content {
    padding: 1.5rem;
    flex-grow: 1; /* Allows content to fill space */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.card-content .title {
    margin-bottom: 0.75rem;
    color: var(--text-color-dark);
}

.card-content .content {
    color: var(--text-color-grey);
    font-size: 0.95rem;
}

/* Forms */
.input, .textarea {
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: none;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.input:focus, .textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

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


/* --- Statistics Section --- */
.statistic-widget {
    padding: 2rem;
    text-align: center;
}
.statistic-widget .title.is-1 {
    font-size: 3.5rem;
    font-weight: 800;
    background: -webkit-linear-gradient(45deg, var(--gradient-start), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}
.statistic-widget .subtitle.is-5 {
    color: var(--text-color-dark);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.widget-description {
    color: var(--text-color-grey);
    font-size: 0.9rem;
    max-width: 250px;
    margin: 1rem auto 0;
}


/* --- External Resources Section --- */
.resource-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.resource-list li {
    margin-bottom: 1rem;
}

.resource-list li a {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 500;
    width: 100%;
    transition: all 0.3s ease;
}

.resource-list li a:hover {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

/* --- News Section --- */
#news .box {
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    transition: var(--card-hover-shadow) 0.3s ease;
}
#news .box:not(:last-child) {
    margin-bottom: 2rem;
}
#news .box:hover {
    box-shadow: var(--card-hover-shadow);
}

/* --- Footer --- */
.footer {
    background-color: var(--text-color-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 1.5rem 2rem;
}

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

.footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

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

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

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

.footer hr {
    background-color: rgba(255, 255, 255, 0.1);
    height: 1px;
}

.footer .content p {
    color: rgba(255, 255, 255, 0.5);
}

/* --- Special Page Styles --- */
/* success.html */
body.success-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    background-color: var(--background-light);
}

/* privacy.html & terms.html */
.legal-content, .about-content, .contacts-content {
    padding-top: 100px;
    padding-bottom: 50px;
}

/* --- Animations & Media Queries --- */

/* ScrollReveal Animation */
[data-sr-id] {
    visibility: hidden;
}

@keyframes draw-in {
    from {
        stroke-dashoffset: 1000;
    }
    to {
        stroke-dashoffset: 0;
    }
}

/* Media Queries for Responsiveness */
@media screen and (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section {
        padding: 3rem 1rem;
    }

    .columns.is-multiline .column {
        margin-bottom: 1.5rem;
    }
}

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