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

:root {
    --primary-color: #6a0dad;
    --secondary-color: #1e90ff;
    --background-color: #0a0a0a;
    --text-color: #e0e0e0;
    --card-background: rgba(255, 255, 255, 0.03);
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
}

.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    padding: 0 20px;
    background: 
        radial-gradient(circle at 20% 80%, rgba(106, 13, 173, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(30, 144, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 64, 129, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(45deg, transparent 48%, rgba(106, 13, 173, 0.1) 50%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(30, 144, 255, 0.08) 50%, transparent 52%);
    animation: heroScan 8s linear infinite;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 50% 50%, transparent 40%, rgba(0,0,0,0.3) 70%);
    pointer-events: none;
}

/* ====== NAWIGACJA HERO ====== */
.hero-nav {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    padding: 0 30px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 15px 25px;
    position: relative;
    overflow: hidden;
}

.nav-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(106, 13, 173, 0.1) 0%, 
        rgba(30, 144, 255, 0.05) 50%, 
        rgba(255, 64, 129, 0.1) 100%);
    border-radius: 20px;
    pointer-events: none;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    height: 40px;
    z-index: 1;
    position: relative;
}

.logo-svg {
    height: 32px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(67, 227, 233, 0.3));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-svg:hover {
    filter: drop-shadow(0 0 12px rgba(67, 227, 233, 0.5));
    transform: scale(1.05);
}

.logo-slogan {
    font-size: 12px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 1px;
    text-transform: lowercase;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1;
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9em;
    padding: 10px 16px;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(106, 13, 173, 0.2) 0%, 
        rgba(30, 144, 255, 0.2) 100%);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.nav-link:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(106, 13, 173, 0.3);
}

.nav-icon {
    font-size: 1.1em;
    transition: transform 0.3s ease;
}

.nav-link:hover .nav-icon {
    transform: scale(1.2) rotate(10deg);
}

.nav-text {
    position: relative;
    z-index: 1;
}

.nav-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff !important;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(106, 13, 173, 0.4);
}

.nav-cta::before {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
}

.nav-cta:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(106, 13, 173, 0.5);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    z-index: 1;
    position: relative;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 1px;
    transition: all 0.3s ease;
}

