/* Main Styles.css */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
    /* Account for sticky header */
}

/* --- Global Styles --- */
body {
    font-family: var(--font-body);
    background-color: var(--color-bg-dark);
    color: var(--color-text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

section {
    padding: var(--spacing-lg) 0;
}

.text-center {
    text-align: center;
}

.subtitle {
    font-weight: 500;
    color: var(--color-primary-orange);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--spacing-xs);
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.btn-cta {
    background: var(--gradient-primary);
    color: white;
}

.btn-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(255, 153, 54, 0.4);
}

/* --- Typography --- */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 1.1;
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 2rem);
}

.gradient-text {
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Navigation --- */
#main-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--spacing-sm) 0;
    backdrop-filter: blur(10px);
    background: rgba(10, 17, 40, 0.8);
    transition: all 0.3s ease;
}

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

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    background: var(--gradient-mixed);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
}

.nav-links a {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-primary-orange);
}

/* --- Hero Section --- */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 70% 30%, rgba(0, 93, 175, 0.2), transparent 45%),
        radial-gradient(circle at 20% 70%, rgba(255, 153, 54, 0.15), transparent 45%);
    background-color: var(--color-bg-dark);
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    /* Don't block clicks on buttons */
}

.hero-content {
    position: relative;
    z-index: 10;
    /* Above canvas */
    max-width: 800px;
    text-align: center;
    padding: 2rem;
}

/* Ensure text is readable over 3D background */
#hero h1,
#hero .subtitle,
#hero .description {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

#hero .description {
    font-size: 1.2rem;
    color: var(--color-text-light);
    margin: 0 auto var(--spacing-md);
    max-width: 600px;
}

/* CTA button extra emphasis */
#hero .btn-cta {
    position: relative;
    z-index: 15;
    box-shadow: 0 4px 20px rgba(255, 153, 54, 0.4);
    transition: all 0.3s ease;
}

#hero .btn-cta:hover {
    box-shadow: 0 6px 30px rgba(255, 153, 54, 0.6);
    transform: translateY(-2px) scale(1.05);
}

/* --- About Section --- */
#about {
    background: var(--color-bg-deep);
}

.about-flex {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
}

.profile-image-container {
    flex: 0 0 400px;
    height: 500px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.profile-image-container:hover .profile-image {
    transform: scale(1.05);
}

.text-content h2 {
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

.about-flex .text-content p {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-light);
}

/* --- App Section --- */
#app {
    background: var(--color-bg-deep);
    perspective: 1200px;
    position: relative;
}

.app-description {
    max-width: 800px;
    margin: var(--spacing-md) auto;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.game-card {
    background: rgba(74, 144, 226, 0.1);
    padding: var(--spacing-sm);
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(74, 144, 226, 0.2);
    transition: transform 0.3s ease;
}

.game-card:hover {
    transform: scale(1.05);
    background: rgba(74, 144, 226, 0.2);
}

/* --- Why Section --- */
#why {
    position: relative;
    perspective: 1200px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.why-item {
    display: flex;
    gap: var(--spacing-sm);
    align-items: flex-start;
}

.why-icon {
    flex: 0 0 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.why-item:hover .why-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 93, 175, 0.3);
    border-color: var(--color-primary-blue);
}

.why-text h4 {
    margin-bottom: 0.25rem;
}

.why-text p {
    color: var(--color-text-gray);
}

/* --- Contact Section --- */
.contact-info {
    margin: var(--spacing-md) 0;
    font-size: 1.2rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.btn-contact-large {
    background: var(--gradient-primary);
    color: white;
    font-size: 1.25rem;
    padding: 1.5rem 3rem;
}

/* --- Footer --- */
footer {
    padding: var(--spacing-lg) 0;
    border-top: none;
    background: linear-gradient(135deg,
            var(--color-primary-blue) 0%,
            #003d75 100%);
    position: relative;
    z-index: 10;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-text-gray);
    font-size: 0.9rem;
}

/* --- Responsive --- */
@media (max-width: 1023px) {
    .about-flex {
        flex-direction: column;
        text-align: center;
    }

    .profile-image-placeholder {
        flex: 0 0 300px;
        width: 100%;
        max-width: 400px;
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .nav-links {
        display: none;
        /* Hamburger would go here */
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ===== SCROLL ANIMATIONS ===== */

/* Section animations (Overlapping Stack Effect) */
.section-hidden {
    opacity: 0.1;
    transform: translateY(10vh) scale(0.98);
    transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 1;
    position: relative;
}

.section-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    z-index: 5;
}

section {
    position: relative;
    background-color: var(--color-bg-deep);
    /* Fallback */
}

/* Generic element reveals (Staggered) */
.el-hidden {
    opacity: 0;
    transform: translateY(30px) translateZ(-50px) rotateX(10deg);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
        transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.el-visible {
    opacity: 1;
    transform: translateY(0) translateZ(0) rotateX(0);
}

/* Navbar scroll state */
nav {
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

nav.nav-scrolled {
    background-color: rgba(5, 10, 29, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Parallax smooth transitions */
#hero-canvas {
    transition: transform 0.1s ease-out;
    will-change: transform;
}

#hero .hero-content {
    transition: opacity 0.3s ease-out;
    will-change: opacity;
}

/* Typography Reveals */
.reveal-text {
    opacity: 0;
    transform: translateY(30px) translateZ(0);
    transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1),
        transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.section-visible .reveal-text,
#hero .reveal-text {
    opacity: 1;
    transform: translateY(0);
}

#hero .reveal-text:nth-child(1) {
    transition-delay: 0.1s;
}

#hero .reveal-text:nth-child(2) {
    transition-delay: 0.3s;
}

#hero .reveal-text:nth-child(3) {
    transition-delay: 0.5s;
}

#hero .reveal-text:nth-child(4) {
    transition-delay: 0.7s;
}

