
:root {
    --color-primary-black: #000000;
    --color-primary-yellow: #ffc60b;
    --color-text: #333;
    --color-background: #ffffff;
    --color-light-gray: #f4f4f4;
    --font-heading: 'Russo One', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --transition-speed: 0.3s;
}

.page-header h1::after {
    content: '';
    display: block;
    width: 150px; 
    height: 5px; 
    background-color: var(--color-primary-yellow);
    margin-left: auto;
    margin-right: auto;
    margin-top: 1rem;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--color-text); background-color: var(--color-background); line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-primary-black); line-height: 1.2; }
h1 { font-size: 3rem; margin-bottom: 1rem; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 2rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
a { color: var(--color-primary-yellow); text-decoration: none; transition: color var(--transition-speed) ease; }
a:hover { color: var(--color-primary-black); }
img { max-width: 100%; height: auto; display: block; }
section { padding: 4rem 0; }
.page-header { padding: 8rem 0 2rem; background-color: var(--color-light-gray); text-align: center; }


.preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--color-background); z-index: 9999; display: flex; justify-content: center; align-items: center; transition: opacity 0.5s ease, visibility 0.5s; }
.preloader.fade-out { opacity: 0; visibility: hidden; }
.spinner { width: 50px; height: 50px; border: 5px solid var(--color-light-gray); border-top: 5px solid var(--color-primary-yellow); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }


.site-header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background: transparent;
    padding: 1.5rem 0;
    transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.logo img {
    height: 50px;
    transition: height 0.4s ease, filter 0.4s ease;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.7));
}


.site-header.scrolled .logo img {
    height: 40px;
    filter: none;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
    margin: -10px;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--color-primary-black); 
    box-shadow: none;
    position: relative;
    border-radius: 3px;
    transition: background 0.3s ease-in-out, transform 0.3s ease-in-out, box-shadow 0.4s ease;
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    left: 0;
}
.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }



.site-header.scrolled .hamburger,
.site-header.scrolled .hamburger::before,
.site-header.scrolled .hamburger::after {
    background: var(--color-primary-black);
    box-shadow: none;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
}


.nav-menu a {
    color: white;
    font-family: var(--font-heading);
    text-transform: uppercase;
    position: relative;
    padding-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
    transition: color 0.4s ease;
}

.site-header.scrolled .nav-menu a {
    color: var(--color-primary-black);
    text-shadow: none;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--color-primary-yellow);
    transition: width var(--transition-speed) ease;
}
.nav-menu a:hover::after, .nav-menu a.active::after {
    width: 100%;
}


.nav-open .hamburger { background: transparent; box-shadow: none; }
.nav-open .hamburger::before { transform: rotate(45deg) translate(5px, 6px); }
.nav-open .hamburger::after { transform: rotate(-45deg) translate(5px, -6px); }

.nav-open .hamburger::before, .nav-open .hamburger::after {
    background: white;
}


