/* style.css */

/* --- CSS Variables --- */
:root {
    --primary-color: #3a7bd5;
    --secondary-color: #3a6073;
    --primary-gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --accent-color: #f5a623;
    
    --text-color-dark: #222222;
    --text-color-light: #ffffff;
    --text-color-body: #4a4a4a;

    --bg-light: #f9f9f9;
    --bg-white: #ffffff;
    --bg-dark-footer: #2c3e50;

    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Work Sans', sans-serif;

    --border-radius: 8px;
    --box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    --transition-speed: 0.3s ease;
}

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

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

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

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

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

p {
    margin-bottom: 1.25rem;
}

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

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

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

.has-background-light {
    background-color: var(--bg-light) !important;
}

/* --- Header & Navigation --- */
.header.is-fixed-top {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: background-color var(--transition-speed);
}

.navbar-item {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-color-dark);
}

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

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

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

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

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

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

/* --- Global Button Styles --- */
.button.is-primary {
    background: var(--primary-gradient);
    border: none;
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 1.5rem 2.5rem;
    border-radius: 50px;
    transition: var(--transition-speed);
    box-shadow: 0 4px 15px rgba(58, 123, 213, 0.35);
}

.button.is-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(58, 123, 213, 0.5);
}

/* --- Form Styles --- */
.input, .textarea {
    border-radius: var(--border-radius);
    border: 1px solid #dbdbdb;
    box-shadow: none;
    transition: var(--transition-speed);
    font-family: var(--font-body);
}

.input:focus, .textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.125em rgba(58, 123, 213, 0.25);
}

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

/* --- Card Styles --- */
.card {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

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

.card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area without distortion */
}

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

.card .card-content .title {
    margin-bottom: 0.75rem;
}

/* --- Timeline Section --- */
.timeline .timeline-item .timeline-marker {
    background: var(--primary-gradient);
}
.timeline .timeline-header .tag {
    background: var(--primary-gradient);
}
.timeline .timeline-content {
    padding: 2em;
    border-radius: var(--border-radius);
    background: var(--bg-light);
}

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

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

.resource-list li a {
    display: block;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    background: var(--bg-white);
    text-decoration: none;
    color: var(--text-color-body);
    box-shadow: var(--box-shadow);
    transition: var(--transition-speed);
}

.resource-list li a:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
    color: var(--primary-color);
}

.resource-list li a strong {
    font-family: var(--font-heading);
    color: var(--text-color-dark);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.5rem;
}


/* --- Footer --- */
.footer {
    background-color: var(--bg-dark-footer);
    color: rgba(255, 255, 255, 0.8);
}

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

.footer a {
    color: rgba(255, 255, 255, 0.8);
}

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

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

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

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

/* --- Standalone Pages (Privacy, Terms, About, etc.) --- */
.page-container {
    padding-top: 120px;
    padding-bottom: 60px;
}

.page-container .content h1,
.page-container .content h2,
.page-container .content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.page-container .content ul {
    margin-left: 2em;
    list-style: disc;
}

/* --- Success Page --- */
.success-page-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100vh;
    background: var(--primary-gradient);
    color: var(--text-color-light);
    padding: 2rem;
}

.success-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    max-width: 600px;
}

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

.success-box .button {
    margin-top: 2rem;
    background: var(--text-color-light);
    color: var(--primary-color);
}

/* --- Scroll Animations --- */
[data-anim] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

[data-anim].is-visible {
    opacity: 1;
    transform: translateY(0);
}

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

    .section-title {
        margin-bottom: 2rem !important;
    }
    
    h1.title {
        font-size: 2rem;
    }

    h2.subtitle {
        font-size: 1.25rem;
    }

    .button.is-large {
        font-size: 1rem;
        padding: 1rem 1.5rem;
    }

    #hero {
        background-attachment: scroll; /* Disable parallax on mobile for performance */
    }

    .page-container {
        padding-top: 100px;
    }

    .footer {
        text-align: center;
    }

    .footer .columns {
        flex-direction: column;
    }
    
    .footer .column {
        margin-bottom: 2rem;
    }
}