/* Kosmos.coop About Page Styles — Compilat: 08/03/2026 */

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

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #000000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow-x: hidden;
    position: relative;
    color: #ffffff;
}

body::before {
    content: '';
    position: fixed;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    z-index: -1;
    background:
        radial-gradient(ellipse 130% 120% at 50% 40%, rgba(180, 50, 140, 0.15) 0%, rgba(135, 38, 105, 0.08) 14%, rgba(90, 25, 70, 1.04) 25%, rgba(45, 13, 35, 0.02) 36%, rgba(22, 6, 18, 0.01) 47%, rgba(0, 0, 0, 0) 58%),
        radial-gradient(ellipse 120% 130% at 50% 40%, rgba(160, 40, 150, 0.12) 0%, rgba(120, 30, 112, 0.16) 16%, rgba(80, 20, 75, 0.03) 28%, rgba(40, 10, 38, 0.01) 40%, rgba(20, 5, 19, 0.005) 52%, rgba(0, 0, 0, 0) 63%);
    opacity: 0;
    animation: fadeInLights 2s ease-out forwards 0.2s, circularMove1 80s linear infinite 0.2s;
}

@keyframes fadeInLights2 {
    to { opacity: 1; }
}

body::after {
    content: '';
    position: fixed;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    z-index: -1;
    background:
        radial-gradient(ellipse 130% 130% at 50% 40%, rgba(30, 110, 200, 0.01) 0%, rgba(22, 82, 150, 0.05) 16%, rgba(15, 55, 100, 0.025) 27%, rgba(8, 28, 50, 0.01) 38%, rgba(4, 14, 25, 0.005) 49%, rgba(0, 0, 0, 0) 60%),
        radial-gradient(ellipse 120% 140% at 50% 40%, rgba(50, 140, 220, 0.008) 0%, rgba(38, 105, 165, 0.34) 18%, rgba(25, 70, 110, 0.02) 30%, rgba(13, 35, 55, 0.01) 42%, rgba(6, 18, 28, 0.005) 54%, rgba(0, 0, 0, 0) 65%);
    opacity: 1;
    animation: circularMove2 100s linear infinite 0.3s;
}

@keyframes circularMove1 {
    0% { transform: rotate(0deg) translateX(500px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(500px) rotate(-360deg); }
}

@keyframes circularMove2 {
    0% { transform: rotate(180deg) translateX(600px) rotate(-180deg); }
    100% { transform: rotate(540deg) translateX(600px) rotate(-540deg); }
}

/* Footer about (override gap) */
footer {
    gap: 60px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 50px;
    z-index: 200;
    opacity: 0;
    animation: fadeIn 0.8s ease forwards 0.5s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

header.scrolled {
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
}

.logo-header {
    display: inline-block;
    transition: transform 0.3s ease;
}

.logo-header:hover {
    transform: scale(1.05);
}

.logo-header img {
    height: 28px;
    width: auto;
    filter: brightness(0) invert(1);
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Space Grotesk', sans-serif;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateX(-2px);
}

.back-button i {
    font-size: 12px;
}

/* Main content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 160px 40px 80px;
}

.content-wrapper {
    max-width: 1000px;
    width: 100%;
}

/* Section styles */
.content-section {
    padding: 80px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    opacity: 0;
    animation: fadeInSection 0.8s ease forwards;
}

.content-section:nth-child(1) {
    animation-delay: 0.8s;
    padding-top: 0;
}

.content-section:nth-child(2) {
    animation-delay: 1.2s;
}

.content-section:nth-child(3) {
    animation-delay: 1.6s;
    border-bottom: none;
}

@keyframes fadeInSection {
    to { opacity: 1; }
}

.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 50px;
}

.section-icon {
    display: none;
}

.section-title {
    color: #ffffff;
    font-size: 25px;
    font-weight: 200;
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.section-content p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 18px;
    font-weight: 100;
    line-height: 1.8;
    margin: 0 0 30px 0;
    max-width: 920px;
    letter-spacing: 0.2px;
}

.section-content p:last-child {
    margin-bottom: 0;
}

.section-content strong {
    color: #ffffff;
    font-weight: 500;
}

/* Features list */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    text-align: left;
}