/* Responsywność dla nawigacji */
@media (max-width: 768px) {
    .hero-nav {
        top: 20px;
        padding: 0 20px;
    }
    
    .nav-container {
        padding: 12px 20px;
    }
    
    .nav-links {
        gap: 5px;
    }
    
    .nav-link {
        padding: 8px 12px;
        font-size: 0.85em;
    }
    
    .nav-icon {
        font-size: 1em;
    }
    
    .nav-logo {
        font-size: 1.1em;
        gap: 10px;
    }
    
    .logo-slogan {
        font-size: 10px;
    }
    
    .scroll-indicator {
        bottom: 20px;
    }
    
    .scroll-text {
        font-size: 11px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .back-to-top svg {
        width: 18px;
        height: 18px;
    }
    
    /* Hero responsiveness */
    .title-main {
        font-size: 2.8em;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    .stat-number {
        font-size: 2em;
    }
    
    .hero-buttons {
        gap: 15px;
    }
    
    .cta-button {
        min-width: 250px;
        padding: 18px 30px;
    }
}

@media (max-width: 480px) {
    .hero-nav {
        padding: 0 15px;
    }
    
    .nav-logo .logo-svg {
        height: 28px;
    }
    
    .logo-slogan {
        display: none;
    }
    
    .scroll-indicator {
        bottom: 15px;
    }
    
    .scroll-text {
        font-size: 10px;
    }
    
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
    
    .back-to-top svg {
        width: 16px;
        height: 16px;
    }
    
    .nav-links {
        display: none;
    }
    
    /* Hero mobile */
    .title-main {
        font-size: 2.2em;
    }
    
    .hero-subtitle {
        font-size: 1.1em;
    }
    
    .hero-stats {
        gap: 20px;
        flex-wrap: wrap;
    }
    
    .stat-number {
        font-size: 1.8em;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }
    
    .cta-button {
        min-width: auto;
        width: 100%;
        max-width: 320px;
        padding: 16px 25px;
    }
    
    .button-text {
        font-size: 15px;
    }
    
    .button-subtext {
        font-size: 11px;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    /* Rakieta na mobile */
    .rocket-container {
        width: 45px;
        height: 45px;
    }
    
    .rocket-trail {
        height: 120px;
        width: 2px;
    }
    
    /* Preloader na mobile */
    .preloader-rocket {
        width: 80px;
        height: 80px;
    }
    
    .loading-text {
        font-size: 1.5rem;
    }
    
    .loading-progress {
        width: 250px;
    }
    
    .nav-container.active .nav-links {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(25px);
        border-radius: 15px;
        margin-top: 10px;
        padding: 20px;
        gap: 10px;
    }
    
    .nav-container.active .nav-link {
        width: 100%;
        justify-content: center;
        padding: 15px;
    }
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-content {
    z-index: 10;
    max-width: 800px;
    text-align: center;
    animation: fadeIn 2s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(67, 227, 233, 0.1);
    border: 1px solid rgba(67, 227, 233, 0.3);
    border-radius: 25px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    animation: badgePulse 3s ease-in-out infinite;
}

.badge-icon {
    font-size: 16px;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(67, 227, 233, 0.2);
    }
    50% { 
        box-shadow: 0 0 30px rgba(67, 227, 233, 0.4);
    }
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(180deg); }
}

/* Hero Title */
.hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.title-main {
    font-size: 3.2em;
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), #ff4081, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 300% 300%;
    animation: gradientAnimation 4s ease infinite;
    text-shadow: 0 0 30px rgba(106, 13, 173, 0.3);
    position: relative;
}

.title-main::after {
    content: 'SKY CREATIVE';
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(8px);
    opacity: 0.4;
    z-index: -1;
}

.title-accent {
    font-size: 1.2em;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 2px;
    text-transform: lowercase;
}

/* Hero Subtitle */
.hero-subtitle {
    font-size: 1.3em;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    max-width: 600px;
    margin: 0;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 40px;
    margin: 20px 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.stat-number {
    font-size: 2.5em;
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.logo h1 {
    font-size: 4.5em;
    margin: 0;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), #ff4081, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 300% 300%;
    animation: gradientAnimation 4s ease infinite;
    text-shadow: 0 0 30px rgba(106, 13, 173, 0.3);
    position: relative;
}

.logo h1::after {
    content: 'SKY CREATIVE';
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(8px);
    opacity: 0.4;
    z-index: -1;
    animation: logoGlow 3s ease-in-out infinite alternate;
}

.tagline {
    font-size: 1.5em;
    font-weight: 300;
    margin-top: 10px;
    color: var(--text-color);
    opacity: 0.9;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    animation: taglinePulse 4s ease-in-out infinite;
}

main {
    padding: 0;
}

/* ====== SEKCJA USŁUG ====== */
#uslugi {
    width: 100%;
    padding: 120px 0;
    background:
        radial-gradient(circle at 15% 35%, rgba(40,0,70,0.35) 0%, rgba(0,0,0,0) 55%),
        radial-gradient(circle at 85% 65%, rgba(10,50,120,0.28) 0%, rgba(0,0,0,0) 60%),
        linear-gradient(160deg, rgba(15,15,20,0.85) 0%, rgba(10,10,15,0.9) 55%, rgba(5,5,8,0.95) 100%);
    position: relative;
}

#uslugi .section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    z-index: 1;
    text-align: center;
}

#uslugi::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 25%, rgba(0,0,0,0) 75%, rgba(0,0,0,0.6) 100%),
        radial-gradient(circle at 50% 50%, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0) 60%);
    pointer-events: none;
    z-index: 0;
}

#uslugi h2 {
    font-size: 3em;
    margin-bottom: 70px;
    color: #fff;
}

.uslugi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.usluga {
    background: var(--card-background);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
    animation: slideInUp 1s ease-out forwards;
    opacity: 0;
}

