/* ========================================
   KOLEJKI ELEKTRYCZNE - MAIN CSS FILE
   ======================================== */

/* CSS VARIABLES */
:root {
    --primary-color: #1a237e;
    --secondary-color: #00838f;
    --accent-color: #d32f2f;
    --success-color: #388e3c;
    --warning-color: #f57c00;
    --text-color: #263238;
    --light-text: #607d8b;
    --bg-light: #fafafa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 40px rgba(0,0,0,0.15);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* RESET & BASE */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-white);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* LOADING ANIMATION */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-train {
    font-size: 3rem;
    color: var(--primary-color);
    animation: loadingMove 1.5s ease-in-out infinite;
}

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

/* PROGRESS BAR */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-primary);
    z-index: 9999;
    transition: width 0.3s ease;
}

/* ANIMATED BACKGROUND */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--bg-white);
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.floating-shapes::before,
.floating-shapes::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    animation: float 20s infinite ease-in-out;
}

.floating-shapes::before {
    width: 300px;
    height: 300px;
    top: -150px;
    left: -150px;
    animation-delay: 0s;
}

.floating-shapes::after {
    width: 200px;
    height: 200px;
    bottom: -100px;
    right: -100px;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* HEADER STYLES */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.main-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
}

.header-content {
    padding: 1rem 0;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.logo i {
    color: var(--secondary-color);
    font-size: 2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.logo:hover {
    color: var(--primary-color);
    transform: translateY(-1px);
}

/* MOBILE NAVIGATION */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: var(--bg-light);
    color: var(--secondary-color);
}

/* DESKTOP NAVIGATION */
.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.25rem;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: block;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.3s ease;
    z-index: -1;
}

.nav-menu a:hover::before,
.nav-menu a:focus::before {
    left: 0;
}

.nav-menu a:hover,
.nav-menu a:focus {
    color: white;
    transform: translateY(-2px);
}

.nav-menu .dropdown {
    position: relative;
}

.nav-menu .dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    min-width: 280px;
    box-shadow: var(--shadow-hover);
    border-radius: 15px;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid var(--border-color);
}

.nav-menu .dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.nav-menu .dropdown-content a {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    border-radius: 10px;
    margin: 0.25rem 0;
    background: transparent;
}

.nav-menu .dropdown-content a::before {
    background: var(--gradient-secondary);
}

.nav-menu .dropdown > a::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 0.5rem;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.nav-menu .dropdown:hover > a::after {
    transform: rotate(180deg);
}

/* MOBILE NAVIGATION STYLES */
.mobile-nav {
    display: none;
    background: var(--bg-white);
    border-top: 1px solid var(--border-color);
    padding: 1rem 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-nav.active {
    display: block;
    max-height: 600px;
    animation: slideDown 0.3s ease;
}

.mobile-nav .nav-menu {
    flex-direction: column;
    gap: 0;
}

.mobile-nav .nav-menu a {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
    transition: all 0.3s ease;
}

.mobile-nav .nav-menu a::before {
    display: none;
}

.mobile-nav .nav-menu a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    transform: translateX(10px);
}

