/* ==========================================================================
   1. Variables & Basic Setup
   ========================================================================== */

:root {
    /* Light Mode Variables (Default) */
    --background: #f4f4f8; 
    --text: #1a1a2e; 
    --text-muted: #5a5a7e;
    --highlight: #d94a48; /* Main accent (coral) */
    --highlight-secondary: #26a69a; /* Secondary accent (teal) */
    --highlight-rgb: 217, 74, 72; /* RGB for --highlight */
    --highlight-secondary-rgb: 38, 166, 154; /* RGB for --highlight-secondary */
    --outline: #d0d0e0; 
    --glow-primary: rgba(var(--highlight-rgb), 0.15); 
    --glow-secondary: rgba(var(--highlight-secondary-rgb), 0.15); 
    --card-bg: #ffffff; 
    --card-border: #e0e0f0; 
    --card-glow: radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(var(--highlight-rgb), 0.1), transparent 50%);
    --shadow-color: rgba(100, 100, 150, 0.15); 
    --particle-color: #a0a0c0;
    --particle-link-color: #c0c0d0;
    --particle-triangle-color: rgba(180, 180, 200, 0.05);
    
    /* Fonts */
    --font-primary: 'Merriweather Sans', sans-serif; 
    --font-secondary: 'Merriweather Sans', sans-serif; 
    
    /* Transitions */
    --transition-main: 0.7s cubic-bezier(0.16, 1, 0.3, 1); 
    --transition-fast: 0.3s cubic-bezier(0.16, 1, 0.3, 1); 
    --transition-snap: 0.5s cubic-bezier(0.76, 0, 0.24, 1); 
    --transition-theme: 0.3s ease; 
}

body.dark-mode {
    /* Dark Mode Variables */
    --background: #030308; 
    --text: #c8c8e8; 
    --text-muted: #a0a0c0; 
    --highlight: #ea5d5c; 
    --highlight-secondary: #2ec4b6; 
    --highlight-rgb: 234, 93, 92; /* RGB for --highlight (dark) */
    --highlight-secondary-rgb: 46, 196, 182; /* RGB for --highlight-secondary (dark) */
    --outline: #282850; 
    --glow-primary: rgba(var(--highlight-rgb), 0.35); 
    --glow-secondary: rgba(var(--highlight-secondary-rgb), 0.35); 
    --card-bg: rgba(20, 20, 40, 0.3); 
    --card-border: rgba(60, 60, 100, 0.5); 
    --card-glow: radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(var(--highlight-rgb), 0.15), transparent 40%);
    --shadow-color: rgba(0, 0, 0, 0.2); 
    --particle-color: #282850;
    --particle-link-color: #282850;
    --particle-triangle-color: rgba(40, 40, 80, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; 
    font-size: 20px;
    background-color: var(--background); 
    transition: background-color var(--transition-theme); 
}

body {
    background-color: var(--background);
    color: var(--text);
    font-family: var(--font-primary);
    overflow-x: hidden; 
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    opacity: 0; /* Hidden initially, revealed by .loaded */
    visibility: hidden; 
    line-height: 1.6; 
    transition: background-color var(--transition-theme), color var(--transition-theme);
}

body.loaded {
    opacity: 1;
    visibility: visible; 
    transition: opacity 0.6s ease 0.1s; 
}

/* ==========================================================================
   2. Preloader
   ========================================================================== */

.preloader {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    pointer-events: none; 
    opacity: 1; 
    transition: opacity 0.8s var(--transition-snap); 
}

.preloader.hidden { 
    opacity: 0;
}

.preloader-logo {
    font-family: var(--font-secondary);
    font-size: 3rem;
    font-weight: 700;
    color: var(--highlight);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: preloader-fade 1s ease forwards 0.2s;
}

.preloader-bar {
    width: 150px;
    height: 3px;
    background-color: var(--outline);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: preloader-fade 1s ease forwards 0.4s;
}