.usluga:nth-of-type(1) { animation-delay: 0.2s; }
.usluga:nth-of-type(2) { animation-delay: 0.4s; }
.usluga:nth-of-type(3) { animation-delay: 0.6s; }
.usluga:nth-of-type(4) { animation-delay: 0.8s; }
.usluga:nth-of-type(5) { animation-delay: 1.0s; }
.usluga:nth-of-type(6) { animation-delay: 1.2s; }

.usluga:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 20px var(--primary-color), 0 0 40px var(--secondary-color);
}

.usluga h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #fff;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.usluga p {
    font-size: 1em;
    color: var(--text-color);
    opacity: 0.8;
}

/* ====== SEKCJA CTA ====== */
#cta {
    width: 100%;
    padding: 120px 0;
    background:
        radial-gradient(circle at 75% 30%, rgba(50,10,80,0.4) 0%, rgba(0,0,0,0) 60%),
        radial-gradient(circle at 25% 70%, rgba(20,60,140,0.35) 0%, rgba(0,0,0,0) 65%),
        linear-gradient(200deg, rgba(20,20,25,0.85) 0%, rgba(15,15,20,0.9) 65%, rgba(8,8,12,0.95) 100%);
    position: relative;
}

#cta .section-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 30px;
    text-align: center;
    position: relative;
    z-index: 1;
}

#cta::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 70%, rgba(0,0,0,0.5) 100%);
    pointer-events: none;
    z-index: 0;
}

#cta h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #fff;
}

/* CTA Buttons */
.cta-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 20px 35px;
    color: #fff;
    text-decoration: none;
    border-radius: 60px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid transparent;
    min-width: 280px;
    justify-content: space-between;
}

.cta-button.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 8px 32px rgba(67, 227, 233, 0.3);
}

.cta-button.primary::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;
}

.cta-button.primary:hover::before {
    left: 100%;
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.button-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.button-text {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
}

.button-subtext {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.8;
    line-height: 1.2;
}

.button-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.button-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
}

.button-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    pointer-events: none;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 45px rgba(67, 227, 233, 0.4);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 15px 45px rgba(255, 255, 255, 0.1);
}

.cta-button:hover .button-icon {
    transform: translateX(5px);
}

.cta-button:hover .button-glow {
    width: 120px;
    height: 120px;
}

.cta-button:active {
    transform: translateY(-1px);
}

/* ====== SEKCJA STATYSTYK ====== */
#stats {
    width: 100%;
    padding: 100px 0;
    background:
        radial-gradient(circle at 30% 40%, rgba(25,0,50,0.3) 0%, rgba(0,0,0,0) 50%),
        radial-gradient(circle at 70% 60%, rgba(0,30,80,0.25) 0%, rgba(0,0,0,0) 55%),
        linear-gradient(180deg, rgba(8,8,12,0.9) 0%, rgba(12,12,18,0.85) 100%);
    position: relative;
}

#stats .section-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    z-index: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-card {
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

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

.stat-number {
    font-size: 3.5em;
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1em;
    color: var(--text-color);
    opacity: 0.9;
}

/* ====== SEKCJA PROCESU ====== */
#process {
    width: 100%;
    padding: 120px 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(60,0,100,0.3) 0%, rgba(0,0,0,0) 50%),
        radial-gradient(circle at 80% 70%, rgba(0,50,120,0.25) 0%, rgba(0,0,0,0) 55%),
        linear-gradient(160deg, rgba(12,12,18,0.9) 0%, rgba(8,8,15,0.95) 100%);
    position: relative;
}

#process .section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    text-align: center;
    position: relative;
    z-index: 1;
}

#process h2 {
    font-size: 3em;
    margin-bottom: 70px;
    color: #fff;
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.process-step {
    position: relative;
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-step:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.step-icon {
    font-size: 3em;
    margin-bottom: 20px;
    filter: grayscale(0.3) brightness(1.2);
}

.process-step h3 {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: #fff;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.process-step p {
    color: var(--text-color);
    opacity: 0.8;
    line-height: 1.6;
}

/* ====== SEKCJA TESTIMONIAL ====== */
/* ====== SEKCJA CTA ====== */

/* ====== FOOTER ====== */
footer {
    width: 100%;
    padding: 60px 0;
    background:
        radial-gradient(circle at 50% 0%, rgba(30,10,50,0.5) 0%, rgba(0,0,0,0) 70%),
        linear-gradient(180deg, rgba(10,10,15,0.9) 0%, rgba(5,5,8,1) 70%);
    color: #888;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    position: relative;
}

footer::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}

