/* ===== GLOBAL STYLES ===== */
/* Enhanced Global Styles for Visual Masterpiece - Dark Theme */
:root {
    /* Color Palette - Consistent with main.css */
    --primary-color: #f8fafc; /* Light text for headings */
    --secondary-color: #e2e8f0;
    --accent-color: #8b5cf6; /* Purple */
    --accent-hover: #7c3aed;
    --accent-secondary: #06b6d4; /* Cyan */
    --background-color: #0f172a; /* Dark Blue */
    --surface-color: #1e293b; /* Slightly lighter dark blue */
    --text-color: #e2e8f0;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --success-color: #4ade80;
    --error-color: #f87171;

    /* Gradients */
    --gradient-primary: linear-gradient(110deg, var(--accent-color) 0%, var(--accent-secondary) 100%);
    --gradient-secondary: linear-gradient(110deg, var(--accent-secondary) 0%, #fbbf24 100%);
    --gradient-accent: linear-gradient(110deg, var(--accent-secondary) 0%, #67e8f9 100%);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-heading: 'Cinzel', serif;
    --font-mono: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
    --spacing-xxl: 5rem;

    /* Container widths */
    --container-max-width: 1200px;
    --container-narrow: 900px;

    /* Border radius */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1); /* Smoother ease-out */
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s ease;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.4);
}

/* Focus Styles for Accessibility */
*:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    border-radius: var(--border-radius-sm); /* Optional: match element's border-radius */
}

/* Reset and base styles */
* {
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-color);
    overflow-x: hidden;
    font-feature-settings: "ss01" on, "ss02" on, "cv01" on;
    font-variant-ligatures: contextual;
    /* Polish font smoothing */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
    letter-spacing: -0.01em;
    text-shadow: none;
}

h1 {
    font-size: 3rem;
    font-family: var(--font-heading);
    letter-spacing: -0.025em; /* Slightly tighter */
    background: linear-gradient(to right, #fff, var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    color: var(--primary-color);
    letter-spacing: -0.01em;
    text-shadow: none;
}

h3 {
    font-size: 2rem;
    font-family: var(--font-heading); /* Use secondary color for feature titles etc. */
    color: var(--primary-color);
}

h4 {
    font-size: 1.5rem;
    font-family: var(--font-heading);
}

h5 {
    font-size: 1.25rem;
    font-family: var(--font-heading);
}

h6 {
    font-size: 1rem;
    font-family: var(--font-heading);
}

/* Polish diacritic support for headings and body */
[lang="pl"], body[lang="pl"] {
    font-family: var(--font-primary);
}

p {
    margin-bottom: var(--spacing-md);
    font-family: var(--font-primary);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color var(--transition-fast), text-shadow 0.2s;
}

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

img, svg {
    max-width: 100%;
    height: auto;
}

ul, ol {
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-lg);
}

