:root {
    --color-primary: #8a2be2;
    --color-secondary: #00e5ff;
    
    --color-bg-tint: rgba(255, 255, 255, 0.05);
    
    --color-border-glass: rgba(255, 255, 255, 0.15); 
    --color-text: #e0e0e0;
    --color-text-dark: #a0a0a0;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Manrope', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: url('./bg.jpg') no-repeat center center / cover;
    background-attachment: fixed;
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

h1, h2, h3 {
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}
h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; text-align: center; color: #fff; }
h3 { font-size: 2.25rem; color: #fff; }
p {
    margin-bottom: 1rem;
    color: var(--color-text-dark);
}
a {
    text-decoration: none;
    color: var(--color-secondary);
    transition: color 0.3s ease;
}
a:hover {
    color: #fff;
}
img {
    max-width: 100%;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
    border: 2px solid transparent;
}
.btn-primary {
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    color: #fff;
    box-shadow: 0 5px 20px rgba(138, 43, 226, 0.4);
    background-size: 100% 100%;
    background-repeat: no-repeat;
}
.btn-primary:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.5);
}
.btn-secondary {
    background: linear-gradient(90deg, var(--color-secondary), #00aaff);
    color: var(--color-bg-dark);
    box-shadow: 0 5px 20px rgba(0, 229, 255, 0.3);
    background-size: 100% 100%;
    background-repeat: no-repeat;
}
.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.5);
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.2rem 0;
    
    background: transparent;
    border-bottom: 1px solid var(--color-border-glass);
    isolation: isolate; 
}

.navbar::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-color: var(--color-bg-tint);
}

.navbar::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    backdrop-filter: blur(0px); 
    filter: url(#glass-distortion); 
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-heading);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.nav-menu {
    display: flex;
    list-style: none;
}
.nav-menu li {
    margin-left: 2rem;
}
.nav-menu a {
    color: var(--color-text);
    font-weight: 600;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.nav-menu a:hover {
    color: #fff;
    border-bottom-color: var(--color-secondary);
}

.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
    position: relative;
    z-index: 5;
}
.hero-section h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}
.glowing-text {
    background: linear-gradient(
      90deg, 
      var(--color-secondary), 
      #fff, 
      var(--color-secondary)
    );
    
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 4s linear infinite alternate;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

@keyframes shimmer {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}
.hero-section .subtitle {
    font-size: 1.25rem;
    max-width: min(90vw, 1000px);
    margin: 0 auto 2rem auto;
    color: var(--color-text);
    text-align: center;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
.hero-section .btn {
    margin: 0 0.5rem;
}

section {
    padding: 6rem 0;
    position: relative;
    z-index: 5;
}

.reveal-fade-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
    transition-delay: var(--delay, 0s);
}
.reveal-fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.server-feature,
.stats-section {
    padding: 2.5rem;
    border-radius: 40px; 
    transition: box-shadow 0.4s ease, transform 0.4s ease;
    
    background: transparent;
    border: 1px solid var(--color-border-glass);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    position: relative;
    isolation: isolate; 
    z-index: 1;
}

.server-feature::before,
.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1; 
    border-radius: 40px; 
    
    background-color: var(--color-bg-tint);
    
    box-shadow: 
        inset 0 0 15px rgba(255, 255, 255, 0.1),
        inset 0 0 15px rgba(0, 0, 0, 0.2);
}

.server-feature::after,
.stats-section::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2; 
    border-radius: 40px; 
    
    /* ZMIANA: Usunęliśmy blur! */
    backdrop-filter: blur(0px); 
    
    filter: url(#glass-distortion); 
}


.server-feature:hover,
.stats-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 50px 0 rgba(0, 0, 0, 0.45);
}


.server-feature-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 4rem;
}

.server-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.server-feature .server-image,
.server-feature .server-details {
    position: relative;
    z-index: 2;
}

.server-image {
    text-align: center;
}
.server-logo-large {
    max-width: 300px;
    border-radius: 50%;
    filter: drop-shadow(0 0 25px rgba(138, 43, 226, 0.4));
    transition: all 0.3s ease;
}
.server-image:hover .server-logo-large {
    filter: drop-shadow(0 0 35px rgba(0, 229, 255, 0.6));
    transform: scale(1.05);
}
.server-details {
    text-align: left;
}
.server-description {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-top: -0.5rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
.member-count {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-secondary);
    margin-top: -1.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}
.feature-list li {
    position: relative;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    color: var(--color-text);
    padding-left: 20px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 2px;
}
.server-details .btn {
    margin-top: 1rem;
}

.server-feature h3 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.server-feature:nth-child(even) {
    grid-template-areas: "details image";
}
.server-feature:nth-child(even) .server-image {
    grid-area: image;
}
.server-feature:nth-child(even) .server-details {
    grid-area: details;
}

.stats-section {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 3rem;
    padding-bottom: 3rem;
}
.stats-section h2 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.stats-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
    margin-top: 3rem;
}
.stat-item h3 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-secondary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.stat-item p {
    font-size: 1.1rem;
    color: var(--color-text);
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.footer-section {
    background: transparent;
    text-align: center;
    padding: 4rem 0 2rem 0;
    border-top: 1px solid var(--color-border-glass);
}
.social-links {
    margin-top: 1rem;
    margin-bottom: 2rem;
}
.social-links a {
    font-size: 2rem;
    margin: 0 1rem;
    color: var(--color-text-dark);
    transition: color 0.3s ease, transform 0.3s ease;
}
.social-links a:hover {
    color: var(--color-secondary);
    transform: translateY(-5px) scale(1.1);
    text-shadow: 0 0 15px var(--color-secondary);
}
.footer-section p {
    font-size: 0.9rem;
    color: var(--color-text-dark);
}

@media (max-width: 992px) {
    .server-feature,
    .server-feature:nth-child(even) {
        grid-template-columns: 1fr;
        grid-template-areas: none;
        text-align: center;
        padding: 1.5rem;
    }
    .server-feature .server-image,
    .server-feature:nth-child(even) .server-image,
    .server-feature:nth-child(even) .server-details {
        grid-area: auto; 
    }
    .server-details {
        text-align: center;
    }
    .feature-list {
        display: inline-block;
        text-align: left;
        margin-left: auto;
        margin-right: auto;
    }
    .server-logo-large {
        max-width: 200px;
        margin-bottom: 1rem;
    }
    .stats-section {
        margin-left: 1rem;
        margin-right: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.8rem;
    }
    .hero-section .btn {
        display: block;
        margin: 0.5rem 0;
    }
    .nav-menu {
        display: none;
    }
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}