.mobile-nav .dropdown-content {
    position: static;
    box-shadow: none;
    background: var(--bg-light);
    margin: 0;
    border-radius: 0;
    margin-top: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-nav .dropdown.active .dropdown-content {
    display: block;
    max-height: 300px;
}

.mobile-nav .dropdown > a {
    position: relative;
}

.mobile-nav .dropdown > a::after {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.mobile-nav .dropdown.active > a::after {
    transform: translateY(-50%) rotate(180deg);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* BREADCRUMBS */
.breadcrumbs-section {
    background: var(--bg-light);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumbs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumbs li:not(:last-child)::after {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--light-text);
    font-size: 0.8rem;
}

.breadcrumbs a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.breadcrumbs a:hover {
    background: var(--secondary-color);
    color: white;
}

.breadcrumbs .current {
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.9rem;
}

/* HERO SECTIONS */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="train" patternUnits="userSpaceOnUse" width="40" height="40"><circle cx="10" cy="10" r="1" fill="white" opacity="0.1"/><circle cx="30" cy="30" r="1.5" fill="white" opacity="0.08"/><rect x="5" y="15" width="8" height="2" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23train)"/></svg>');
    animation: movePattern 60s linear infinite;
}

@keyframes movePattern {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(-40px) translateY(-40px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(45deg, #fff, #e3f2fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from { filter: drop-shadow(0 0 5px rgba(255,255,255,0.3)); }
    to { filter: drop-shadow(0 0 20px rgba(255,255,255,0.6)); }
}

.hero .lead {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ARTICLE HERO */
.article-hero {
    background: var(--gradient-primary);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.article-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.article-category {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
}

.article-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    background: linear-gradient(45deg, #fff, #e3f2fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.meta-item i {
    font-size: 1rem;
}

/* CTA BUTTONS */
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.cta-primary {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 4px 20px rgba(211, 47, 47, 0.3);
}

.cta-primary:hover {
    background: #b71c1c;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(211, 47, 47, 0.4);
}

.cta-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-secondary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* FLOATING TRAIN ANIMATION */
.floating-train {
    position: absolute;
    right: 10%;
    top: 20%;
    font-size: 4rem;
    color: rgba(255,255,255,0.1);
    animation: floatTrain 8s ease-in-out infinite;
}

@keyframes floatTrain {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* CONTENT SECTIONS */
.content-section {
    padding: 5rem 0;
    position: relative;
}

.content-section:nth-child(even) {
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}
.section-ads {
    text-align: center;
}

.section-title h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.75rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
}

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

.section-title p {
    font-size: 1.2rem;
    color: var(--light-text);
    max-width: 600px;
    margin: 0 auto;
}

/* ARTICLE CONTENT */
.article-content {
    padding: 4rem 0;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.article-body h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 3rem 0 1.5rem 0;
    position: relative;
}

.article-body h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-secondary);
    border-radius: 2px;
}

.article-body h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 2.5rem 0 1rem 0;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body .lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--light-text);
    margin-bottom: 2rem;
}

.article-body ul, .article-body ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-body li {
    margin-bottom: 0.75rem;
}

.keyword-highlight {
    background: linear-gradient(120deg, rgba(26, 35, 126, 0.1) 0%, rgba(0, 131, 143, 0.1) 100%);
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 600;
    color: var(--primary-color);
    border: 1px solid rgba(26, 35, 126, 0.1);
}

/* ENHANCED ARTICLE CARDS */
.article-card {
    background: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
    border: 1px solid var(--border-color);
    position: relative;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.article-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.article-card:hover::before {
    transform: scaleX(1);
}

.article-card-image {
    height: 220px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.article-card:nth-child(even) .article-card-image {
    background: var(--gradient-secondary);
}

.article-card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60"><circle cx="10" cy="10" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="20" r="1" fill="white" opacity="0.1"/><circle cx="30" cy="50" r="1" fill="white" opacity="0.1"/></svg>');
    animation: float 10s infinite ease-in-out;
}

.article-card-content {
    padding: 2rem;
}

.article-card-meta {
    font-size: 0.85rem;
    color: var(--light-text);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-card-meta i {
    color: var(--secondary-color);
}

.article-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
    color: var(--text-color);
}

.article-card p {
    color: var(--light-text);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.article-card-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    border: 2px solid var(--secondary-color);
    background: transparent;
}

.article-card-link:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateX(5px);
}

.article-card-link i {
    transition: transform 0.3s ease;
}

.article-card-link:hover i {
    transform: translateX(3px);
}

/* PARALLAX STATS SECTION */
.stats-section {
    background: var(--gradient-primary);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><polygon points="0,0 100,0 90,100 0,100" fill="white" opacity="0.05"/><polygon points="10,0 100,0 100,100 20,100" fill="white" opacity="0.03"/></svg>');
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
    background: linear-gradient(45deg, #fff, #e3f2fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* INFO BOXES */
.info-box {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.info-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--gradient-primary);
}

.info-box.tip::before {
    background: var(--success-color);
}

.info-box.warning::before {
    background: var(--warning-color);
}

.info-box h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-box.tip h4 {
    color: var(--success-color);
}

.info-box.warning h4 {
    color: var(--warning-color);
}

/* IMAGE PLACEHOLDERS */
.article-image {
    background: var(--gradient-primary);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    color: white;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

.article-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60"><circle cx="10" cy="10" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="20" r="1" fill="white" opacity="0.1"/><circle cx="30" cy="50" r="1" fill="white" opacity="0.1"/></svg>');
    animation: float 10s infinite ease-in-out;
}

.article-image i {
    font-size: 4rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.article-image-caption {
    font-size: 0.9rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

        /* Timeline */
 .timeline {
    position: relative;
    margin: 3rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 4rem;
}

.timeline-marker {
    position: absolute;
    left: 18px;
    top: 8px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(26, 35, 126, 0.3);
}

.timeline-content {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    position: relative;
}

.timeline-year {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.timeline-content p {
    margin: 0;
    line-height: 1.6;
    color: var(--text-color);
}

/* Responsive breakpoints for timeline */
@media screen and (max-width: 768px) {
    .timeline::before {
        left: 20px;
        width: 2px;
    }
    
    .timeline-item {
        padding-left: 3rem;
        margin-bottom: 1.5rem;
    }
    
    .timeline-marker {
        left: 8px;
        top: 8px;
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }
    
    .timeline-content {
        padding: 1.25rem;
    }
    
    .timeline-year {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .timeline-content p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

@media screen and (max-width: 480px) {
    .timeline {
        margin: 2rem 0;
    }
    
    .timeline::before {
        left: 15px;
        width: 2px;
    }
    
    .timeline-item {
        padding-left: 2.5rem;
        margin-bottom: 1.25rem;
    }
    
    .timeline-marker {
        left: 3px;
        top: 5px;
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }
    
    .timeline-content {
        padding: 1rem;
        border-radius: 8px;
    }
    
    .timeline-year {
        font-size: 1rem;
        margin-bottom: 0.5rem;
        line-height: 1.2;
    }
    
    .timeline-content p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
}

@media screen and (max-width: 360px) {
    .timeline::before {
        left: 12px;
    }
    
    .timeline-item {
        padding-left: 2rem;
        margin-bottom: 1rem;
    }
    
    .timeline-marker {
        left: 0;
        top: 5px;
        width: 18px;
        height: 18px;
        font-size: 0.65rem;
    }
    
    .timeline-content {
        padding: 0.75rem;
        border-radius: 6px;
    }
    
    .timeline-year {
        font-size: 0.95rem;
        margin-bottom: 0.25rem;
    }
    
    .timeline-content p {
        font-size: 0.8rem;
        line-height: 1.3;
    }
}

/* Alternative horizontal layout for very small screens */
@media screen and (max-width: 320px) {
    .timeline::before {
        display: none; /* Ukryj linię na bardzo małych ekranach */
    }
    
    .timeline-item {
        padding-left: 0;
        margin-bottom: 1rem;
    }
    
    .timeline-marker {
        position: static;
        display: inline-flex;
        margin-bottom: 0.5rem;
        width: 16px;
        height: 16px;
        font-size: 0.6rem;
    }
    
    .timeline-content {
        margin-left: 0;
        padding: 0.5rem;
    }
    
    .timeline-year {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
        display: inline;
        margin-left: 0.5rem;
    }
    
    /* Horizontal layout dla bardzo małych ekranów */
    .timeline-item {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .timeline-header {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
}

/* Enhanced styling for better visual hierarchy */
.timeline-content strong {
    color: var(--primary-color);
    font-weight: 600;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Smooth animations */
.timeline-item {
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInTimeline 0.6s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideInTimeline {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Disable animations on mobile for better performance */
@media screen and (max-width: 768px) {
    .timeline-item {
        opacity: 1;
        transform: none;
        animation: none;
    }
}


/* Sticky Table of Contents */
.table-of-contents {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    position: sticky !important;
    top: 120px !important;
    max-height: calc(100vh - 140px) !important;
    overflow-y: auto !important;
    z-index: 10 !important;
    transition: all 0.3s ease;
}

/* Scrollbar styling dla spisu treści */
.table-of-contents::-webkit-scrollbar {
    width: 6px;
}

.table-of-contents::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 3px;
}

.table-of-contents::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.table-of-contents::-webkit-scrollbar-thumb:hover {
    background: var(--light-text);
}

/* Enhanced hover effects dla sticky TOC */
.table-of-contents:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

/* Responsive behavior - wyłącz sticky na mobilkach */
@media screen and (max-width: 1024px) {
    .table-of-contents {
        position: static !important;
        top: auto !important;
        max-height: none !important;
        overflow-y: visible !important;
        margin: 2rem 0 !important;
    }
    
    .table-of-contents:hover {
        transform: none;
    }
}

/* Dodatkowe style dla lepszego wyglądu */
.table-of-contents h4 {
    color: var(--primary-color) !important;
    margin-bottom: 1rem !important;
    font-weight: 600 !important;
    font-size: 1.2rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.table-of-contents h4::after {
    display: none !important; /* Usuń linię pod nagłówkiem jeśli przeszkadza */
}

.toc-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.toc-list li {
    margin-bottom: 0.5rem !important;
}

.toc-list a {
    color: var(--text-color) !important;
    text-decoration: none !important;
    font-size: 0.95rem !important;
    padding: 0.5rem 0 !important;
    display: block !important;
    border-radius: 6px !important;
    padding-left: 1rem !important;
    transition: all 0.3s ease !important;
    position: relative !important;
}

.toc-list a::before {
    content: '▶' !important;
    position: absolute !important;
    left: 0 !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    font-size: 0.7rem !important;
}

.toc-list a:hover {
    background: var(--primary-color) !important;
    color: white !important;
    transform: translateX(10px) !important;
}

.toc-list a:hover::before {
    opacity: 1 !important;
}

/* Active link styling */
.toc-list a.active {
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.1), rgba(0, 131, 143, 0.1));
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    font-weight: 600;
}

/* Smooth animations */
.table-of-contents * {
    box-sizing: border-box;
}

/* RELATED ARTICLES */
.related-articles {
    background: var(--bg-light);
    padding: 4rem 0;
}

.related-card {
    background: var(--bg-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
    border: 1px solid var(--border-color);
}

.related-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.related-card-image {
    height: 160px;
    background: var(--gradient-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
}

.related-card:nth-child(even) .related-card-image {
    background: var(--gradient-primary);
}

.related-card-content {
    padding: 1.5rem;
}

.related-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.related-card p {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.related-card-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.related-card-link:hover {
    gap: 0.75rem;
}

/* ENHANCED FAQ SECTION */
.faq-item {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.faq-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-hover);
}

.faq-question {
    padding: 1.75rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    background: var(--bg-light);
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.faq-question:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

.faq-question i {
    transition: all 0.3s ease;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.faq-question.active i {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.faq-answer {
    padding: 2rem;
    color: var(--light-text);
    line-height: 1.8;
    display: none;
    font-size: 1.05rem;
}

.faq-answer.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

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

/* ENHANCED FOOTER */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="white" opacity="0.05"/><circle cx="80" cy="60" r="1.5" fill="white" opacity="0.05"/><rect x="40" y="80" width="20" height="3" fill="white" opacity="0.03"/></svg>');
}

.footer-content {
    position: relative;
    z-index: 2;
}

.footer h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 1.2rem;
    position: relative;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent-color);
    border-radius: 1px;
}

.footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    display: block;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 20px;
}

.footer a::before {
    content: '▶';
    position: absolute;
    left: 0;
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.footer a:hover {
    color: white;
    transform: translateX(10px);
}

.footer a:hover::before {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
}

/* SCROLL TO TOP BUTTON */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

/* RESPONSIVE DESIGN */
@media screen and (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .main-nav .nav-menu {
        display: none;
    }

    .hero {
        padding: 4rem 0;
        min-height: 500px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .lead {
        font-size: 1.1rem;
    }

    .article-hero {
        padding: 3rem 0;
    }

    .article-hero h1 {
        font-size: 2.25rem;
    }

    .article-meta {
        gap: 1rem;
    }

    .section-title h2 {
        font-size: 2.25rem;
    }

    .article-body h2 {
        font-size: 1.75rem;
    }

    .article-body h3 {
        font-size: 1.5rem;
    }

    .article-card {
        margin-bottom: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .floating-train {
        display: none;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .table-of-contents {
        position: static;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-marker {
        left: 8px;
        width: 20px;
        height: 20px;
    }

    .timeline-item {
        padding-left: 3rem;
    }
}

@media screen and (max-width: 480px) {
    .hero {
        padding: 3rem 0;
        min-height: 400px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .article-hero {
        padding: 2rem 0;
    }

    .article-hero h1 {
        font-size: 1.875rem;
    }

    .content-section {
        padding: 3rem 0;
    }

    .article-content {
        padding: 3rem 0;
    }

    .article-card-content {
        padding: 1.5rem;
    }

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

    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .info-box,
    .table-of-contents {
        padding: 1.5rem;
    }
}

/* UTILITY CLASSES */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.8s ease;
}

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

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

/* ADDITIONAL STYLES FOR FUTURE PAGES */

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

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

.btn-primary:hover {
    background: #0d1a5b;
    color: white;
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #005b63;
    color: white;
    transform: translateY(-1px);
}

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

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* Card Styles */
.card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-light);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-light);
}

/* Alert Styles */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
    border-left: 4px solid;
}

.alert-info {
    background: rgba(26, 35, 126, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.alert-success {
    background: rgba(56, 142, 60, 0.1);
    border-color: var(--success-color);
    color: var(--success-color);
}

.alert-warning {
    background: rgba(245, 124, 0, 0.1);
    border-color: var(--warning-color);
    color: var(--warning-color);
}

.alert-danger {
    background: rgba(211, 47, 47, 0.1);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* List Styles */
.list-unstyled {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-inline {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Text Styles */
.text-muted {
    color: var(--light-text);
}

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

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

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

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

.text-danger {
    color: var(--accent-color);
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 4px;
}

.badge-primary {
    background: var(--primary-color);
    color: white;
}

.badge-secondary {
    background: var(--secondary-color);
    color: white;
}

.badge-success {
    background: var(--success-color);
    color: white;
}

.badge-warning {
    background: var(--warning-color);
    color: white;
}

.badge-danger {
    background: var(--accent-color);
    color: white;
}

        /* Responsive Cost Tables */
        .cost-table {
            background: var(--bg-white);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            overflow: hidden;
            margin: 2rem 0;
            box-shadow: var(--shadow);
            overflow-x: auto;
        }
        
        .cost-table table {
            width: 100%;
            border-collapse: collapse;
            margin: 0;
            min-width: 600px;
        }
        
        .cost-table th {
            background: var(--gradient-primary);
            color: white;
            padding: 1rem 0.75rem;
            text-align: left;
            font-weight: 600;
            white-space: nowrap;
            font-size: 0.9rem;
        }
        
        .cost-table td {
            padding: 1rem 0.75rem;
            border-bottom: 1px solid var(--border-color);
            vertical-align: top;
            font-size: 0.9rem;
        }
        
        .cost-table tr:last-child td {
            border-bottom: none;
        }
        
        .cost-table tr:nth-child(even) {
            background: var(--bg-light);
        }
        
        /* Mobile-first responsive table alternative */
        .responsive-table {
            display: none;
        }
        
        .table-card {
            background: var(--bg-white);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 1.5rem;
            margin: 1rem 0;
            box-shadow: var(--shadow);
        }
        
        .table-card h5 {
            color: var(--primary-color);
            font-weight: 600;
            margin-bottom: 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 2px solid var(--primary-color);
        }
        
        .table-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.5rem 0;
            border-bottom: 1px solid var(--border-color);
        }
        
        .table-row:last-child {
            border-bottom: none;
        }
        
        .table-label {
            font-weight: 500;
            color: var(--text-color);
        }
        
        .table-value {
            font-weight: 600;
            color: var(--primary-color);
        }
        
        @media screen and (max-width: 768px) {
            .cost-table {
                display: none;
            }
            
            .responsive-table {
                display: block;
            }
        }
        
        .price-highlight {
            background: linear-gradient(120deg, rgba(211, 47, 47, 0.1) 0%, rgba(245, 124, 0, 0.1) 100%);
            padding: 4px 8px;
            border-radius: 6px;
            font-weight: 600;
            color: var(--accent-color);
            border: 1px solid rgba(211, 47, 47, 0.2);
        }
        
        .budget-card {
            background: var(--bg-white);
            border: 1px solid var(--border-color);
            border-radius: 15px;
            padding: 2rem;
            margin: 1rem 0;
            box-shadow: var(--shadow);
            transition: all 0.3s ease;
        }
        
        .budget-card:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-hover);
        }
        
        .budget-card h4 {
            color: var(--primary-color);
            margin-bottom: 1rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .budget-starter {
            border-left: 4px solid var(--success-color);
        }
        
        .budget-intermediate {
            border-left: 4px solid var(--warning-color);
        }
        
        .budget-advanced {
            border-left: 4px solid var(--accent-color);
        }
        
        .cost-breakdown {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 1rem;
            margin: 2rem 0;
        }
        
        .cost-item {
            background: var(--bg-light);
            border: 1px solid var(--border-color);
            border-radius: 10px;
            padding: 1.5rem;
            text-align: center;
        }
        
        .cost-item i {
            font-size: 2rem;
            color: var(--secondary-color);
            margin-bottom: 1rem;
        }
        
        .cost-item h5 {
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: var(--text-color);
        }
        
        .cost-item .price {
            font-size: 1.25rem;
            font-weight: 700;
            color: var(--primary-color);
        }

      /* Enhanced Hero Section */
        .hero-podstawy {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 8rem 0 6rem;
            position: relative;
            overflow: hidden;
            min-height: 80vh;
            display: flex;
            align-items: center;
        }

        .hero-podstawy::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="train-pattern" patternUnits="userSpaceOnUse" width="50" height="50"><circle cx="15" cy="15" r="2" fill="white" opacity="0.1"/><circle cx="35" cy="35" r="1.5" fill="white" opacity="0.08"/><rect x="8" y="25" width="12" height="3" fill="white" opacity="0.05"/><rect x="30" y="8" width="8" height="2" fill="white" opacity="0.06"/></pattern></defs><rect width="100" height="100" fill="url(%23train-pattern)"/></svg>');
            animation: movePattern 120s linear infinite;
        }

        .hero-stats {
            background: rgba(255,255,255,0.1);
            border-radius: 15px;
            padding: 2rem;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255,255,255,0.2);
            margin-top: 3rem;
        }

        .hero-stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
            gap: 2rem;
            text-align: center;
        }

        .hero-stat-item {
            opacity: 0;
            animation: fadeInUp 0.8s ease forwards;
        }

        .hero-stat-item:nth-child(1) { animation-delay: 0.2s; }
        .hero-stat-item:nth-child(2) { animation-delay: 0.4s; }
        .hero-stat-item:nth-child(3) { animation-delay: 0.6s; }
        .hero-stat-item:nth-child(4) { animation-delay: 0.8s; }

        .hero-stat-number {
            font-family: 'Playfair Display', serif;
            font-size: 2.5rem;
            font-weight: 700;
            display: block;
            margin-bottom: 0.5rem;
        }

        .hero-stat-label {
            font-size: 0.9rem;
            opacity: 0.9;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        /* Enhanced Cards */
        .guide-card {
            background: var(--bg-white);
            border-radius: 20px;
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            height: 100%;
            border: 1px solid var(--border-color);
            position: relative;
        }

        .guide-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 5px;
            background: var(--gradient-primary);
            transform: scaleX(0);
            transition: transform 0.3s ease;
        }

        .guide-card:hover {
            transform: translateY(-12px) scale(1.03);
            box-shadow: 0 20px 60px rgba(0,0,0,0.15);
        }

        .guide-card:hover::before {
            transform: scaleX(1);
        }

        .guide-card-icon {
            height: 200px;
            background: var(--gradient-primary);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 4rem;
            color: white;
            position: relative;
            overflow: hidden;
        }

        .guide-card:nth-child(even) .guide-card-icon {
            background: var(--gradient-secondary);
        }

        .guide-card-icon::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60"><circle cx="15" cy="15" r="1.5" fill="white" opacity="0.1"/><circle cx="45" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="25" cy="45" r="1.2" fill="white" opacity="0.1"/></svg>');
            animation: float 15s infinite ease-in-out;
        }

        .guide-card-content {
            padding: 2.5rem;
        }

        .guide-card-badge {
            display: inline-block;
            background: linear-gradient(45deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
            color: var(--primary-color);
            padding: 0.5rem 1rem;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 600;
            margin-bottom: 1rem;
            border: 1px solid rgba(102, 126, 234, 0.2);
        }

        .guide-card h3 {
            font-family: 'Playfair Display', serif;
            font-size: 1.5rem;
            font-weight: 600;
            margin-bottom: 1rem;
            line-height: 1.3;
            color: var(--text-color);
        }

        .guide-card p {
            color: var(--light-text);
            line-height: 1.7;
            margin-bottom: 2rem;
        }

        .guide-card-link {
            color: var(--secondary-color);
            text-decoration: none;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            transition: all 0.3s ease;
            padding: 0.75rem 1.5rem;
            border-radius: 30px;
            border: 2px solid var(--secondary-color);
            background: transparent;
        }

        .guide-card-link:hover {
            background: var(--secondary-color);
            color: white;
            transform: translateX(5px);
        }

        .guide-card-link i {
            transition: transform 0.3s ease;
        }

        .guide-card-link:hover i {
            transform: translateX(3px);
        }

        /* Journey Timeline */
        .journey-timeline {
            position: relative;
            padding: 4rem 0;
            background: var(--bg-light);
        }

        .timeline-path {
            position: relative;
            max-width: 1000px;
            margin: 0 auto;
        }

        .timeline-path::before {
            content: '';
            position: absolute;
            left: 50%;
            top: 0;
            bottom: 0;
            width: 4px;
            background: var(--gradient-primary);
            transform: translateX(-50%);
            border-radius: 2px;
        }

        .timeline-step {
            position: relative;
            margin-bottom: 4rem;
            display: flex;
            align-items: center;
        }

        .timeline-step:nth-child(even) {
            flex-direction: row-reverse;
        }

        .timeline-step:nth-child(even) .timeline-content {
            text-align: right;
        }

        .timeline-marker {
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            width: 60px;
            height: 60px;
            background: var(--bg-white);
            border: 4px solid var(--primary-color);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            color: var(--primary-color);
            z-index: 2;
            box-shadow: var(--shadow);
        }

        .timeline-content {
            width: 45%;
            background: var(--bg-white);
            border-radius: 15px;
            padding: 2rem;
            box-shadow: var(--shadow);
            border: 1px solid var(--border-color);
            position: relative;
        }

        .timeline-content::after {
            content: '';
            position: absolute;
            top: 50%;
            width: 0;
            height: 0;
            border: 15px solid transparent;
        }

        .timeline-step:nth-child(odd) .timeline-content::after {
            right: -30px;
            border-left-color: var(--bg-white);
            transform: translateY(-50%);
        }

        .timeline-step:nth-child(even) .timeline-content::after {
            left: -30px;
            border-right-color: var(--bg-white);
            transform: translateY(-50%);
        }

        .timeline-step h4 {
            font-family: 'Playfair Display', serif;
            color: var(--primary-color);
            font-size: 1.25rem;
            margin-bottom: 1rem;
            font-weight: 600;
        }

        .timeline-step p {
            color: var(--light-text);
            line-height: 1.6;
            margin-bottom: 0;
        }

        /* Quick Start Section */
        .quick-start {
            background: var(--bg-white);
            padding: 5rem 0;
            position: relative;
        }

        .quick-start-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
            margin-top: 3rem;
        }

        .quick-start-card {
            text-align: center;
            padding: 2rem;
            border-radius: 15px;
            background: var(--bg-light);
            border: 1px solid var(--border-color);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .quick-start-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
            transition: left 0.6s ease;
        }

        .quick-start-card:hover::before {
            left: 100%;
        }

        .quick-start-card:hover {
            transform: translateY(-8px);
            box-shadow: var(--shadow-hover);
            background: var(--bg-white);
        }

        .quick-start-card i {
            font-size: 3rem;
            color: var(--secondary-color);
            margin-bottom: 1.5rem;
        }

        .quick-start-card h4 {
            font-weight: 600;
            margin-bottom: 1rem;
            color: var(--text-color);
        }

        .quick-start-card p {
            color: var(--light-text);
            font-size: 0.9rem;
            line-height: 1.6;
        }

        /* Enhanced CTA */
        .cta-section {
            background: var(--gradient-primary);
            color: white;
            padding: 5rem 0;
            position: relative;
            overflow: hidden;
        }

        .cta-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><polygon points="0,0 100,0 85,100 0,100" fill="white" opacity="0.05"/><polygon points="15,0 100,0 100,100 30,100" fill="white" opacity="0.03"/></svg>');
        }

        .cta-content {
            text-align: center;
            position: relative;
            z-index: 2;
        }

        .cta-content h2 {
            font-family: 'Playfair Display', serif;
            font-size: 3rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            background: linear-gradient(45deg, #fff, #e3f2fd);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .cta-content p {
            font-size: 1.2rem;
            margin-bottom: 2.5rem;
            opacity: 0.95;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
        }

        /* Responsive Design */
        @media screen and (max-width: 768px) {
            .hero-podstawy {
                padding: 4rem 0 3rem;
                min-height: 70vh;
            }

            .hero-podstawy h1 {
                font-size: 2.5rem;
            }

            .hero-stats-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 1rem;
            }

            .timeline-path::before {
                left: 30px;
            }

            .timeline-step {
                flex-direction: row !important;
                padding-left: 4rem;
            }

            .timeline-marker {
                left: 30px;
                transform: translateY(-50%);
            }

            .timeline-content {
                width: 100%;
                text-align: left !important;
            }

            .timeline-content::after {
                display: none;
            }

            .cta-content h2 {
                font-size: 2.25rem;
            }

            .guide-card:hover {
                transform: translateY(-8px) scale(1.02);
            }
        }
      /* Enhanced image showcase */
        .hero-image-showcase {
            position: relative;
            height: 400px;
            background: linear-gradient(135deg, rgba(26, 35, 126, 0.8), rgba(118, 75, 162, 0.8)), url('../../images/pendolino-model-kolejki.webp');
            background-size: cover;
            background-position: center;
            border-radius: 20px;
            overflow: hidden;
            margin: 2rem 0;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
        }
        
        .hero-image-showcase::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60"><circle cx="15" cy="15" r="1" fill="white" opacity="0.1"/><circle cx="45" cy="25" r="1" fill="white" opacity="0.1"/><rect x="20" y="40" width="20" height="2" fill="white" opacity="0.05"/></svg>');
            animation: float 20s infinite ease-in-out;
        }
        
        .hero-showcase-content {
            text-align: center;
            z-index: 2;
            position: relative;
        }
        
        .hero-showcase-content h3 {
            font-family: 'Playfair Display', serif;
            font-size: 2.5rem;
            margin-bottom: 1rem;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        }
        
        /* Enhanced comparison tables */
        .comparison-table {
            background: var(--bg-white);
            border-radius: 20px;
            overflow: hidden;
            box-shadow: var(--shadow-hover);
            margin: 3rem 0;
            border: 1px solid var(--border-color);
        }
        
        .comparison-header {
            background: var(--gradient-primary);
            color: white;
            padding: 2rem;
            text-align: center;
        }
        
        .comparison-header h3 {
            font-family: 'Playfair Display', serif;
            font-size: 2rem;
            margin-bottom: 0.5rem;
        }
        
        .comparison-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 0;
        }
        
        .comparison-item {
            padding: 2rem;
            border-right: 1px solid var(--border-color);
            transition: all 0.3s ease;
            position: relative;
        }
        
        .comparison-item:last-child {
            border-right: none;
        }
        
        .comparison-item:hover {
            background: var(--bg-light);
            transform: translateY(-5px);
        }
        
        .comparison-item h4 {
            color: var(--primary-color);
            font-weight: 600;
            margin-bottom: 1rem;
            font-size: 1.25rem;
        }
        
        .comparison-item .metric {
            font-size: 2rem;
            font-weight: 700;
            color: var(--secondary-color);
            display: block;
            margin-bottom: 0.5rem;
        }
        
        /* Interactive model gallery */
        .model-gallery {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 2rem;
            margin: 3rem 0;
        }
        
        .model-card {
            background: var(--bg-white);
            border-radius: 15px;
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            border: 1px solid var(--border-color);
            position: relative;
        }
        
        .model-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: var(--gradient-secondary);
            transform: scaleX(0);
            transition: transform 0.3s ease;
        }
        
        .model-card:hover {
            transform: translateY(-10px) scale(1.02);
            box-shadow: 0 20px 40px rgba(0,0,0,0.15);
        }
        
        .model-card:hover::before {
            transform: scaleX(1);
        }
        
        .model-image {
            height: 200px;
            background-size: cover;
            background-position: center;
            position: relative;
            overflow: hidden;
        }
        
        .model-image::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(0deg, rgba(0,0,0,0.1) 0%, transparent 50%);
        }
        
        .model-content {
            padding: 1.5rem;
        }
        
        .model-badge {
            position: absolute;
            top: 1rem;
            right: 1rem;
            background: rgba(255,255,255,0.9);
            color: var(--primary-color);
            padding: 0.5rem 1rem;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
            backdrop-filter: blur(10px);
        }
        
        /* Enhanced pros/cons sections */
        .pros-cons-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
            margin: 3rem 0;
        }
        
        .pros-card, .cons-card {
            background: var(--bg-white);
            border-radius: 15px;
            padding: 2rem;
            box-shadow: var(--shadow);
            border: 1px solid var(--border-color);
        }
        
        .pros-card {
            border-left: 5px solid var(--success-color);
        }
        
        .cons-card {
            border-left: 5px solid var(--warning-color);
        }
        
        .pros-card h4 {
            color: var(--success-color);
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 1.5rem;
        }
        
        .cons-card h4 {
            color: var(--warning-color);
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 1.5rem;
        }
        
        .pros-cons-list {
            list-style: none;
            padding: 0;
        }
        
        .pros-cons-list li {
            padding: 0.75rem 0;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            align-items: center;
            gap: 1rem;
        }
        
        .pros-cons-list li:last-child {
            border-bottom: none;
        }
        
        .pros-cons-list li i {
            flex-shrink: 0;
        }
        
        .pros-card li i {
            color: var(--success-color);
        }
        
        .cons-card li i {
            color: var(--warning-color);
        }
        
        /* Interactive price calculator */
        .price-calculator {
            background: var(--gradient-primary);
            color: rgb(0, 0, 0);
            border-radius: 20px;
            padding: 3rem;
            margin: 3rem 0;
            position: relative;
            overflow: hidden;
        }
        
        .price-calculator::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="white" opacity="0.1"/><circle cx="80" cy="60" r="1.5" fill="white" opacity="0.08"/><rect x="40" y="80" width="20" height="3" fill="white" opacity="0.05"/></svg>');
        }
        
        .calculator-content {
            position: relative;
            z-index: 2;
        }
        
        .calculator-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 2rem;
            margin-top: 2rem;
        }
        
        .calculator-item {
            background: rgba(255,255,255,0.1);
            border-radius: 15px;
            padding: 1.5rem;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255,255,255,0.2);
            text-align: center;
        }
        
        .calculator-item h5 {
            margin-bottom: 0.5rem;
            font-weight: 600;
        }
        
        .price-range {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
        }
        
        /* Responsive images */
        .article-image-modern {
            position: relative;
            border-radius: 15px;
            overflow: hidden;
            margin: 3rem 0;
            box-shadow: var(--shadow-hover);
        }
        
        .article-image-modern img {
            width: 100%;
            height: auto;
            transition: transform 0.3s ease;
        }
        
        .article-image-modern:hover img {
            transform: scale(1.05);
        }
        
        .image-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(transparent, rgba(0,0,0,0.7));
            color: white;
            padding: 2rem;
            transform: translateY(100%);
            transition: transform 0.3s ease;
        }
        
        .article-image-modern:hover .image-overlay {
            transform: translateY(0);
        }
        
        @media screen and (max-width: 768px) {
            .pros-cons-grid {
                grid-template-columns: 1fr;
                gap: 1rem;
            }
            
            .hero-image-showcase {
                height: 300px;
                margin: 1rem 0;
            }
            
            .hero-showcase-content h3 {
                font-size: 2rem;
            }
            
            .comparison-grid {
                grid-template-columns: 1fr;
            }
            
            .comparison-item {
                border-right: none;
                border-bottom: 1px solid var(--border-color);
            }
            
            .comparison-item:last-child {
                border-bottom: none;
            }
        }	

      /* Planning specific styles */
        .planning-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 2rem;
            margin: 3rem 0;
        }
        
        .planning-card {
            background: var(--bg-white);
            border-radius: 15px;
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            border: 1px solid var(--border-color);
            position: relative;
        }
        
        .planning-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: var(--gradient-primary);
            transform: scaleX(0);
            transition: transform 0.3s ease;
        }
        
        .planning-card:hover {
            transform: translateY(-10px) scale(1.02);
            box-shadow: 0 20px 40px rgba(0,0,0,0.15);
        }
        
        .planning-card:hover::before {
            transform: scaleX(1);
        }
        
        .planning-image {
            height: 200px;
            background-size: cover;
            background-position: center;
            position: relative;
            overflow: hidden;
        }
        
        .planning-image::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(0deg, rgba(0,0,0,0.3) 0%, transparent 70%);
        }
        
        .planning-content {
            padding: 2rem;
        }
        
        .planning-badge {
            position: absolute;
            top: 1rem;
            right: 1rem;
            background: rgba(255,255,255,0.9);
            color: var(--primary-color);
            padding: 0.5rem 1rem;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
            backdrop-filter: blur(10px);
        }
        
        /* Layout types showcase */
        .layout-showcase {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            margin: 3rem 0;
        }
        
        .layout-type {
            background: var(--bg-light);
            border-radius: 15px;
            padding: 2rem;
            text-align: center;
            transition: all 0.3s ease;
            border: 2px solid transparent;
        }
        
        .layout-type:hover {
            background: var(--bg-white);
            border-color: var(--primary-color);
            transform: translateY(-5px);
            box-shadow: var(--shadow-hover);
        }
        
        .layout-icon {
            font-size: 4rem;
            color: var(--secondary-color);
            margin-bottom: 1rem;
        }
        
        .layout-type h4 {
            color: var(--primary-color);
            margin-bottom: 1rem;
        }
        
        /* Step-by-step process */
        .process-steps {
            margin: 3rem 0;
        }
        
        .step-card {
            background: var(--bg-white);
            border-radius: 15px;
            padding: 2rem;
            margin-bottom: 2rem;
            box-shadow: var(--shadow);
            border-left: 5px solid var(--primary-color);
            position: relative;
            transition: all 0.3s ease;
        }
        
        .step-card:hover {
            transform: translateX(10px);
            box-shadow: var(--shadow-hover);
        }
        
        .step-number {
            position: absolute;
            left: -15px;
            top: 2rem;
            width: 30px;
            height: 30px;
            background: var(--primary-color);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-size: 1.1rem;
        }
        
        .step-card h4 {
            color: var(--primary-color);
            margin-bottom: 1rem;
            margin-left: 1rem;
        }
        
        /* Tools and materials */
 .tools-grid
        
        /* Interactive planning canvas */
        .planning-canvas {
            background: var(--gradient-primary);
            color: white;
            border-radius: 20px;
            padding: 3rem;
            margin: 3rem 0;
            position: relative;
            overflow: hidden;
            text-align: center;
        }
        
        .planning-canvas::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="white" opacity="0.1"/><circle cx="80" cy="60" r="1.5" fill="white" opacity="0.08"/><rect x="40" y="80" width="20" height="3" fill="white" opacity="0.05"/></svg>');
        }
        
        .canvas-content {
            position: relative;
            z-index: 2;
        }
        
        /* Checklist styles */
        .planning-checklist {
            background: var(--bg-light);
            border-radius: 15px;
            padding: 2rem;
            margin: 2rem 0;
        }
        
        .checklist-item {
            display: flex;
            align-items: center;
            padding: 0.75rem 0;
            border-bottom: 1px solid var(--border-color);
        }
        
        .checklist-item:last-child {
            border-bottom: none;
        }
        
        .checklist-checkbox {
            width: 20px;
            height: 20px;
            border: 2px solid var(--primary-color);
            border-radius: 4px;
            margin-right: 1rem;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .checklist-checkbox.checked {
            background: var(--primary-color);
            color: white;
        }
        
        .checklist-text {
            flex: 1;
            font-weight: 500;
        }
        
        @media screen and (max-width: 768px) {
            .planning-grid {
                grid-template-columns: 1fr;
                gap: 1rem;
            }
            
            .layout-showcase {
                grid-template-columns: 1fr;
                gap: 1rem;
            }
            
            .tools-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 1rem;
            }
            
            .step-card {
                padding: 1.5rem;
                margin-left: 1rem;
            }
        }
