/* Core Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body,
html {
    width: 100%;
    scroll-behavior: smooth;
}

/* Background & Gradient */
.background-container {
    width: 100%;
    min-height: 100vh;
    padding-bottom: 80px;
    /* This creates the smooth blue-to-deep blue transition */
    background: linear-gradient(135deg, #4ed9e6 0%, #3d92db 40%, #204ecf 100%);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Typography */
h1 {
    font-size: clamp(2.5rem, 6vw + 1rem, 6.5rem);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    color: white;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.text-primary {
    color: #e9507f;
    animation: blink 4.5s ease-in-out infinite;
}

/* Glassmorphism Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 12px 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0em;

    a {
        text-decoration: none;
        color: #fff;
        display: flex;
        align-items: center;
        gap: 8px;
    }
}

.nav-links-right {
    display: flex;
    gap: 48px;
    align-items: center;
}

.nav-links-right a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    padding: 10px 24px;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav-links-right a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.nav-links-right a.active {
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.nav-links-right a.btn-kontakt {
    background-color: #e9507f;
    color: #fff;
    border: 1px solid #e9507f;
}

.nav-links-right a.btn-kontakt:hover {
    background-color: #d6426f;
    border-color: #d6426f;
    box-shadow: 0 4px 12px rgba(233, 80, 127, 0.4);
}

/* Hero Content & Overlapping Circles */
.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    padding: 0 64px;
    z-index: 2;
}

.hero-content h1 {
    margin-left: -40px;
}

/* Hero CTA Button */
.btn-primary {
    display: inline-block;
    background-color: #e9507f;
    color: #fff;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(233, 80, 127, 0.4);
    margin-bottom: 40px;
}

.btn-primary:hover {
    background-color: #d6426f;
    box-shadow: 0 6px 20px rgba(233, 80, 127, 0.6);
    transform: translateY(-2px);
}

.hero-images {
    display: flex;
    align-items: center;
}

.circle-img {
    width: 340px;
    height: 340px;
    border-radius: 50%;
    border: 8px solid #fff;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    background: #fff;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, z-index 0s 0.4s;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.circle-img:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    z-index: 10 !important;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, z-index 0s 0s;
}

.circle-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.hover-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    font-weight: 800;
    opacity: 0;
    transition: opacity 0.4s ease;
    letter-spacing: 0.05em;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.circle-img:hover .hover-text {
    opacity: 1;
}

.circle-img.img-1 {
    z-index: 3;
}

.circle-img.img-2 {
    z-index: 2;
    margin-left: -100px;
}

.circle-img.img-3 {
    z-index: 1;
    margin-left: -100px;
}

/* Responsive Design for Mobile & Tablet */
@media (max-width: 1024px) {
    .nav-container {
        flex-direction: column;
        gap: 24px;
        padding: 0 2px;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        padding: 0 32px;
        gap: 60px;
        margin-top: 240px;
    }

    .hero-content h1 {
        margin-left: 0;
    }

    .hero-images {
        justify-content: center;
        width: 100%;
    }

    .background-container {
        height: auto;
        min-height: 100vh;
        padding-bottom: 80px;
    }
}

@media (max-width: 768px) {
    .nav-links-right {
        gap: 1px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links-right a {
        padding: 8px 16px;
        font-size: 0.75rem;
    }

    .hero-content {
        gap: 40px;
        margin-top: 280px;
    }

    .circle-img {
        width: 140px;
        height: 140px;
        border-width: 4px;
        flex-shrink: 0;
    }

    .circle-img.img-2,
    .circle-img.img-3 {
        margin-left: -40px;
    }
}

/* Formatting h2 to look like h1 */
h2 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 40px;
    letter-spacing: -0.02em;
}

/* Sections */
.content-section {
    padding: 100px 0;
    position: relative;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 64px;
}

/* Backgrounds */
.bg-bazeny {
    background-color: #F8FAFC;
    color: #1E293B;
}

.bg-bazeny h2 {
    color: #0F172A;
}

.bg-kurenie {
    background-color: #263e57;
    color: rgba(255, 255, 255, 0.85);
}

.bg-kurenie h2 {
    color: #FFFFFF;
}

/* Dark mode overrides for section-split blocks inside kurenie */
.bg-kurenie .item-text h3 {
    color: #FFFFFF;
}

.bg-kurenie .item-text p {
    color: rgba(255, 255, 255, 0.7);
}

.bg-kurenie .item-icon {
    background-color: #1E293B;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.bg-kurenie .item-arrow {
    border-color: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
}

.bg-kurenie .list-link-item {
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
}

/* Default light theme for Iné services */
.bg-ine {
    background-color: #F8FAFC;
    color: #1E293B;
}

.bg-ine h2 {
    color: #0F172A;
}

/* Options List Styling */
.options-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.options-list li {
    font-size: 1.25rem;
    padding-left: 32px;
    position: relative;
    font-weight: 400;
}

.options-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #e9507f;
    font-weight: 800;
}

/* Parallax Settings for Instalacie */
.bg-instalacie.parallax {
    background-image: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.9)), url('inspiration/Gmail/IMG-20260227-WA0006_1.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: white;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.photo-card {
    height: 250px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}

