/* style.css */

/*------------------------------------------------------------------
[Table of Contents]

1. ROOT VARIABLES & BASE STYLES
    - CSS Variables
    - HTML, Body Base
    - Scrollbar Styling
2. TYPOGRAPHY
    - Headings (h1-h6)
    - Paragraphs
    - Links
    - Section Titles
3. LAYOUT & CONTAINER
    - Section Padding
4. GLOBAL COMPONENTS
    - Buttons
    - Cards (General, Accolade, Success Story)
    - Progress Bars
    - Timeline
    - Form Elements (Input, Textarea)
5. NAVIGATION (HEADER & FOOTER)
    - Header (Fixed Nav)
    - Mobile Menu
    - Footer
    - Footer Social Links
6. SECTION SPECIFIC STYLES
    - Hero Section
    - Mission Section
    - Methodology Section
    - Insights Section
    - News Section (Timeline)
    - Accolades Section (Gallery)
    - Success Stories Section
    - External Resources Section
    - Contact Section
7. PAGE SPECIFIC STYLES
    - About Page
    - Contacts Page
    - Privacy & Terms Pages
    - Success Page
8. EFFECTS & ANIMATIONS
    - Hover Effects
    - Smooth Transitions (handled by Tailwind and CSS variables)
    - Glassmorphism Effect
    - Curved Grid Elements
9. UTILITY CLASSES
    - Text Shadow
    - Read More Link Style
-------------------------------------------------------------------*/

/* 1. ROOT VARIABLES & BASE STYLES
-------------------------------------------------------------------*/
:root {
    /* Analogous Color Scheme */
    --color-primary: #0D47A1;       /* Deep Blue - Main */
    --color-primary-darker: #0a3a82;
    --color-secondary: #00796B;     /* Teal/Blue-Green - Analogous 1 */
    --color-secondary-darker: #005f54;
    --color-accent: #5E35B1;        /* Purple/Blue-Violet - Analogous 2 */
    --color-accent-darker: #4a2a8c;

    /* Neutral Colors */
    --color-text-light: #E2E8F0;    /* Light Gray (for dark backgrounds) */
    --color-text-medium: #A0AEC0;   /* Medium Gray */
    --color-text-dark: #1A202C;     /* Dark Gray (for light backgrounds) */
    --color-text-headings-dark-bg: #FFFFFF; /* White for headings on dark bg */
    --color-text-headings-light-bg: #111827; /* Very dark gray for headings on light bg */

    --color-background-dark: #111827;  /* Very Dark Blue/Gray - Main BG */
    --color-background-section-dark: #1a202c; /* Slightly Lighter Dark for sections */
    --color-background-card: rgba(26, 32, 44, 0.7); /* Dark with opacity for cards */
    --color-border-card: rgba(94, 53, 177, 0.4); /* Accent with opacity */

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    --gradient-overlay-dark: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
    --gradient-glass: rgba(255, 255, 255, 0.05);

    /* Fonts */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Work Sans', sans-serif;

    /* Transitions & Shadows */
    --transition-smooth: all 0.3s ease-in-out;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-futuristic: 0 0 15px var(--color-accent-darker);

    /* Spacing */
    --section-padding-y: theme('spacing.16') theme('spacing.24'); /* py-16 md:py-24 */
}

/* HTML, Body Base */
html {
    scroll-behavior: smooth;
    font-size: 100%; /* Corresponds to 16px */
}

body {
    background-color: var(--color-background-dark);
    color: var(--color-text-light);
    font-family: var(--font-secondary);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Scrollbar Styling - already in HTML, but can be enhanced here */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: var(--color-background-section-dark);
}
::-webkit-scrollbar-thumb {
    background-color: var(--color-accent);
    border-radius: 20px;
    border: 2px solid var(--color-background-section-dark);
}
::-webkit-scrollbar-thumb:hover {
    background-color: var(--color-secondary);
}