/* Performance optimization */
section,
.offer-card,
.game-card,
.why-item {
    will-change: transform, opacity;
}

/* Accessibility: Reduced motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .section-hidden,
    .card-hidden {
        opacity: 1;
        transform: none;
    }
}

/* ===== SECTION 3D BACKGROUNDS ===== */

#about {
    position: relative;
    perspective: 1200px;
    overflow: hidden;
}

.section-3d-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.6;
}

#about>*:not(.section-3d-bg) {
    position: relative;
    z-index: 10;
}

/* Card 3D Icons */
.card-3d-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-3d-icon canvas {
    display: block;
}

/* Hide 3D backgrounds on mobile for performance */
@media (max-width: 767px) {
    .section-3d-bg {
        display: none;
    }

    .card-3d-icon {
        display: none;
    }
}

/* Tablet - reduce opacity */
@media (min-width: 768px) and (max-width: 1023px) {
    .section-3d-bg {
        opacity: 0.4;
    }
}

/* ===== APP SECTION ===== */

#app {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(180deg,
            rgba(10, 17, 40, 1) 0%,
            rgba(20, 30, 60, 1) 100%);
}

.app-subtitle {
    margin-bottom: var(--spacing-lg);
}

/* App Showcase */
.app-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    margin-bottom: var(--spacing-xl);
}

.app-description h3 {
    margin-bottom: var(--spacing-md);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.app-features {
    list-style: none;
    padding: 0;
    margin: var(--spacing-md) 0;
}

.app-features li {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: var(--spacing-xs) 0;
    font-size: 1.1rem;
}

.coming-soon-badge {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: var(--spacing-md);
    box-shadow: 0 4px 15px rgba(255, 153, 54, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Screenshot Carousel */
/* Screenshot Carousel - BARDZO DUŻY MOCKUP */
.app-screenshots {
    position: relative;
    max-width: 800px;
    /* ZWIĘKSZONE do 800px */
    margin: 0 auto;
}

.screenshot-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 19.5;
    /* iPhone aspect ratio */
    background: #1a1a1a;
    border-radius: 50px;
    /* WIĘKSZE zaokrąglenia */
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7);
    border: 10px solid #2a2a2a;
    /* Grubsza ramka */
}

.screenshot {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.screenshot.active {
    opacity: 1;
}

.screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Carousel Navigation */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 1rem;
    /* ZWIĘKSZONE */
    margin-top: 2.5rem;
    /* ZWIĘKSZONE */
}

.dot {
    width: 16px;
    /* ZWIĘKSZONE */
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--color-primary-orange);
    transform: scale(1.4);
    /* ZWIĘKSZONE */
}

.dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.25);
    border: none;
    color: white;
    font-size: 3rem;
    /* WIĘKSZY font */
    width: 60px;
    /* WIĘKSZE przyciski */
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.15);
}

.carousel-arrow.prev {
    left: -30px;
}

.carousel-arrow.next {
    right: -30px;
}

/* Kompaktowa galeria ikon gier */
.app-games-compact {
    margin-top: var(--spacing-xl);
    text-align: center;
}

.app-games-compact h3 {
    font-size: 1.8rem;
    color: var(--color-text-white);
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}

.games-icon-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: var(--spacing-md);
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.game-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    transition: transform 0.3s ease;
}

.game-icon-item:hover {
    transform: translateY(-8px);
}

.game-icon-item img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.game-icon-item:hover img {
    box-shadow: 0 12px 36px rgba(255, 107, 53, 0.4);
    transform: scale(1.05);
}

.game-icon-item span {
    font-size: 0.85rem;
    color: var(--color-text-gray);
    text-align: center;
    font-weight: 500;
    line-height: 1.3;
}