.feature-icon-wrapper {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon {
    font-size: 22px;
    color: #382954;
}

.feature-text {
    flex: 1;
}

.feature-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
    font-family: 'Space Grotesk', sans-serif;
    min-height: 48px;
    display: flex;
    align-items: center;
}

.feature-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 17px;
    font-weight: 100;
    line-height: 1.6;
    margin: 0;
}

.feature-description p {
    font-size: 17px !important;
}

/* CTA Button */
.cta-wrapper {
    margin-top: 50px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 18px 40px;
    background: #ffffff;
    color: #382954;
    border: 2px solid #ffffff;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Space Grotesk', sans-serif;
}

.cta-button:hover {
    background: transparent;
    color: #ffffff;
    transform: translateY(-2px);
}

.cta-button i {
    font-size: 20px;
}

/* Switcher d'idioma */
.lang-switch {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}
.lang-switch:hover {
    color: #ffffff;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    body::before {
        background:
            radial-gradient(ellipse 140% 120% at 50% 35%, rgba(180, 50, 140, 0.12) 0%, rgba(135, 38, 105, 0.07) 14%, rgba(90, 25, 70, 0.04) 24%, rgba(45, 13, 35, 0.02) 34%, rgba(22, 6, 18, 0.01) 44%, rgba(0, 0, 0, 0) 54%),
            radial-gradient(ellipse 120% 140% at 50% 35%, rgba(160, 40, 150, 0.10) 0%, rgba(120, 30, 112, 0.05) 16%, rgba(80, 20, 75, 0.025) 28%, rgba(40, 10, 38, 0.01) 38%, rgba(20, 5, 19, 0.005) 48%, rgba(0, 0, 0, 0) 58%);
    }

    body::after {
        background:
            radial-gradient(ellipse 130% 130% at 50% 35%, rgba(30, 110, 200, 0.08) 0%, rgba(22, 82, 150, 0.04) 15%, rgba(15, 55, 100, 0.02) 26%, rgba(8, 28, 50, 0.01) 36%, rgba(4, 14, 25, 0.005) 46%, rgba(0, 0, 0, 0) 56%),
            radial-gradient(ellipse 120% 140% at 50% 35%, rgba(50, 140, 220, 0.06) 0%, rgba(38, 105, 165, 0.03) 17%, rgba(25, 70, 110, 0.015) 29%, rgba(13, 35, 55, 0.005) 40%, rgba(6, 18, 28, 0.002) 50%, rgba(0, 0, 0, 0) 60%);
    }

    header {
        padding: 25px 25px;
    }

    .logo-header img {
        height: 28px;
    }

    .main-content {
        padding: 120px 25px 60px;
    }

    .content-section {
        padding: 60px 0;
    }

    .content-section:nth-child(1) {
        padding-top: 0;
    }

    .section-header {
        gap: 15px;
        margin-bottom: 35px;
    }

    .section-icon {
        font-size: 32px;
    }

    .section-title {
        font-size: 32px;
    }

    .section-content p {
        font-size: 17px;
        margin-bottom: 25px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
        margin-top: 40px;
    }

    .feature-item {
        gap: 20px;
    }

    .feature-icon {
        font-size: 28px;
    }

    .feature-title {
        font-size: 17px;
        margin-bottom: 8px;
    }

    .feature-description {
        font-size: 17px;
    }

    .cta-wrapper {
        margin-top: 40px;
    }

    .cta-button {
        padding: 16px 32px;
        font-size: 17px;
        gap: 12px;
    }

    footer {
        padding: 40px 20px 20px 20px;
        gap: 40px;
    }

    .footer-sponsors {
        gap: 30px;
    }

    .footer-sponsors img {
        height: 28px;
    }

    .footer-sponsors .logo-bcn {
        height: 41px;
    }

    .footer-opengea img {
        height: 36px;
    }

    @keyframes circularMove1 {
        0% { transform: rotate(0deg) translateX(180px) rotate(0deg); }
        100% { transform: rotate(360deg) translateX(180px) rotate(-360deg); }
    }

    @keyframes circularMove2 {
        0% { transform: rotate(180deg) translateX(220px) rotate(-180deg); }
        100% { transform: rotate(540deg) translateX(220px) rotate(-540deg); }
    }
}