/*------------------------------------------------------------------
2. TYPOGRAPHY
-------------------------------------------------------------------*/
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600; /* Poppins bold */
    line-height: 1.3;
    color: var(--color-text-headings-dark-bg); /* Default for dark backgrounds */
    margin-bottom: 0.75em;
}
.light-bg h1, .light-bg h2, .light-bg h3, .light-bg h4, .light-bg h5, .light-bg h6 {
    color: var(--color-text-headings-light-bg);
}

h1 { font-size: 2.5rem; } /* Tailwind text-4xl */
h2 { font-size: 2rem; }   /* Tailwind text-3xl */
h3 { font-size: 1.5rem; } /* Tailwind text-2xl */
h4 { font-size: 1.25rem; }/* Tailwind text-xl */

@media (min-width: 768px) {
    h1 { font-size: 3rem; }   /* Tailwind md:text-5xl */
    h2 { font-size: 2.25rem; } /* Tailwind md:text-4xl */
    h3 { font-size: 1.875rem;} /* Tailwind md:text-3xl */
}

p {
    margin-bottom: 1rem;
    color: var(--color-text-medium);
}
.text-gray-300 { /* Tailwind class from HTML */
    color: var(--color-text-light) !important; /* Override if needed for consistency */
}

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
}
a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

.section-title {
    text-align: center;
    margin-bottom: theme('spacing.12'); /* mb-12 */
    font-weight: 700; /* Poppins extra bold for titles */
    letter-spacing: 0.025em;
    position: relative;
    padding-bottom: 0.5rem;
}
.section-title::after { /* Futuristic underline */
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--color-accent);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--color-accent);
}


/*------------------------------------------------------------------
3. LAYOUT & CONTAINER
-------------------------------------------------------------------*/
section {
    padding-top: theme('spacing.16');    /* py-16 */
    padding-bottom: theme('spacing.16'); /* py-16 */
    position: relative; /* For pseudo-elements and absolute positioning within sections */
    overflow: hidden; /* For curved grid effects */
}
@media (min-width: 768px) {
    section {
        padding-top: theme('spacing.24');    /* md:py-24 */
        padding-bottom: theme('spacing.24'); /* md:py-24 */
    }
}
.container { /* Tailwind container default is fine, this is a placeholder if needed */
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: theme('spacing.4');  /* px-4 */
    padding-right: theme('spacing.4'); /* px-4 */
}
@media (min-width: 640px) { .container { max-width: 640px; padding-left: theme('spacing.6'); padding-right: theme('spacing.6'); } } /* sm */
@media (min-width: 768px) { .container { max-width: 768px; } } /* md */
@media (min-width: 1024px) { .container { max-width: 1024px; padding-left: theme('spacing.8'); padding-right: theme('spacing.8'); } } /* lg */
@media (min-width: 1280px) { .container { max-width: 1280px; } } /* xl */


/*------------------------------------------------------------------
4. GLOBAL COMPONENTS
-------------------------------------------------------------------*/

/* Buttons */
.btn, button, input[type='submit'], input[type='button'] {
    display: inline-block;
    font-family: var(--font-primary);
    font-weight: 600;
    padding: 0.75rem 1.75rem; /* py-3 px-7 approx */
    border-radius: 0.375rem; /* rounded-md */
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
    box-shadow: var(--shadow-sm);
    letter-spacing: 0.025em;
}

