/* RESET + PODSTAWY */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    overflow-x: hidden;
    color: #333;
    background-color: #f5f5f7;
}

/* STYL GWIAZD */
.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0.8;
    filter: blur(0.5px);
    pointer-events: none;
}

/* HERO SECTION */
.hero {
    height: 100vh;
    width: 100%;
    background: linear-gradient(135deg, #000000, #1a1a1a);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 24px;
}

.hero h1 {
    font-size: 56px;
    font-weight: 600;
    margin-bottom: 16px;
    background: linear-gradient(to right, #D4CA05, #2B7A87);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: fadeUp 1s ease backwards;
}

.hero p {
    font-size: 24px;
    line-height: 1.5;
    margin-bottom: 32px;
    opacity: 0.9;
    animation: fadeUp 1s ease 0.2s backwards;
}

.btn {
    background: white;
    color: black;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: fadeUp 1s ease 0.4s backwards;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Who We Are Section Styles */
.who-we-are-section {
    padding: 120px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #fff;
}

.who-we-are-container {
    max-width: 1300px;
    width: 100%;
}

.who-we-are-heading {
    text-align: center;
    margin-bottom: 60px;
}

.who-we-are-heading h2 {
    font-size: 48px;
    font-weight: 600;
    color: #1d1d1f;
    position: relative;
    display: inline-block;
}

.who-we-are-heading h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #D4CA05, #2B7A87);
}

.who-we-are-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.who-we-are-text {
    flex: 1;
    max-width: 600px;
}

.who-we-are-text p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #444;
}

.who-we-are-text .intro-text {
    font-size: 20px;
    font-weight: 500;
    color: #2B7A87;
    margin-bottom: 24px;
}

/* Slideshow styles */
.slideshow-container {
    flex: 1;
    max-width: 600px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    height: 400px;
}

.slides-wrapper {
    display: flex;
    width: 400%;
    transition: transform 0.6s ease;
    height: 100%;
}

.slide {
    width: 25%;
    position: relative;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    font-size: 14px;
    text-align: center;
}

.slide-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    pointer-events: none;
}

.slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    pointer-events: auto;
    transition: background 0.3s;
}

.slide-arrow:hover {
    background: rgba(255, 255, 255, 0.6);
}

.prev-arrow {
    left: 15px;
}

.next-arrow {
    right: 15px;
}

.rocket-video {
    background: #000;
    padding: 120px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.video-container {
    max-width: 1200px;
    width: 100%;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.video-text {
    color: white;
    text-align: center;
    margin-bottom: 60px;
}

.video-text h2 {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 16px;
}

.video-text p {
    font-size: 20px;
    line-height: 1.5;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

.video-placeholder {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    background: #111;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.video-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
    transition: opacity 0.5s ease;
}

.video-placeholder .spinner-container {
    perspective: 800px;
    width: 100px;
    height: 100px;
}

.video-placeholder .cube {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: rotate 8s infinite linear;
    transform-origin: center center;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s;
    z-index: 6;
}

.play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.play-btn::after {
    content: '';
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 25px solid white;
    margin-left: 5px;
}

.gallery {
    padding: 120px 24px;
    background: #f5f5f7;
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-heading {
    text-align: center;
    margin-bottom: 60px;
}

.gallery-heading h2 {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1d1d1f;
}

.gallery-heading p {
    font-size: 20px;
    line-height: 1.5;
    color: #86868b;
    max-width: 700px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transform: translateY(50px);
    opacity: 0;
    transition: transform 0.8s ease, opacity 0.8s ease;
}

.gallery-item.visible {
    transform: translateY(0);
    opacity: 1;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.gallery-item-content {
    padding: 24px;
}

.gallery-item h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1d1d1f;
}

.gallery-item p {
    font-size: 14px;
    line-height: 1.6;
    color: #86868b;
}

.project-card {
    display: block;
    text-decoration: none;
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    cursor: pointer;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-card img {
    transition: transform 0.5s ease;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-card .gallery-item-content {
    position: relative;
    z-index: 2;
    background: white;
    padding: 24px;
    height: 110px;
    display: flex;
    flex-direction: column;
}

.project-card:hover .gallery-item-content {
    background: linear-gradient(135deg, #f8f8f8, #ffffff);
}

.project-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1d1d1f;
    transition: color 0.3s ease;
}

.project-card:hover h3 {
    color: #2B7A87;
}

.project-card p {
    font-size: 14px;
    line-height: 1.6;
    color: #86868b;
    margin: 0;
}

.gallery-grid a.gallery-item {
    color: inherit;
    display: block;
}

.cta {
    background: linear-gradient(135deg, #2B7A87, #000000);
    padding: 120px 24px;
    color: white;
    text-align: center;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 16px;
    background: linear-gradient(to right, #D4CA05, #2B7A87);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cta p {
    font-size: 20px;
    line-height: 1.5;
    opacity: 0.9;
    margin-bottom: 32px;
}

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

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

@media (max-width: 768px) {
    .hero h1 {
        font-size: 40px;
    }

    .hero p {
        font-size: 18px;
    }

    .who-we-are-heading h2,
    .video-text h2,
    .gallery-heading h2,
    .cta h2 {
        font-size: 36px;
    }

    .who-we-are-content {
        flex-direction: column;
    }

    .who-we-are-text,
    .slideshow-container {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 32px;
    }
}