.preloader-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    height: 100%;
    width: 0;
    background-color: var(--highlight);
    animation: preloader-progress 2s ease-in-out forwards 0.6s; 
}

@keyframes preloader-fade { to { opacity: 1; } }
@keyframes preloader-progress { to { width: 100%; } }

/* ==========================================================================
   3. Layout & Global Elements
   ========================================================================== */

.content-wrapper {
    position: relative; 
    z-index: 1; 
    overflow: hidden; 
}

section {
    min-height: 80vh; 
    padding: 15vh 8vw; 
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden; 
    border-bottom: 1px solid var(--outline); 
    transition: border-color var(--transition-theme);
}

section:last-child {
    border-bottom: none;
}

/* NOWE Style dla animacji CSS + Intersection Observer */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(25px); /* Stan początkowy: lekko poniżej */
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    will-change: opacity, transform; /* Podpowiedź dla przeglądarki */
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}
/* Koniec nowych stylów */

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary); 
    font-weight: 700; 
    color: var(--text); 
    line-height: 1.2; 
    margin-bottom: 1rem; 
    transition: color var(--transition-theme);
}

p {
    margin-bottom: 1.5rem; 
    max-width: 70ch; /* Limit width for readability */
    margin-left: auto; /* Center paragraphs within sections */
    margin-right: auto;
    color: var(--text-muted);
    transition: color var(--transition-theme);
    line-height: 1.8; /* Consistent line height for paragraphs */
}

a {
    color: var(--highlight);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

ul {
    list-style: none; 
    padding-left: 0; 
}

li {
    margin-bottom: 0.75rem; 
    position: relative;
    padding-left: 1.5em; 
    /* Base styles for list items, specific lists might override */
}

li::before { /* Default list marker */
    content: '>'; 
    position: absolute;
    left: 0;
    top: 0.05em; 
    color: var(--highlight);
    font-weight: 700;
    transition: color var(--transition-theme);
}

.highlight {
    color: var(--highlight);
    text-shadow: 0 0 8px var(--glow-primary); 
    transition: color var(--transition-theme), text-shadow var(--transition-theme);
}

.highlight-secondary {
    color: var(--highlight-secondary);
    font-weight: 700; /* Often used for emphasis */
    transition: color var(--transition-theme);
}

.highlight-date { /* Specific highlight for dates */
    color: var(--highlight-secondary); 
    font-weight: 700;
    transition: color var(--transition-theme);
}

/* General Section Titles & Text */
.section-title {
    font-size: clamp(2.2rem, 10vw, 4.5rem); 
    margin-bottom: 4rem; 
    line-height: 1.15;
    text-transform: uppercase; 
    letter-spacing: 0.5px;
    position: relative; 
    will-change: transform, opacity; /* Hint for animation */
}

/* Initial state for word animation (if using splitting) */
.section-title [data-splitting] .word, 
.section-title .word { 
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
    will-change: transform, opacity;
}

.section-title .outline {
    color: transparent;
    -webkit-text-stroke: 1px var(--outline);
    text-stroke: 1px var(--outline);
    transition: -webkit-text-stroke var(--transition-theme), text-stroke var(--transition-theme), color var(--transition-fast);
}

.section-title:hover .outline {
    color: var(--outline); /* Fill on hover */
}

.sub-headline,
.section-intro,
.manifesto-text, 
.tech-description, 
.impact-text, 
.join-intro,
.join-cta-text,
.cta-text,
.cta-final-text {
    font-size: 1.2rem; 
    line-height: 1.8; 
    max-width: 75ch; 
    margin-left: auto;
    margin-right: auto;
}

.sub-headline { margin-top: 1.5rem; margin-bottom: 1rem; }
.section-intro { margin-bottom: 2rem; }
.manifesto-text { margin-top: 2rem; margin-bottom: 0; }
.join-intro, .join-cta-text { margin-bottom: 2rem; }
.join-cta-text { margin-bottom: 3rem; }
.cta-text { margin-bottom: 1.5rem; }
.cta-final-text { margin-bottom: 2.5rem; font-weight: 700; color: var(--text); }

/* ==========================================================================
   4. Header & Footer
   ========================================================================== */

.site-header {
    position: fixed; 
    inset: 0 0 auto 0; /* top: 0, left: 0, right: 0 */
    width: 100%; 
    padding: 1rem 5vw; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    z-index: 500; 
    background-color: transparent;
    backdrop-filter: blur(0px); 
    box-shadow: none; 
    transition: 
        opacity 0.5s ease, 
        background-color 0.3s ease, /* Use theme transition */
        backdrop-filter 0.3s ease,
        box-shadow 0.3s ease; 
    opacity: 0; /* Hidden initially */
}

body.loaded .site-header {
    opacity: 1; 
}

.site-header.scrolled {
    backdrop-filter: blur(10px); 
    box-shadow: 0 2px 10px var(--shadow-color); 
    /* Background color applied via specific rules below */
}

/* Scrolled header has same dark background in both themes */
body:not(.dark-mode) .site-header.scrolled,
body.dark-mode .site-header.scrolled {
    background-color: rgba(3, 3, 8, 0.8); 
}

.site-logo {
    display: block; 
    height: 30px; 
    width: auto; 
    transition: filter var(--transition-theme); 
}

/* Invert logo color in dark mode OR when header is dark */
body.dark-mode .site-logo,
body:not(.dark-mode) .site-header.scrolled .site-logo {
     filter: invert(1) brightness(1.1); 
}

.site-footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem; /* Space between paragraph and links */
    padding: 3rem 5vw; 
    text-align: center; 
    background-color: var(--background); 
    border-top: 1px solid var(--outline); 
    color: var(--text-muted); 
    transition: background-color var(--transition-theme), border-color var(--transition-theme), color var(--transition-theme);
}

