/* ===== ZMIENNE ===== */
:root {
    --primary-color: #223B74;
    --secondary-color: #318D8D;
    --text-color: #333;
    --light-text: #fff;
    --background-color: #f7f9fc;
    --card-background: #fff;
    --border-radius: 8px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --font-primary: 'Nova Flat', cursive;
    --font-logo: 'Nova Flat', sans-serif;
}

/* ===== RESET I PODSTAWY ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
    overflow-x: hidden;
    opacity: 1;
    transition: opacity 0.5s ease;
}

body.loaded {
    opacity: 1;
}

img {
    max-width: 100%;
    height: auto;
}

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

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 100px 0;
}

/* ===== EKRAN ŁADOWANIA ===== */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease;
}

.loader {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loader-logo {
    width: 200px !important;
    height: auto !important;
    margin-bottom: 2rem;
    opacity: 1 !important;
    visibility: visible !important;
}

.loader-bar {
    width: 200px;
    height: 4px;
    background: rgba(34, 59, 116, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.loader-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 50%;
    background: linear-gradient(90deg, #318D8D, #223B74);
    animation: loading 1.5s infinite ease-in-out;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

body.loaded #loader-wrapper {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ===== HEADER & NAWIGACJA ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

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

.logo a {
    display: block;
}

.logo img {
    height: 60px;
    transition: var(--transition);
}

header.scrolled .logo img {
    height: 45px;
}

nav ul {
    display: flex;
    align-items: center;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--light-text);
    font-weight: 500;
    position: relative;
}

header.scrolled nav ul li a {
    color: var(--primary-color);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

nav ul li a:hover::after {
    width: 100%;
}

.language-switch a {
    font-weight: 700;
}

/* Menu mobilne */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 300px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 100px 30px;
        transition: var(--transition);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    }
    
    nav ul.active {
        right: 0;
    }
    
    nav ul li {
        margin: 15px 0;
    }
    
    nav ul li a {
        color: var(--primary-color);
        font-size: 1.1rem;
    }
    
    .hero-content .btn {
        width: 100%;
        margin: 10px 0;
        padding: 14px 25px;
    }
    
    .hero-content .btn + .btn {
        margin-top: 20px;
    }
    
    .event-details {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 30px;
    }
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0.9;
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    position: relative;
    z-index: 10;
}

.hero-content {
    color: var(--light-text);
    flex: 1;
    position: relative;
    z-index: 10;
}

.hero-logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-logo {
    margin-bottom: 20px;
}

.hero-organizer {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    width: 100%;
}

.hero-logo img.white-logo {
    filter: brightness(0) invert(1);
    width: 100%;
    height: auto;
}

.hero-content h1 {
    font-family: var(--font-logo);
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s forwards 0.5s;
}

.hero-content p {
    font-size: 1.5rem;
    font-family: var(--font-logo);
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s forwards 0.7s;
}

.event-details {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s forwards 0.9s;
}

.detail {
    display: flex;
    align-items: center;
    margin-right: 30px;
    margin-bottom: 15px;
}

.detail i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s forwards 1.1s;
    font-family: var(--font-logo);
    letter-spacing: 1px;
}

.primary-btn {
    background: var(--light-text);
    color: var(--primary-color);
    border: 2px solid var(--light-text);
}

.primary-btn:hover {
    background: transparent;
    color: var(--light-text);
}

.secondary-btn {
    background: transparent;
    color: var(--light-text);
    border: 2px solid var(--light-text);
}

.secondary-btn:hover {
    background: var(--light-text);
    color: var(--primary-color);
}

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

/* ===== SEKCJA O WYDARZENIU ===== */
.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    font-family: var(--font-logo);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

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

.about-text ul {
    padding-left: 20px;
}

.about-text ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.about-text ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 12px;
    height: 12px;
    background: var(--gradient);
    border-radius: 50%;
}

.image-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition);
}

.image-container:hover {
    transform: perspective(1000px) rotateY(0);
}

.about-media {
    flex: 1;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.about-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.about-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
}

/* ===== SEKCJA BRANŻE ===== */
.industries {
    background-color: #f0f4f8;
}

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

.industry-card {
    background: var(--card-background);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.industry-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.industry-card:hover {
    transform: translateY(-10px);
}

.industry-card:hover::before {
    opacity: 1;
}

.industry-card:hover * {
    color: var(--light-text);
}

.industry-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    transition: var(--transition);
}

.industry-card:hover .industry-icon {
    background: var(--light-text);
}