/* ===== RESPONSIVE - POPRAWIONE ROZMIARY - REDUKCJA O 20% ===== */

/* Large Desktop */
@media (min-width: 1400px) {
    .app-screenshots {
        max-width: 720px;
        /* Zredukowano z 900px */
    }
}

/* Desktop */
@media (max-width: 1200px) {
    .app-screenshots {
        max-width: 640px;
        /* Zredukowano z 800px */
    }
}

/* Tablet - LANDSCAPE (poziomo) */
@media (max-width: 1023px) and (orientation: landscape) {
    .app-showcase {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .app-screenshots {
        max-width: 880px;
        /* Zredukowano z 1100px */
        width: 90%;
    }

    .screenshot-carousel {
        border-radius: 40px;
        border-width: 8px;
    }

    .carousel-arrow {
        width: 50px;
        height: 50px;
        font-size: 2.2rem;
    }

    .carousel-arrow.prev {
        left: -25px;
    }

    .carousel-arrow.next {
        right: -25px;
    }
}

/* Tablet - PORTRAIT (pionowo) */
@media (max-width: 1023px) and (orientation: portrait) {
    .app-showcase {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .app-screenshots {
        max-width: 440px;
        /* Zredukowano z 550px */
        width: 85%;
        margin: 0 auto;
    }

    .screenshot-carousel {
        border-radius: 35px;
        border-width: 8px;
    }

    .carousel-arrow {
        width: 45px;
        height: 45px;
        font-size: 2rem;
    }

    .carousel-arrow.prev {
        left: -22px;
    }

    .carousel-arrow.next {
        right: -22px;
    }

    .carousel-dots {
        margin-top: 1.5rem;
    }

    .dot {
        width: 12px;
        height: 12px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .app-screenshots {
        max-width: 380px;
        /* Zredukowano z 480px */
        width: 85%;
        margin: 0 auto;
    }

    .screenshot-carousel {
        border-radius: 30px;
        border-width: 6px;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.8rem;
    }

    .carousel-arrow.prev {
        left: 10px;
    }

    .carousel-arrow.next {
        right: 10px;
    }

    .carousel-dots {
        gap: 0.6rem;
        margin-top: 1.5rem;
    }

    .dot {
        width: 11px;
        height: 11px;
    }
}

/* Responsive dla galerii ikon */
@media (max-width: 1023px) {
    .games-icon-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--spacing-sm);
    }

    .app-games-compact h3 {
        font-size: 1.6rem;
    }
}

@media (max-width: 767px) {
    .games-icon-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-xs);
    }

    .app-games-compact h3 {
        font-size: 1.4rem;
    }

    .game-icon-item span {
        font-size: 0.75rem;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .app-screenshots {
        max-width: 350px;
        /* Zredukowano z 450px */
        width: 90%;
    }

    .screenshot-carousel {
        border-radius: 25px;
        border-width: 5px;
    }

    .games-icon-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xs);
    }

    .game-icon-item span {
        font-size: 0.7rem;
    }
}

/* Very small mobile */
@media (max-width: 374px) {
    .app-screenshots {
        max-width: 320px;
        /* Zredukowano z 400px */
    }
}

/* ===== CONTACT SECTION ===== */
#contact {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(180deg,
            var(--color-bg-dark) 0%,
            var(--color-primary-blue) 100%);
    text-align: center;
}

#contact h2 {
    font-size: 3rem;
    color: var(--color-text-white);
    margin-bottom: var(--spacing-lg);
}

.contact-simple {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    font-size: 1.2rem;
    color: var(--color-text-white);
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    /* Reduced from 0.8rem */
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.02);
}

.nav-logo {
    height: 65px;
    /* Maximum clarity for math details */
    width: auto;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    /* Sharpen logo on high-res screens */
    image-rendering: crisp-edges;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    margin-right: -20px;
    /* Pull text closer to the graphic inside the image */
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
}

.brand-orange {
    color: var(--color-primary-orange);
}

.brand-blue {
    color: #3b82f6;
    /* Consistent with logo's vibrant blue */
}

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

.contact-link {
    color: var(--color-text-white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--color-primary-orange);
}

.contact-text {
    font-weight: 500;
}

.contact-cta {
    margin-top: var(--spacing-lg);
}

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 100%;
        background: rgba(10, 17, 40, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
    }

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

    .nav-links a {
        font-size: 1.5rem;
    }
}

