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

html {
    background-color: #0f0f1e;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #0f0f1e, #1a1a2e, #16213e);
    color: #ffffff;
    overflow-x: hidden;
    position: relative;
}

.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
    overflow: hidden;
    pointer-events: none;
}

/* DNA Strands Animation */
.dna-strand {
    position: absolute;
    width: 6px;
    height: 100vh;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(0, 255, 136, 0.6) 20%, 
        rgba(0, 136, 255, 0.7) 50%, 
        rgba(255, 0, 136, 0.6) 80%, 
        transparent 100%);
    animation: dnaFloat 8s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.dna-strand:nth-child(1) {
    left: 15%;
    animation-delay: 0s;
    animation-duration: 10s;
}

.dna-strand:nth-child(2) {
    left: 35%;
    animation-delay: -2s;
    animation-duration: 12s;
}

.dna-strand:nth-child(3) {
    left: 65%;
    animation-delay: -4s;
    animation-duration: 9s;
}

.dna-strand:nth-child(4) {
    left: 85%;
    animation-delay: -6s;
    animation-duration: 11s;
}

@keyframes dnaFloat {
    0%, 100% {
        transform: translateY(-10px) rotateY(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-20px) rotateY(90deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-5px) rotateY(180deg);
        opacity: 0.8;
    }
    75% {
        transform: translateY(-15px) rotateY(270deg);
        opacity: 0.4;
    }
}

/* Floating Particles */
.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, rgba(0, 255, 136, 1), rgba(0, 255, 136, 0.3), transparent);
    border-radius: 50%;
    animation: particleFloat 15s linear infinite;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.8);
}

.particle:nth-child(odd) {
    background: radial-gradient(circle, rgba(0, 136, 255, 0.9), rgba(0, 136, 255, 0.3), transparent);
    animation-duration: 20s;
    box-shadow: 0 0 10px rgba(0, 136, 255, 0.6);
}

.particle:nth-child(3n) {
    background: radial-gradient(circle, rgba(255, 0, 136, 0.8), rgba(255, 0, 136, 0.3), transparent);
    animation-duration: 18s;
    box-shadow: 0 0 10px rgba(255, 0, 136, 0.5);
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0px) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: scale(1);
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(100px) scale(0);
        opacity: 0;
    }
}

/* Genetic Network */
.genetic-network {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.network-node {
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(0, 255, 136, 0.9);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.8);
    animation: nodesPulse 4s ease-in-out infinite;
}

.network-node::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, 
        rgba(0, 255, 136, 0.3), 
        transparent 50%, 
        rgba(0, 136, 255, 0.2));
    transform: translate(-50%, -50%) rotate(45deg);
    animation: connectionPulse 6s ease-in-out infinite;
}

.network-node:nth-child(2n)::before {
    transform: translate(-50%, -50%) rotate(-45deg);
    background: linear-gradient(90deg, 
        rgba(0, 136, 255, 0.3), 
        transparent 50%, 
        rgba(255, 0, 136, 0.2));
}

.network-node:nth-child(3n)::before {
    transform: translate(-50%, -50%) rotate(90deg);
    animation-delay: -2s;
}

@keyframes nodesPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}

@keyframes connectionPulse {
    0%, 100% {
        opacity: 0.2;
        transform: translate(-50%, -50%) rotate(45deg) scaleX(0.5);
    }
    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) rotate(45deg) scaleX(1);
    }
}

/* Genetic Code Stream */
.genetic-stream {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.code-stream {
    position: absolute;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: rgba(0, 255, 136, 0.7);
    white-space: nowrap;
    animation: streamFlow 20s linear infinite;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.6);
}

.code-stream:nth-child(2n) {
    color: rgba(0, 136, 255, 0.6);
    animation-duration: 25s;
    animation-delay: -5s;
    text-shadow: 0 0 10px rgba(0, 136, 255, 0.5);
}

.code-stream:nth-child(3n) {
    color: rgba(255, 0, 136, 0.5);
    animation-duration: 30s;
    animation-delay: -10s;
    text-shadow: 0 0 10px rgba(255, 0, 136, 0.4);
}