.industry-icon i {
    font-size: 30px;
    color: var(--light-text);
    transition: var(--transition);
}

.industry-card:hover .industry-icon i {
    color: var(--primary-color);
}

.industry-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    transition: var(--transition);
}

.industry-card p {
    transition: var(--transition);
}

/* ===== SEKCJA INFORMACJE ===== */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.info-card {
    background: var(--card-background);
    border-radius: var(--border-radius);
    padding: 30px 20px;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-10px);
}

.info-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
}

.info-icon i {
    font-size: 32px;
    color: var(--light-text);
}

.info-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.map-container {
    margin-top: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

#map { 
    height: 450px;
    width: 100%;
}

/* ===== SEKCJA REJESTRACJA ===== */
.registration {
    background-color: #f0f4f8;
}

.registration-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.registration-info {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 700px;
}

.form-container {
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    background-color: #fff;
    transition: var(--transition);
}

.form-container iframe {
    display: block;
    border: none;
    transition: all 0.3s ease;
}

/* Styl dla formularza na mobilnych urządzeniach */
@media screen and (max-width: 768px) {
    .form-container iframe {
        height: 600px;
    }
}

@media screen and (max-width: 480px) {
    .form-container iframe {
        height: 500px;
    }
}

/* ===== SEKCJA KONTAKT ===== */
.contact {
    background-color: #f0f4f8;
}

.contact-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 50px;
}