/* Primary Button Style (matches bg-brand-primary from HTML) */
.btn-primary,
button[type='submit'], /* Default for submit buttons */
input[type='submit'],
a[class*="bg-brand-primary"] /* Catching Tailwind classes from HTML for consistency */
{
    background-color: var(--color-primary);
    color: #FFFFFF;
    border-color: var(--color-primary);
}
.btn-primary:hover,
button[type='submit']:hover,
input[type='submit']:hover,
a[class*="bg-brand-primary"]:hover
{
    background-color: var(--color-primary-darker);
    border-color: var(--color-primary-darker);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Accent Button Style (matches bg-brand-accent from HTML) */
.btn-accent,
a[class*="bg-brand-accent"]
{
    background-color: var(--color-accent);
    color: #FFFFFF;
    border-color: var(--color-accent);
}
.btn-accent:hover,
a[class*="bg-brand-accent"]:hover
{
    background-color: var(--color-accent-darker);
    border-color: var(--color-accent-darker);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Secondary/Outline Button Style */
.btn-secondary {
    background-color: transparent;
    color: var(--color-secondary);
    border-color: var(--color-secondary);
}
.btn-secondary:hover {
    background-color: var(--color-secondary);
    color: #FFFFFF;
    border-color: var(--color-secondary);
    box-shadow: var(--shadow-md);
}


/* Cards */
.card {
    background-color: var(--color-background-card);
    border: 1px solid var(--color-border-card);
    border-radius: 0.75rem; /* rounded-lg */
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; /* For centering content */
    flex-direction: column;
    /* text-align: center; /* Content centering */
    height: 100%; /* Make cards in a grid equal height if desired */
}
.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(94, 53, 177, 0.2), var(--shadow-futuristic);
}

.card-image { /* Generic card image container */
    width: 100%;
    overflow: hidden;
    position: relative; /* For overlays or aspect ratio */
    display: flex; /* Centering image inside */
    justify-content: center;
    align-items: center;
}
.card-image.image-container { /* Specific class from HTML */
    /* Ensure image fills this container */
}
.card-image img {
    width: 100%;
    height: 200px; /* Default height, can be overridden for specific cards */
    object-fit: cover;
    transition: transform 0.4s ease;
    margin: 0 auto; /* Centering for images that might not fill width */
}
.card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem; /* p-6 */
    flex-grow: 1; /* Allows content to fill space if card is flex column */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes em/author to bottom */
}
.card-content h3 {
    color: var(--color-text-headings-dark-bg);
    margin-bottom: 0.5rem;
}
.card-content p {
    color: var(--color-text-medium);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}
.card-content .text-xs { /* Author/Source in success stories */
    font-size: 0.75rem;
    color: var(--color-text-medium);
    opacity: 0.8;
}
.card-content a[href^="http"] { /* External resource links */
    font-weight: 500;
    color: var(--color-accent);
}
.card-content a[href^="http"]:hover {
    color: var(--color-secondary);
}

/* Specific Card types from HTML (Accolade, Success Story) */
.accolade-card .card-image img {
    height: 180px; /* Slightly different height for accolades */
}
.accolade-card .card-content {
    text-align: center;
}
.success-story-card .card-image img {
    height: 220px;
}

/* Card centering for team members specifically (from about.html) */
.card.text-center img.rounded-full {
    margin-left: auto;
    margin-right: auto;
}

/* Progress Bars */
.progress-bar-container {
    background-color: rgba(74, 85, 104, 0.5); /* gray-600 with opacity */
    border-radius: 0.375rem; /* rounded-md */
    overflow: hidden;
    height: 1rem; /* h-4 */
    margin-bottom: 0.75rem; /* mb-3 */
    border: 1px solid var(--color-border-card);
}
.progress-bar {
    height: 100%;
    background: var(--gradient-primary); /* Use gradient for futuristic feel */
    background-size: 200% 200%; /* For potential animation */
    color: white;
    font-size: 0.75rem; /* text-xs */
    font-weight: 600;
    line-height: 1rem; /* leading-4 */
    text-align: center;
    border-radius: 0.25rem 0 0 0.25rem; /* Ensure rounded corners on left */
    transition: width 1s ease-in-out;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%{background-position:0% 50%}
    50%{background-position:100% 50%}
    100%{background-position:0% 50%}
}