.site-footer-bottom p {
    margin-bottom: 0; /* Remove default paragraph margin */
    font-size: 0.9rem;
}

.footer-social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem; 
}

.footer-social-links a {
    color: var(--text-muted); 
    text-decoration: none;
    transition: color var(--transition-fast), transform var(--transition-fast);
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
}

.footer-social-links a:hover,
.footer-social-links a:focus {
    color: var(--highlight); 
    transform: scale(1.1); 
}

.footer-social-links a svg {
    display: block; 
    width: 24px; 
    height: 24px; 
    fill: currentColor; 
}

/* ==========================================================================
   5. Sections
   ========================================================================== */

/* --------------------------------------------------------------------------
   5.1 Hero Section
   -------------------------------------------------------------------------- */

.hero-section {
    min-height: 100vh;
    padding: 5vh 5vw; 
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 950px; 
    margin: 0 auto;
}

.main-headline {
    font-size: clamp(3rem, 15vw, 7rem); 
    margin-bottom: 1.5rem; 
}

.main-headline .line { 
    display: block;
    overflow: hidden; 
}

.program-description {
    margin-bottom: 2rem; 
}

.partner-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem; 
    margin-top: 2rem; 
    margin-bottom: 3rem; 
}

.partner-logo {
    max-width: 200px; /* Use max-width */
    height: auto; /* Maintain aspect ratio */
    opacity: 0.85; 
    transition: opacity var(--transition-fast);
}

.partner-logo:hover {
    opacity: 1;
}

.logo-separator {
    font-size: 1.5rem;
    color: var(--outline);
    font-weight: 700;
    transition: color var(--transition-theme);
}

.scroll-indicator {
    position: absolute; /* Position relative to hero-content */
    bottom: -4vh; /* Adjust as needed */
    left: 46%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--outline); 
    opacity: 0; /* Initial state for animation */
    will-change: transform, opacity;
    transition: color var(--transition-theme);
}

.scroll-indicator span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    animation: bounce-arrow 2s infinite ease-in-out;
}