@keyframes streamFlow {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateX(100vw);
        opacity: 0;
    }
}

/* Pulsing Orbs */
.energy-orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, 
        rgba(0, 255, 136, 0.3) 0%, 
        rgba(0, 136, 255, 0.2) 50%, 
        transparent 70%);
    animation: orbPulse 8s ease-in-out infinite;
}

.energy-orb:nth-child(2n) {
    background: radial-gradient(circle, 
        rgba(0, 136, 255, 0.3) 0%, 
        rgba(255, 0, 136, 0.2) 50%, 
        transparent 70%);
    animation-delay: -4s;
}

@keyframes orbPulse {
    0%, 100% {
        transform: scale(0.8);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

/* Matrix-like effect */
.matrix-rain {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.matrix-column {
    position: absolute;
    top: -100px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: rgba(0, 255, 136, 0.6);
    animation: matrixFall 10s linear infinite;
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.5);
}

.matrix-column:nth-child(2n) {
    color: rgba(0, 136, 255, 0.4);
    animation-duration: 15s;
    animation-delay: -3s;
}

.matrix-column:nth-child(3n) {
    color: rgba(255, 0, 136, 0.3);
    animation-duration: 12s;
    animation-delay: -7s;
}

@keyframes matrixFall {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

header {
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(45deg, #00ff88, #0088ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: translateY(-2px);
    text-shadow: 0 0 25px rgba(0, 255, 136, 0.5);
}

.logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    display: inline-block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: white;
}

.nav-item {
    cursor: pointer;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-item a {
    color: inherit;
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.nav-item:hover a,
.nav-item a:hover {
    background: rgba(0, 255, 136, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.2);
}

.nav-item.active a {
    background: linear-gradient(45deg, rgba(0, 255, 136, 0.2), rgba(0, 136, 255, 0.2));
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.content {
    padding: 60px 0;
    min-height: 80vh;
    position: relative;
    z-index: 5;
    background: rgba(15, 15, 30, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    margin: 20px 0;
}

.section {
    display: none;
    animation: fadeIn 0.6s ease-in-out;
}

.section.active {
    display: block;
}

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

.hero {
    text-align: center;
    padding: 80px 0;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #00ff88, #0088ff, #ff0088);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero p {
    font-size: 1.4rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(45deg, #00ff88, #0088ff);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 80px;
    max-width: 800px;
    margin: 80px auto 0;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #00ff88, #0088ff);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #00ff88;
}

.news-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 25px;
    border-left: 4px solid #00ff88;
}

.featured-news {
    border-left: 6px solid #00ff88;
    padding: 40px;
    background: rgba(0, 255, 136, 0.05);
    border-radius: 20px;
}

.news-image {
    width: 100%;
    margin: 20px 0;
    text-align: center;
}

.news-image img {
    max-width: 60%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 255, 136, 0.2);
}

.news-content h4 {
    color: #00ff88;
    margin: 25px 0 15px 0;
    font-size: 1.3rem;
    border-bottom: 2px solid rgba(0, 255, 136, 0.3);
    padding-bottom: 8px;
}

.news-content ul {
    margin: 15px 0;
    padding-left: 25px;
}

.news-content li {
    margin: 8px 0;
    color: #e0e0e0;
}

.news-content a {
    color: #00ff88;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px solid rgba(0, 255, 136, 0.3);
    transition: all 0.3s ease;
}

.news-content a:hover {
    color: #66ffaa;
    border-bottom-color: #00ff88;
}

.zoom-details {
    background: rgba(0, 136, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    border: 1px solid rgba(0, 136, 255, 0.3);
}

.zoom-details h4 {
    color: #0088ff !important;
    border-bottom: 2px solid rgba(0, 136, 255, 0.3) !important;
}

.zoom-details a {
    color: #0088ff;
    text-decoration: none;
    font-weight: bold;
}

.zoom-details a:hover {
    color: #66aaff;
    text-decoration: underline;
}

.warning-note {
    background: rgba(255,165,0,0.1);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #ffa500;
    margin: 20px 0;
    color: #ffcc80;
}

.news-date {
    color: #0088ff;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.member-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.member-card:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.08);
}

.member-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(45deg, #00ff88, #0088ff);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    overflow: hidden;
}

.member-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #00ff88;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00ff88;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, #00ff88, #0088ff);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

footer {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 80px;
    position: relative;
    z-index: 10;
}

/* Contact Grid - równe bloki obok siebie */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Changed to 3 columns */
    gap: 30px;
    max-width: 100%; /* Allow full width */
    margin: 0 auto;
    align-items: stretch;
}

/* New contact card styles */
.contact-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.contact-card {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 136, 255, 0.1));
    padding: 30px;
    border-radius: 20px;
    border: 2px solid rgba(0, 255, 136, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
    height: 100%;
    box-sizing: border-box;
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 255, 136, 0.5);
    box-shadow: 0 15px 40px rgba(0, 255, 136, 0.2);
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #00ff88, #0088ff);
}

/* Specific styles for each platform */
.contact-card.email {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 136, 255, 0.1));
    border-color: rgba(0, 255, 136, 0.3);
}

.contact-card.email:hover {
    border-color: rgba(0, 255, 136, 0.5);
    box-shadow: 0 15px 40px rgba(0, 255, 136, 0.2);
}

.contact-card.email::before {
    background: linear-gradient(90deg, #00ff88, #0088ff);
}

.contact-card.discord {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.1), rgba(114, 137, 218, 0.1));
    border-color: rgba(88, 101, 242, 0.3);
}

.contact-card.discord:hover {
    border-color: rgba(88, 101, 242, 0.5);
    box-shadow: 0 15px 40px rgba(88, 101, 242, 0.2);
}

.contact-card.discord::before {
    background: linear-gradient(90deg, #5865f2, #7289da);
}

.contact-card.facebook {
    background: linear-gradient(135deg, rgba(24, 119, 242, 0.1), rgba(66, 103, 178, 0.1));
    border-color: rgba(24, 119, 242, 0.3);
}

.contact-card.facebook:hover {
    border-color: rgba(24, 119, 242, 0.5);
    box-shadow: 0 15px 40px rgba(24, 119, 242, 0.2);
}

.contact-card.facebook::before {
    background: linear-gradient(90deg, #1877f2, #4267b2);
}

.contact-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, #00ff88, #0088ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
    color: white;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.contact-card h3 {
    font-size: 1.4rem;
    margin: 0;
    color: #00ff88;
}

/* Specific colors for each platform */
.contact-card.email .contact-icon {
    background: linear-gradient(45deg, #00ff88, #0088ff);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
}

.contact-card.email h3 {
    color: #00ff88;
}

.contact-card.discord .contact-icon {
    background: linear-gradient(45deg, #5865f2, #7289da);
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.4);
}

.contact-card.discord h3 {
    color: #5865f2;
}

.contact-card.facebook .contact-icon {
    background: linear-gradient(45deg, #1877f2, #4267b2);
    box-shadow: 0 0 15px rgba(24, 119, 242, 0.4);
}

.contact-card.facebook h3 {
    color: #1877f2;
}

.contact-description {
    font-size: 0.9rem;
    opacity: 0.8;
    color: #ffffff;
    text-align: center;
    line-height: 1.4;
}

.contact-description a {
    color: #00ff88;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-description a:hover {
    color: #66ccff;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.3);
}

/* Ensure equal size and alignment for contact and social media blocks */
.main-contact, .social-media {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.main-email-card, .social-card {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 136, 255, 0.1));
    padding: 40px;
    border-radius: 20px;
    border: 2px solid rgba(0, 255, 136, 0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
    height: 100%;
    box-sizing: border-box;
}

.main-email-card:hover {
    transform: translateY(-5px);
}

.main-email-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #00ff88, #0088ff);
}

.main-email-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(45deg, #00ff88, #0088ff);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.main-email-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #00ff88;
}

.main-email {
    font-size: 1.4rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 15px;
}

.main-email a {
    background: linear-gradient(45deg, #00ff88, #0088ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.main-email a:hover {
    background: linear-gradient(45deg, #00ff88, #66ccff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: scale(1.02);
}

.email-description {
    font-size: 1rem;
    opacity: 0.8;
    color: #ffffff;
}

/* Secondary contacts - smaller, side by side */
.secondary-contacts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.secondary-contact-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.secondary-contact-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    border-color: rgba(0, 255, 136, 0.3);
}

.secondary-contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(0, 255, 136, 0.8), rgba(0, 136, 255, 0.8));
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.secondary-contact-card h4 {
    font-size: 1.2rem;
    color: #0088ff;
    margin-bottom: 10px;
}

.secondary-email {
    font-size: 1rem;
    color: #ffffff;
    font-weight: 500;
}

.secondary-email a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

.secondary-email a:hover {
    color: #00ff88;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.3);
}

/* Sekcje członków - dodatkowe style */
.supervisor-section {
    margin-bottom: 60px;
}

.supervisor .member-avatar {
    background: linear-gradient(45deg, #00ff88, #66cc88);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.supervisor .member-card {
    border: 2px solid rgba(0, 255, 136, 0.3);
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.05), rgba(255, 255, 255, 0.05));
}

.board-section {
    margin-bottom: 60px;
}

.board-member .member-avatar {
    background: linear-gradient(45deg, #0088ff, #66aaff);
    box-shadow: 0 0 15px rgba(0, 136, 255, 0.3);
}

.board-member .member-card {
    border: 1px solid rgba(0, 136, 255, 0.2);
}

.members-section {
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    header {
        padding: 15px 0;
    }
    
    nav {
        flex-direction: row; /* Changed from column to row */
        justify-content: space-between; /* Added to space logo and hamburger */
        align-items: center; /* Added to vertically align items */
        gap: 20px;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .logo-image {
        height: 30px;
    }
    
    .nav-menu {
        display: none; /* Hide by default on mobile */
        flex-direction: column;
        gap: 10px;
        width: 100%;
        align-items: center;
        position: fixed; /* Fixed position to cover entire viewport */
        top: 60px; /* Start right below the header */
        left: 0;
        background: rgba(15, 15, 30, 0.98); /* Darker and almost non-transparent background */
        backdrop-filter: blur(20px); /* Stronger blur */
        padding: 20px 0; /* Normal padding */
        z-index: 999; /* Ensure it's above other content */
    }

    .nav-menu.active { /* Class to show the menu */
        display: flex;
    }
    
    .nav-item {
        padding: 8px 16px;
        font-size: 0.9rem;
        text-align: center;
        min-width: 120px;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
        padding: 0 10px;
    }
    
    .features {
        grid-template-columns: 1fr;
        max-width: none;
        margin: 40px auto 0;
        gap: 20px;
    }
    
    .feature-card {
        padding: 25px;
    }
    
    .featured-news {
        padding: 25px;
    }
    
    .news-content h4 {
        font-size: 1.1rem;
    }
    
    .zoom-details {
        padding: 15px;
    }
    
    .main-email-card {
        padding: 25px;
        margin: 0 10px;
    }
    
    .secondary-contacts {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .hamburger {
        display: block; /* Show hamburger on mobile */
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

@media (max-width: 480px) {
    .nav-menu {
        flex-direction: column; /* Keep as column for smaller screens */
        gap: 8px;
    }
    
    .nav-item {
        padding: 6px 12px;
        font-size: 0.8rem;
        min-width: auto;
        flex: 1;
        max-width: 140px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .feature-card h3 {
        font-size: 1.3rem;
    }
}

/* Special styling for home section to make background more visible */
#home .content {
    background: rgba(15, 15, 30, 0.1);
    backdrop-filter: blur(2px);
}

#home .hero {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 30px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

#home .feature-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
}

/* Enhanced background visibility when on home page */
body:has(#home.active) .background-animation {
    opacity: 0.9;
}

/* Fallback for browsers that don't support :has() */
.home-active .background-animation {
    opacity: 0.9;
}

/* Social media section */
.social-media {
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.social-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
}

.social-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 51, 234, 0.1));
    padding: 40px;
    border-radius: 20px;
    border: 2px solid rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
    height: 100%;
}

.social-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.2);
}

.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #9333ea);
}

.social-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(45deg, #3b82f6, #9333ea);
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
    color: white;
}

.social-icon svg {
    width: 32px;
    height: 32px;
    fill: white;
}

.social-card h3 {
    font-size: 1.6rem;
    margin-bottom: 18px;
    color: #3b82f6;
}

.social-link {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 12px;
}

.social-link a {
    background: linear-gradient(45deg, #3b82f6, #9333ea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.social-link a:hover {
    background: linear-gradient(45deg, #60a5fa, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: scale(1.02);
}

.social-description {
    font-size: 0.95rem;
    opacity: 0.8;
    color: #ffffff;
}

/* Social media section wrapper */
.social-media-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .main-email-card,
    .social-card,
    .contact-card {
        padding: 30px;
    }
}

/* ===== KALENDARZ - NAJBLIŻSZE WYDARZENIE ===== */
.next-event-box {
    background: rgba(0, 255, 136, 0.08);
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 50px;
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.next-event-box::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00ff88, #0088ff, #ff0088, #00ff88);
    background-size: 300% 300%;
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: gradientShift 6s ease infinite;
}

.next-event-box:hover::before {
    opacity: 0;
}

.next-event-box:hover {
    transform: none;
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.15);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.next-event-title {
    text-align: center;
    font-size: 2rem;
    color: #00ff88;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 15px;
}

.next-event-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00ff88, transparent);
}