/* Photo Gallery Styles */
.photo-gallery-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: var(--shadow);
    height: 250px;
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

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

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        0deg,
        rgba(26, 35, 126, 0.8) 0%,
        rgba(26, 35, 126, 0.4) 40%,
        transparent 70%
    );
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    opacity: 0;
    transition: all 0.3s ease;
    padding: 2rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    transform: translateY(20px);
    transition: transform 0.3s ease 0.1s;
}

.gallery-item:hover .gallery-overlay i {
    transform: translateY(0);
}

.gallery-overlay h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    transform: translateY(20px);
    transition: transform 0.3s ease 0.2s;
}

.gallery-item:hover .gallery-overlay h4 {
    transform: translateY(0);
}

.gallery-overlay p {
    font-size: 0.95rem;
    opacity: 0.9;
    transform: translateY(20px);
    transition: transform 0.3s ease 0.3s;
    margin: 0;
}

.gallery-item:hover .gallery-overlay p {
    transform: translateY(0);
}

/* Lightbox Styles */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.lightbox-overlay.active {
    display: flex;
    animation: lightboxFadeIn 0.3s ease;
}

.lightbox-container {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
    background: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}

.lightbox-content {
    display: flex;
    flex-direction: column;
}

.lightbox-content img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    background: #f5f5f5;
}

.lightbox-info {
    padding: 2rem;
    background: var(--bg-white);
}

.lightbox-info h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.lightbox-info p {
    color: var(--light-text);
    margin: 0;
    line-height: 1.6;
}

.lightbox-navigation {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    padding: 0 1rem;
}

.lightbox-prev,
.lightbox-next {
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    pointer-events: all;
    transition: all 0.3s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

/* Animations */
@keyframes lightboxFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .photo-gallery {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .gallery-item {
        height: 200px;
    }
    
    .lightbox-container {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .lightbox-content {
        flex-direction: column;
    }
    
    .lightbox-info {
        padding: 1.5rem;
    }
    
    .lightbox-navigation {
        padding: 0 0.5rem;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

@media screen and (max-width: 480px) {
    .photo-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery-item {
        height: 180px;
    }
    
    .gallery-overlay {
        padding: 1rem;
    }
    
    .gallery-overlay h4 {
        font-size: 1.2rem;
    }
    
    .gallery-overlay p {
        font-size: 0.85rem;
    }
}		
/* END OF CSS FILE */