@keyframes bounce-arrow {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* --------------------------------------------------------------------------
   5.2 Manifesto Section
   -------------------------------------------------------------------------- */

.manifesto-section .section-title {
    /* Standard section title styles */
}

.manifesto-text {
    /* Standard paragraph styles with highlight */
}

.image-gallery-container {
    width: 100%; 
    margin: 4rem 0 0; 
    overflow: hidden; 
    position: relative; 
    will-change: transform, opacity; /* Hints for animation */
}

.image-gallery {
    display: flex; 
    gap: 1.5rem; 
    overflow-x: auto; 
    scroll-snap-type: x mandatory; 
    padding: 0 5vw 1.5rem 5vw; /* Side padding for visibility, bottom for scrollbar space */
    margin-bottom: -1.5rem; /* Hide scrollbar space */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    will-change: transform; /* Hint for parallax animation */
}

.image-gallery::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera */
}

.gallery-image {
    flex: 0 0 auto; /* Don't grow or shrink */
    width: clamp(280px, 35vw, 450px); 
    height: auto; 
    max-height: 350px; 
    object-fit: cover; 
    border-radius: 12px; 
    scroll-snap-align: start; 
    box-shadow: 0 8px 16px var(--shadow-color); 
    transition: box-shadow var(--transition-theme);
}

/* --------------------------------------------------------------------------
   5.3 Target Audience Section
   -------------------------------------------------------------------------- */

.target-audience-section .section-intro {
    /* Standard section intro styles */
}

.target-list {
    margin-top: 2rem;
    margin-bottom: 3rem;
    max-width: 650px; 
    width: 100%; 
    margin-left: auto;
    margin-right: auto;
    text-align: left; 
}

.target-list li {
    margin-bottom: 1rem; 
    font-size: 1.1rem; /* Slightly larger list items */
    line-height: 1.7;
    padding-left: 2em; 
    /* Initial animation state handled by [data-animate-list-item] */
}

/* --- IMPORTANT FALLBACK --- */
/* This ensures list items are visible if JS animation fails. Review if safe to remove. */
body.loaded .target-audience-section .target-list li[data-animate-list-item] {
    opacity: 1 !important;
    transform: none !important; 
    visibility: visible !important; 
}
/* --- END IMPORTANT FALLBACK --- */

.target-list li::before {
    content: '✓'; 
    position: absolute;
    left: 0;
    top: 0.1em; 
    color: var(--highlight-secondary); 
    font-weight: bold;
    font-size: 1.2em;
    line-height: 1;
    transition: color var(--transition-theme);
}

.target-summary {
    font-size: 1.1rem; /* Slightly smaller summary */
    line-height: 1.7;
    max-width: 70ch; 
    text-align: center;
    color: var(--text); /* Use main text color for summary */
}

/* --------------------------------------------------------------------------
   5.4 Paths Section
   -------------------------------------------------------------------------- */

.paths-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 3rem; 
    width: 100%;
    max-width: 1200px;
    margin: 4rem auto 0; 
}

.path-column {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 3rem 2.5rem; 
    border-radius: 15px; 
    position: relative;
    overflow: hidden; /* Important for ::before and glow */
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: transform var(--transition-fast), box-shadow var(--transition-theme), 
                background-color var(--transition-theme), border-color var(--transition-theme);
    display: flex; 
    flex-direction: column; 
    min-height: 400px; 
    /* Usunięto opacity/transform - obsłuży to .animate-on-scroll */
}

