/*
  ========================================
  Google Fonts
  ========================================
*/
/* The HTML file already includes the <link> tag, so @import is not necessary here. */

/*
  ========================================
  CSS Variables
  ========================================
*/
:root {
    /* Color Palette - Complementary (Deep Blue & Rich Gold) */
    --color-primary: #1d3557; /* Deep Blue - for text, backgrounds */
    --color-secondary: #457b9d; /* Lighter Blue - for accents */
    --color-accent: #e63946; /* A vibrant red as a contrasting accent (from a triadic scheme for more pop) */
    --color-accent-gold: #fca311; /* Golden Accent for buttons and highlights */
    
    --color-text: #222222; /* Dark text for high contrast */
    --color-text-light: #f1faee; /* Light text for dark backgrounds */
    --color-bg: #fdfbfb; /* Main background - almost white */
    --color-bg-alt: #f1faee; /* Alternate light background for sections */

    /* Glassmorphism */
    --color-glass-bg: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(12px);
    --glass-border: 1px solid rgba(255, 255, 255, 0.2);
    --shadow: 0 8px 24px 0 rgba(31, 38, 135, 0.15);

    /* Typography */
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Source Sans Pro', sans-serif;

    /* Sizing & Spacing */
    --navbar-height: 6rem;
    --border-radius: 16px;
    --border-radius-soft: 8px;
    
    /* Biomorphic Shape - using clip-path for flexibility */
    --bio-shape-1: polygon(0% 15%, 15% 0%, 100% 0%, 85% 100%, 15% 100%, 0% 85%);
}

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

body {
    font-family: var(--font-secondary);
    color: var(--color-text);
    font-size: 1.1rem;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.title {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.section-title {
    margin-bottom: 3rem !important;
    font-weight: 900;
    color: var(--color-primary);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

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

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

.section {
    padding: 5rem 1.5rem;
}

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

/*
  ========================================
  Header & Navigation
  ========================================
*/
.navbar.is-fixed-top {
    height: var(--navbar-height);
    background: rgba(240, 239, 235, 0.7);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: var(--glass-border);
}

.navbar .logo {
    font-family: var(--font-primary);
    font-weight: 900;
    font-size: 1.8rem;
    color: var(--color-primary);
}

.navbar-item {
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-primary);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

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

@media screen and (max-width: 1023px) {
    .navbar-menu {
        background: rgba(240, 239, 235, 0.9);
        backdrop-filter: var(--glass-blur);
        -webkit-backdrop-filter: var(--glass-blur);
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        padding-bottom: 1rem;
    }
}

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

.hero-content-box {
    background: var(--color-glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 3rem;
    border-radius: var(--border-radius);
    border: var(--glass-border);
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto;
}

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


/*
  ========================================
  Buttons
  ========================================
*/
.button {
    font-family: var(--font-secondary);
    font-weight: 600;
    border-radius: var(--border-radius-soft);
    border: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 1.5em 2.5em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.button.is-primary {
    background-color: var(--color-accent-gold);
    color: var(--color-primary);
}

.button.is-primary:hover {
    background-color: var(--color-accent-gold);
    color: var(--color-primary);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 20px -10px var(--color-accent-gold);
}

.button.is-primary:active {
    transform: translateY(-1px) scale(0.98);
}

.button.is-primary.is-outlined {
    background-color: transparent;
    border-color: var(--color-accent-gold);
    color: var(--color-accent-gold);
}
.button.is-primary.is-outlined:hover {
    background-color: var(--color-accent-gold);
    color: var(--color-primary);
    box-shadow: none;
}

/*
  ========================================
  Cards (Research, Resources)
  ========================================
*/
.card {
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.card .card-image {
    height: 250px; /* 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 */
    transition: transform 0.4s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

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

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

.card .card-content .content {
    margin-top: auto;
}

.card .card-content a {
    font-weight: bold;
    display: inline-block;
    margin-top: 1rem;
    text-decoration: none;
    position: relative;
}

.card .card-content a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-accent-gold);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.card .card-content a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Resource Card Specific */
.resource-card .card-content {
    background: var(--color-glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
}

/*
  ========================================
  Biomorphic & Content Sections
  ========================================
*/
.image-container.bio-shape, .image-container.bio-shape-alt {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: morph 8s ease-in-out infinite;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.image-container.bio-shape-alt {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

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

@keyframes morph {
  0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  50% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

/*
  ========================================
  Timeline Section
  ========================================
*/
.timeline {
    position: relative;
    max-width: 750px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--color-secondary);
    opacity: 0.2;
    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 {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--color-bg);
    border: 4px solid var(--color-accent-gold);
    border-radius: 50%;
    top: 35px;
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-marker {
    right: -10px;
}

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

.timeline-content {
    padding: 2rem;
    background: white;
    position: relative;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
.timeline-item:nth-child(even) .timeline-content {
    text-align: left;
}
.timeline-item:nth-child(odd) .timeline-content {
    text-align: right;
}

.timeline-content .heading {
    font-weight: 600;
    color: var(--color-secondary);
}

@media screen and (max-width: 768px) {
  .timeline::after { left: 31px; }
  .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
  .timeline-item:nth-child(even) { left: 0; }
  .timeline-item .timeline-marker { left: 21px; }
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    text-align: left;
  }
}

/*
  ========================================
  Contact Form
  ========================================
*/
.contact-form-container {
    background: var(--color-glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 3rem;
    border-radius: var(--border-radius);
    border: var(--glass-border);
    box-shadow: var(--shadow);
}

.input, .textarea {
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius-soft);
    padding: 1.2em;
    transition: all 0.3s ease;
}

.input:focus, .textarea:focus {
    border-color: var(--color-accent-gold);
    box-shadow: 0 0 0 0.125em rgba(252, 163, 17, 0.25);
    background-color: white;
}

.label {
    color: var(--color-primary);
    font-weight: 600;
}

/*
  ========================================
  Footer
  ========================================
*/
.footer {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding: 4rem 1.5rem 2rem;
}

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

.footer a {
    color: var(--color-bg-alt);
    transition: color 0.3s ease;
}

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

.footer .logo {
    font-family: var(--font-primary);
    font-weight: 900;
    font-size: 2rem;
}

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

.footer li {
    margin-bottom: 0.75rem;
}

.footer .content p {
    color: var(--color-secondary);
    margin-top: 2rem;
}

/*
  ========================================
  Specific Page Styles
  ========================================
*/

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

.success-page .success-box {
    background: white;
    padding: 3rem 4rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    max-width: 600px;
}

/* Privacy & Terms Pages */
.legal-page-content {
    padding-top: calc(var(--navbar-height) + 2rem);
    padding-bottom: 4rem;
}
.legal-page-content h1, .legal-page-content h2, .legal-page-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}