/* Basic Reset & Body Styles */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff; /* CHANGED: White background */
    color: #333333; /* CHANGED: Dark gray text */
    line-height: 1.6;
    font-size: 16px;
}

h1, h2, h3 {
    color: #111111; /* CHANGED: Darker headings */
    margin-top: 0;
    margin-bottom: 1rem;
    font-weight: 600;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    text-align: center;
    margin-bottom: 2.5rem;
}

h3 {
    font-size: clamp(1.2rem, 3vw, 1.4rem);
    color: #007bff; /* CHANGED: Standard blue for accent */
    margin-bottom: 0.8rem;
}

a {
    color: #0056b3; /* CHANGED: Darker blue for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #003d80; /* CHANGED: Even darker blue on hover */
    text-decoration: underline;
}

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

.content-section {
    padding: clamp(2rem, 6vw, 4rem) 1rem;
    max-width: 1100px;
    margin: 0 auto;
}

.bg-light {
    background-color: #f8f9fa; /* CHANGED: Light gray background */
}

/* Header & Navigation */
.navbar {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* trzy równe kolumny */
    align-items: center;
    padding: 0.5rem clamp(1rem, 5vw, 3rem);
    background-color: #ffffff;
    border-bottom: 1px solid #dee2e6;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo { 
    flex: 1; 
    text-align: center; 
}

.logo a { 
    display: inline-block;
}

.logo img {
    height: 120px; /* Doubled size */
    display: block; 
     
}

.nav-links {
    justify-content: start;
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    order: -1; 
    white-space: nowrap;
}

.nav-links li {
    margin-left: clamp(1rem, 3vw, 2rem);
}

.nav-links a {
    color: #333333; /* CHANGED: Dark text for nav links */
    font-weight: bold;
    padding: 0.5rem 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #007bff; /* CHANGED: Blue underline */
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: #0056b3; /* CHANGED: Darker blue on hover */
    text-decoration: none;
}

.cta-button {
    justify-self: end;
    background-color: #000000;
    color: #ffffff;
    border: 1px solid #000000;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: nowrap;
}

.cta-button:hover {
    background-color: #0056b3; /* CHANGED: Darker blue background */
    border-color: #0056b3; /* CHANGED: Darker blue border */
    color: #ffffff;
    text-decoration: none;
}

/* Mobile Menu Styles */
.menu-toggle {
    display: none; 
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    height: 3px;
    width: 25px;
    background-color: #333333; /* CHANGED: Dark color for hamburger */
    margin-bottom: 5px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ... (rest of menu toggle active styles remain the same) ... */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}
/* Gallery section (portfolio file)*/
.gallery {
    padding: 2rem;
    max-width: 1200px;
    margin: auto;
}

.gallery h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #e0e0e0;
    animation: pulse 1.5s infinite;
    z-index: 1;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    position: relative;
    z-index: 2;
}

.gallery-item img.loaded {
    opacity: 1;
}

.gallery-item.loaded::before {
    display: none;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        opacity: 1;
    }
}
/*Lightbox section*/
.lightbox-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.lightbox-overlay.active {
  display: flex;
}
.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  transition: transform 0.3s ease;
    touch-action: pinch-zoom;
  -ms-touch-action: pinch-zoom;
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 30px;
  font-size: 2rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  background: none;
  color: white;
  border: none;
  cursor: pointer;
  padding: 10px;
}
.lightbox-nav.prev {
  left: 10px;
  color: gray;
}
.lightbox-nav.next {
    color: gray;
  right: 10px;
}


/*HERO SECTION*/
.hero {
    text-align: center;
    display: grid;
    margin-top: 1rem;
    border-radius: 8px;

}

.hero h1 {
    margin-bottom: 1rem;
    color: #111111; /* CHANGED: Dark heading */
    font-weight: 700;
}

.hero p {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #555555; /* CHANGED: Medium gray text */
}