@media screen and (max-width: 480px) {
    body::before {
        background:
            radial-gradient(ellipse 150% 130% at 50% 30%, rgba(180, 50, 140, 0.12) 0%, rgba(135, 38, 105, 0.07) 14%, rgba(90, 25, 70, 0.04) 24%, rgba(45, 13, 35, 0.02) 34%, rgba(22, 6, 18, 0.01) 44%, rgba(0, 0, 0, 0) 54%),
            radial-gradient(ellipse 130% 150% at 50% 30%, rgba(160, 40, 150, 0.10) 0%, rgba(120, 30, 112, 0.05) 16%, rgba(80, 20, 75, 0.025) 28%, rgba(40, 10, 38, 0.01) 38%, rgba(20, 5, 19, 0.005) 48%, rgba(0, 0, 0, 0) 58%);
    }

    body::after {
        background:
            radial-gradient(ellipse 140% 140% at 50% 30%, rgba(30, 110, 200, 0.08) 0%, rgba(22, 82, 150, 0.04) 15%, rgba(15, 55, 100, 0.02) 26%, rgba(8, 28, 50, 0.01) 36%, rgba(4, 14, 25, 0.005) 46%, rgba(0, 0, 0, 0) 56%),
            radial-gradient(ellipse 130% 150% at 50% 30%, rgba(50, 140, 220, 0.06) 0%, rgba(38, 105, 165, 0.03) 17%, rgba(25, 70, 110, 0.015) 29%, rgba(13, 35, 55, 0.005) 40%, rgba(6, 18, 28, 0.002) 50%, rgba(0, 0, 0, 0) 60%);
    }

    header {
        padding: 20px 20px;
    }

    .logo-header img {
        height: 25px;
    }

    .main-content {
        padding: 100px 20px 50px;
    }

    .content-section {
        padding: 50px 0;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 30px;
    }

    .section-icon {
        font-size: 28px;
    }

    .section-title {
        font-size: 28px;
    }

    .section-content p {
        font-size: 16px;
        margin-bottom: 22px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 35px;
        margin-top: 35px;
    }

    .feature-item {
        gap: 15px;
    }

    .feature-icon {
        font-size: 24px;
    }

    .feature-title {
        font-size: 17px;
        margin-bottom: 8px;
    }

    .feature-description {
        font-size: 17px;
    }

    .cta-wrapper {
        margin-top: 35px;
    }

    .cta-button {
        padding: 14px 28px;
        font-size: 16px;
        gap: 10px;
    }

    footer {
        gap: 30px;
    }

    .footer-sponsors {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-sponsors img {
        height: 24px;
    }

    .footer-sponsors .logo-bcn {
        height: 35px;
    }

    .footer-opengea img {
        height: 32px;
    }

    .footer-copyright {
        font-size: 12px;
    }

    @keyframes circularMove1 {
        0% { transform: rotate(0deg) translateX(140px) rotate(0deg); }
        100% { transform: rotate(360deg) translateX(140px) rotate(-360deg); }
    }

    @keyframes circularMove2 {
        0% { transform: rotate(180deg) translateX(170px) rotate(-180deg); }
        100% { transform: rotate(540deg) translateX(170px) rotate(-540deg); }
    }
}
