body {
    font-family: 'Raleway', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, #fff5e6, #f8d7da);
    color: #333;
    scroll-behavior: smooth;
}

header {
    position: fixed;
    top: 0;
    right: 0;
    padding: 20px;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: flex-end;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background-color: #E57373;
    color: white;
    padding: 12px 20px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-family: 'Raleway', sans-serif;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {background-color: #f1f1f1;}

.dropdown:hover .dropdown-content {
    display: block;
}

main {
    width: 100%;
}

.card-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    perspective: 1000px;
}

.business-card {
    width: 400px;
    height: auto;
    padding: 40px;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.5s, box-shadow 0.3s ease;
    transform-style: preserve-3d;
}

/* Disable hover effect on main business card to prevent interference with links */
.card-container .business-card:hover {
    transform: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Keep hover effect for other business cards, but disable for contact section */
.content-section .business-card:hover {
    transform: rotateY(5deg) rotateX(5deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Disable hover effect for contact section business card to prevent interference with links */
#kontakt .business-card:hover {
    transform: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card-logo img {
    width: 300px;
    height: auto;
    margin-bottom: 20px;
}

.card-subtitle {
    font-family: 'Nothing You Could Do', cursive;
    font-size: 1.8rem;
    margin: 5px 0 20px;
    color: #555;
}

.card-divider {
    border: 0;
    height: 1px;
    background-color: #ddd;
    margin: 30px 0;
}

.contact-info {
    margin-top: 10px;
    margin-bottom: 20px;
    position: relative;
    z-index: 50;
}

.contact-links-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.contact-links-row a {
    text-decoration: none !important;
    color: #333 !important;
    font-weight: bold;
    display: flex;
    align-items: center;
    cursor: pointer !important;
    pointer-events: auto !important;
    transition: color 0.2s ease;
    position: relative;
    z-index: 100;
    /* Chrome-specific fixes */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* Ensure proper stacking context */
    transform: translateZ(0);
}

.contact-links-row a i {
    margin-right: 8px;
    color: #E57373;
    font-size: 2rem;
}

.contact-links-row a:nth-child(1) i,
.contact-links-row a:nth-child(2) i {
    margin-right: 0;
}

.contact-links-row a:hover {
    color: #E57373 !important;
    cursor: pointer !important;
}

.contact-links-row a:hover i {
    color: #d65a5a !important;
}

.cta-section {
    margin-top: 30px;
    text-align: center;
}

.cta-button {
    display: inline-block;
    background-color: #E57373;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(229, 115, 115, 0.3);
    border: none;
    cursor: pointer;
    font-family: 'Raleway', sans-serif;
}

.cta-button:hover {
    background-color: #d65a5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 115, 115, 0.4);
}

.content-section {
    padding: 100px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

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

.content-section h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-family: 'Nothing You Could Do', cursive;
    position: relative;
    padding-bottom: 15px;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #E57373, #f8d7da);
    border-radius: 2px;
}

/* Common list styles - exclude pricing categories */
.business-card ul:not(.pricing-category ul) {
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    padding-left: 0;
    list-style: none;
}

.business-card li:not(.pricing-category li) {
    text-align: left;
    margin-bottom: 10px;
    padding-left: 35px;
    position: relative;
    line-height: 1.6;
}

.business-card li:not(.pricing-category li)::before {
    content: '';
    background-image: url('pics/bullet.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 25px;
    height: 25px;
    position: absolute;
    left: 0;
    top: 0;
}

/* Specific override for o-mnie section */
#o-mnie .business-card li {
    margin-bottom: 0; /* Reduced space after first-level bullet */
}

.pricing-notes {
    margin-top: 30px;
    text-align: left;
    width: 100%;
}

/* Add margin-bottom only to pricing categories */
.pricing-categories {
    margin-bottom: 30px;
}

/* Pricing category specific styles */
.pricing-category ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.pricing-category li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
    text-align: left;
    line-height: 1.4;
}

.pricing-category li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
    text-align: left;
    line-height: 1.4;
}

.pricing-category li:last-child {
    border-bottom: none;
}

.service-name {
    flex: 1;
    font-weight: 500;
    color: #333;
}

.price {
    font-weight: 700;
    color: #E57373;
    font-size: 1.1rem;
    margin-left: 15px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    width: 100%;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

/* Ensure links work even when parent is hovered */
.contact-item:hover .contact-value a {
    pointer-events: auto !important;
    cursor: pointer !important;
}

.contact-icon {
    background-color: #E57373;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    margin-top: 2px;
}

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

.contact-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Contact section link styles */
.contact-item .contact-value a {
    color: #333 !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
    cursor: pointer !important;
    pointer-events: auto !important;
    position: relative;
    z-index: 200;
    /* Chrome-specific fixes */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* Ensure proper stacking context */
    transform: translateZ(0);
}

.contact-item .contact-value a:hover {
    color: #E57373 !important;
    cursor: pointer !important;
}

.contact-info-notes {
    margin-top: 30px;
    text-align: left;
    width: 100%;
}

/* Common category grid styles */
.offer-categories,
.pricing-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
}

/* Common category card styles */
.offer-category,
.pricing-category {
    background-color: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #E57373;
}

.offer-category h3,
.pricing-category h3 {
    color: #E57373;
    font-size: 1.4rem;
    margin-bottom: 20px;
    text-align: center;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
}

.offer-category ul,
.pricing-category ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.cennik-table {
    width: 80%;
    max-width: 600px;
    margin-top: 20px;
    border-collapse: collapse;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.cennik-table thead {
    background-color: #E57373;
    color: white;
    font-size: 1.2rem;
}

.cennik-table th, .cennik-table td {
    padding: 15px 20px;
    text-align: left;
}

.cennik-table tbody tr {
    border-bottom: 1px solid #ddd;
}

.cennik-table tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

.cennik-table tbody tr:last-of-type {
    border-bottom: 2px solid #E57373;
}

.cennik-table td:last-child {
    font-weight: bold;
    color: #333;
}

.content-section img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .business-card {
        width: 90%;
        height: auto;
        padding: 20px;
    }

    .card-logo img {
        width: 200px;
    }

    .card-subtitle {
        font-size: 1.5rem;
    }

    .contact-links-row {
        flex-direction: row;
        gap: 10px;
    }

    .contact-links-row a {
        font-size: 1rem;
    }

    .contact-links-row a i {
        font-size: 1.5rem;
    }

    .cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .content-section h2 {
        font-size: 2.5rem;
    }

    .pricing-categories {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pricing-category {
        padding: 20px;
    }

    .pricing-category h3 {
        font-size: 1.2rem;
    }

    .pricing-category li {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .price {
        margin-left: 0;
        align-self: flex-end;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .contact-item {
        padding: 15px;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
        margin-right: 12px;
    }

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

    .contact-label {
        font-size: 0.8rem;
    }

    .contact-value {
        font-size: 1rem;
    }

    .offer-categories {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .offer-category {
        padding: 20px;
    }

    .offer-category h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .business-card {
        width: 95%;
        padding: 15px;
    }

    .card-logo img {
        width: 150px;
    }

    .card-subtitle {
        font-size: 1.2rem;
    }

    .contact-links-row a {
        font-size: 0.9rem;
    }

    .contact-links-row a i {
        font-size: 1.2rem;
    }

    .content-section h2 {
        font-size: 2rem;
    }
}