.next-event-content {
    position: relative;
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 255, 136, 0.1);
    border-top: 4px solid #00ff88;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    color: #00ff88;
    font-size: 1rem;
}

/* Event Details */
.event-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Pierwszy wiersz: Temat i Prelegent obok siebie */
.event-row-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Drugi wiersz: Data, Godzina, Miejsce obok siebie */
.event-row-details {
    display: grid;
    grid-template-columns: 4fr 3fr 3fr;
    gap: 15px;
}

/* Trzeci wiersz: Opis na pełną szerokość */
.event-row-description {
    width: 100%;
}

.event-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.event-main-info {
    grid-column: 1;
}

.event-details-info {
    grid-column: 2;
}

.event-description-column {
    grid-column: 1 / -1; /* Pełna szerokość */
    margin-top: 10px;
}

.event-info-group {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.event-info-group:hover {
    background: rgba(255, 255, 255, 0.03);
    transform: none;
}

.event-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.event-row:hover {
    background: rgba(255, 255, 255, 0.03);
    transform: none;
}

.event-icon {
    font-size: 2rem;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 10px;
    padding: 10px;
}

.event-info {
    flex: 1;
}

.event-label {
    font-size: 0.85rem;
    color: #00ff88;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    font-weight: 600;
}

.event-value {
    font-size: 1.2rem;
    color: #ffffff;
    line-height: 1.5;
}

.event-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #00ff88;
}

.event-speaker {
    font-size: 1.3rem;
    font-weight: 500;
}

.event-description {
    padding: 20px;
    background: rgba(0, 136, 255, 0.1);
    border-radius: 12px;
    border-left: 4px solid #0088ff;
}

.event-description .event-label {
    color: #0088ff;
    margin-bottom: 15px;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.event-description .event-value {
    font-size: 1rem;
    color: #e0e0e0;
    line-height: 1.7;
}

/* Responsywność */
@media (max-width: 768px) {
    .next-event-box {
        padding: 25px;
    }
    
    .next-event-title {
        font-size: 1.5rem;
    }
    
    /* Na mobile wszystko jeden pod drugim */
    .event-row-main {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .event-row-details {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .event-info-group {
        flex-direction: row;
        gap: 10px;
    }
    
    .event-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .event-icon {
        font-size: 1.5rem;
        min-width: 40px;
        padding: 8px;
    }
    
    .event-value {
        font-size: 1rem;
    }
    
    .event-title {
        font-size: 1.2rem;
    }
    
    .event-speaker {
        font-size: 1.1rem;
    }
    
    .calendar-container iframe {
        width: 100% !important;
        height: 500px !important;
    }
}