/* Timeline */
.timeline {
    position: relative;
    max-width: theme('maxWidth.4xl'); /* 56rem */
    margin-left: auto;
    margin-right: auto;
}
.timeline::before { /* Central line */
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--color-accent);
    transform: translateX(-50%);
    box-shadow: 0 0 8px var(--color-accent);
    z-index: 1;
}
.timeline-item {
    position: relative;
    margin-bottom: 50px;
    width: 50%;
    padding: 10px 40px;
    box-sizing: border-box;
    z-index: 2;
}
.timeline-item:nth-child(odd) {
    left: 0;
}
.timeline-item:nth-child(even) {
    left: 50%;
}
.timeline-item::after { /* Circle on the line */
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 20px; /* Adjust to align with content */
    background-color: var(--color-background-dark);
    border: 4px solid var(--color-accent);
    border-radius: 50%;
    z-index: 3; /* Above the line */
    box-shadow: 0 0 10px var(--color-accent);
}
.timeline-item:nth-child(odd)::after {
    right: -10px; /* Half of width */
}
.timeline-item:nth-child(even)::after {
    left: -10px; /* Half of width */
}
.timeline-content {
    padding: 1.5rem; /* p-6 */
    background: var(--color-background-card);
    position: relative;
    border-radius: 0.5rem; /* rounded-lg */
    border: 1px solid var(--color-border-card);
    box-shadow: var(--shadow-md);
}
.timeline-content h3 {
    margin-top: 0;
    color: var(--color-accent);
    font-size: 1.125rem; /* text-lg */
}
.timeline-content p {
    font-size: 0.875rem; /* text-sm */
    color: var(--color-text-medium);
}

@media screen and (max-width: 768px) { /* Responsive timeline from HTML */
    .timeline::before {
        left: 20px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 15px;
    }
    .timeline-item:nth-child(even) {
        left: 0;
    }
    .timeline-item::after,
    .timeline-item:nth-child(odd)::after,
    .timeline-item:nth-child(even)::after {
        left: 10px; /* Align circle on the new line position */
    }
}

/* Form Elements (Input, Textarea) - styled via Tailwind in HTML */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea {
    background-color: rgba(45, 55, 72, 0.5) !important; /* bg-slate-700/50 */
    border: 1px solid var(--color-border-card) !important; /* border-slate-600 (adjust if needed) */
    color: var(--color-text-light) !important;
    border-radius: 0.375rem !important; /* rounded-md */
    padding: 0.75rem 1rem !important; /* py-3 px-4 */
    transition: var(--transition-smooth);
    width: 100%;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-accent) !important;
    box-shadow: 0 0 0 2px var(--color-accent-darker) !important;
}
::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: var(--color-text-medium) !important;
  opacity: 0.7 !important; /* Firefox */
}


/*------------------------------------------------------------------
5. NAVIGATION (HEADER & FOOTER)
-------------------------------------------------------------------*/

/* Header */
header { /* sticky top-0 z-50 shadow-lg bg-brand-dark/80 backdrop-blur-md */
    background-color: rgba(17, 24, 39, 0.85); /* --color-background-dark with opacity */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(94, 53, 177, 0.2); /* Accent border */
}
header nav a {
    font-family: var(--font-primary);
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    position: relative;
}
header nav a.text-gray-300:hover { /* Tailwind class */
    color: var(--color-accent) !important;
    background-color: rgba(94, 53, 177, 0.1);
}
header nav a.text-brand-accent { /* Active link style (if based on HTML) */
    color: var(--color-accent) !important;
    font-weight: 600;
}
header nav a.text-brand-accent::after,
header nav a.router-link-active::after { /* For active links / JS frameworks */
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background-color: var(--color-accent);
}

/* Mobile Menu */
#mobile-menu { /* bg-brand-dark/90 */
    background-color: rgba(17, 24, 39, 0.95);
    border-top: 1px solid rgba(94, 53, 177, 0.2);
}
#mobile-menu a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    font-family: var(--font-primary);
}
#mobile-menu a.hover\:bg-brand-accent:hover { /* Tailwind class */
    background-color: var(--color-accent) !important;
    color: #FFFFFF !important;
}

