/*
================================================
  Fonts & CSS Variables
================================================
*/
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@700&family=Lato:wght@400;700&display=swap');

:root {
    /* Analogous Color Scheme: Blue -> Indigo -> Violet */
    --color-primary: #3b82f6;   /* blue-500 */
    --color-primary-dark: #2563eb; /* blue-600 */
    --color-secondary: #6366f1; /* indigo-500 */
    --color-accent: #8b5cf6;    /* violet-500 */
    --color-accent-dark: #7c3aed; /* violet-600 */
    
    /* Text & Background Colors */
    --color-text-dark: #1f2937; /* gray-800 */
    --color-text-medium: #4b5563; /* gray-600 */
    --color-text-light: #f9fafb; /* gray-50 */
    --color-bg-light: #f3f4f6;  /* gray-100 */
    --color-bg-dark: #111827;   /* gray-900 */
    --color-border: #e5e7eb;   /* gray-200 */

    /* Typography */
    --font-heading: 'Roboto', sans-serif;
    --font-body: 'Lato', sans-serif;

    /* Transitions & Animations */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/*
================================================
  Base & Global Styles
================================================
*/
body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    background-color: var(--color-bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Non-linear movement for page transitions */
.page-fade {
    animation: fadeInAnimation ease 0.8s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

@keyframes fadeInAnimation {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/*
================================================
  Typography & Utility Classes
================================================
*/
.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem; /* ~40px */
    font-weight: 700;
    color: var(--color-text-dark);
    text-align: center;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

.text-shadow {
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}


/* For pages like privacy.html & terms.html */
.content-page-container {
    padding-top: 120px;
    padding-bottom: 60px;
}
.content-page-container h1 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}
.content-page-container h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.content-page-container p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

/*
================================================
  Header & Navigation
================================================
*/
#header {
    transition: var(--transition-medium);
    background-color: rgba(17, 24, 39, 0.85); /* gray-900 with alpha */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.nav-link {
    color: var(--color-text-light);
    font-weight: 600;
    position: relative;
    padding-bottom: 8px;
    transition: var(--transition-fast);
}
.nav-link:hover {
    color: var(--color-accent);
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-accent);
    transition: var(--transition-medium);
}
.nav-link:hover::after {
    width: 100%;
}

/* Mobile Menu */
.mobile-nav-hidden {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.mobile-nav-visible {
    max-height: 500px;
}

/*
================================================
  Buttons & Forms
================================================
*/
/* Global button styles */
.btn, button, input[type='submit'] {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 9999px; /* pill shape */
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-fast);
    transform-origin: center;
    background-color: var(--color-accent);
    color: var(--color-text-light);
}
.btn:hover, button:hover, input[type='submit']:hover {
    background-color: var(--color-accent-dark);
    transform: scale(1.05);
    box-shadow: 0 10px 20px -5px rgba(124, 58, 237, 0.4);
}

/* Form inputs */
.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background-color: var(--color-bg-light);
    border: 2px solid var(--color-border);
    border-radius: 0.5rem;
    transition: var(--transition-fast);
}
.form-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.3);
}

/*
================================================
  Component Styles
================================================
*/

/* Hero Section */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
#hero .text-white {
    color: #FFFFFF !important; /* Ensure high contrast */
}

/* Card Styles (for Projects, Resources, etc.) */
.card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: var(--transition-medium);
    display: flex;
    flex-direction: column;
    height: 100%; /* Make cards in a grid have the same height */
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
}
.card-image {
    width: 100%;
    height: 14rem; /* 224px */
    overflow: hidden;
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.card:hover .card-image img {
    transform: scale(1.05);
}
.card-content {
    padding: 1.5rem;
    text-align: left; /* Default text align */
    flex-grow: 1; /* Allow content to fill space */
    display: flex;
    flex-direction: column;
}
.card-content h3 {
    font-family: var(--font-heading);
    color: var(--color-text-dark);
}
.card-content p {
    color: var(--color-text-medium);
    flex-grow: 1; /* Pushes content below it to the bottom */
}
.read-more-link {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 700;
    color: var(--color-accent);
    text-decoration: none;
    transition: var(--transition-fast);
}
.read-more-link:hover {
    color: var(--color-accent-dark);
    text-decoration: underline;
}

/* Resource Card Specific Style */
.resource-card {
    display: block;
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid var(--color-border);
    transition: var(--transition-medium);
    text-decoration: none;
}
.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    border-color: var(--color-accent);
}
.resource-card h3 {
    color: var(--color-text-dark);
    font-family: var(--font-heading);
}
.resource-card p {
    color: var(--color-text-medium);
}


/* Methodology Accordion */
.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: var(--transition-medium);
}
.accordion-header:hover {
    background-color: #f0f2ff; /* Light indigo */
}
.accordion-header.active {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.accordion-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.accordion-header.active .accordion-icon {
    transform: rotate(45deg);
}
.accordion-content {
    background-color: #ffffff;
   
    transition: max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}
.accordion-content p {
    padding: 1.5rem;
    line-height: 1.6;
    color: var(--color-text-medium);
}

/* Progress Indicators */
.progress-bar-container {
    width: 100%;
    background-color: var(--color-border);
    border-radius: 9999px;
    height: 0.625rem; /* 10px */
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 1.5s cubic-bezier(0.25, 1, 0.5, 1);
    background: linear-gradient(90deg, var(--color-secondary) 0%, var(--color-primary) 100%);
}

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

/* Success Page */
.success-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(45deg, var(--color-bg-light) 0%, #e9eafc 100%);
}

/* Footer */
.footer-link {
    color: #9ca3af; /* gray-400 */
    transition: var(--transition-fast);
}
.footer-link:hover {
    color: var(--color-text-light);
    text-decoration: underline;
}

/* Social media text links in footer */
.social-links a {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af; /* gray-400 */
    transition: var(--transition-fast);
}
.social-links a:hover {
    color: var(--color-accent);
}