/* Global Styles */
:root {
    --primary-orange: #FF9F1C;
    --primary-green: #2EC4B6;
    --primary-purple: #9B5DE5;
    --secondary-blue: #CBF3F0;
    --secondary-yellow: #FFBF69;
    --text-dark: #2B2D42;
    --text-light: #8D99AE;
    --white: #FFFFFF;
    --off-white: #F8F9FA;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --radius-lg: 1rem;
    --radius-md: 0.5rem;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    background-color: var(--off-white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    color: var(--text-dark);
}

h2 {
    font-size: 2.25rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-orange);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

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

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-orange);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 159, 28, 0.4);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 159, 28, 0.6);
}

.section-padding {
    padding: 80px 0;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    /* Spacing between logo and text */
}

.logo img {
    height: 60px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-green);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.bar {
    width: 30px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('../assets/zdj8.jpeg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero h1 {
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 50px 0 20px;
}

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

.footer-col h3 {
    color: var(--primary-orange);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--primary-orange);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: var(--text-light);
}

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

.feature-item {
    background: var(--white);
    padding: 30px 20px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.feature-item h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.feature-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Offer/Info Section */
.bg-light {
    background-color: var(--off-white);
}

.offer-layout {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.offer-image,
.offer-content {
    flex: 1;
    min-width: 300px;
}

.offer-list {
    margin-top: 20px;
}

.offer-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.offer-list li i {
    color: var(--primary-green);
    font-size: 1.2rem;
}

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

    .nav-links {
        position: absolute;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    }

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

    h1 {
        font-size: 2.5rem;
    }

    .offer-layout {
        flex-direction: column;
    }

    .doc-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .doc-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .download-btn {
        width: 100%;
        text-align: center;
        display: block;
    }
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-item {
    height: 250px;
    overflow: hidden;
    border-radius: var(--radius-md);
    cursor: pointer;
    position: relative;
    box-shadow: var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1000px;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2001;
}

.close-lightbox:hover,
.close-lightbox:focus {
    color: var(--primary-orange);
    text-decoration: none;
    cursor: pointer;
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
    z-index: 2002;
    background-color: rgba(0, 0, 0, 0.3);
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev {
    left: 0;
    border-radius: 0 3px 3px 0;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

@media only screen and (max-width: 700px) {
    .lightbox-content {
        width: 100%;
    }
}

/* Skills Section */
.skills-section {
    background-color: #FFF8E1;
    padding: 80px 0;
    position: relative;
    border-top-left-radius: 50% 20px;
    border-top-right-radius: 50% 20px;
}

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

.skill-card {
    background: var(--white);
    padding: 40px 35px;
    border-radius: 35px;
    text-align: left;
    transition: all 0.4s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.skill-card .icon-check {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.skill-card h3 {
    margin-bottom: 15px;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-dark);
}

.skill-card p {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Blue Theme */
.skill-card.blue-theme {
    border: 3px dashed #4FC3F7;
}

.skill-card.blue-theme .icon-check {
    background-color: #4FC3F7;
    box-shadow: 0 8px 20px rgba(79, 195, 247, 0.3);
}

/* Pink/Green Theme */
.skill-card.pink-theme {
    border: 3px dashed #F06292;
}

.skill-card.pink-theme .icon-check {
    background-color: #9CCC65;
    box-shadow: 0 8px 20px rgba(156, 204, 101, 0.3);
}

/* Yellow Theme */
.skill-card.yellow-theme {
    border: 3px dashed #FFD54F;
}

.skill-card.yellow-theme .icon-check {
    background-color: #FFD54F;
    box-shadow: 0 8px 20px rgba(255, 213, 79, 0.3);
}

/* Recruitment Section */
.recruitment-section {
    padding: 80px 0;
    background: var(--white);
    text-align: center;
}

.recruitment-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.step {
    padding: 20px;
}

.step-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--white);
}

.step h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.step p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.step-link {
    color: var(--primary-orange);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid var(--primary-orange);
    transition: var(--transition);
}

.step-link:hover {
    color: var(--primary-purple);
    border-color: var(--primary-purple);
}

/* Step Icons Colors - approximate from screenshot */
.step-icon.orange-bg {
    background-color: #FFCC80;
    /* Light Orange */
    color: #E65100;
}

.step-icon.green-bg {
    background-color: #E0F2F1;
    /* Very Light Teal */
    color: #00695C;
}

.step-icon.purple-bg {
    background-color: #E1BEE7;
    /* Light Purple */
    color: #4A148C;
}

.step-icon.red-bg {
    background-color: #FFCDD2;
    /* Light Red */
    color: #B71C1C;
}

/* WWR Page Specifics */
.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../assets/zdj11.jpeg') no-repeat center center/cover;
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin-top: 80px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.wwr-hero {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.wwr-hero p {
    font-size: 1.1rem;
    color: var(--text-light);
}

.wwr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

/* Steps Section (Jak skorzystać) */
.steps-section {
    padding: 80px 0;
    background-color: var(--off-white);
    border-radius: var(--radius-lg);
    margin-top: 40px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 50px;
    margin-top: 60px;
}

.step-item {
    position: relative;
    padding-left: 10px;
    z-index: 1;
}

.step-number {
    font-size: 8rem;
    font-weight: 700;
    color: #FFE0B2;
    /* Pale orange */
    opacity: 0.5;
    position: absolute;
    top: -55px;
    left: -20px;
    line-height: 1;
    z-index: -1;
    font-family: sans-serif;
}

.step-content {
    position: relative;
    padding-top: 15px;
}

.step-content h4 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 15px;
}

/* Therapy Cards (WWR) */
.therapy-card {
    background: var(--white);
    padding: 30px 25px;
    border-radius: var(--radius-md);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.therapy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.therapy-icon {
    font-size: 3rem;
    /* Larger icon */
    color: var(--primary-purple);
    /* Colorful icon */
    margin-bottom: 10px;
    display: inline-block;
}

/* Alternate colors for variety if desired, or keep uniform. 
   User asked to "add color", so uniform purple is a start, 
   but varying colors might be nicer. Let's start with Purple as base. */

.therapy-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.therapy-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0;
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

/* Base state - hidden */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* When element is visible */
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fade In Up */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fade In Left */
.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Fade In Right */
.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Scale In */
.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scale-in.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* Staggered children animation delays */
.stagger-children>*:nth-child(1) {
    transition-delay: 0.1s;
}

.stagger-children>*:nth-child(2) {
    transition-delay: 0.2s;
}

.stagger-children>*:nth-child(3) {
    transition-delay: 0.3s;
}

.stagger-children>*:nth-child(4) {
    transition-delay: 0.4s;
}

.stagger-children>*:nth-child(5) {
    transition-delay: 0.5s;
}

.stagger-children>*:nth-child(6) {
    transition-delay: 0.6s;
}

.stagger-children>*:nth-child(7) {
    transition-delay: 0.7s;
}

.stagger-children>*:nth-child(8) {
    transition-delay: 0.8s;
}

/* Hero text animation */
.hero-content {
    animation: heroFadeIn 1s ease-out forwards;
}

@keyframes heroFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll effect */
.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Floating Phone Button (Mobile Only) */
.floating-phone {
    display: none;
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-green), #1BA39C);
    color: var(--white);
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(46, 196, 182, 0.5);
    z-index: 999;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.floating-phone:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(46, 196, 182, 0.7);
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(46, 196, 182, 0.5);
    }

    50% {
        box-shadow: 0 4px 30px rgba(46, 196, 182, 0.8);
    }

    100% {
        box-shadow: 0 4px 20px rgba(46, 196, 182, 0.5);
    }
}

/* Show only on mobile */
@media (max-width: 768px) {
    .floating-phone {
        display: flex;
    }
}