.page-photo-card {
    height: 250px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}

.page-photo-card:hover,
.photo-card:hover {
    transform: translateY(-10px) scale(1.02);
}

.page-photo-card img,
.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Footer styling */
.footer-section {
    background-color: #0F172A;
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 64px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 16px;
}

.footer-links,
.footer-brand,
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links h4,
.footer-contact h4 {
    color: white;
    font-size: 1.125rem;
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #e9507f;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 60px;
    padding-top: 24px;
    text-align: center;
    font-size: 0.875rem;
}

/* Responsive updates for new sections */
@media (max-width: 768px) {
    .content-container {
        padding: 0 24px;
    }

    .footer-container {
        padding: 0 24px;
        flex-direction: column;
    }
}

/* Split Section Layout (For Bazeny Redesign) */
.section-split {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 80px;
}

.split-left {
    flex: 1;
    position: sticky;
    top: 140px;
}

.split-left h2 {
    max-width: 400px;
    margin-bottom: 24px;
}

.split-right {
    flex: 1.5;
    display: flex;
    flex-direction: column;
}

.page-link-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 2% 0;
    text-decoration: none;
    color: inherit;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

/* Link Item Styling */
.list-link-item {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 32px 0;
    text-decoration: none;
    color: inherit;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.list-link-item:first-child {
    padding-top: 0;
}

.list-link-item:last-child {
    border-bottom: none;
}

.list-link-item:hover {
    transform: translateX(10px);
}

.list-link-item:hover .item-arrow {
    background-color: #e9507f;
    color: #fff;
    border-color: #e9507f;
}

.item-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: #0F172A;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.item-text {
    flex: 1;
}

.item-text h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #0F172A;
}

.item-text p {
    font-size: 1rem;
    color: #64748B;
    margin-bottom: 0;
    line-height: 1.5;
}

.item-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #1E293B;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #1E293B;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* Make it responsive */
@media (max-width: 992px) {
    .section-split {
        flex-direction: column;
        gap: 40px;
    }

    .split-left {
        position: relative;
        top: 0;
    }

    .list-link-item {
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 16px;
    }

    .item-icon {
        width: 48px;
        height: 48px;
    }

    .item-arrow {
        width: 36px;
        height: 36px;
    }
}

/* Lightbox Styles */
/* Reset native dialog styles */
dialog.lightbox {
    position: fixed;
    z-index: 1000;
    max-width: 100vw;
    max-height: 100vh;
    width: 100%;
    height: 100%;
    border: none;
    padding: 0;
    margin: 0;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

dialog.lightbox::backdrop {
    background: transparent;
}

dialog.lightbox:not([open]) {
    display: none;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    object-fit: contain;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 48px;
    color: white;
    font-size: 4rem;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
    background: none;
    border: none;
    padding: 0;
}

.lightbox-close:hover {
    color: #e9507f;
}

.photo-card img {
    cursor: pointer;
}

/* Subpage Styling */
.subpage-wrapper {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 80px;
    width: 100%;
    max-width: 1200px;
    padding: 0 64px;
    margin-top: 140px;
    z-index: 2;
}

.subpage-header {
    flex: 1;
    min-width: 0;
    position: sticky;
    top: 140px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.subpage-header h1 {
    font-size: clamp(2.5rem, 4vw + 1rem, 4.5rem);
    text-align: left;
    margin-left: 0;
    margin-top: 0;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

/* Breadcrumbs Styling */
.breadcrumb {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 0;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.3s ease;
    letter-spacing: 0.05em;
}

.breadcrumb a:hover {
    color: #e9507f;
}

.breadcrumb .divider {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
}


.page-content {
    flex: 1.5;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
    border-radius: 24px;
    padding: 48px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.15rem;
    line-height: 1.8;
    width: 100%;
    text-align: left;
}

.page-content p {
    margin-bottom: 24px;
}

.page-content p:last-child {
    margin-bottom: 0;
}

.page-content h2,
.page-content h3 {
    color: #fff;
    margin-top: 32px;
    margin-bottom: 16px;
}

.page-content h2 {
    font-size: 2.2rem;
}

.page-content h3 {
    font-size: 1.5rem;
}

/* Subpage responsiveness */
@media (max-width: 992px) {
    .subpage-wrapper {
        flex-direction: column;
        gap: 40px;
        padding: 0 24px;
        margin-top: 120px;
    }

    .subpage-wrapper h1 {
        position: relative;
        top: 0;
        text-align: left;
        margin-bottom: 24px;
    }
}