.animate-section .animate-item { opacity: 0; transform: translateY(40px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.animate-section.visible .animate-item { opacity: 1; transform: translateY(0); }

.animate-section.visible .animate-item:nth-child(1) { transition-delay: 0.1s; }
.animate-section.visible .animate-item:nth-child(2) { transition-delay: 0.2s; }
.animate-section.visible .animate-item:nth-child(3) { transition-delay: 0.3s; }
.animate-section.visible .animate-item:nth-child(4) { transition-delay: 0.4s; }
.animate-section.visible .animate-item:nth-child(5) { transition-delay: 0.5s; }


.hero { display: flex; align-items: center; justify-content: center; text-align: center; height: 100vh; background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/dudek-constructing-hero-background.webp') no-repeat center center/cover; color: white; padding-top: 80px; }
.hero-content .animate-item { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.hero-content .animate-item:nth-child(1) { transition-delay: 0.2s; }
.hero-content .animate-item:nth-child(2) { transition-delay: 0.4s; }
.hero-content .animate-item:nth-child(3) { transition-delay: 0.6s; }
body:not(.preloading) .hero-content .animate-item { opacity: 1; transform: translateY(0); }
.hero-content h1 { color: white; font-size: 3.5rem; }
.hero-content p { font-size: 1.2rem; margin-bottom: 2rem; }


.cta-button, .cta-button-secondary {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    border: 2px solid var(--color-primary-yellow);

    transition: background-color 0.4s ease-out, color 0.4s ease-out, transform 0.4s ease-out, box-shadow 0.4s ease-out;
    border-radius: 10px;
}

.cta-button {
    background-color: var(--color-primary-yellow);
    color: var(--color-primary-black);
    border-radius: 10px;
}


.cta-button:hover {
    background-color: var(--color-primary-black);
    color: var(--color-primary-yellow);
    
 
    box-shadow: 0 0 18px 0 rgba(255, 198, 11, 0.55);
    

    transform: scale(1.03);
}



.cta-button-secondary {
    display: inline-flex; 
    align-items: center; 
    gap: 0.8rem; 
    background-color: transparent;
    color: var(--color-primary-black);
    margin-top: 3rem; 
    padding: 0.9rem 2.2rem; 
    border-radius: 10px;
    border-width: 2px; 
}

.cta-button-secondary:hover {
    background-color: var(--color-primary-black);
    color: var(--color-primary-yellow);
    border-color: var(--color-primary-black);
    transform: scale(1.03); 
}


.cta-button-secondary i {
    transition: transform 0.3s ease-in-out;
}

.cta-button-secondary:hover i {
    transform: translateX(6px); 
}


.services-overview {
    text-align: center;
    padding-top: 6rem;
    padding-bottom: 6rem;
    background-color: #f9f9f9; 
}

.services-grid-premium {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.service-card-premium {
    position: relative;
    display: flex;
    align-items: flex-end; 
    min-height: 450px;
    padding: 2rem;
    border-radius: 12px;
    overflow: hidden; 
    text-decoration: none;
    color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card-premium:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}


.service-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
    z-index: 1;
}

.service-card-premium:hover::before {
    transform: scale(1.08); 
}


.service-card-premium::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
    z-index: 2;
}


#service-card-1::before {
    background-image: url('../images/dudek-constructing-service.webp');
}
#service-card-2::before {
    background-image: url('../images/dudek-constructing-transport.webp');
}


.service-card-content {
    position: relative;
    z-index: 3;
    text-align: left;
    width: 100%;
}

.service-card-content i {
    font-size: 2.5rem;
    color: var(--color-primary-yellow);
    margin-bottom: 1rem;
}

.service-card-content h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.service-card-content p {
    font-size: 1.1rem;
    opacity: 0.9;
}


.services-grid { display: none; } 
.service-card { display: none; }


.why-us-teaser { background: #111111; color: white; text-align: center; padding: 4rem 0 5rem; }
.why-us-teaser h2, .why-us-teaser p { color: white; }
.features-grid { display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; gap: 2rem; margin: 3rem 0; }
.feature-item { display: flex; align-items: baseline; gap: 0.7rem; }
.feature-item .counter { font-family: var(--font-heading); font-size: 3.5rem; color: var(--color-primary-yellow); line-height: 1; }
.feature-item span { color: white; font-size: 1rem; }
.why-us-teaser .cta-button { margin-top: 2.5rem; }
.why-us-teaser .cta-button:hover { background-color: white; color: black; border-color: white; }


.site-footer {
    background: var(--color-primary-black);
    color: #a0a0a0;
    padding: 4rem 0 1.5rem;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 40px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.85));
}

.footer-about p {
    line-height: 1.7;
}

.footer-links h4, .footer-contact h4, .footer-social h4 {
    font-family: var(--font-heading);
    color: white;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}


.footer-links h4::after, 
.footer-contact h4::after, 
.footer-social h4::after {
    content: '';
    display: block;
    width: 35px;
    height: 3px;
    background-color: var(--color-primary-yellow);
    margin-top: 0.5rem; 
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.6rem;
}


.footer-links a, .footer-contact a {
    color: #a0a0a0;
    transition: color 0.3s ease, transform 0.3s ease;
}


.footer-links a:hover, .footer-contact a:hover {
    color: var(--color-primary-yellow);
    text-decoration: none; 
    transform: translateX(5px);
}


.footer-contact .contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.8rem;
}

.footer-contact .contact-item:last-child {
    margin-bottom: 0;
}

.footer-contact .contact-item i {
    color: var(--color-primary-yellow); 
    margin-right: 1rem; 
    margin-top: 0.2rem;
    width: 20px; 
    text-align: center;
}

