:root {
    --primary-purple: #8a2be2; /* BlueViolet */
    --secondary-blue: #6a5acd; /* SlateBlue */
    --accent-purple: #9370DB; /* MediumPurple */
    --text-dark: #333;
    --text-light: #f4f4f9;
    --background-light: #f4f4f9;
    --background-dark: #1a1a1a;
    --card-light: #fff;
    --card-dark: #2a2a2a;
    --hover-effect: #a67bfb; /* Jaśniejszy fiolet na hover */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: var(--background-light);
    color: var(--text-dark);
    transition: background 0.3s, color 0.3s;
}

/* Header & Navigation */
header {
    background: var(--primary-purple);
    color: var(--text-light);
    padding: 15px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
}

.logo-totalnie {
    color: var(--text-light);
}

.logo-life {
    color: var(--accent-purple); /* Delikatnie inny odcień dla kontrastu */
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: bold;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

nav ul li a::after { /* Efekt podkreślenia na hover */
    content: '';
    position: absolute;
    width: 0%;
    height: 3px;
    background: var(--accent-purple);
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a:hover {
    color: var(--accent-purple);
}

/* Hero Section */
.hero {
    height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-blue));
    color: var(--text-light);
    padding: 0 20px;
    box-shadow: inset 0 -5px 15px rgba(0,0,0,0.3);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    background: var(--accent-purple);
    color: var(--text-light);
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 50px; /* Zaokrąglony przycisk */
    font-weight: bold;
    font-size: 1.1rem;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background: var(--hover-effect);
    transform: translateY(-3px); /* Efekt lekkiego uniesienia */
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* Blog Sections */
.blog-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}

.blog-section h2 {
    font-size: 2.8rem;
    margin-bottom: 40px;
    color: var(--primary-purple);
}

/* Artykuły */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-post {
    background: var(--card-light);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post:hover { /* Efekt hover dla artykułów */
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

.blog-post h3 {
    color: var(--secondary-blue);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.blog-post p {
    margin-bottom: 20px;
    color: #555;
}

.read-more-btn {
    display: inline-block;
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: bold;
    position: relative;
    padding-bottom: 3px;
}

.read-more-btn::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    background: var(--primary-purple);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

.read-more-btn:hover::after {
    width: 100%;
}

/* Galeria */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.gallery-item {
    background: var(--card-light);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover { /* Efekt hover dla galerii */
    transform: scale(1.03);
    box-shadow: 0 15px 30px rgba(0,0,0,0.25);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05); /* Zoom na obrazku */
}

.gallery-item p {
    padding: 15px;
    font-style: italic;
    color: #666;
}

/* Video Section */
.video-section .video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: var(--background-dark);
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    margin-top: 30px;
}

.video-section .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-section p {
    margin-top: 20px;
    font-size: 1.1rem;
    color: #666;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(45deg, var(--secondary-blue), var(--accent-purple));
    color: var(--text-light);
    padding: 60px 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.contact-section h2 {
    color: var(--text-light);
    margin-bottom: 25px;
}

.contact-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    margin-bottom: 15px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(255,255,255,0.9);
    color: var(--text-dark);
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #888;
}

.contact-form button.btn {
    background: var(--primary-purple);
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.3s ease, transform 0.2s ease;
}

.contact-form button.btn:hover {
    background: var(--hover-effect);
    transform: translateY(-3px);
}


/* Footer */
footer {
    background: var(--text-dark);
    color: var(--text-light);
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .logo {
        font-size: 1.5rem;
    }
    nav ul {
        flex-direction: column;
        align-items: flex-end;
    }
    nav ul li {
        margin: 10px 0;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .blog-section h2 {
        font-size: 2rem;
    }
    .articles-grid, .gallery-grid {
        grid-template-columns: 1fr;
    }
    .video-section .video-container {
        padding-bottom: 75%; /* More suitable for mobile */
    }
}