/* style.css */

/* --- CSS Variables --- */
:root {
    --primary-color: #6a11cb;
    --secondary-color: #2575fc;
    --accent-color: #00ffc6;
    --text-light: #ffffff;
    --text-dark: #363636;
    --text-darker: #222222;
    --background-dark: #120129;
    --background-light: #f4f7f9;
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --gradient-accent: linear-gradient(90deg, var(--accent-color) 0%, #2575fc 100%);
    --font-heading: 'Raleway', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --border-radius: 8px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition-speed: 0.4s;
}

/* --- General & Body Styles --- */
html {
    scroll-behavior: smooth;
    background-color: var(--background-light);
}

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

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

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

p {
    font-size: clamp(1rem, 1.5vw, 1.1rem);
}

/* --- Navigation --- */
.navbar {
    background-color: #000;
    transition: background-color var(--transition-speed) ease-in-out;
}

.navbar.is-scrolled {
    background-color: rgba(18, 1, 41, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

.navbar-item:hover, .navbar-item:focus {
    background-color: transparent !important;
    color: var(--accent-color) !important;
    transform: translateY(-2px);
    transition: all var(--transition-speed) ease;
}

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

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

.navbar.is-scrolled .navbar-item,
.navbar.is-scrolled .navbar-burger {
    color: var(--text-light);
}

.navbar.is-scrolled .navbar-brand .navbar-item {
    color: var(--text-light);
}

.navbar-menu {
    background: transparent;
}


/* --- Global Component Styles --- */
.section {
    padding: 6rem 1.5rem;
}

.button, input[type='submit'] {
    font-family: var(--font-heading);
    font-weight: 700;
    border-radius: 50px;
    padding: 1.2em 2.5em;
    border: none;
    transition: all var(--transition-speed) ease;
    transform-style: preserve-3d;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

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

.button:hover, input[type='submit']:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

.input, .textarea {
    border-radius: var(--border-radius);
    border: 2px solid transparent;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all var(--transition-speed) ease;
}

.input:focus, .textarea:focus {
    box-shadow: 0 0 0 3px rgba(37, 117, 252, 0.3);
    border-color: var(--secondary-color);
}

.card {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    overflow: hidden;
}

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

/* --- Hero Section --- */
.hero#hero {
    position: relative;
    color: var(--text-light);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero .title, .hero .subtitle, .hero p {
    color: var(--text-light);
}

/* --- Statistics Section --- */
#stats .title.is-1 {
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#stats .heading {
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.stat-item {
    opacity: 0;
    transform: translateY(20px);
}

/* --- Process Section (Timeline) --- */
.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 4px;
    background: var(--gradient-primary);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-marker {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--text-light);
    border: 4px solid var(--primary-color);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even) .timeline-marker {
    left: -10px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: #fff;
    position: relative;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}


/* --- Methodology & Resources Sections --- */
.methodology-box, .resource-card {
    background-color: #fff;
    border-left: 5px solid;
    border-image: var(--gradient-primary) 1;
}

.resource-card .title a {
    color: var(--text-darker);
    transition: color var(--transition-speed) ease;
}

.resource-card .title a:hover {
    color: var(--primary-color);
}

/* --- Partners Section --- */
#partners img {
    max-height: 60px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all var(--transition-speed) ease;
}

#partners img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* --- Contact Section --- */
.contact-form {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* --- Footer --- */
.footer {
    background: var(--background-dark);
    padding: 4rem 1.5rem;
}

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

.footer, .footer a {
    color: #aeb4c4;
}

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

/* --- Special Page Styles (Success, Privacy, Terms) --- */
.page-container {
    padding-top: 10rem;
    padding-bottom: 5rem;
}

body.success-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: var(--gradient-primary);
    color: var(--text-light);
    text-align: center;
}

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

.success-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.success-content .button {
    background: var(--text-light);
    color: var(--primary-color);
}

/* --- Animation on Scroll --- */
.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* --- Responsive Design --- */
@media screen and (max-width: 768px) {
    .section {
        padding: 3rem 1.5rem;
    }

    .navbar-menu {
        background-color: rgba(18, 1, 41, 0.95);
    }
    .navbar.is-scrolled .navbar-menu {
        background-color: transparent;
    }
    
    .timeline-container::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item:nth-child(odd), .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-marker {
        left: 21px;
    }
    
    .columns.is-two-thirds {
        width: 100%;
    }
}