/* Base Styles */
:root {
    --primary-color: #8B0000; /* Bordowy zamiast fioletowego #4a00e0 */
    --secondary-color: #B22222; /* Jaśniejszy bordowy zamiast niebieskiego #0066ff */
    --accent-color: #DC143C; /* Karmazynowy akcent zamiast niebieskiego #00c2ff */
    --text-color: #333;
    --text-light: #666;
    --background-color: #fff;
    --background-light: #f8f9fa;
    --border-color: #e1e4e8;
    --success-color: #28a745;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --navbar-bg: rgba(0, 0, 0, 0.1); /* Zmiana na prawie przezroczyste tło z lekkim przyciemnieniem */
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--secondary-color);
}

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

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 3rem;
}

section {
    padding: 5rem 0;
}

/* Navigation */
.navbar {
    padding: 0.5rem 0; /* Zmniejszony padding z 1rem na 0.5rem */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: var(--navbar-bg);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.75rem 0;
    background-color: rgba(0, 0, 0, 0.2);
}

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


.logo img {
    height: 3.5rem;
    filter: brightness(0) invert(1); /* Dodanie filtra, aby logo było białe */
    padding: 0; /* Usunięcie paddingu */
    vertical-align: middle; /* Wyrównanie w pionie */
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: white; /* Zmiana koloru tekstu na biały */
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); /* Dodanie delikatnego cienia dla lepszej czytelności */
}

.nav-links a:hover {
    color: var(--accent-color); /* Zmiana koloru po najechaniu na bordowy akcent */
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

.btn-login {
    color: white; /* Zmiana koloru tekstu na biały */
    font-weight: 500;
    padding: 0.5rem 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); /* Dodanie delikatnego cienia dla lepszej czytelności */
}

.btn-login:hover {
    color: var(--accent-color); /* Zmiana koloru po najechaniu na bordowy akcent */
}

.btn-signup {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    border: 1px solid var(--primary-color);
}

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

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white; /* Dodanie białego koloru dla ikony menu mobilnego */
}

/* Hero Section */
header {
    background: linear-gradient(135deg, #8B0000, #4A0000);
    color: white;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/pattern.svg');
    opacity: 0.05;
    z-index: 1;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8rem 0 5rem;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h1 {
    color: white;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    display: inline-block;
    border: 2px solid var(--primary-color);
}

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

.btn-secondary {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: float 6s ease-in-out infinite;
}

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

/* Track Progress Section */
.track-progress {
    background-color: var(--background-light);
}

.dashboard-preview {
    margin: 3rem 0;
    text-align: center;
}

.dashboard-preview img {
    max-width: 90%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background-color: var(--background-color);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

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

/* Easy Management Section */
.easy-management {
    padding: 5rem 0;
    background: linear-gradient(135deg, #4A0000, #8B0000);
    position: relative;
    overflow: hidden;
}

.easy-management::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/pattern.svg');
    opacity: 0.05;
    z-index: 1;
}

.easy-management .container {
    position: relative;
    z-index: 2;
}

.easy-management h2,
.easy-management .section-subtitle {
    color: white;
    text-align: center;
}

.management-features {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
    justify-content: center;
}

.management-card {
    flex: 1 1 300px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.management-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.management-image {
    margin-bottom: 1.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.management-image img {
    max-width: 60%;
}

.management-card h3 {
    margin-bottom: 1rem;
    color: white;
}

.management-card p {
    color: rgba(255, 255, 255, 0.8);
}

/* Pricing Section */
.pricing {
    background-color: var(--background-light);
    padding: 6rem 0;
}

.pricing-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.pricing-card {
    background-color: white;
    border-radius: 8px;
    padding: 3rem 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    width: 350px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.price {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #333;
}

.price span {
    font-size: 1.2rem;
    font-weight: 500;
    margin-left: 0.25rem;
}

.features-list {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.features-list li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.features-list li:before {
    content: "✓";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.btn-pricing {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-pricing:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    color: white; /* Upewniamy się, że tekst pozostaje biały i widoczny */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); /* Dodajemy cień dla lepszej czytelności */
}

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

/* Testimonials Section */
.testimonials-slider {
    display: flex;
    gap: 2rem;
    overflow-x: hidden;
    margin-bottom: 2rem;
}

.testimonial {
    flex: 0 0 calc(33.333% - 1.5rem);
    background-color: var(--background-color);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 0.25rem;
}

.author-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--border-color);
    cursor: pointer;
}

.dot.active {
    background-color: var(--primary-color);
}

/* Process Steps Section */
.process-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
}

.process-card {
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    width: 250px;
    height: 280px; /* Zmniejszenie wysokości karty */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between; /* Równomierne rozłożenie elementów */
    min-height: 200px;
}

.process-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
    background: rgba(30, 30, 30, 0.8);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.process-icon {
    font-size: 2.5rem;
    color: #ff1a4b;
    background: rgba(220, 20, 60, 0.15);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.5rem auto 0.5rem; /* Mniejszy margines dolny */
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.2);
    position: relative;
}

.process-icon i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 2.5rem;
}

.process-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-top: 15px;
}

.process-content p {
    color: white;
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 100%;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    margin-bottom: 0px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3; /* Add standard property */
    -webkit-box-orient: vertical; /* Ensure orientation is set */
    overflow: hidden;
    text-overflow: ellipsis;
}

.process-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: white;
    font-weight: 600;
}