code {
    font-family: var(--font-mono);
    background-color: var(--surface-color);
    color: var(--secondary-color);
    padding: 0.2em 0.4em;
    border-radius: var(--border-radius-sm);
    font-size: 0.9em;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

.container-narrow {
    max-width: var(--container-narrow);
}

/* Section styling */
.section {
    padding: var(--spacing-xl) 0;
    position: relative; /* Useful for child element positioning or pseudo-elements */
    border-top: 1px solid var(--border-color);
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-top: -1rem;
    margin-bottom: var(--spacing-lg);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Remove top border from the first section within main, typically following a hero section */
main > .section:first-of-type {
    border-top: none;
}

.open-source-extra {
    margin-top: 2em;
    color: var(--text-muted);
    text-align: center;
    font-size: 1.08em;
}

/* ===== HEADER & NAVIGATION ===== */

/* Styles for .header and .header.scrolled removed.
   README specifies .fixed-top and .fixed-top.scrolled for navbar behavior.
   The .fixed-top rules below will manage the fixed header. */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
    height: 60px;
}

/* .fixed-top is the primary class for the fixed header as per README */
.fixed-top {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.fixed-top.scrolled {
    background-color: rgba(15, 23, 42, 0.95);
    box-shadow: var(--shadow-md);
}

.logo {
    display: flex;
    align-items: center;
}

.logo svg {
    height: 40px;
    width: auto;
    margin-right: var(--spacing-sm);
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-color);
    letter-spacing: -0.01em;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: var(--spacing-lg);
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.nav-links a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.nav-links a.active {
    color: var(--accent-color);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

/* ===== HERO SECTION ===== */
.hero {
    padding: var(--spacing-xl) 0;
    background: radial-gradient(circle at top center, #1e293b 0%, #0f172a 70%);
    position: relative;
    overflow: hidden;
    box-shadow: none;
}

/* Align hero background with README: use hero-pattern.svg */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(249, 115, 22, 0.06) 0%, transparent 50%);
    opacity: 0.8;
    pointer-events: none;
    z-index: 0;
    animation: pulsePattern 10s ease-in-out infinite alternate; /* Subtle pulse */
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
    position: relative;
    z-index: 2;
}

.hero-text {
    /* The following properties are the effectively applied styles from the original malformed block */
    flex: 1;
    max-width: 600px;
    background: transparent;
    box-shadow: none;
    padding: 2.5rem 2rem 2rem 0;
}


.hero-title {
    /* The following properties are the effectively applied styles from the original malformed block */
    font-size: 3.5rem;
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    background: linear-gradient(to right, #fff, var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    /* The following properties are the effectively applied styles from the original malformed block */
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-lg);
    font-family: var(--font-primary);
}

.hero-details {
    margin: 1.5em 0 1em 1em;
    color: var(--text-muted);
    font-size: 1.08em;
    list-style: disc inside;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.3));
}

.hero-image img {
    max-width: 100%;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.hero-logo-container {
    position: relative;
    animation: float 6s ease-in-out infinite;
    background: linear-gradient(135deg, var(--surface-color) 60%, var(--background-color) 100%);
    border-radius: 50%;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.2);
    padding: 2.5rem;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    box-shadow: none;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
    text-decoration: none;
    color: white;
}

.btn-secondary {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.btn-secondary:hover {
    background: var(--border-color);
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.btn-outline:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-download i {
    font-size: 1.2em;
}

/* ===== FEATURES SECTION ===== */
.features-section { /* Corrected selector from .features to .features-section */
    background-color: var(--background-color);
    /* padding is now handled by the .section class (var(--spacing-xxl) 0) */
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: 2.5rem;
    gap: 2rem;
}

.feature-card {
    background: var(--surface-color);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-lg);
    padding: 2.2rem 2rem 2.3rem 2rem;
    box-shadow: none;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color 0.3s;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card:hover .feature-icon svg,
.feature-card:hover .feature-icon i {
    transform: scale(1.15) rotate(-5deg);
    position: relative;
}


.feature-card:hover {
    /* The following properties are the effectively applied styles from the original malformed block */
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.1);
    border-color: var(--accent-color);
}

.feature-icon {
    margin-bottom: var(--spacing-md);
    background: transparent;
    color: var(--accent-secondary);
    padding: 0;
    box-shadow: none;
    display: inline-block;
    transition: transform 0.3s ease-in-out; /* For icon animation */
}

.feature-card::before { /* Animated top border */
    display: none;
}

.feature-card:hover::before {
    display: none;
}


.feature-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-heading);
    color: var(--primary-color);
}

.feature-description {
    color: var(--text-muted);
    font-family: var(--font-primary);
    margin-bottom: 1.1em;
}

/* ===== VIDEO SECTION ===== */
.video-section {
    background: var(--background-color);
    position: relative;
    overflow: hidden;
    box-shadow: none;
}

.video-section::before {
    display: none;
}