.footer-social a {
    color: white;
    font-size: 1.5rem;
    margin-right: 1.2rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social a:hover {
    color: var(--color-primary-yellow);
    transform: scale(1.2);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #222;
    padding-top: 1.5rem;
    font-size: 0.9rem;
    color: #777;
}


.powered-by {
    margin-top: 0.8rem;
    font-size: 0.9rem;
    color: #888;
}


.powered-by a {
   
    color: var(--color-primary-yellow); 
    font-weight: bold;
    text-decoration: none; 
    transition: filter 0.3s ease; 
}


.powered-by a:hover {
    color: var(--color-primary-yellow); 
    text-decoration: none; 
    filter: brightness(1.1); 
}



.about-grid {
    display: grid;
    grid-template-areas: "text image";
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 2rem 0;
}


.about-text { 
    grid-area: text; 
}
.about-image { 
    grid-area: image; 
}

.about-text h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.mission-values {
    background-color: var(--color-light-gray);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    background: var(--color-background);
    padding: 2.5rem 2rem;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.value-card i {
    font-size: 3rem;
    color: var(--color-primary-yellow);
    margin-bottom: 1rem;
}


.why-us-features {
    padding-top: 3rem;
}

.features-detailed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }
.feature-card { background: var(--color-background); padding: 2.5rem 2rem; text-align: center; border-radius: 8px; border: 1px solid #eee; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease; display: flex; flex-direction: column; justify-content: center; min-height: 210px; }
.feature-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.feature-card i { font-size: 3rem; color: var(--color-primary-yellow); margin-bottom: 1rem; }


.process-section { background-color: var(--color-light-gray); text-align: center; }
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-top: 3rem; }
.process-step { background: var(--color-background); padding: 2rem; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); display: flex; flex-direction: column; justify-content: center; min-height: 220px; }
.step-number { font-family: var(--font-heading); font-size: 1.5rem; color: var(--color-background); background-color: var(--color-primary-yellow); width: 50px; height: 50px; line-height: 50px; border-radius: 50%; margin: 0 auto 1.5rem auto; }


.process-section { background-color: var(--color-light-gray); text-align: center; }
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-top: 3rem; }
.process-step { background: var(--color-background); padding: 2rem; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); display: flex; flex-direction: column; justify-content: center; min-height: 220px; }
.step-number { font-family: var(--font-heading); font-size: 1.5rem; color: var(--color-background); background-color: var(--color-primary-yellow); width: 50px; height: 50px; line-height: 50px; border-radius: 50%; margin: 0 auto 1.5rem auto; }




.offer-details {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.service-feature-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem; 
}

.service-feature-block:last-child {
    margin-bottom: 0;
}


.service-feature-block.reverse-layout .service-feature-image {
    order: 2;
}
.service-feature-block.reverse-layout .service-feature-text {
    order: 1;
}

.service-feature-image img {
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-feature-text h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.service-feature-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 2rem;
}

.service-feature-text ul {
    list-style: none;
    padding-left: 0;
}

.service-feature-text ul li {
    font-size: 1.05rem;
    padding-left: 2rem;
    position: relative;
    margin-bottom: 1rem;
    color: #444;
}

.service-feature-text ul li::before {
    content: '\f058'; 
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--color-primary-yellow);
    font-size: 1.2rem;
}


.cta-section {
    background-color: #111111; 
    text-align: center;
    padding: 5rem 0;
}

.cta-section h2 {
    color: white;
}

.cta-section p {
    color: #a0a0a0;
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .cta-button:hover {
    background-color: white;
    color: black;
    border-color: white;
}


.gallery-section {
    padding-top: 3rem;
    padding-bottom: 5rem;
}


.gallery-filters {
    text-align: center;
    margin-bottom: 3rem;
}

.filter-btn {
    background: none;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    padding: 0.7rem 1.8rem;
    margin: 0 0.5rem 0.5rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: #f0f0f0;
    border-color: #ccc;
}

.filter-btn.active {
    background-color: var(--color-primary-yellow);
    border-color: var(--color-primary-yellow);
    color: var(--color-primary-black);
    box-shadow: 0 5px 15px rgba(255, 198, 11, 0.4);
}


.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    display: block;
    aspect-ratio: 4 / 3; 
    
 
    transform: scale(0.9);
    opacity: 0;
    animation: zoomIn 0.5s ease forwards;
}

@keyframes zoomIn {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.gallery-item.hide {
    animation: zoomOut 0.5s ease forwards;
}

@keyframes zoomOut {
    to {
        transform: scale(0.9);
        opacity: 0;
    }
}


.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
    filter: brightness(0.9);
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    color: white;
    padding: 2.5rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover .gallery-item-overlay {
    transform: translateY(0);
}

.gallery-item-overlay h3 {
    color: white;
    margin: 0;
}

#lightbox-prev, #lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(30, 30, 30, 0.7);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 50px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

#lightbox-prev {
    left: 1.5rem;
}

#lightbox-next {
    right: 1.5rem;
}

#lightbox-prev:hover, #lightbox-next:hover {
    background-color: rgba(0, 0, 0, 0.9);
}


#lightbox-prev.hidden, #lightbox-next.hidden {
    display: none;
}


#lightbox {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(17, 17, 17, 0.95); backdrop-filter: blur(8px);
    z-index: 10000; display: flex; justify-content: center; align-items: center;
    padding: 2rem; opacity: 0; visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
#lightbox.visible { opacity: 1; visibility: visible; }
.lightbox-content { text-align: center; max-width: 90vw; max-height: 90vh;
    display: flex; flex-direction: column; transform: scale(0.95); opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease; }
