/* Reset i podstawy */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: #2c3e50;
    background: linear-gradient(135deg, #f6f8fb 0%, #d9e4f5 100%);
    overflow-x: hidden;
    animation: fadeIn 1s ease-in-out;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { opacity: 1; transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

/* Nagłówek */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: slideInLeft 1s ease-out;
}


nav {
    display: flex;
    justify-content: space-between; /* logo na lewo, linki na prawo */
    align-items: center; /* pionowe wyśrodkowanie */
    height: 100%; /* dopasowanie do headera */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: #3b3b98;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.logo img {
    height: 80px;  /* dostosuj wysokość logo */
    width: auto;   /* proporcje pozostaną zachowane */
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.2s ease;
}

.nav-links a:hover {
    color: #667eea;
    transform: scale(1.05);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #2c3e50;
    margin: 3px 0;
}

/* HERO */
#hero {
    background: linear-gradient(135deg, rgba(83, 122, 141, 1) 0%, rgba(216, 229, 243, 1) 100%);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite, fadeIn 1.5s ease-out;
    color: white;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 8rem 2rem 4rem;
    min-height: 85vh;
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: -200px;
    left: -200px;
    z-index: 0;
    animation: float 6s ease-in-out infinite;
}

#hero::after {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -100px;
    right: -100px;
    z-index: 0;
    animation: float 8s ease-in-out infinite reverse;
}

/* Wave effect at bottom of hero */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,60 C300,100 600,20 900,60 C1050,80 1200,40 1200,60 L1200,120 L0,120 Z" fill="rgba(255,255,255,0.1)"></path></svg>');
    background-size: cover;
    animation: waveFlow 8s ease-in-out infinite;
    z-index: 1;
}

/* Geometric shapes background */
.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    opacity: 0.1;
    animation: shapeFloat 20s infinite linear;
}

.shape.circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(45deg, #667eea, #764ba2);
}

.shape.square {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #f093fb, #f5576c);
    transform: rotate(45deg);
}

.shape.triangle {
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid #4facfe;
}

.shape:nth-child(odd) {
    animation-duration: 15s;
    animation-delay: -5s;
}

.shape:nth-child(even) {
    animation-duration: 25s;
    animation-delay: -10s;
}

@keyframes shapeFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.1;
    }
    90% {
        opacity: 0.1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: bounceIn 1.2s ease-out 0.5s both;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 6px 15px rgba(0,0,0,0.3);
    font-weight: 800;
    letter-spacing: -2px;
    background: linear-gradient(45deg, #ffffff, #e8f4fd);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: slideInLeft 1s ease-out 0.8s both;
    border-right: 3px solid #fff;
}

.hero-tagline {
    font-size: clamp(1.3rem, 5vw, 2.2rem);
    margin-bottom: 1rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 3px 10px rgba(0,0,0,0.3);
    line-height: 1.2;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    animation: slideInRight 1s ease-out 1s both;
}

.hero-description {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
    line-height: 1.6;
    opacity: 0.95;
    animation: fadeIn 1s ease-out 1.2s both;
}
.btn {
    display: inline-block;
    padding: 1.1rem 3rem;
    background: linear-gradient(135deg, #f1c40f, #ffdd59);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: pulse 2s infinite 1.5s;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 35px rgba(0,0,0,0.3);
}

.btn:active {
    transform: translateY(-2px) scale(0.98);
}

/* ODLICZANIE */
#odliczanie {
    margin-top: 2rem;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    animation: fadeIn 1s ease-out 1.8s both;
}

#odliczanie h1 {
    font-size: 1.8rem;
    color: white !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    animation: slideInLeft 1s ease-out 2s both;
}

#countdown {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.time-box {
    background: rgba(255,255,255,0.2);
    border-radius: 15px;
    padding: 1.8rem 2rem;
    min-width: 120px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(5px);
    animation: bounceIn 0.8s ease-out both;
    animation-delay: calc(2.2s + var(--i) * 0.1s);
}

.time-box:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
    background: rgba(255,255,255,0.3);
}

.time-box span {
    font-size: 2.8rem;
    font-weight: 700;
    color: white !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    display: block;
    animation: pulse 2s infinite;
}

.time-box p {
    margin-top: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: white !important;
    text-shadow: 0 1px 5px rgba(0,0,0,0.2);
}

/* SEKCJE */
section {
    padding: 6rem 2rem;
    scroll-margin-top: 90px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

section.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Dekoracje w tle sekcji */
section::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(83, 122, 141, 0.08);
    border-radius: 50%;
    top: -50px;
    left: -50px;
    z-index: 0;
    animation: float 10s ease-in-out infinite;
}

section::after {
    content: "";
    position: absolute;
    width: 250px;
    height: 250px;
    background: rgba(216, 229, 243, 0.08);
    border-radius: 50%;
    bottom: -40px;
    right: -40px;
    z-index: 0;
    animation: float 12s ease-in-out infinite reverse;
}

