:root {
    --color-orange: #EF7F11;
    --color-orange-dark: #f0a711;
    --color-blue: #4040B2;
    --color-blue-light: #5d5dff;
    --color-dark-blue: #01003D;
    --color-dark: #222;
    --color-light: #f4f6f8;
    --color-red: #d32f2f;
    --color-light-red: #ffe5e5;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.1);
    --radius-md: 12px;
    --radius-lg: 20px;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--color-dark);
    line-height: 1.7;
    background-color: #fff;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

h1, h2, h3, h4, .font-heading {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 15px rgba(239, 127, 17, 0.3);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.btn-orange {
    background: linear-gradient(135deg, var(--color-orange) 0%, var(--color-orange-dark) 100%);
    color: white !important;
    border: none;
}

.btn-orange:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(239, 127, 17, 0.4);
}

/* Menu */
header {
    background: rgba(255, 255, 255, 0.98);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    padding: 15px 0;
    backdrop-filter: blur(10px);
}

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

.logo img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    font-weight: 600;
    font-size: 15px;
    color: var(--color-dark);
    position: relative;
}

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

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

.nav-links a.btn-orange::after {
    display: none;
}

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

@media(max-width: 900px) {
    nav {
        flex-direction: column;
        gap: 15px;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Hero */
.hero {
    padding: 100px 0 80px;
    background-color: #fff;
    background: radial-gradient(circle at top right, rgba(64, 64, 178, 0.05), transparent 40%),
                radial-gradient(circle at bottom left, rgba(239, 127, 17, 0.05), transparent 40%);
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-direction: column-reverse; /* Text bottom, image top on mobile if desired, but here usually Text top. Previous code had column-reverse which puts text bottom if text is first in HTML? No.
    Flex direction column reverse: The main-start and main-end lines are swapped.  If items are 1(text), 2(img). Visual order is 2(img), 1(text).
    */
}

@media(min-width: 768px) {
    .hero-content {
        flex-direction: row;
    }
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 1.8rem; /* Adjusted for mobile */
    margin-bottom: 25px;
    color: var(--color-blue);
    line-height: 1.25;
}

@media(min-width: 768px) {
    .hero-text h1 {
        font-size: 2.2rem;
    }
}

.text-orange {
    color: var(--color-orange);
}

.hero-image {
    flex: 1;
    text-align: center;
    position: relative;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    left: 20px;
    bottom: -20px;
    background: var(--color-blue);
    z-index: 0;
    border-radius: 20px;
    opacity: 0.1;
    transform: rotate(-2deg);
}

.name-badge {
    position: absolute;
    bottom: 20px;
    right: 10px;
    background: linear-gradient(245deg, var(--color-blue) 0%, var(--color-dark-blue) 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.0rem;
    box-shadow: 0 4px 15px var(--color-blue);
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

.name-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--color-blue);
}

.hero-image img {
    max-width: 100%;
    border-radius: 15px;
    max-height: 400px;
    object-fit: cover;
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-soft);
}

/* Hook */
.hook {
    padding: 80px 0;
    background-color: var(--color-light);
}

.hook-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

@media(min-width: 768px) {
    .hook-content {
        flex-direction: row;
        align-items: start;
    }
}

.hook-left {
    flex: 1;
    background: #fff;
    padding: 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(211, 47, 47, 0.1);
}

.hook-stat {
    font-size: 4rem; /* Adjusted for mobile */
    background: -webkit-linear-gradient(45deg, var(--color-red), #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 10px;
}

@media(min-width: 768px) {
    .hook-stat {
        font-size: 7rem;
    }
}

.hook-remark {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.hook-right {
    flex: 1.5;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.hook-sources {
    font-size: 0.8rem;
    color: #666;
    margin-top: 10px;
}

.hook-sources a {
    text-decoration: underline;
}

/* O szkoleniu */
.training {
    padding: 100px 0;
    background-color: #fff; /* Ensure it stays white */
}

.training h2 {
    font-size: 2.4rem;
    margin-bottom: 30px;
    color: var(--color-dark-blue);
    text-align: center;
}

/* Timeline specific styles */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 50px auto 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #f0f0f0;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 4px;
}

.timeline-container {
    padding: 0px 40px; /* Reduced vertical padding for tighter look */
    position: relative;
    background-color: inherit;
    width: 50%;
    box-sizing: border-box;
    margin-bottom: 20px; /* Small margin to separate items */
}

.timeline-container.left {
    left: 0;
    display: flex;
    justify-content: flex-end;
}

.timeline-container.right {
    left: 50%;
    display: flex;
    justify-content: flex-start;
}

.timeline-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    right: -30px;
    background-color: white;
    border: 3px solid var(--color-light);
    top: 20px;
    border-radius: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 5px white;
    transition: all 0.3s ease;
}

.timeline-icon:hover {
    border-color: var(--color-blue);
    box-shadow: 0 0 10px var(--color-blue);
    transform: scale(1.0);
}

.timeline-container.right .timeline-icon {
    left: -30px;
}

.timeline-icon img {
    width: 32px;
    height: 32px;
}

.timeline-content {
    padding: 25px;
    background: white;
    position: relative;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    width: 100%;
    transition: transform 0.3s;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.timeline-content h3 {
    color: var(--color-orange);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.timeline-content p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

@media screen and (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }

    .timeline-container {
        width: 100%;
        padding-left: 80px;
        padding-right: 15px;
    }

    .timeline-container.right {
        left: 0;
    }

    .timeline-container.left {
        justify-content: flex-start;
    }

    .timeline-icon {
        left: 0;
        right: auto;
    }

    .timeline-container.right .timeline-icon {
        left: 0;
    }
}

/* Takeaways Section */
.takeaways {
    padding: 80px 0;
    background-color: var(--color-light);
}

.takeaways h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--color-dark-blue);
    font-size: 2.2rem;
}

.takeaways-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.takeaway-card {
    background: white;
    padding: 35px 20px; /* Reduced padding for mobile */
    border-radius: var(--radius-lg);
    width: 100%;       /* Fluid width */
    max-width: 320px;  /* Max width constraint */
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    transition: all 0.3s ease;
    border-top: 5px solid transparent;
}

.takeaway-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-top-color: var(--color-orange);
}