.process-arrow {
    font-size: 1.5rem;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Process Steps */
@media (max-width: 1200px) {
    .process-steps {
        gap: 0.75rem;
    }
    
    .process-card {
        width: 220px;
        padding: 1.5rem 1rem;
    }
    
    .process-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
}

@media (max-width: 992px) {
    .process-steps {
        flex-direction: column;
        gap: 2rem;
    }
    
    .process-card {
        width: 100%;
        max-width: 350px;
        height: auto;
        min-height: 220px;
    }
    
    .process-arrow {
        transform: rotate(90deg);
        margin: 0.5rem 0;
    }
}

@media (max-width: 576px) {
    .process-card {
        max-width: 100%;
        padding: 2rem 1rem;
    }
    
    .process-steps {
        margin-top: 2rem;
    }
    
    .easy-management {
        padding: 4rem 0;
    }
}

/* 3D Phone Handset */
.phone-handset-3d {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 300px;
    height: 300px;
    margin: 0 auto;
    position: relative;
    perspective: 800px;
}

.phone-handset-3d i {
    font-size: 8rem;
    color: white;
    text-shadow: 
        0 1px 0 #ccc,
        0 2px 0 #c9c9c9,
        0 3px 0 #bbb,
        0 4px 0 #b9b9b9,
        0 5px 0 #aaa,
        0 6px 1px rgba(0,0,0,.1),
        0 0 5px rgba(0,0,0,.1),
        0 1px 3px rgba(0,0,0,.3),
        0 3px 5px rgba(0,0,0,.2),
        0 5px 10px rgba(0,0,0,.25),
        0 10px 10px rgba(0,0,0,.2),
        0 20px 20px rgba(0,0,0,.15);
    transform: rotateY(20deg) rotateX(10deg);
    transition: all 0.3s ease;
    animation: float 6s ease-in-out infinite;
}

.phone-handset-3d i:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.1);
}

@keyframes float {
    0% {
        transform: rotateY(20deg) rotateX(10deg) translateY(0px);
    }
    50% {
        transform: rotateY(25deg) rotateX(15deg) translateY(-20px);
    }
    100% {
        transform: rotateY(20deg) rotateX(10deg) translateY(0px);
    }
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: white;
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 2fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-logo p {
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    color: white;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: white;
}

.footer-newsletter h4 {
    margin-bottom: 1rem;
}

.footer-newsletter p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 4px 0 0 4px;
}

.newsletter-form button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0 1.5rem;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: var(--secondary-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
}