/* Footer */
footer { /* bg-gray-900 border-t border-brand-accent/20 */
    background-color: #0c111a; /* Even darker than body bg */
    border-top: 1px solid rgba(94, 53, 177, 0.2);
    color: var(--color-text-medium);
}
footer h3, footer h4 {
    color: var(--color-text-light);
    font-family: var(--font-primary);
}
footer ul li a:hover {
    color: var(--color-accent);
    padding-left: 5px; /* Subtle hover effect */
}

/* Footer Social Links (text-based) */
footer .flex.space-x-4 a {
    color: var(--color-text-medium);
    font-weight: 500;
    transition: var(--transition-smooth);
    padding: 0.25rem 0; /* Minimal padding for better click area */
    position: relative; /* For potential underline effect */
}
footer .flex.space-x-4 a:hover {
    color: var(--color-accent);
    text-decoration: none; /* Remove default underline to control it manually */
}
footer .flex.space-x-4 a::after { /* Custom underline effect on hover */
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    display: block;
    margin-top: 2px;
    right: 0;
    background: var(--color-accent);
    transition: width 0.3s ease;
    -webkit-transition: width 0.3s ease;
}
footer .flex.space-x-4 a:hover::after {
    width: 100%;
    left: 0;
    background: var(--color-accent);
}


/*------------------------------------------------------------------
6. SECTION SPECIFIC STYLES
-------------------------------------------------------------------*/

/* Hero Section */
#hero {
    /* min-height: 100vh; /* This can be too much if content is small. Rely on flex behavior. */
    display: flex; /* Tailwind class */
    align-items: center; /* Tailwind class */
    justify-content: center; /* Tailwind class */
    color: #FFFFFF; /* IMPORTANT: Hero text must be white */
    /* Background image is set inline with data-prompt, ensure overlay */
}
#hero h1 {
    color: #FFFFFF !important; /* Ensure override */
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}
#hero p {
    color: var(--color-text-light) !important;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.6);
}
#hero .bg-black\/60 { /* Tailwind class for overlay */
    background-color: rgba(0,0,0,0.65); /* Slightly darker for better contrast */
}

/* All sections with background images that have text on them */
section[style*="background-image"] {
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
}
/* Ensure overlay div for readability */
section[style*="background-image"] > .absolute.inset-0[class*="bg-"] {
    /* This div should provide the darkening effect */
    /* Example: bg-slate-800/80 from HTML */
}
/* Fallback if no specific overlay div is present but text is directly on bg image */
/* This is harder to control without specific classes, but data-prompt might help JS add it */


/* Mission Section - Standard */

/* Methodology Section - Cards, Progress bars already styled */

/* Insights Section */
#insights a[href="#"] { /* "Read more" style */
    font-weight: 600;
    color: var(--color-secondary);
    /* text-decoration: underline; */
    position: relative;
    padding-right: 1.2em; /* Space for arrow */
}
#insights a[href="#"]::after {
    content: '→';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: right 0.2s ease-out;
}
#insights a[href="#"]:hover::after {
    right: -5px;
}


/* News Section (Timeline) - Already styled */

/* Accolades Section (Gallery with Cards) - Already styled */

/* Success Stories Section (Cards) - Already styled */

/* External Resources Section (Cards) - Already styled */

/* Contact Section */
#contact input, #contact textarea {
    box-shadow: var(--shadow-inner-futuristic, inset 0 2px 4px 0 rgba(0,0,0,0.2));
}
#contact .bg-brand-dark\/80 { /* Form container */
    background-color: rgba(17, 24, 39, 0.85); /* Slightly more opaque */
    border: 1px solid var(--color-border-card);
}


/*------------------------------------------------------------------
7. PAGE SPECIFIC STYLES
-------------------------------------------------------------------*/