.check-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-orange) 0%, var(--color-orange-dark) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(239, 127, 17, 0.25);
}

.takeaway-card p {
    font-size: 1rem;
    color: #444;
}

/* Testimonials Carousel */
.testimonials {
    padding: 100px 0;
    background-color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: visible; /* Changed to allow buttons outside if needed, though they are inside absolute */
    padding-bottom: 40px; /* Space for dots */
}

.carousel-track-container {
    height: 100%;
}

.carousel-track {
    padding: 10px;
    list-style: none;
    display: grid; /* Changed to grid to stack items */
    grid-template-areas: "stack";
}

.carousel-slide {
    grid-area: stack; /* Stack all slides on top of each other */
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none; /* Prevent clicks on invisible slides */
    display: block; /* Ensure it contributes to height calculation */
}

.carousel-slide.active-slide {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.testimonial-card {
    background: #fff;
    padding: 30px 20px; /* Reduced padding for mobile */
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border-top: none;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px;
    transition: transform 0.3s;
}

@media(min-width: 768px) {
    .testimonial-card {
        padding: 30px 60px; /* Restore desktop padding */
    }
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.role {
    color: var(--color-orange);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.name {
    font-weight: 700;
    color: var(--color-dark-blue);
    font-size: 1.1rem;
    margin-bottom: 0px;
    margin-top: 20px;
}

.quote {
    font-style: italic;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.8;
}

.nav-button {
    background: white;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--color-blue);
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-button.prev {
    left: -20px;
}

.nav-button.next {
    right: -20px;
}

@media(max-width: 900px) {
    .nav-button.prev { left: 0; }
    .nav-button.next { right: 0; }
}

.nav-button:hover {
    background: var(--color-blue);
    color: white;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    padding: 20px 0;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border: none;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active-dot {
    background-color: var(--color-orange);
    transform: scale(1.1);
}

/* Dla kogo */
.for-whom {
    padding: 100px 0;
    background: linear-gradient(170deg, #1a1a2e 0%, var(--color-blue) 100%);
    color: white;
    position: relative;
}

.for-whom h2 {
    text-align: center;
    margin-bottom: 60px;
    color: white;
    position: relative;
    z-index: 2;
}

.for-whom-list {
    display: grid;
    gap: 30px;
    position: relative;
    z-index: 2;
}
@media(min-width: 768px) {
    .for-whom-list {
        grid-template-columns: 1fr 1fr;
    }
}

.for-whom-list ul {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: var(--radius-md);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.for-whom-list li {
    margin-bottom: 18px;
    padding-left: 35px;
    position: relative;
    font-size: 1.1rem;
    opacity: 0.9;
}

.for-whom-list li::before {
    content: "✓";
    background-color: var(--color-orange);
    color: white;
    position: absolute;
    left: 0;
    top: 2px;
    font-weight: bold;
    font-size: 0.6em;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Bonus */
.bonus {
    padding: 100px 0;
    background-color: #fff;
    text-align: center;
}

.bonus h2 {
     color: var(--color-dark-blue);
     margin-bottom: 50px;
}

.bonus-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.bonus-item {
    background: white;
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    width: 100%;      /* Fluid width */
    max-width: 320px; /* Max width constraint */
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    border: 1px solid var(--color-orange);
}

.bonus-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-orange);
}

.bonus-icon {
    width: 60px;
    height: 60px;
    /* You might want to add a filter here or use SVG fill in HTML to colorize icons if they are black */
}

/* About Me */
.about {
    padding: 100px 0;
    background-color: var(--color-light); /* Changed to light gray */
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 80px;
    align-items: center;
}

@media(min-width: 900px) {
    .about-content {
        flex-direction: row;
        align-items: flex-start;
    }
}

.about-img {
    flex: 0 0 350px;
    text-align: center;
    position: relative;
    z-index: 1; /* Ensure context for pseudo-element */
}

/* Updated to match hero style: Rounded Rectangle with Grey Shape */
.about-img::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #d1d5db; /* Grey shape */
    border: none;
    border-radius: 15px; /* Rounded edges */
    top: 10px;
    left: 10px;
    z-index: -1;
    transform: rotate(-1deg); /* Slight rotation to match hero vibe */
}

.about-img img {
    width: 100%;
    border-radius: 15px; /* Rounded edges instead of circle */
    max-width: 350px;
    box-shadow: var(--shadow-soft);
    background-color: #fff;
    border: none; /* Removed white border */
}

.about-linkedin {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: #0077b5;
    color: white;
    text-align: center;
    line-height: 40px;
    border-radius: 8px; /* Slightly more rounded than footer */
    font-weight: bold;
    font-family: sans-serif;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 2;
}

.about-linkedin:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 15px rgba(0,0,0,0.3);
    background-color: #006097;
}

.about-text h2 {
    color: var(--color-dark-blue);
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #555;
}

/* Contact */
.contact {
    padding: 100px 0;
    background: linear-gradient(135deg, #0a0a2e 0%, #162447 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle decoration for contact */
.contact::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: var(--color-orange);
    opacity: 0.1;
    border-radius: 50%;
    filter: blur(40px);
}

.contact h2 {
    color: white;
    margin-bottom: 30px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.contact-item {
    font-size: 1.2rem;
    background: rgba(255,255,255,0.05);
    padding: 20px 40px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
}

.contact-item a {
    color: white;
    font-weight: 600;
}

.contact-item:hover {
    background: rgba(255,255,255,0.1);
    transform: scale(1.02);
    border-color: var(--color-orange);
}

.contact-icon {
    width: 24px;
    height: 24px;
    filter: invert(1);
}

/* Footer */
footer {
    background: #111;
    color: #ccc; /* Changed base color to lighter grey/white as requested */
    padding: 60px 0;
    font-size: 0.95rem;
    border-top: 1px solid #222;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.logo-footer {
    height: 50px; /* Increased size */
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    margin-bottom: 10px;
}

.footer-title {
    color: var(--color-orange);
    margin-bottom: 5px;
    font-size: 1.1rem;
    font-weight: 700;
}

.footer-col p {
    color: white; /* Explicitly requested white */
    margin: 0;
    line-height: 1.6;
}

.contact-link {
    color: white;
    transition: color 0.3s;
}

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

.footer-nav {
     /* Reusing existing flex direction logic from generic class or definition */
}

.footer-nav a {
    display: block;
    color: #ccc;
    transition: color 0.3s;
    text-decoration: none;
}

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

/* Mobile optimizations */
@media(max-width: 768px) {
    .hero, .hook, .training, .takeaways, .testimonials, .for-whom, .bonus, .about, .contact {
        padding: 60px 0;
    }

    .training h2, .takeaways h2, .testimonials h2, .for-whom h2, .bonus h2, .about-text h2, .contact h2 {
        font-size: 1.7rem;
        padding: 0 10px;
    }

    .container {
        padding: 0 20px;
    }
}

.linkedin-icon {
    display: inline-block;
    margin-top: 5px;
    width: 32px;
    height: 32px;
    background-color: #0077b5;
    color: white;
    text-align: center;
    line-height: 32px;
    border-radius: 4px;
    font-weight: bold;
    font-family: sans-serif;
}