/* Gradient Border Effect using Masking */
.path-column::before { 
    content: '';
    position: absolute;
    inset: -1px; 
    border-radius: inherit;
    padding: 1px; /* Border thickness */
    background: linear-gradient(145deg, var(--highlight), var(--highlight-secondary));
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, /* Keep content area */
        linear-gradient(#fff 0 0); /* Mask everything */
    mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; /* Punch hole */
            mask-composite: exclude;
    z-index: 0; /* Behind content */
    opacity: 0.6;
    transition: opacity var(--transition-fast);
    pointer-events: none;
}

.path-column:hover::before {
    opacity: 1;
}

.path-column:hover {
    transform: translateY(-8px) scale(1.02);
}

/* Background Glow Effect */
.path-glow { 
    position: absolute;
    top: -50%; 
    left: -50%;
    width: 200%;
    height: 200%;
    border-radius: 50%;
    opacity: 0;
    transition: opacity var(--transition-main);
    z-index: 0; /* Behind content */
    pointer-events: none;
}

.path-column.developer .path-glow { background: radial-gradient(circle, var(--glow-primary) 0%, transparent 70%); }
.path-column.product .path-glow { background: radial-gradient(circle, var(--glow-secondary) 0%, transparent 70%); }

.path-column:hover .path-glow {
    opacity: 0.5; 
}

/* Content inside path column */
.path-column > * { /* Ensure direct children are above pseudo-elements */
    position: relative;
    z-index: 1;
}

.path-column h3 {
    font-size: clamp(1.5rem, 3.5vw, 1.9rem); 
    margin-bottom: 1.5rem; 
    text-align: center;
    display: flex; 
    align-items: center;
    justify-content: center; 
    gap: 0.6em; 
    /* Usunięto opacity/visibility - obsłuży to JS/Observer (jeśli animujemy wewn.) lub klasa kontenera */
}

.path-column p { /* General description */
    font-size: 1.1rem; 
    line-height: 1.7; 
    margin-bottom: 1.5rem; 
    text-align: center; 
    /* Usunięto opacity/visibility */
}

.path-column ul {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem; 
    text-align: left; 
    max-width: 400px; 
    margin-left: auto; 
    margin-right: auto;
    /* Usunięto opacity/visibility */
}

.path-column ul li {
    margin-bottom: 1rem; 
    padding-left: 2em; 
    font-size: 0.95rem;
    /* Usunięto opacity/visibility/transform - animujemy całą kolumnę */
}

/* Marker listy (bez zmian) */
.path-column ul li::before {
    content: ''; 
    position: absolute;
    left: 0.5em; 
    top: 0.4em; 
    width: 8px; 
    height: 8px;
    border-radius: 50%;
    background-color: var(--highlight); /* Domyślny kolor */
    opacity: 0.8;
    transition: background-color var(--transition-theme);
}
.path-column.developer ul li::before { background-color: var(--highlight); }
.path-column.product ul li::before { background-color: var(--highlight-secondary); }

.path-column li strong { /* Specialization title */
    font-weight: 700;
    color: var(--text); 
    display: block; 
    margin-bottom: 0.2em; 
    transition: color var(--transition-theme);
}

.path-column .framework-info,
.path-column .skills-info {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: auto; 
    padding-top: 1.5rem; 
    margin-bottom: 1.5rem; 
    max-width: 90%; 
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    /* Usunięto opacity/visibility */
}

.path-column .framework-info strong,
.path-column .skills-info strong {
    font-weight: 700;
    color: var(--text); 
    transition: color var(--transition-theme);
}

/* NEW Styles for Path Icon */
.path-icon {
    display: inline-flex; /* Changed from block */
    font-size: 1.5em; 
    line-height: 1;
    color: var(--highlight); /* Default icon color */
    transition: color var(--transition-theme);
    /* Remove margin-right if using gap in flexbox */
}

.path-column.product .path-icon {
     color: var(--highlight-secondary); /* Specific color for product */
}

/* Add icon content using ::before */
.path-column.developer .path-icon::before {
     content: '</>'; 
     font-family: monospace; /* Better look for code icon */
}

.path-column.product .path-icon::before {
     content: '💡';
}

/* GitHub Link Button */
.github-link-button {
    display: inline-flex; 
    align-items: center;
    justify-content: center;
    gap: 0.6rem; 
    padding: 0.7rem 1.5rem; 
    border-radius: 50px; 
    font-family: var(--font-secondary); 
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-theme);
    margin-top: 1rem; 
    margin-bottom: 0; 
    border: 1px solid var(--outline); 
    background-color: transparent; 
    color: var(--text); 
    align-self: center; 
    /* Usunięto opacity/visibility - obsłuży .animate-on-scroll */
}