/* About, Contacts, Privacy, Terms Pages - generic content sections */
.prose-custom h2, .prose-custom h3 {
    font-family: var(--font-primary);
    color: var(--color-text-light); /* Adjusted for dark bg */
}
.prose-custom h2 {
    margin-top: 2em; margin-bottom: 0.8em; color: var(--color-accent); /* Custom for dark */
}
.prose-custom h3 {
    margin-top: 1.5em; margin-bottom: 0.6em; color: var(--color-secondary); /* Custom for dark */
}
.prose-custom p, .prose-custom ul, .prose-custom ol {
    color: var(--color-text-medium); line-height: 1.75;
}
.prose-custom a {
    color: var(--color-secondary); text-decoration: underline;
}
.prose-custom a:hover {
    color: var(--color-accent);
}
.prose-custom strong {
    color: var(--color-text-light);
}
.prose-custom ul {
    list-style: disc;
    padding-left: 1.5em;
}

/* Privacy & Terms Pages Padding */
body[data-barba-namespace="privacy"] main,
body[data-barba-namespace="terms"] main { /* Assuming Barba sets this on body or container */
    padding-top: 100px;
}
/* Fallback if Barba namespace is on the container div */
div[data-barba-namespace="privacy"] main,
div[data-barba-namespace="terms"] main {
    padding-top: 100px;
}


/* Success Page */
div[data-barba-namespace="success"] { /* Targeting the Barba container */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
div[data-barba-namespace="success"] main {
    flex-grow: 1; /* Ensure main content pushes footer down */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
div[data-barba-namespace="success"] .bg-slate-800 { /* Confirmation box */
    background-color: var(--color-background-section-dark);
    box-shadow: var(--shadow-xl), 0 0 25px rgba(94, 53, 177, 0.3);
}

/*------------------------------------------------------------------
8. EFFECTS & ANIMATIONS
-------------------------------------------------------------------*/

/* Hover effects are integrated into components (buttons, cards, links) */

/* Glassmorphism Effect */
.glass-effect {
  background: var(--gradient-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 0.75rem; /* rounded-xl */
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Curved Grid Elements */
.curved-top-right {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%, 0 20%, 20% 0); /* Example */
    /* Needs careful implementation with content */
}
.diagonal-section-divider { /* Example for section breaks */
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px; /* Adjust height */
    background: var(--color-background-dark); /* Match next section's bg */
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
    z-index: 10; /* Above parallax bg, below content */
}
/* Hero specific curve from HTML */
#hero .absolute.bottom-0[style*="clip-path"] {
    background-color: var(--color-background-dark); /* Ensure it matches the next section */
    opacity: 1; /* Or match section's opacity if it has one */
    z-index: 5; /* Above hero bg, below hero content */
}


/*------------------------------------------------------------------
9. UTILITY CLASSES
-------------------------------------------------------------------*/
.text-shadow-light {
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
.text-shadow-dark {
    text-shadow: 1px 1px 2px rgba(255,255,255,0.1);
}

/* Read More Link Style (general utility if needed outside #insights) */
.read-more-link {
    font-weight: 600;
    color: var(--color-secondary);
    position: relative;
    padding-right: 1.2em;
    display: inline-block; /* Ensure proper spacing */
}
.read-more-link::after {
    content: '→';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: right 0.2s ease-out;
}
.read-more-link:hover {
    color: var(--color-accent);
    text-decoration: none;
}
.read-more-link:hover::after {
    right: -5px;
}

/* Ensure high contrast for section titles was in HTML, this is a fallback/enhancement */
.section-title.on-dark-bg {
    color: var(--color-text-headings-dark-bg);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
.section-title.on-light-bg {
    color: var(--color-text-headings-light-bg);
    text-shadow: none;
}

/* Ensure images within general image containers are centered and cover */
.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Important for object-fit */
}
.image-container img {
    width: 100%;
    height: 100%; /* If container has fixed height */
    object-fit: cover;
}

/* Final check on card content centering if text-align was too broad */
/* .card > .card-content > * { text-align: left; } /* Reset text-align for content if card has text-align: center */
/* .card > .card-content h3, .card > .card-content { text-align: center; } /* Example for specific centering needs */

/* Styles for ScrollReveal elements (initial state) */
[data-sr] {
    visibility: hidden; /* ScrollReveal will make it visible */
}