/* Specific centering for phone screens (small mobiles) */
@media (max-width: 500px) {
    .nav-content {
        flex-direction: column;
        gap: var(--spacing-sm);
        padding: 1rem;
    }

    .logo-link {
        margin-right: 0;
        /* Clear the previous negative margin specifically for mobile if needed, 
                           but keeping it might be okay if centered as a block. 
                           Actually, let's reset it for centering. */
    }

    .nav-logo {
        margin-right: -10px;
        /* Reduced negative margin for mobile symmetry */
    }

    .mobile-toggle {
        position: absolute;
        right: 1.5rem;
        top: 1.8rem;
    }
}

@media (max-width: 767px) {
    #contact h2 {
        font-size: 2.2rem;
    }

    .contact-item {
        font-size: 1rem;
        flex-direction: column;
        gap: 0.3rem;
    }

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

    .btn-large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    /* Mobile Centering Polish */
    #about .reveal-text {
        text-align: center;
    }

    .app-description {
        text-align: center;
    }

    .app-features {
        display: inline-block;
        text-align: left;
        margin: 0 auto;
    }

    .app-description h3 {
        color: var(--color-primary-orange);
    }
}

/* Specific centering for tablets and mobile */
@media (max-width: 1023px) {
    .app-description {
        text-align: center;
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
    }

    .app-features {
        display: inline-block;
        text-align: left;
        margin: 0 auto;
    }

    .app-features li {
        display: flex;
        flex-direction: row;
        /* Ensure side-by-side */
        align-items: center;
        justify-content: flex-start;
        text-align: left;
        font-size: 1.2rem;
        margin-bottom: var(--spacing-sm);
        width: 100%;
        /* Ensure it takes full width of the parent */
    }
}

.feature-icon {
    width: 32px;
    height: 32px;
    margin-right: 12px;
    object-fit: contain;
    vertical-align: middle;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

@media (max-width: 1023px) {
    .feature-icon {
        width: 48px;
        /* Increased icon size for tablet/mobile */
        height: 48px;
        margin-right: 18px;
    }
}

.feature-icon:hover {
    transform: scale(1.2) rotate(5deg);
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--color-primary-orange);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
}

.scroll-top-btn.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background-color: #ff851b;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(255, 153, 54, 0.5);
}

.scroll-top-btn svg {
    transition: transform 0.3s ease;
}

.scroll-top-btn:hover svg {
    transform: translateY(-2px);
}

/* Ensure it doesn't overlap with map controls on small screens if needed */
@media (max-width: 767px) {
    .scroll-top-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* ===== FOOTER ===== */
footer {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(180deg,
            var(--color-primary-blue) 0%,
            #003d75 100%);
    position: relative;
    z-index: 10;
    margin-top: -1px;
    /* Seamless stitch */
}

/* Google Maps */
.footer-map {
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.footer-map h3 {
    color: var(--color-text-white);
    font-size: 1.8rem;
    margin-bottom: var(--spacing-md);
}

.footer-map iframe {
    width: 100%;
    max-width: 1000px;
    height: 400px;
    border-radius: 15px;
}

.map-address {
    margin-top: var(--spacing-sm);
    color: var(--color-text-gray);
    font-size: 0.95rem;
}

/* Social Media */
.footer-social {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.footer-social h3 {
    color: var(--color-text-white);
    font-size: 1.8rem;
    margin-bottom: var(--spacing-md);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--color-text-white);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.social-link:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 153, 54, 0.3);
}

.social-link svg {
    flex-shrink: 0;
}

.social-link span {
    font-size: 1rem;
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: var(--spacing-lg);
}

.footer-bottom p {
    color: var(--color-text-gray);
    font-size: 0.9rem;
    margin: 0.3rem 0;
}

.footer-link a {
    color: var(--color-primary-orange);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link a:hover {
    color: var(--color-primary-blue);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 767px) {
    .footer-map iframe {
        height: 300px;
        border-radius: 10px;
    }

    .footer-social h3,
    .footer-map h3 {
        font-size: 1.5rem;
    }

    .social-links {
        gap: var(--spacing-sm);
    }

    .social-link {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }

    .social-link span {
        display: none;
        /* Ukryj tekst na mobile, zostaw tylko ikony */
    }

    .social-link svg {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 480px) {
    .footer-map iframe {
        height: 250px;
    }

    .social-link {
        padding: 0.6rem 1rem;
    }
}

.map-container {
    margin-bottom: var(--spacing-md);
    border-radius: 20px;
    overflow: hidden;
}

.map-cta {
    margin-top: var(--spacing-md);
}

.btn-route {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-white);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-route:hover {
    background: var(--color-primary-orange);
    border-color: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

@media (max-width: 1023px) {
    .profile-image-container {
        flex: 0 0 300px;
        height: 400px;
    }
}

@media (max-width: 767px) {
    .profile-image-container {
        flex: 0 0 100%;
        max-width: 400px;
        height: 450px;
        margin: 0 auto;
    }

    .about-flex {
        flex-direction: column;
        text-align: center;
    }
}