.cta-button-main {
    background-color: #007bff; /* CHANGED: Blue background */
    color: #ffffff; /* CHANGED: White text */
    padding: clamp(0.8rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2rem);
    border-radius: 4px;
    font-weight: bold;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.cta-button-main:hover {
    background-color: #0056b3; /* CHANGED: Darker blue */
    text-decoration: none;
    transform: translateY(-2px);
}

/* Page Title Section (for subpages) */
.page-title-section {
    padding: 4rem 1rem;
    text-align: center;
    background-color: #e9ecef; /* CHANGED: Lighter gray */
}

.page-title-section h1 {
    margin-bottom: 0.5rem;
    color: #111111;
}

.page-title-section p {
    color: #555555; /* CHANGED: Medium gray */
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Intro Section */
.intro {
    display: flex;
    align-items: center;
    gap: clamp(1.5rem, 5vw, 3rem);
}

.intro-text { flex: 1; }
.intro-image { flex: 1; text-align: center; }
.intro-image img { border-radius: 8px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); } /* Adjusted shadow */

/* Applications Section */
.application-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.application-item {
    background-color: #ffffff; /* CHANGED: White background */
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); /* Adjusted shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #dee2e6; /* Add light border */
}

.application-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12); /* Adjusted shadow */
}

.application-item img { margin-bottom: 1rem; border-radius: 4px; aspect-ratio: 16 / 10; object-fit: cover; }
.application-item h3 { margin-bottom: 0.5rem; color: #111111; } /* Ensure heading is dark */

/* Surfaces Section */
.surface-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-top: 2rem; }
.surface-item { aspect-ratio: 3/5; position: relative; text-align: center; overflow: hidden; border-radius: 8px; display: flex;object-fit: cover;}
.surface-item img { filter: brightness(1); /* Adjust filter for light theme */ transition: transform 0.3s ease, filter 0.3s ease; }
.surface-item:hover img { transform: scale(1.05); filter: brightness(0.9); }
.surface-item h3 { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: #ffffff; /* Keep white text on image */ font-size: clamp(1.5rem, 4vw, 1.8rem); font-weight: bold; text-shadow: 1px 1px 4px rgba(0,0,0,0.6); margin: 0; width: 100%; }

/* Benefits Section */
.benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.benefit-item {
    background-color: #f8f9fa; /* CHANGED: Light gray */
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}
.benefit-item h3 { margin-bottom: 1rem; color: #007bff; } /* Use accent color */
.benefit-item ul { list-style: none; padding: 0; margin: 0; }
.benefit-item li { margin-bottom: 0.7rem; padding-left: 1.5rem; position: relative; }
.benefit-item li::before { content: '\2713'; color: #28a745; /* CHANGED: Green checkmark */ position: absolute; left: 0; font-weight: bold; }

/* Process Section */
.process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-top: 3rem; }
.step {
    text-align: center;
    padding: 1.5rem;
    border: 1px solid #dee2e6; /* CHANGED: Light gray border */
    border-radius: 8px;
    background-color: #ffffff; /* CHANGED: White background */
}
.step h3 { font-size: clamp(1.5rem, 4vw, 1.8rem); color: #111111; margin-bottom: 1rem; }

/* Call to Action Blocks */
.call-to-action-blocks { display: flex; margin: 0 auto; max-width: 1100px; flex-wrap: wrap; }
.cta-block { flex: 1 1 400px; padding: clamp(2rem, 6vw, 4rem) 1rem; text-align: center; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.cta-video { background-color: #e0f7fa; /* CHANGED: Light cyan */ color: #00778a; } /* Text color for contrast */
.cta-touch { background-color: #ffebee; /* CHANGED: Light red */ color: #c62828; } /* Text color for contrast */
.cta-block h2 { color: inherit; /* Inherit from parent block */ margin-bottom: 1.5rem; }
.cta-button-secondary {
    background-color: transparent;
    color: inherit; /* Inherit from parent block */
    border: 2px solid currentColor; /* Use current text color for border */
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
}
.cta-button-secondary:hover {
    background-color: currentColor; /* Use current text color for background */
    color: #ffffff; /* White text on hover */
    text-decoration: none;
}
.cta-video .cta-button-secondary:hover { color: #e0f7fa; } /* Adjust hover text color for video block */
.cta-touch .cta-button-secondary:hover { color: #ffebee; } /* Adjust hover text color for touch block */


/* Single CTA Section (for subpages) */
.call-to-action-single { text-align: center; }
.call-to-action-single h2 { margin-bottom: 1rem; }
.call-to-action-single p { margin-bottom: 2rem; color: #555555; }

/* About Page Specific */
.about-intro { display: flex; align-items: center; gap: clamp(1.5rem, 5vw, 3rem); }
.about-text { flex: 1.2; }
.about-image { flex: 0.8; text-align: center; }
.about-image img { border-radius: 8px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.value-item {
    background-color: #f8f9fa; /* CHANGED: Light gray */
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #dee2e6;
}
.why-us ul { list-style: none; padding: 0; margin-top: 1.5rem; }
.why-us li { margin-bottom: 0.8rem; padding-left: 1.5rem; position: relative; }
.why-us li::before { content: '\2713'; color: #28a745; position: absolute; left: 0; font-weight: bold; }

/* Contact Page Specific */
.contact-details-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-bottom: 3rem; }
.contact-detail-item h3 { color: #111111; margin-bottom: 0.5rem; }
.contact-detail-item p { margin: 0.2rem 0; }
.contact-form {
    max-width: 700px;
    margin: 2rem auto 0 auto;
    background-color: #f8f9fa; /* CHANGED: Light gray */
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: 8px;
    border: 1px solid #dee2e6;
}
.contact-form h2, .contact-form p { text-align: center; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; color: #333333; font-weight: bold; }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea,
.form-group input[type="file"] {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ced4da; /* CHANGED: Standard input border */
    background-color: #ffffff; /* CHANGED: White input background */
    color: #495057; /* CHANGED: Standard input text color */
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box; 
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group input[type="file"] { padding: 0.5rem; }
.form-group button { width: 100%; padding: 1rem; } /* Uses .cta-button-main styles */

/* Footer */
footer {
    background-color: #e9ecef; /* CHANGED: Lighter gray */
    color: #555555; /* CHANGED: Medium gray text */
    padding: 3rem clamp(1rem, 5vw, 3rem);
    border-top: 1px solid #dee2e6; /* CHANGED: Light gray border */
    margin-top: 0;
}
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; max-width: 1100px; margin: 0 auto; align-items: start; }
.footer-logo img { height: 80px; margin-bottom: 1rem; filter: invert(1); /* Invert footer logo if needed for dark background */ }
.footer-info p, .footer-contact p, .footer-copyright p { margin: 0.3rem 0; font-size: 0.9rem; }
.footer-contact a { color: #555555; }
.footer-contact a:hover { color: #0056b3; }
.footer-copyright { grid-column: 1 / -1; text-align: center; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #dee2e6; font-size: 0.85rem; }
.intro-gallery {
  max-width: 500px;
  margin: auto;
}

.gallery-container {
  position: relative;
}

.gallery-image {
  width: 100%;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 50%;
  z-index: 2;
  transition: background-color 0.3s ease;
}

.gallery-btn:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.gallery-btn.prev {
  left: 10px;
}

.gallery-btn.next {
  right: 10px;
}
.menu-logo {
    display: none;
}
/* Responsive Adjustments */
@media (max-width: 768px) {
    .hidden {
  display: none !important;
}

    .navbar {
        flex-direction: column; 
        align-items: center; 
        position: relative; 
        padding-bottom: 0; /* Remove bottom padding */
    }
    .logo {
        order: -1; 
        flex-grow: 0; 
        margin-bottom: 0; /* Remove margin */
        width:  240px !important;
        height: auto;
        padding: 0.5rem 0; /* Keep padding */
    }

    .menu-logo {
        display: block;
        width: 150px;
        height: auto;
        margin: 1rem auto 2rem auto;
    }
    .menu-toggle {
    position: fixed;
    top: 1rem;
    right: 1.2rem;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.9);
    border-radius: 4px;
    cursor: pointer;
}

.menu-toggle span {
    height: 3px;
    background: #333;
    margin: 4px 0;
    width: 80%;
    display: block;
    border-radius: 2px;
}

.nav-links {
    position: fixed;
    top: 0;
    left: -300px; /* Hidden initially */
    height: 100vh;
    width: 250px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    padding: 2rem 1rem;
    box-shadow: 2px 0 12px rgba(0,0,0,0.2);
    transition: left 0.3s ease;
    z-index: 10000;
}

.nav-links.active {
    left: 0; /* Slide in */
}

.nav-links li {
    margin-bottom: 1.2rem;
    text-align: left;
}

body.menu-open {
    overflow: hidden; /* Optional: prevent scroll when menu is open */
}
    .cta-button { display: none; }
    .intro { flex-direction: column; }
    .about-intro { flex-direction: column; }
    .footer-content { text-align: center; }
    .footer-logo { margin: 0 auto; }
    
}