section .container {
    position: relative;
    z-index: 1;
}

/* Nagłówki sekcji */
h2 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, rgba(83, 122, 141, 1), rgba(100, 150, 170, 1));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    font-weight: 800;
    letter-spacing: -1px;
    animation: slideInLeft 1s ease-out both;
}

h2::after {
    content: "";
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    display: block;
    margin: 1rem auto 0;
    border-radius: 3px;
    animation: slideInRight 1s ease-out 0.3s both;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-top: 0.8rem;
    font-weight: 500;
}

section p {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* About Section Enhancements */
#o-nas {
    background: linear-gradient(135deg, rgba(240, 245, 255, 1) 0%, rgba(230, 240, 255, 1) 100%);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: #2c3e50;
    text-align: center;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.feature:last-child {
    grid-column: 1 / -1;
    max-width: 600px;
    margin: 0 auto;
}

.feature {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
    border: 1px solid rgba(102, 126, 234, 0.1);
    position: relative;
    overflow: hidden;
    animation: slideInLeft 0.8s ease-out both;
    animation-delay: calc(0.2s + var(--i) * 0.1s);
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.05), transparent);
    transition: left 0.6s;
}

.feature:hover::before {
    left: 100%;
}

.feature:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.25);
    background: linear-gradient(135deg, #ffffff, #f8f9ff);
}

.feature-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.feature:hover .feature-icon {
    transform: scale(1.2) rotate(5deg);
    animation: bounceIn 0.6s ease;
}

.feature h4 {
    font-size: 1.2rem;
    color: #3b3b98;
    margin-bottom: 0.8rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

.feature:hover h4 {
    color: #667eea;
}

.feature p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* TEAM GRID */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2.5rem;
    justify-items: center;
    margin-top: 2rem;
}

.team-member {
    background: rgba(255,255,255,0.98);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    width: 100%;
    max-width: 280px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    position: relative;
    animation: slideInRight 0.8s ease-out both;
    animation-delay: calc(0.1s + var(--i) * 0.1s);
}

.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.team-member:hover::before {
    opacity: 1;
}

.team-member:hover {
    transform: translateY(-15px) scale(1.03) rotate(1deg);
    box-shadow: 0 25px 60px rgba(102, 126, 234, 0.3);
    background: linear-gradient(135deg, #ffffff, #f0f4ff);
}

.team-member img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.team-member:hover img {
    transform: scale(1.1);
    filter: brightness(1.1) contrast(1.05);
}

.member-info {
    padding: 1.5rem 1.2rem;
    position: relative;
    z-index: 3;
}

.member-info h3 {
    font-size: 1.15rem;
    color: #3b3b98;
    margin-bottom: 0.5rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

.team-member:hover .member-info h3 {
    color: #667eea;
}

.member-info p {
    font-size: 0.9rem;
    color: #666;
    word-break: break-all;
}

.member-info p a {
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.member-info p a:hover {
    color: #764ba2;
    text-decoration: underline;
    transform: scale(1.05);
}

/* KONTAKT */
#kontakt {
    background-color: #f0f5ff;
    color: #2b3a45;
    padding: 6rem 2rem;
    text-align: center;
}

#kontakt h2 {
    color: #3b3b98 !important;
}

#kontakt h4 {
    font-size: 1.2rem;
    color: #3b3b98;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-item h4 {
    text-align: left;
    margin: 0;
}

.contact-item p {
    text-align: left;
    margin: 0.3rem 0 0 0;
}

#kontakt a {
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

#kontakt a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.social-links {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 15px;
    background: linear-gradient(135deg, #f5f7ff, #ffffff);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border: 1px solid rgba(102, 126, 234, 0.1);
    position: relative;
    overflow: hidden;
    animation: bounceIn 0.6s ease-out both;
    animation-delay: calc(0.1s + var(--i) * 0.1s);
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-link:hover::before {
    opacity: 1;
}

.social-link:hover {
    transform: translateY(-8px) scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.3);
}

.social-link img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    position: relative;
    z-index: 1;
    transition: filter 0.3s ease;
}

.social-link:hover img {
    filter: brightness(0) invert(1);
}

/* Scroll to Top Button */
#scrollToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    font-size: 1.5rem;
}

#scrollToTop.show {
    opacity: 1;
    visibility: visible;
}

#scrollToTop:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Particles */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 10s infinite linear;
}

.particle:nth-child(odd) {
    animation-duration: 8s;
    animation-delay: -2s;
}

.particle:nth-child(even) {
    animation-duration: 12s;
    animation-delay: -4s;
}