#lightbox.visible .lightbox-content { transform: scale(1); opacity: 1; }
#lightbox-img { max-width: 100%; max-height: 100%; border-radius: 8px;
    box-shadow: 0 0 50px rgba(0,0,0,0.5); object-fit: contain; }
#lightbox-caption { color: #eee; margin-top: 1.5rem; font-size: 1.1rem; line-height: 1.6;
    max-width: 800px; margin-left: auto; margin-right: auto; }
#lightbox-close { position: absolute; top: 1.5rem; right: 1.5rem; background: none; border: none;
    color: white; font-size: 3rem; line-height: 1; cursor: pointer;
    transition: transform 0.3s ease; }
#lightbox-close:hover { transform: scale(1.1); }

.contact-section {
    padding-bottom: 6rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-form-wrapper h2, .contact-details-wrapper h2 {
    text-align: left;
    margin-bottom: 1.5rem;
    padding-top: 1rem; 
}

.contact-form-wrapper p {
    margin-bottom: 2rem;
    color: #555;
    line-height: 1.7;
}


.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #444;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary-yellow);
    box-shadow: 0 0 8px rgba(255, 198, 11, 0.5);
}

.form-group textarea {
    resize: vertical;
}


.contact-details-list {
    list-style: none;
    margin: 0 0 2rem 0;
    padding: 0;
}

.contact-details-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

.contact-details-list li i {
    color: var(--color-primary-yellow);
    font-size: 1.2rem;
    margin-right: 1rem;
    margin-top: 0.2rem;
    width: 25px;
    text-align: center;
}

.map-container {
    border-radius: 8px;
    overflow: hidden; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--color-background);
    padding: 2.5rem 3rem;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    text-align: center;
    position: relative;
    max-width: 450px;
    width: 100%;
   
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.modal-overlay.visible .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-icon {
    font-size: 4rem;
    color: var(--color-primary-yellow);
    margin-bottom: 1rem;
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.modal-content p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.modal-close {
    position: absolute;
    top: 0.5rem;
    right: 0.8rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s ease;
}
.modal-close:hover {
    color: var(--color-primary-black);
}

.modal-ok-button {
    display: inline-block;
    padding: 0.6rem 2.5rem;
    font-family: var(--font-heading);
    background: var(--color-primary-black);
    color: white;
    border: 2px solid var(--color-primary-black);
    border-radius: 50px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}
.modal-ok-button:hover {
    background: var(--color-primary-yellow);
    color: var(--color-primary-black);
    border-color: var(--color-primary-yellow);
}



@media (min-width: 1024px) {
    .lightbox-content {
        max-height: 75vh; 
    }

    #lightbox-img {
      
        max-height: calc(75vh - 6rem); 
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }


    .services-grid-premium {
        grid-template-columns: 1fr; 
    }

    .nav-toggle {
        display: block;
      
        position: relative;
        z-index: 1002;
    }

   
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%; 
        height: 100vh;
        background: rgba(17, 17, 17, 0.9); 
        backdrop-filter: blur(10px); 
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1); 
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu a {
        color: white !important;
        font-size: 1.5rem; 
        padding: 1rem 0;
    }
    
  
    .nav-open .hamburger {
        background-color: transparent !important;
    }

    .nav-open .hamburger::before,
    .nav-open .hamburger::after {
        background-color: white !important; 
        box-shadow: none;
    }

    .nav-open .hamburger::before {
        transform: translateY(8px) rotate(45deg); 
    }

    .nav-open .hamburger::after {
        transform: translateY(-8px) rotate(-45deg); 
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .features-grid, .contact-grid {
        flex-direction: column;
        grid-template-columns: 1fr;
    }
        .about-grid {
        grid-template-areas:
            "image"
            "text"; 
        grid-template-columns: 1fr; 
        gap: 2rem;
    }

    .about-text h2 {
        text-align: center;
    }
        .features-detailed-grid { grid-template-columns: 1fr; }

            .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-details-wrapper {
        margin-top: 3rem; 
    }
    .gallery-back-button {
        margin-bottom: 1.5rem;
    }

   
    #lightbox-prev, #lightbox-next {
        top: calc(50% - 20px); 
        width: 40px;
        height: 50px;
        font-size: 1.5rem;
    }
    #lightbox-prev { left: 0.5rem; }
    #lightbox-next { right: 0.5rem; }

    #lightbox-close {
 
        z-index: 10001;
    }

    @media (max-width: 992px) {
        .gallery-folders-view {
            grid-template-columns: repeat(1, 1fr);
        }

        .service-feature-block {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .service-feature-block.reverse-layout .service-feature-image,
    .service-feature-block.reverse-layout .service-feature-text {
        order: initial; 
    }
    }
    
}