footer > * {
    position: relative;
    z-index: 1;
}

.social-links a {
    color: #888;
    text-decoration: none;
    margin: 0 15px;
    font-size: 1.2em;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary-color);
}

/* ====== ANIMACJE ====== */
@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    25% { background-position: 100% 30%; }
    50% { background-position: 200% 50%; }
    75% { background-position: 100% 70%; }
    100% { background-position: 0% 50%; }
}

@keyframes logoGlow {
    0% { transform: scale(1.05); opacity: 0.2; }
    100% { transform: scale(1.1); opacity: 0.6; }
}

@keyframes taglinePulse {
    0%, 100% { opacity: 0.9; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-2px); }
}

@keyframes heroScan {
    0% { transform: translateX(-100%) skewX(-15deg); }
    100% { transform: translateX(100vw) skewX(-15deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

/* ====== UTILITY CLASSES ====== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* === SCROLL INDICATOR === */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    z-index: 10;
    animation: scrollPulse 2s ease-in-out infinite;
}

.scroll-text {
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    opacity: 0.8;
}

.scroll-arrow svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.6;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) translateY(5px);
    }
}

/* === BACK TO TOP BUTTON === */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(67, 227, 233, 0.2);
    border: 1px solid rgba(67, 227, 233, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: rgba(67, 227, 233, 0.3);
    border-color: rgba(67, 227, 233, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(67, 227, 233, 0.2);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
    stroke: rgba(255, 255, 255, 0.9);
    transition: stroke 0.3s ease;
}

.back-to-top:hover svg {
    stroke: #43e3e9;
}

/* === ANIMOWANA RAKIETA === */
.rocket-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 60px;
    height: 60px;
    z-index: 9999;
    pointer-events: none;
    transform-origin: center center;
    transition: transform 0.1s ease-out;
}

.rocket {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 10px rgba(67, 227, 233, 0.6));
    animation: rocketFloat 3s ease-in-out infinite alternate;
}