.github-link-button svg {
    display: block; 
    width: 18px; 
    height: 18px;
    fill: currentColor;
}

.github-link-button:hover,
.github-link-button:focus {
    background-color: var(--text); 
    color: var(--background); 
    border-color: var(--text); 
    transform: translateY(-2px); 
    box-shadow: 0 4px 10px var(--shadow-color); 
}

/* --------------------------------------------------------------------------
   5.5 Join Revolution Section
   -------------------------------------------------------------------------- */
   
.join-revolution-section {
    padding-top: 5rem; 
    padding-bottom: 6rem; 
}

/* Styles for .join-intro, .join-cta-text inherited from global paragraph styles */

/* --------------------------------------------------------------------------
   5.6 Impact Section
   -------------------------------------------------------------------------- */

.impact-visual {
    margin-top: 3rem;
    display: flex;
    gap: 3rem;
    /* Animacja przez .animate-on-scroll */
}

.impact-icon {
    font-size: clamp(5rem, 12vw, 9rem);
    display: inline-block;
    transition: transform var(--transition-fast);
    /* Usunięto opacity/transform/will-change - obsłuży kontener */
}
.impact-icon:hover {
    transform: scale(1.1) rotate(-5deg); 
}

/* --------------------------------------------------------------------------
   5.7 CTA Section (Final Call to Action)
   -------------------------------------------------------------------------- */

.cta-section {
    padding-top: 5rem; 
    padding-bottom: 6rem;
}

/* Styles for .cta-text, .cta-final-text inherited */
/* Styles for .highlight-date applied globally */

.cta-button {
    display: inline-block; 
    background: linear-gradient(90deg, var(--highlight), var(--highlight-secondary));
    color: #fff; /* Always white text on gradient */
    font-family: var(--font-secondary); 
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    padding: 1rem 2.5rem; 
    border-radius: 50px; 
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden; 
    z-index: 1;
    box-shadow: 0 8px 20px rgba(var(--highlight-rgb), 0.2), 0 8px 20px rgba(var(--highlight-secondary-rgb), 0.2); 
    margin-top: 1.5rem; 
    /* Usunięto opacity/visibility/transform - obsłuży .animate-on-scroll */
}

/* Adjust shadow for light mode if needed, though current one might be fine */
/* body.light-mode .cta-button { ... } */

.cta-button span {
    position: relative;
    z-index: 2;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.03); 
    box-shadow: 0 12px 25px rgba(var(--highlight-rgb), 0.3), 0 12px 25px rgba(var(--highlight-secondary-rgb), 0.3);
}

.cta-button:active {
    transform: translateY(0) scale(1);
    box-shadow: 0 5px 15px rgba(var(--highlight-rgb), 0.2), 0 5px 15px rgba(var(--highlight-secondary-rgb), 0.2);
}

/* ==========================================================================
   6. Components & Utilities
   ========================================================================== */

/* --------------------------------------------------------------------------
   6.1 Theme Toggle
   -------------------------------------------------------------------------- */

.theme-toggle {
    position: fixed;
    top: 0.5rem; /* ZMIANA: 1rem -> 0.5rem */
    right: 1rem;
    z-index: 5000;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text); 
    transition: color var(--transition-theme), transform 0.2s ease,
                background-color var(--transition-theme), border-color var(--transition-theme),
                opacity 0.5s ease, visibility 0s linear;
    opacity: 0; /* Hidden initially */
    visibility: hidden;
}

body.loaded .theme-toggle {
    opacity: 1;
    visibility: visible;
    transition-delay: 0.3s; /* Delayed appearance */
}

