@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

:root,
body[data-project="ambulance"] {
    --project-primary: #0f2434;
    --project-primary-light: rgba(15, 36, 52, 0.1);
    --project-primary-dark: #1a4d6e;
    --project-accent: #bb4c48;
    --project-accent-light: rgba(234, 173, 88, 0.2);

    /* Light  */
    --bg-primary: #f5f5f5;
    --bg-secondary: #ffffff;
    --bg-section: rgba(255, 255, 255, 0.95);
    --text-primary: #1a1a1a;
    --text-secondary: #333333;
    --text-muted: #666666;
    --accent-color: #bb4c48;
    --border-color: #bb4c48;
    --card-bg: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    --overlay-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 240, 240, 0.9) 100%);
    --hero-filter: brightness(0.7);
}

/* Dark */
body.dark {
    --bg-primary: #1a1a1a;
    --bg-secondary: #263238;
    --bg-section: rgba(23, 23, 23, 0.75);
    --text-primary: #f5f5f5;
    --text-secondary: #e0e0e0;
    --text-muted: #b0b0b0;
    --card-bg: linear-gradient(135deg, #263238 0%, #1a1a1a 100%);
    --overlay-bg: linear-gradient(135deg, rgba(23, 23, 23, 0.8) 0%, rgba(38, 50, 56, 0.8) 100%);
    --hero-filter: brightness(0.4);
}

/* Cyanobacteria */
body[data-project="cyanobacteria"] {
    --project-primary: #A8B058;
    --project-primary-light: rgba(168, 176, 88, 0.1);
    --project-primary-dark: #A8B058;
    --project-accent: #A8B058;
    --project-accent-light: rgba(234, 173, 88, 0.2);
    --accent-color: #A8B058;
    --border-color: #A8B058;
}

body[data-project="cyanobacteria"].dark {
    --bg-primary: #1a1a1a;
    --bg-secondary: #263238;
    --bg-section: rgba(23, 23, 23, 0.75);
    --text-primary: #f5f5f5;
    --text-secondary: #e0e0e0;
    --text-muted: #b0b0b0;
    --accent-color: #A8B058;
    --border-color: #A8B058;
    --card-bg: linear-gradient(135deg, #263238 0%, #1a1a1a 100%);
    --overlay-bg: linear-gradient(135deg, rgba(23, 23, 23, 0.8) 0%, rgba(38, 50, 56, 0.8) 100%);
    --hero-filter: brightness(0.4);
}

/* Bees */
body[data-project="bees"] {
    --project-primary: #e29f3a;
    --project-primary-light: rgba(255, 175, 102, 0.1);
    --project-primary-dark: #e29f3a;
    --project-accent: #e29f3a;
    --project-accent-light: rgba(243, 156, 18, 0.2);
    --accent-color: #e29f3a;
    --border-color: #e29f3a;
}

body[data-project="bees"].dark {
    --bg-primary: #1a1a1a;
    --bg-secondary: #263238;
    --bg-section: rgba(23, 23, 23, 0.75);
    --text-primary: #f5f5f5;
    --text-secondary: #e0e0e0;
    --text-muted: #b0b0b0;
    --accent-color: #e29f3a;
    --border-color: #e29f3a;
    --card-bg: linear-gradient(135deg, #263238 0%, #1a1a1a 100%);
    --overlay-bg: linear-gradient(135deg, rgba(23, 23, 23, 0.8) 0%, rgba(38, 50, 56, 0.8) 100%);
    --hero-filter: brightness(0.4);
}

/* Agriculture */
body[data-project="agriculture"] {
    --project-primary: #6b9444;
    --project-primary-light: rgba(84, 114, 55, 0.1);
    --project-primary-dark: #6b9444;
    --project-accent: #6b9444;
    --project-accent-light: rgba(82, 183, 136, 0.2);
    --accent-color: #6b9444;
    --border-color: #6b9444;
}

body[data-project="agriculture"].dark {
    --bg-primary: #1a1a1a;
    --bg-secondary: #263238;
    --bg-section: rgba(23, 23, 23, 0.75);
    --text-primary: #f5f5f5;
    --text-secondary: #e0e0e0;
    --text-muted: #b0b0b0;
    --accent-color: #6b9444;
    --border-color: #6b9444;
    --card-bg: linear-gradient(135deg, #263238 0%, #1a1a1a 100%);
    --overlay-bg: linear-gradient(135deg, rgba(23, 23, 23, 0.8) 0%, rgba(38, 50, 56, 0.8) 100%);
    --hero-filter: brightness(0.4);
}

/* Boats */
body[data-project="boats"] {
    --project-primary: #477497;
    --project-primary-light: rgba(15, 36, 52, 0.1);
    --project-primary-dark: #477497;
    --project-accent: #477497;
    --project-accent-light: rgba(92, 107, 192, 0.2);
    --accent-color: #477497;
    --border-color: #477497;
}

body[data-project="boats"].dark {
    --bg-primary: #1a1a1a;
    --bg-secondary: #263238;
    --bg-section: rgba(23, 23, 23, 0.75);
    --text-primary: #f5f5f5;
    --text-secondary: #e0e0e0;
    --text-muted: #b0b0b0;
    --accent-color: #477497;
    --border-color: #477497;
    --card-bg: linear-gradient(135deg, #263238 0%, #1a1a1a 100%);
    --overlay-bg: linear-gradient(135deg, rgba(23, 23, 23, 0.8) 0%, rgba(38, 50, 56, 0.8) 100%);
    --hero-filter: brightness(0.4);
}

/* Water Portal */
body[data-project="water"] {
    --project-primary: #0282A9;
    --project-primary-light: rgba(2, 130, 169, 0.1);
    --project-primary-dark: #0282A9;
    --project-accent: #0282A9;
    --project-accent-light: rgba(5, 130, 202, 0.2);
    --accent-color: #0282A9;
    --border-color: #0282A9;
}

body[data-project="water"].dark {
    --bg-primary: #1a1a1a;
    --bg-secondary: #263238;
    --bg-section: rgba(23, 23, 23, 0.75);
    --text-primary: #f5f5f5;
    --text-secondary: #e0e0e0;
    --text-muted: #b0b0b0;
    --accent-color: #0282A9;
    --border-color: #0282A9;
    --card-bg: linear-gradient(135deg, #263238 0%, #1a1a1a 100%);
    --overlay-bg: linear-gradient(135deg, rgba(23, 23, 23, 0.8) 0%, rgba(38, 50, 56, 0.8) 100%);
    --hero-filter: brightness(0.4);
}



/* Style główne */

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

body {
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    transition: background 0.3s ease, color 0.3s ease;
}

strong {
    font-weight: 700;
    color: var(--accent-color);
}


/* Hero */

.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background-color: #0F2434;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video,
.hero-bg-image,
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.hero-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
    bottom: -2rem;
    right: -2rem;
}

.hero-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 1.2;
    color: white;
    text-align: center;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeIn 0.8s ease 0.2s forwards;
}

.hero-line {
    width: 80px;
    height: 3px;
    background-color: var(--project-accent);
    margin: 0 auto 1.5rem auto;
    animation: expandWidth 0.8s ease 0.5s forwards;
}

.hero-subtitle {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 300;
    font-size: 14px;
    line-height: 1.6;
    color: white;
    letter-spacing: 0.5px;
    opacity: 0;
    animation: fadeIn 0.8s ease 0.7s forwards;
}

/* Animacje */

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes expandWidth {
    from {
        width: 0;
    }

    to {
        width: 80px;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sekcje */

.section {
    padding: 2rem 1rem;
}

.container {
    max-width: 1160px;
    margin: 0 auto;
}

.card {
    background: var(--bg-section);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0px 10px 40px 0px rgba(0, 0, 0, 0.3);
    border-left: 5px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

body:not(.dark) .card {
    box-shadow: 0px 10px 40px 0px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 15px 50px 0px rgba(230, 184, 125, 0.2);
}

.section-title {
    font-family: 'Segoe UI', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: var(--accent-color);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.subsection-title {
    font-family: 'Segoe UI', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--accent-color);
    margin: 2rem 0 1rem 0;
}

.description-text {
    font-family: 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

.objective-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.ambulance-box {
    background: #0F2434;
    border-radius: 30px;
    padding: 0;
    flex-shrink: 0;
    width: 100%;
    transition: transform 0.3s ease;
    overflow: hidden;
}


body[data-project="cyanobacteria"] .ambulance-box {
    background-image: linear-gradient(137.347deg, rgb(168, 176, 88) 16.59%, rgb(255, 255, 255) 62.881%);
}

body[data-project="cyanobacteria"] .ambulance-box img {
    transform: scale(0.9);
    margin-left: 100px;
}


body[data-project="bees"] .ambulance-box {
    background-image: linear-gradient(137.347deg, rgb(225, 175, 102) 16.59%, rgb(255, 255, 255) 62.881%);
}

body[data-project="bees"] .ambulance-box img {
    position: relative;
    left: 100px;
    transform: scale(1.3);
}


body[data-project="agriculture"] .ambulance-box {
    background-image: linear-gradient(137.347deg, rgba(202, 230, 255, 0.836) 10%, rgb(255, 255, 255) 62.881%)
}

body[data-project="agriculture"] .ambulance-box img {
    position: relative;
    transform: scaleX(1.5);
    transform: scale(1.3);
    left: 50px;
    bottom: 30px;
}


body[data-project="boats"] .ambulance-box {
    background-image: linear-gradient(137.347deg, rgba(202, 230, 255, 0.836) 10%, rgb(255, 255, 255) 62.881%)
}

body[data-project="boats"] .ambulance-box img {
    position: relative;
    left: 120px;
    transform: scale(1.3);
}

body[data-project="water"] .ambulance-box {
    background-image: linear-gradient(115.494deg, rgba(102, 222, 255, 0.356) 10%, rgb(255, 255, 255) 86%)
}

body[data-project="water"] .ambulance-box img {
    position: relative;
    left: 120px;
    transform: scale(1.3);
}

.ambulance-box:hover {
    transform: scale(1.05) rotate(2deg);
}

.ambulance-image {
    width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    margin-left: -32px;
}

.objective-text {
    flex: 1;
    background: rgba(38, 50, 56, 0.3);
    border-radius: 10px;
    border-left: 4px solid var(--border-color);
    padding: 1rem;
    width: 100%;
    transition: background 0.3s ease;
}

body:not(.dark) .objective-text {
    background: rgba(230, 184, 125, 0.1);
}

/* Moduły */

.modules-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.module-card {
    background: linear-gradient(135deg, rgba(230, 184, 125, 0.1) 0%, rgba(38, 50, 56, 0.3) 100%);
    border-radius: 12px;
    border: 2px solid var(--border-color);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

body:not(.dark) .module-card {
    background: linear-gradient(135deg, rgba(230, 184, 125, 0.15) 0%, rgba(255, 255, 255, 0.5) 100%);
}

.module-card:hover {
    transform: translateY(-10px);
    box-shadow: 0px 12px 35px rgba(230, 184, 125, 0.3);
    border-color: var(--text-primary);
}

.module-card h4 {
    font-family: 'Segoe UI', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.module-card p {
    font-family: 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 27.2px;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

/* Lista parametrów */

.parameter-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1.5rem 0;
}

.parameter-list li {
    font-family: 'Segoe UI', sans-serif;
    line-height: 2;
    color: var(--text-secondary);
    padding-left: 1.5rem;
    position: relative;
    transition: color 0.3s ease;
}

.parameter-list li::before {
    content: "•";
    color: var(--project-accent);
    font-weight: bold;
    font-size: 1.2em;
    position: absolute;
    left: 0;
}

.parameter-list li strong {
    color: var(--accent-color);
}

/* Tagi */

.tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.tag {
    background-color: var(--project-primary);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 25px;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

.tag:nth-child(1) {
    animation-delay: 0.1s;
}

.tag:nth-child(2) {
    animation-delay: 0.2s;
}

.tag:nth-child(3) {
    animation-delay: 0.3s;
}

.tag:nth-child(4) {
    animation-delay: 0.4s;
}

.tag:nth-child(5) {
    animation-delay: 0.5s;
}

.tag:hover {
    transform: scale(1.1);
    background-color: var(--project-primary-dark);
}

/* Obrazki */

.images-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.image-card {
    border-radius: 10px;
    box-shadow: 0px 5px 20px 0px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    height: 200px;
}

body:not(.dark) .image-card {
    box-shadow: 0px 5px 20px 0px rgba(0, 0, 0, 0.15);
}

.image-card:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 8px 30px rgba(230, 184, 125, 0.3);
}

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Osiągnięcia */

.achievements-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.achievement-card {
    background: var(--card-bg);
    border-radius: 12px;
    border: 2px solid var(--border-color);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    min-width: 250px;
}

.achievement-card:hover {
    transform: translateY(-10px);
    box-shadow: 0px 15px 40px rgba(230, 184, 125, 0.3);
}

.achievement-icon {
    font-size: 32px;
    margin-bottom: 1rem;
}

.achievement-card h4 {
    font-family: 'Segoe UI', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    line-height: normal;
}

.achievement-card p {
    font-family: 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.conference-image {
    border-radius: 10px;
    box-shadow: 0px 8px 30px 0px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    margin: 1.5rem 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body:not(.dark) .conference-image {
    box-shadow: 0px 8px 30px 0px rgba(0, 0, 0, 0.15);
}

.conference-image:hover {
    transform: scale(1.02);
}

.conference-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Team */

.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.team-member {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0px 10px 25px rgba(230, 184, 125, 0.3);
}

.team-member h4 {
    font-family: 'Segoe UI', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--accent-color);
}

.team-member p {
    font-family: 'Segoe UI', sans-serif;
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    transition: color 0.3s ease;
}

/* Przewijanie */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile */

@media (min-width: 768px) {
    .section {
        padding: 1rem 2rem;
    }

    .section:last-of-type {
        padding-bottom: 5rem;
    }

    .card {
        padding: 3rem;
    }

    .section-title {
        font-size: 35.2px;
        margin-bottom: 2rem;
    }

    .subsection-title {
        font-size: 25.6px;
        margin: 2rem 0 1.5rem 0;
    }

    .description-text {
        font-size: 18.4px;
        line-height: 34.96px;
        margin-bottom: 2rem;
    }

    .objective-content {
        flex-direction: row;
        gap: 2rem;
    }

    .ambulance-box {
        border-radius: 50px;
        padding: 0;
        width: 513px;
    }

    .ambulance-image {
        width: 334px;
        height: 289px;
    }

    .objective-text {
        padding: 2rem;
    }

    .modules-grid {
        flex-direction: row;
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .tags {
        gap: 1rem;
    }

    .tag {
        padding: 0.5rem 1.25rem;
        font-size: 14.4px;
    }

    .images-grid {
        flex-direction: row;
        gap: 1.25rem;
        margin: 2rem 0;
        justify-content: center;
    }

    .image-card {
        width: 338px;
        height: 220px;
    }

    .achievements-grid {
        flex-direction: row;
        gap: 1.5rem;
        margin: 2rem 0;
    }

    .achievement-icon {
        font-size: 40px;
        margin-bottom: 1.5rem;
    }

    .achievement-card h4 {
        font-size: 20.8px;
        margin-bottom: 0.75rem;
    }

    .achievement-card p {
        font-size: 16px;
        line-height: 25.6px;
    }

    .conference-image {
        margin: 2rem 0;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .team-member {
        padding: 1.5rem;
        height: 100px;
    }

    .team-member h4 {
        font-size: 20.8px;
    }

    .team-member p {
        font-size: 18.4px;
    }
}

/* Desktop */

@media (min-width: 1024px) {
    .hero {
        height: 100vh;
    }

    .hero-title {
        font-size: 56px;
    }

    .hero-subtitle {
        font-size: 22.4px;
    }

    .team-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}