.video-container {
    /* The following properties are the effectively applied styles from the original malformed block */
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    transform: perspective(1000px) rotateX(2deg) scale(1.02);
    transition: transform var(--transition-normal), box-shadow 0.3s;
}

.video-container:hover {
    /* The following properties are the effectively applied styles from the original malformed block */
    transform: perspective(1000px) rotateX(0) scale(1.04);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-description {
    text-align: center;
    margin-top: var(--spacing-lg);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== DOWNLOAD SECTION ===== */


/* --- Simplified Download UI Styles --- */
.download-ui-simple {
    margin: 2rem 0 1.5rem 0;
    background: var(--surface-color);
    color: var(--text-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem 1.8rem 1.8rem 1.8rem; /* Slightly adjusted padding */
    box-shadow: var(--shadow-md);
    text-align: left;
    max-width: 480px;
    border: 1px solid var(--accent-color);
}

.download-ui-simple #download-info-simple {
    font-size: 1rem;
    opacity: 0.95;
}

.download-ui-simple .btn {
    margin-top: 0.5em;
    background: var(--accent-color);
    color: white;
    font-weight: 700;
    font-size: 1.05rem; /* Slightly smaller font */
    border-radius: var(--border-radius-md);
    padding: 0.8em 1.8em; /* Adjusted padding */
    box-shadow: none;
    border: none;
    transition: all 0.22s;
}

.download-ui-simple .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.download-ui-simple .btn:hover:not(:disabled), .download-ui-simple .btn:focus-visible:not(:disabled) {
    background: var(--accent-hover);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

.download-ui-simple .download-alternatives {
    font-size: 0.95em;
    opacity: 0.85;
    margin-top: 0.5em;
}

.download-ui-simple .download-alternatives a {
    color: var(--accent-color);
    text-decoration: underline;
}

.download-ui-simple .download-alternatives a:hover {
    color: var(--accent-hover);
    text-decoration-thickness: 1.5px;
}

/* ===== OPEN SOURCE SECTION ===== */
.open-source {
    background-color: var(--background-color);
}

.open-source-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.open-source-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.open-source-content {
    flex: 1;
}

.open-source-badge {
    display: inline-block;
    background-color: var(--surface-color);
    color: var(--accent-secondary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    border: 1px solid var(--border-color);
}

.open-source-links {
    margin-top: var(--spacing-lg);
}

.open-source-links a {
    display: inline-flex;
    align-items: center;
    margin-right: var(--spacing-lg);
    color: var(--accent-color);
}

.open-source-links a i {
    margin-right: var(--spacing-xs);
}

/* ===== FOOTER ===== */
/* Task Library Styles */
.task-categories {
    margin-top: 2em;
}

.task-category {
    margin-bottom: 3em;
}

.task-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5em;
    margin-bottom: 2em;
}

.task-card {
    background: var(--surface-color);
    padding: 1.5em;
    border-radius: 8px;
    box-shadow: none;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.task-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-color);
}

.task-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.5em;
    font-size: 1.1em;
}

.task-card p {
    color: var(--text-muted);
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 1em;
}

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

.task-card ul li {
    color: var(--text-muted);
    font-size: 0.9em;
    padding-left: 1.2em;
    position: relative;
    margin-bottom: 0.3em;
}

.task-card ul li:before {
    content: "•";
    color: var(--accent-secondary);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.task-library-cta {
    background: var(--surface-color);
    padding: 2em;
    border-radius: 8px;
    text-align: center;
    margin-top: 3em;
}

/* Footer */
footer {
    background-color: #020617; /* Darker footer */
    padding: var(--spacing-xl) 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo svg {
    height: 30px;
    width: auto;
    margin-right: var(--spacing-sm);
}

.footer-links {
    display: flex;
    gap: var(--spacing-lg);
}

.footer-links a {
    /* Consolidating footer link styles for consistency with dark footer background */
    /* color: var(--text-light); */ /* This would be for light background */
    transition: color var(--transition-fast);
    color: var(--text-muted);
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
    /* color: var(--primary-color); */ /* Primary color might be too bright on dark bg */
    color: var(--accent-color);
}

.footer-content p { /* Style copyright text */
    width: 100%;
    text-align: center;
    margin-top: var(--spacing-lg);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== UTILITIES ===== */
.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: var(--spacing-xs);
}

.mt-2 {
    margin-top: var(--spacing-sm);
}

.mt-3 {
    margin-top: var(--spacing-md);
}

.mt-4 {
    margin-top: var(--spacing-lg);
}

.mt-5 {
    margin-top: var(--spacing-xl);
}

.mb-1 {
    margin-bottom: var(--spacing-xs);
}

.mb-2 {
    margin-bottom: var(--spacing-sm);
}

.mb-3 {
    margin-bottom: var(--spacing-md);
}

.mb-4 {
    margin-bottom: var(--spacing-lg);
}

.mb-5 {
    margin-bottom: var(--spacing-xl);
}


/* Responsive styles are consolidated in styles/responsive.css */

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulsePattern { /* For hero background pattern */
    0% {
        opacity: 0.12;
    }
    100% {
        opacity: 0.18;
    }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}

.delay-5 {
    animation-delay: 1s;
}

/* ===== LOGO ANIMATION ===== */
.logo svg {
    transition: transform var(--transition-normal);
}

.logo:hover svg {
    transform: rotate(10deg);
}

/* ===== LOADING STATES ===== */
.loading {
    position: relative;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    visibility: hidden;
}

.loading .loading-text {
    visibility: visible;
}


/* Feature Card Read More Button */
.read-more-btn {
    background: var(--accent-color);
    border: none;
    color: #fff;
    padding: 10px 20px; /* Slightly adjusted padding */
    border-radius: 22px;
    cursor: pointer;
    margin-top: 18px;
    font-family: var(--font-primary);
    font-size: 1.09em;
    box-shadow: none;
    transition: all 0.23s;
}

.read-more-btn:hover, .read-more-btn:focus-visible {
    background: var(--accent-hover);
    color: #fff;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--surface-color);
    margin: 8% auto; /* Adjust margin */
    padding: 30px;
    border-radius: 22px;
    box-shadow: var(--shadow-lg);
    width: 80%;
    max-width: 800px;
    position: relative;
    animation: modalFadeIn 0.3s ease-in-out;
    font-family: var(--font-primary);
    border: 1px solid var(--accent-color);
    color: var(--text-color);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 25px;
    color: var(--text-muted);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover, .close-modal:focus-visible {
    color: white;
}

#modal-title {
    margin-top: 0;
    color: var(--primary-color); /* White/Light */
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-family: var(--font-heading);
    background: linear-gradient(to right, #fff, var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#modal-content {
    line-height: 1.6;
    font-family: var(--font-primary);
}

#modal-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

#modal-content li {
    margin-bottom: 10px;
}

#modal-content a {
    color: var(--accent-color);
    text-decoration: none;
}

#modal-content a:hover, #modal-content a:focus-visible {
    text-decoration: underline;
    color: var(--accent-hover);
}

/* Add new section for philosophical depth */
/* Philosophical Insights Section */
.philosophy-section {
    background: var(--background-color);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.philosophy-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(79, 172, 254, 0.05) 0%, transparent 70%);
    animation: pulse 20s ease-in-out infinite;
}

.philosophy-card {
    background: var(--surface-color);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.philosophy-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.philosophy-card h3 {
    color: var(--accent-secondary);
    margin-bottom: 1rem;
}

.philosophy-card blockquote {
    border-left: 3px solid var(--accent-color);
    padding-left: 1rem;
    margin: 1rem 0;
    font-style: italic;
    color: var(--text-muted);
}

/* Existing styles continue... */