.contact-form {
    background: var(--card-background);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(49, 141, 141, 0.2);
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.contact-item i {
    font-size: 24px;
    margin-right: 15px;
    color: var(--primary-color);
}

.social-media {
    display: flex;
    margin-top: 30px;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    transition: var(--transition);
}

.social-icon i {
    font-size: 24px;
    color: var(--light-text);
}

.social-icon:hover {
    transform: translateY(-5px);
}

/* ===== FOOTER ===== */
footer {
    background: var(--primary-color);
    color: var(--light-text);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 80px;
    margin-bottom: 20px;
}

.footer-logo img.white-logo {
    filter: brightness(0) invert(1);
    width: auto;
    height: 80px;
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-wrap: wrap;
}

.footer-links ul li {
    margin-right: 30px;
    margin-bottom: 15px;
}

.footer-links ul li a {
    color: var(--light-text);
    opacity: 0.8;
}

.footer-links ul li a:hover {
    opacity: 1;
}

.footer-language a {
    color: var(--light-text);
    opacity: 0.8;
    transition: var(--transition);
}

.footer-language a:hover {
    opacity: 1;
}

.footer-language a.active {
    opacity: 1;
    font-weight: 700;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== ANIMACJE ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media screen and (max-width: 992px) {
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-image {
        order: -1;
    }
    
    section {
        padding: 70px 0;
    }
    
    .hero-content h1 {
        font-size: 3.2rem;
    }
    
    .hero-logo {
        max-width: 320px;
    }
    
    .hero-flex {
        gap: 30px;
    }
}

@media screen and (max-width: 768px) {
    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 300px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 100px 30px;
        transition: var(--transition);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    }
    
    nav ul.active {
        right: 0;
    }
    
    nav ul li {
        margin: 15px 0;
    }
    
    nav ul li a {
        color: var(--primary-color);
        font-size: 1.1rem;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .footer-content > div {
        width: 100%;
        margin-bottom: 30px;
        text-align: center;
    }
    
    .footer-links ul {
        justify-content: center;
    }
    
    .hero-logo {
        max-width: 250px;
        margin-bottom: 10px;
    }
    
    .hero-flex {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .footer-logo img {
        height: 70px;
    }
    
    .footer-logo img.white-logo {
        height: 70px;
    }
    
    .hero-logo-container {
        margin-bottom: 30px;
    }
}

@media screen and (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .event-details {
        flex-direction: column;
    }
    
    .detail {
        margin-right: 0;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
    }
    
    .hero-logo {
        max-width: 200px;
    }
    
    .footer-logo img {
        height: 60px;
    }
    
    .footer-logo img.white-logo {
        height: 60px;
    }
}

/* ===== PODSTRONY ===== */
.page-header {
    background: var(--gradient);
    color: var(--light-text);
    padding: 100px 0 50px;
    margin-bottom: 50px;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-header .logo img {
    height: 80px;
    filter: brightness(0) invert(1);
}

/* ===== AGENDA ===== */
.agenda {
    padding-bottom: 80px;
}

.agenda-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.timeline {
    max-width: 900px;
    margin: 0 auto 60px;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 100px;
    height: 100%;
    width: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.timeline-item {
    display: flex;
    margin-bottom: 30px;
    position: relative;
}

.timeline-time {
    width: 100px;
    padding-right: 25px;
    text-align: right;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.95rem;
    line-height: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.timeline-content {
    flex: 1;
    background: #fff;
    padding: 20px 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-left: 40px;
    position: relative;
    transition: var(--transition);
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -42px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gradient);
    box-shadow: 0 0 0 4px rgba(49, 141, 141, 0.3);
    z-index: 1;
}

.timeline-content::after {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    border-style: solid;
    border-width: 10px 10px 10px 0;
    border-color: transparent #fff transparent transparent;
}

.timeline-content h3 {
    margin: 0 0 5px;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.timeline-content p {
    margin: 0;
    color: #666;
}

.timeline-item:hover .timeline-content {
    transform: translateX(5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.agenda-cta {
    text-align: center;
    margin-top: 60px;
}

/* ===== STRONA REJESTRACJI ===== */
.registration-page {
    padding-bottom: 80px;
}

.registration-info {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px;
}

.registration-info h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 2rem;
}

.registration-info p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.registration-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.feature {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    flex: 1;
    max-width: 280px;
    transition: var(--transition);
}

.feature i {
    font-size: 36px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

.feature h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.feature p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

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

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

@media screen and (max-width: 992px) {
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .timeline::before {
        left: 80px;
    }
    
    .timeline-time {
        width: 80px;
        font-size: 0.85rem;
    }
    
    .registration-features {
        flex-direction: column;
        align-items: center;
    }
    
    .feature {
        max-width: 100%;
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .timeline::before {
        left: 60px;
    }
    
    .timeline-time {
        width: 60px;
        font-size: 0.8rem;
    }
    
    .timeline-content {
        margin-left: 30px;
        padding: 15px 20px;
    }
    
    .timeline-content::before {
        left: -32px;
        width: 16px;
        height: 16px;
    }
}

@media screen and (max-width: 480px) {
    .page-header {
        padding: 80px 0 40px;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .timeline {
        margin-left: 15px;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: column;
    }
    
    .timeline-time {
        width: 100%;
        text-align: left;
        padding-left: 50px;
        padding-right: 0;
        margin-bottom: 10px;
        flex-direction: row;
        gap: 5px;
    }
    
    .timeline-content {
        margin-left: 50px;
    }
    
    .timeline-content::before {
        left: -36px;
        top: 20px;
    }
    
    .timeline-content::after {
        left: -15px;
        top: 20px;
    }
}

/* Style dla kafelków */
.companies-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.company-tile {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(34, 59, 116, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(49, 141, 141, 0.1);
}

.company-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(34, 59, 116, 0.15);
}

.company-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #318D8D, #223B74);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.company-tile:hover::before {
    opacity: 1;
}

.tile-content h3 {
    color: #223B74;
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
    min-height: 3.5rem;
}

.tile-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 1rem;
}

.type-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-width: 70%;
}

.type-badge {
    background: rgba(49, 141, 141, 0.1);
    color: #318D8D;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(49, 141, 141, 0.15);
    white-space: nowrap;
    line-height: 1.4;
}

/* Style dla modala */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    padding: 1rem;
}

.modal-content {
    background: #fff;
    margin: 2rem auto;
    padding: 3rem;
    width: 90%;
    max-width: 700px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2.5rem;
    cursor: pointer;
    color: #666;
    transition: color 0.2s ease;
    line-height: 1;
}

.close:hover {
    color: #223B74;
}

.modal-body {
    margin-top: 2rem;
    line-height: 1.8;
    color: #444;
}

#modalCompanyName {
    color: #223B74;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #318D8D;
    font-weight: 700;
}

#modalWebsite {
    color: #318D8D;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-block;
}

#modalWebsite:hover {
    color: #223B74;
    transform: translateX(3px);
}

#modalType {
    background: rgba(49, 141, 141, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    color: #318D8D;
    font-size: 1rem;
    display: inline-block;
    margin: 0.5rem 0;
}

#modalDescription {
    margin-top: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    padding: 1.5rem;
    background: rgba(49, 141, 141, 0.05);
    border-radius: 12px;
    border-left: 4px solid #318D8D;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-logo);
    color: var(--primary-color);
    margin-bottom: 1.5rem;
} 