.rocket-trail {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3px;
    height: 200px;
    background: linear-gradient(to bottom, 
        rgba(67, 227, 233, 0.8) 0%,
        rgba(215, 0, 224, 0.6) 30%,
        rgba(255, 107, 53, 0.4) 60%,
        transparent 100%
    );
    transform: translate(-50%, -50%);
    border-radius: 50px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rocket-container.moving .rocket-trail {
    opacity: 1;
    animation: trailPulse 0.5s ease-in-out infinite alternate;
}

/* Animacje płomieni */
.flame {
    animation: flameFlicker 0.2s ease-in-out infinite alternate;
    transform-origin: center top;
}

.flame-1 {
    animation-delay: 0s;
}

.flame-2 {
    animation-delay: 0.1s;
}

.flame-3 {
    animation-delay: 0.05s;
}

.flame-4 {
    animation-delay: 0.02s;
}

/* Keyframes dla animacji rakiety */
@keyframes rocketFloat {
    0% { 
        transform: translateY(0px) rotate(0deg); 
        filter: drop-shadow(0 0 10px rgba(67, 227, 233, 0.6));
    }
    100% { 
        transform: translateY(-8px) rotate(2deg); 
        filter: drop-shadow(0 0 15px rgba(215, 0, 224, 0.8));
    }
}

@keyframes flameFlicker {
    0% { 
        transform: scaleY(1) scaleX(1);
        opacity: 0.9;
    }
    100% { 
        transform: scaleY(1.3) scaleX(0.8);
        opacity: 0.7;
    }
}

@keyframes trailPulse {
    0% { 
        opacity: 0.8;
        transform: translate(-50%, -50%) scaleY(1);
    }
    100% { 
        opacity: 0.4;
        transform: translate(-50%, -50%) scaleY(0.7);
    }
}

/* === PRELOADER === */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #0a0a19;
    opacity: 1;
    transition: opacity 1s ease-out, visibility 1s ease-out;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(67, 227, 233, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(215, 0, 224, 0.08) 0%, transparent 50%),
        linear-gradient(135deg, #0a0a19 0%, #1a1a2e 100%);
}

.stars, .stars2, .stars3 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.stars {
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #eee, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(67, 227, 233, 0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(215, 0, 224, 0.6), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: sparkle 3s linear infinite;
}

.stars2 {
    background-image: 
        radial-gradient(1px 1px at 40px 60px, #fff, transparent),
        radial-gradient(1px 1px at 120px 30px, rgba(67, 227, 233, 0.6), transparent),
        radial-gradient(2px 2px at 160px 90px, #eee, transparent);
    background-repeat: repeat;
    background-size: 250px 120px;
    animation: sparkle 4s linear infinite reverse;
}

.stars3 {
    background-image: 
        radial-gradient(1px 1px at 80px 20px, rgba(215, 0, 224, 0.4), transparent),
        radial-gradient(1px 1px at 180px 50px, #fff, transparent);
    background-repeat: repeat;
    background-size: 300px 150px;
    animation: sparkle 5s linear infinite;
}

.preloader-content {
    text-align: center;
    z-index: 1;
}

.rocket-launch {
    margin-bottom: 30px;
    position: relative;
}

.preloader-rocket {
    width: 120px;
    height: 120px;
    filter: drop-shadow(0 0 20px rgba(67, 227, 233, 0.8));
    animation: rocketLaunch 3s ease-out infinite;
}

.launch-flame {
    animation: launchFlameFlicker 0.1s ease-in-out infinite alternate;
    transform-origin: center top;
}

.launch-flame-1 {
    animation-delay: 0s;
}

.launch-flame-2 {
    animation-delay: 0.05s;
}

.launch-flame-3 {
    animation-delay: 0.03s;
}

.loading-text {
    margin-bottom: 30px;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
}

.loading-letter {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: letterGlow 2s ease-in-out infinite alternate;
}

.loading-letter:nth-child(1) { animation-delay: 0s; }
.loading-letter:nth-child(2) { animation-delay: 0.1s; }
.loading-letter:nth-child(3) { animation-delay: 0.2s; }
.loading-letter:nth-child(5) { animation-delay: 0.4s; }
.loading-letter:nth-child(6) { animation-delay: 0.5s; }
.loading-letter:nth-child(7) { animation-delay: 0.6s; }
.loading-letter:nth-child(8) { animation-delay: 0.7s; }
.loading-letter:nth-child(9) { animation-delay: 0.8s; }
.loading-letter:nth-child(10) { animation-delay: 0.9s; }
.loading-letter:nth-child(11) { animation-delay: 1.0s; }
.loading-letter:nth-child(12) { animation-delay: 1.1s; }

.loading-progress {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin: 0 auto;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    animation: progressFill 3s ease-out infinite;
}

/* === RAKIETA 3D === */
.rocket-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 60px;
    height: 60px;
    z-index: 5;
    pointer-events: none;
    transform-origin: center center;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
    perspective: 1000px;
    opacity: 0.7;
    visibility: visible;
    mix-blend-mode: normal;
}

/* Elementy treści mają wyższy z-index niż rakieta */
main section {
    position: relative;
    z-index: 10;
}

.service-card, .stat-card, .process-step {
    position: relative;
    z-index: 10;
}

h1, h2, h3, h4, h5, h6, p, a, button {
    position: relative;
    z-index: 10;
}

/* Rakieta staje się bardziej widoczna na ciemnym tle */
.hero .rocket-container {
    opacity: 0.8;
    mix-blend-mode: normal;
}

/* Zmniejsz widoczność rakiety nad jasnymi sekcjami */
section:not(.hero):hover ~ .rocket-container {
    opacity: 0.3;
    transition: opacity 0.5s ease;
}

.rocket {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 10px rgba(67, 227, 233, 0.6));
    animation: rocket3DFloat 4s ease-in-out infinite alternate;
    transform-style: preserve-3d;
}

.rocket-trail {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3px;
    height: 200px;
    background: linear-gradient(to bottom, 
        rgba(67, 227, 233, 0.8) 0%,
        rgba(215, 0, 224, 0.6) 30%,
        rgba(255, 107, 53, 0.4) 60%,
        transparent 100%
    );
    transform: translate(-50%, -50%);
    border-radius: 50px;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 0 20px rgba(67, 227, 233, 0.4);
}

.rocket-container.moving .rocket-trail {
    opacity: 1;
    animation: trail3DPulse 0.3s ease-in-out infinite alternate;
}

.rocket-container.loop-mode {
    animation: rocketLoop 8s ease-in-out infinite;
}

/* Animacje płomieni */
.flame {
    animation: flame3DFlicker 0.15s ease-in-out infinite alternate;
    transform-origin: center top;
    transform-style: preserve-3d;
}

/* === PRELOADER ANIMACJE === */
@keyframes sparkle {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}

@keyframes rocketLaunch {
    0% { 
        transform: translateY(20px) rotate(-5deg) scale(0.9);
        filter: drop-shadow(0 0 10px rgba(67, 227, 233, 0.4));
    }
    50% { 
        transform: translateY(-10px) rotate(2deg) scale(1.1);
        filter: drop-shadow(0 0 25px rgba(215, 0, 224, 0.8));
    }
    100% { 
        transform: translateY(20px) rotate(-5deg) scale(0.9);
        filter: drop-shadow(0 0 10px rgba(67, 227, 233, 0.4));
    }
}

@keyframes launchFlameFlicker {
    0% { 
        transform: scaleY(1) scaleX(1) rotateY(0deg);
        opacity: 0.9;
    }
    100% { 
        transform: scaleY(1.5) scaleX(0.7) rotateY(5deg);
        opacity: 0.6;
    }
}

@keyframes letterGlow {
    0% { 
        filter: brightness(1) drop-shadow(0 0 5px rgba(67, 227, 233, 0.3));
        transform: scale(1);
    }
    100% { 
        filter: brightness(1.3) drop-shadow(0 0 15px rgba(215, 0, 224, 0.6));
        transform: scale(1.05);
    }
}

@keyframes progressFill {
    0% { width: 0%; }
    90% { width: 95%; }
    100% { width: 100%; }
}

/* === RAKIETA 3D ANIMACJE === */
@keyframes rocket3DFloat {
    0% { 
        transform: translateY(0px) rotateX(0deg) rotateZ(0deg);
        filter: drop-shadow(0 0 10px rgba(67, 227, 233, 0.6));
    }
    100% { 
        transform: translateY(-6px) rotateX(2deg) rotateZ(1deg);
        filter: drop-shadow(0 0 12px rgba(215, 0, 224, 0.7));
    }
}

@keyframes flame3DFlicker {
    0% { 
        transform: scaleY(1) scaleX(1) rotateX(0deg);
        opacity: 0.9;
    }
    100% { 
        transform: scaleY(1.4) scaleX(0.8) rotateX(-10deg);
        opacity: 0.7;
    }
}

@keyframes trail3DPulse {
    0% { 
        opacity: 0.8;
        transform: translate(-50%, -50%) scaleY(1) rotateX(0deg);
        box-shadow: 0 0 20px rgba(67, 227, 233, 0.4);
    }
    100% { 
        opacity: 0.4;
        transform: translate(-50%, -50%) scaleY(0.7) rotateX(5deg);
        box-shadow: 0 0 30px rgba(215, 0, 224, 0.6);
    }
}

@keyframes rocketLoop {
    0% { 
        transform: translate(15vw, 25vh) rotate(0deg) rotateY(0deg);
    }
    25% { 
        transform: translate(70vw, 20vh) rotate(25deg) rotateY(8deg);
    }
    50% { 
        transform: translate(75vw, 45vh) rotate(90deg) rotateY(15deg) scale(1.1);
    }
    75% { 
        transform: translate(25vw, 50vh) rotate(180deg) rotateY(8deg);
    }
    100% { 
        transform: translate(15vw, 25vh) rotate(360deg) rotateY(0deg);
    }
}

/* Kotwice dla smooth scroll */
#kontakt {
    position: absolute;
    top: -100px;
    visibility: hidden;
}