.social-links a:hover {
    color: white;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
    
    .footer-logo, .footer-newsletter {
        grid-column: span 3;
        text-align: center;
    }
    
    .newsletter-form {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .nav-links, .nav-buttons {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
        color: white; /* Changed back to white */
    }
    
    .mobile-menu {
        background-color: rgba(0, 0, 0, 0.8);
        color: white;
    }
    
    .mobile-menu a {
        color: white;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 3rem 0;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .management-features {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .pricing-cards {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .testimonials-slider {
        flex-direction: column;
    }
    
    .testimonial {
        flex: 0 0 100%;
        margin-bottom: 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo, .footer-newsletter {
        grid-column: span 1;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
    
    header {
        padding-top: 70px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    section {
        padding: 3rem 0;
    }
}

/* Personalized Messages Section */
.personalized-messages {
    padding: 5rem 0;
    background-color: #f9f9f9;
}

.message-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 3rem;
}

.message-options {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.message-option {
    flex: 0 1 300px;
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
}

.message-option:hover {
    transform: translateY(-10px);
}

.message-icon {
    width: 80px;
    height: 80px;
    background-color: #8B0000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.message-icon i {
    font-size: 2.5rem;
    color: white;
}

.message-option h3 {
    margin-bottom: 1rem;
    color: #333;
}

.message-option p {
    color: #666;
}

.ai-samples {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.ai-samples h3 {
    margin-bottom: 1.5rem;
    color: #333;
    text-align: center;
}

.audio-samples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.audio-sample {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.audio-sample span {
    font-weight: 600;
    color: #8B0000;
}

.audio-sample audio {
    width: 100%;
    height: 40px;
}

.message-cta {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .message-options {
        flex-direction: column;
        align-items: center;
    }
    
    .message-option {
        width: 100%;
        max-width: 350px;
    }
    
    .audio-samples {
        grid-template-columns: 1fr;
    }
}

/* Instax Frames */
.instax-frames {
    display: flex;
    gap: 2rem;
    justify-content: center;
    animation: float-frames 3s ease-in-out infinite;
}

.instax-frame {
    background: white;
    padding: 15px 15px 45px 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-radius: 2px;
    position: relative;
    transition: transform 0.3s ease, z-index 0.1s;
    cursor: pointer;
}

.instax-frame:nth-child(1) {
    transform: rotate(-5deg);
}

.instax-frame:nth-child(2) {
    margin-top: 20px;
    transform: rotate(8deg);
}

.instax-photo {
    width: 200px;
    height: 250px;
    background-color: #f0f0f0;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.placeholder-text {
    color: #999;
    font-size: 0.9rem;
    text-align: center;
    padding: 1rem;
}

@keyframes float-frames {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0);
    }
}

.instax-frame:hover {
    transform: scale(1.05) rotate(0) !important;
    z-index: 2;
}

.instax-frame.active {
    z-index: 3 !important;
}

@media (max-width: 768px) {
    .instax-frames {
        flex-direction: column;
        align-items: center;
        position: relative;
        height: 600px; /* Jeszcze bardziej zwiększona wysokość */
        margin-top: 30px;
    }

    .instax-frame:nth-child(1) {
        transform: rotate(-8deg);
        position: absolute;
        top: 0;
        left: 50%;
        margin-left: -170px; /* Jeszcze bardziej w lewo */
        z-index: 1;
    }

    .instax-frame:nth-child(2) {
        transform: rotate(8deg);
        position: absolute;
        top: 250px; /* Jeszcze większy odstęp w dół */
        left: 50%;
        margin-left: -50px; /* Jeszcze bardziej w prawo */
        z-index: 2;
    }

    @keyframes float-frames {
        0% {
            transform: translateY(0);
        }
        50% {
            transform: translateY(-10px);
        }
        100% {
            transform: translateY(0);
        }
    }

    .instax-frame:hover {
        transform: scale(1.03) !important;
    }
}

/* Contact Section */
.contact-section {
    padding-top: 2rem; /* Zmniejszony górny padding z 4rem na 2rem */
    padding-bottom: 4rem;
    text-align: center;
    background-color: #f9f9f9;
    margin-top: -2rem; /* Ujemny margines, aby przybliżyć do poprzedniej sekcji */
}

.contact-section h2 {
    margin-bottom: 1rem;
    color: #333;
}

.contact-section p {
    margin-bottom: 2.5rem;
    color: #666;
}

.contact-options {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    padding: 1.5rem;
    border-radius: 12px;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    width: 200px;
    cursor: pointer;
}

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

.contact-item:after {
    content: "→";
    font-size: 1.2rem;
    margin-top: 0.75rem;
    color: #999;
    transition: all 0.3s ease;
}

.contact-item:hover:after {
    transform: translateX(3px);
    color: #666;
}

.contact-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: white;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    transform: scale(1.1);
}

.email-icon {
    background-color: #8B0000;
}

.messenger-icon {
    background-color: #0078FF;
}

.whatsapp-icon {
    background-color: #25D366;
}

.instagram-icon {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D, #F56040, #F77737, #FCAF45, #FFDC80);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-info strong {
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-info span {
    font-size: 0.9rem;
    color: #666;
}

@media (max-width: 768px) {
    .contact-options {
        gap: 2rem;
    }
    
    .contact-item {
        width: 100%;
        max-width: 280px;
    }
    
    .contact-icon {
        width: 60px;
        height: 60px;
    }
    
    .contact-icon i {
        font-size: 1.5rem;
    }
    
    .contact-info strong {
        font-size: 1rem;
    }
    
    .contact-info span {
        font-size: 0.85rem;
    }
}

.contact-item:hover .contact-icon {
    transform: scale(1.1);
}

.contact-icon i {
    font-size: 1.75rem;
}

.email-icon {
    background-color: #8B0000;
}

.messenger-icon {
    background-color: #0078FF;
}

.whatsapp-icon {
    background-color: #25D366;
}

.instagram-icon {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D, #F56040, #F77737, #FCAF45, #FFDC80);
}