.theme-toggle:hover {
    transform: scale(1.1);
}

.theme-toggle svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

body:not(.dark-mode) .theme-toggle .sun-icon { display: none; }
body:not(.dark-mode) .theme-toggle .moon-icon { display: block; }
body.dark-mode .theme-toggle .sun-icon { display: block; }
body.dark-mode .theme-toggle .moon-icon { display: none; }


/* ==========================================================================
   7. Responsive Adjustments
   ========================================================================== */

@media (max-width: 768px) {
    html { font-size: 18px; }

    section { padding: 12vh 5vw; }

    .main-headline { font-size: clamp(2.5rem, 14vw, 5.5rem); }
    .section-title { font-size: clamp(2rem, 9vw, 4rem); margin-bottom: 3rem; }

    .paths-container {
        gap: 2rem;
    }
    
    .features-grid {
        gap: 1.5rem;
    }

    .feature-card { min-height: auto; padding: 2rem 1.5rem; }

    .partner-logo { max-width: 120px; }
    .partner-logos { gap: 1rem; margin-bottom: 2.5rem; }
    .program-description { max-width: 90%; }

    .footer-social-links { gap: 1rem; }

    .theme-toggle {
        top: 0.5rem; 
    }
} 

/* ==========================================================================
   8. Reduced Motion Preferences
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
    animation-play-state: paused !important; 
  }

  /* Immediately show animated elements */
  .panel, 
  [data-animate-text], 
  [data-animate-card], 
  [data-animate-column], 
  [data-animate-list-item], 
  [data-animate-icon], 
  [data-animate-link],
  [data-animate-gallery],
  [data-animate-button],
  [data-animate-logos],
  .main-headline .word,
  .section-title .word,
  .sub-headline,
  .program-description,
  .partner-logos,
  .cta-button {
      transform: none !important; 
      opacity: 1 !important; 
      visibility: visible !important; 
  }
  
  /* Hide elements that only make sense with motion */
  .scroll-indicator, .preloader {
      display: none !important; 
  }
  
  /* Ensure body is visible immediately */
  body {
      opacity: 1 !important; 
      visibility: visible !important;
  }
} 

.deadline-sidebar {
    /* === Domyślne style (Mobile First - teraz fixed na dole) === */
    display: block; 
    position: fixed; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    transform: none; 
    writing-mode: horizontal-tb; 
    background-color: var(--highlight);  
    color: #ffffff;
    padding: 0.5rem 1rem; 
    text-align: center; 
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: 0.85rem; 
    text-decoration: none;
    text-transform: none; 
    letter-spacing: normal; 
    border-radius: 0; 
    box-shadow: 0 -2px 8px rgba(0,0,0,0.15); 
    z-index: 1000; 
    transition: background-color var(--transition-fast);
}

.deadline-sidebar:hover, 
.deadline-sidebar:focus {
    background-color: var(--highlight-secondary); 
    transform: none; 
    color: #fff;
    outline: none; 
} 

@media (min-width: 769px) {
    /* === Style dla Desktop (nadpisują domyślne) === */
    .deadline-sidebar {
        position: fixed;
        top: 50%;
        right: 0;
        bottom: auto; /* Nadpisuje bottom: 0 z domyślnych */
        left: auto; /* Nadpisuje left: 0 z domyślnych */
        width: auto; /* Nadpisuje width: 100% z domyślnych */
        transform: translateY(-50%);
        writing-mode: vertical-rl;
        background-color: var(--highlight); 
        padding: 1.2rem 0.6rem; 
        font-size: 0.9rem; 
        text-transform: uppercase; 
        letter-spacing: 1.5px;
        border-radius: 8px 0 0 8px; 
        z-index: 1000; /* Już jest 1000, ale dla pewności */
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    }

    .deadline-sidebar:hover, 
    .deadline-sidebar:focus {
        background-color: var(--highlight-secondary); 
        transform: translateY(-50%) translateX(-3px); 
    }
} 