/* Floating Educational Icons */
.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-icon {
    position: absolute;
    animation: floatAround 15s infinite linear;
    opacity: 0.7;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.floating-icon:nth-child(odd) {
    animation-duration: 12s;
    animation-delay: -3s;
}

.floating-icon:nth-child(even) {
    animation-duration: 18s;
    animation-delay: -6s;
}

@keyframes floatAround {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) translateX(10px) rotate(90deg);
    }
    50% {
        transform: translateY(-10px) translateX(20px) rotate(180deg);
    }
    75% {
        transform: translateY(-30px) translateX(5px) rotate(270deg);
    }
}

/* STOPKA */
footer {
    background: linear-gradient(
        180deg,
        rgba(83, 122, 141, 1) 0%,
        rgba(60, 88, 102, 1) 100%
    );
    color: white;
    text-align: center;
    padding: 2rem 1rem;
    font-size: 1rem;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
}


/* RESPONSYWNOŚĆ */
@media (max-width: 768px) {
	 header {
		position: fixed;
		top: 0;
		width: 100%;
		background: rgba(255, 255, 255, 0.85);
		backdrop-filter: blur(15px);
		box-shadow: 0 2px 15px rgba(0,0,0,0.1);
		z-index: 1000;
	}

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100%;
        background: #ffffff;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 5rem;
        transition: right 0.3s ease;
        box-shadow: -2px 0 10px rgba(0,0,0,0.15);
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        z-index: 1001;
        position: relative;
    }

    .hero-title {
        font-size: 2.8rem;
        border-right: none; /* Remove typing cursor on mobile */
    }

    .hero-tagline {
        font-size: 1.3rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .btn {
        padding: 0.95rem 2.5rem;
        font-size: 0.95rem;
    }

    .time-box {
        padding: 1.5rem 1.5rem;
        min-width: 100px;
    }

    .time-box span {
        font-size: 2rem;
    }

    .time-box p {
        font-size: 0.85rem;
    }

    #odliczanie h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    h2::after {
        width: 60px;
        height: 4px;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    .team-member {
        max-width: 100%;
    }

    .team-member img {
        height: 240px;
    }

    /* Small phone: shift Wiktoria's photo up more so the top of the face is visible */
    .team-member img.img-top {
        object-position: 50% 6%;
    }

    .member-info h3 {
        font-size: 1rem;
    }

    .member-info p {
        font-size: 0.85rem;
    }

    .about-features {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feature {
        padding: 2rem;
    }

    .feature-icon {
        font-size: 2.5rem;
        margin-bottom: 0.8rem;
    }

    .feature h4 {
        font-size: 1.05rem;
    }

    .feature p {
        font-size: 0.9rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-item {
        padding: 1.5rem;
        gap: 1rem;
    }

    .contact-icon {
        font-size: 1.7rem;
    }

    .contact-item h4 {
        font-size: 1.1rem;
    }

    .contact-item p {
        font-size: 0.9rem;
    }

    .social-links {
        padding: 1.5rem;
    }

    .social-links h4 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .social-icons {
        gap: 1.5rem;
    }

    .social-link {
        width: 60px;
        height: 60px;
    }

    .social-link img {
        width: 40px;
        height: 40px;
    }

    .floating-icon {
        font-size: 20px !important;
    }

    .shape {
        opacity: 0.05;
    }

    .shape.circle, .shape.square {
        width: 40px !important;
        height: 40px !important;
    }

    .hero-wave {
        height: 50px;
    }

    section {
        padding: 4rem 1.5rem;
    }

    .container {
        padding: 0 1rem;
    }
}

/* KLASY POMOCNICZE */
.white-text {
    color: white;
}

.gradient-text {
    background: linear-gradient(90deg, #ffffff, #eaf3fa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Loading animation */
.loading {
    opacity: 0;
    animation: fadeIn 0.5s ease-out 0.5s forwards;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a4190);
}

/* Team modal styles */
.team-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}
.team-modal.open { display: flex; }
.team-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10,12,20,0.55);
    backdrop-filter: blur(4px);
}
.team-modal-content {
    position: relative;
    width: min(720px, 95%);
    background: linear-gradient(180deg, #ffffff, #fbfdff);
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(22,32,70,0.35);
    padding: 1.25rem;
    z-index: 2001;
    transform: translateY(12px);
    transition: transform 220ms ease, opacity 220ms ease;
}
.team-modal.open .team-modal-content { transform: translateY(0); }
.team-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: #334155;
    cursor: pointer;
}
.team-modal-body {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 1rem;
    align-items: center;
}
.team-modal-photo {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(102,126,234,0.15);
}
.team-modal-name {
    margin: 0 0 0.25rem 0;
    color: #3b3b98;
    font-size: 1.25rem;
}
.team-modal-email {
    margin: 0 0 0.75rem 0;
    color: #667eea;
    font-weight: 600;
}
.team-modal-bio {
    color: #334155;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .team-modal-body { grid-template-columns: 1fr; }
    .team-modal-photo { height: 180px; }
    .team-modal-close { top: 8px; right: 8px; }
}