/* Główny styl */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: #ffffff;
    color: #333333;
}

/* Przyciski */
.btn-orange {
    background-color: #d86000;
    border-color: #d86000;
    color: #ffffff !important;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-orange:hover {
    background-color: #b35000;
    border-color: #b35000;
    color: #ffffff !important;
}

.btn {
    border-radius: 0 !important;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-outline-light {
    border-width: 2px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: #ffffff;
    color: #0b1c36 !important;
    border-color: #ffffff;
}

/* Nawigacja */
.navbar-nav .nav-link {
    font-weight: 500 !important;
    letter-spacing: 1px;
    font-size: 0.85rem;
    color: #495057 !important;
    transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .dropdown:hover .nav-link {
    color: #0b1c36 !important;
}

/* Burger menu */
@media (max-width: 991px) {
    .navbar-toggler {
        border: none !important;
        background-color: transparent !important;
        padding-right: 0 !important;
    }

    .navbar-toggler:focus,
    .navbar-toggler:active {
        box-shadow: none !important; 
        outline: none !important;
        background-color: transparent !important;
    }
}

/* Logo */
.main-logo {
    max-height: 50px; 
    width: auto;
}

@media (max-width: 991px) {
    .navbar-brand {
        max-width: 75%;
        padding: 0;
        margin-right: 0;
    }

    .main-logo {
        max-height: 32px;
        width: auto;
        object-fit: contain;
    }
}

/* Dropdown menu */
.technical-dropdown {
    border-radius: 0 !important;
    border: 1px solid #e9ecef;
    border-top: 2px solid #0b1c36;
    padding: 10px 0;
    box-shadow: 0 10px 25px rgba(11, 28, 54, 0.05);
}

.technical-dropdown .dropdown-item {
    padding: 12px 30px;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    color: #555555;
    border-bottom: none;
    transition: all 0.2s ease-in-out;
}

.technical-dropdown .dropdown-item:hover,
.technical-dropdown .dropdown-item:focus {
    background-color: #f8f9fa;
    color: #0b1c36;
    padding-left: 35px;
}

.technical-dropdown .dropdown-service {
    color: #555555;
    border-top: 1px solid #f1f1f1;
    margin-top: 6px;
    padding-top: 14px;
}

@media (min-width: 992px) {
    .dropdown:hover .dropdown-menu {
        display: block;
        animation: fadeDropdown 0.4s ease-out;
        margin-top: 0 !important;
    }

    .dropdown-menu::before {
        content: "";
        position: absolute;
        top: -20px;
        left: 0;
        width: 100vw;
        height: 20px;
        background: transparent;
    }
}

@keyframes fadeDropdown {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sekcja Hero */
.hero-section {
    min-height: 85vh;
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

.hero-section h1,
.hero-section p {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 28, 54, 0.65);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-bg-fade {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-color: #0b1c36;
}

.fade-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: heroCrossfade 15s ease-in-out infinite;
}

.fade-img:nth-child(1) { animation-delay: 0s; }
.fade-img:nth-child(2) { animation-delay: -10s; }
.fade-img:nth-child(3) { animation-delay: -5s; }

@keyframes heroCrossfade {
    0% { opacity: 1; }
    22% { opacity: 1; }
    33% { opacity: 0; }
    88% { opacity: 0; }
    100% { opacity: 1; }
}

.animate-slide-up {
    opacity: 0;
    animation: slideUpFade 0.8s ease-out forwards;
}

@keyframes slideUpFade {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Nagłówki sekcji */
.section-title {
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #0b1c36;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background-color: #d86000;
}

/* Kafelki usług */
.service-card-tech {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    padding: 40px 30px;
    position: relative;
    border-radius: 0 !important;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-number {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: #adb5bd;
    margin-bottom: 25px;
    font-family: monospace;
}

.service-icon-tech {
    font-size: 2.2rem;
    color: #0b1c36;
    margin-bottom: 20px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.service-title-tech {
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #0b1c36;
    margin-bottom: 15px;
}

.service-desc-tech {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #6c757d;
    margin-bottom: auto;
}

.service-link-tech {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: #495057;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    margin-top: 30px;
    transition: color 0.2s ease;
}

.service-link-tech i {
    transition: transform 0.2s ease;
}

.service-card-tech:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(11, 28, 54, 0.08);
    border-color: transparent;
    z-index: 2;
}

.service-card-tech::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: #d86000;
    transition: width 0.3s ease-in-out;
}

.service-card-tech:hover::before {
    width: 100%;
}

.service-card-tech:hover .service-icon-tech {
    color: #d86000;
    transform: scale(1.05);
}

.service-card-tech:hover .service-link-tech {
    color: #d86000;
}

.service-card-tech:hover .service-link-tech i {
    transform: translateX(5px);
}

/* Podstrona Kontakt */
.contact-card-tech {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-top: 3px solid #0b1c36;
    padding: 40px 30px;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(11, 28, 54, 0.03);
}

.contact-item-tech {
    display: flex;
    align-items: flex-start;
}

.contact-item-tech i {
    font-size: 1.3rem;
    color: #d86000;
    margin-right: 15px;
    margin-top: 2px;
}

.tech-label {
    font-family: monospace;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: #adb5bd;
    text-transform: uppercase;
}

.tech-value {
    color: #495057;
    font-weight: 500;
    font-size: 0.95rem;
}

.tech-value a {
    color: #0b1c36;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tech-value a:hover {
    color: #d86000;
}

.page-header-tech {
    background-color: #0b1c36;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 30px 30px;
    padding: 70px 0;
    position: relative;
    border-bottom: 4px solid #d86000;
}

.page-header-tech .z-index-1 {
    position: relative;
    z-index: 1;
}

.call-hover {
    transition: color 0.2s ease;
}

.call-hover:hover {
    color: #d86000 !important;
}

/* Formularz kontaktowy */
.form-wrapper-tech {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-top: 3px solid #d86000;
    padding: 50px;
    border-radius: 0;
    box-shadow: 0 15px 35px rgba(11, 28, 54, 0.05);
}

.form-wrapper-tech .form-control {
    border-radius: 0 !important;
}

.form-control:focus,
.form-select:focus {
    border-color: #d86000;
    box-shadow: 0 0 0 0.25rem rgba(216, 96, 0, 0.15);
    background-color: #ffffff !important;
}

form .form-label {
    font-size: 0.9rem;
    color: #0b1c36;
    margin-bottom: 0.5rem;
}

.form-control-lg,
.form-select-lg {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    border-radius: 6px;
}

/* Stopka */
.footer-custom {
    background-color: #0b1c36;
    border-top: 4px solid #d86000;
    color: #ffffff;
}

.footer-title {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: #d86000;
}

.footer-custom .text-muted {
    color: #8d97ad !important;
    font-size: 0.85rem;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #8d97ad;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.footer-links a i {
    font-size: 0.7rem;
    margin-right: 8px;
    color: #d86000;
    transition: transform 0.2s ease;
}

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

.footer-links a:hover i {
    transform: translateX(4px);
}

.footer-contact li {
    font-size: 0.85rem;
    color: #8d97ad;
}

.footer-contact i {
    color: #d86000;
    font-size: 1.1rem;
}

.footer-contact strong {
    color: #ffffff;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.footer-contact a {
    color: #8d97ad;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: #d86000;
}

.footer-bottom {
    background-color: #071326;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 0;
    margin-top: 30px;
}

.tech-data {
    font-family: monospace;
    font-size: 0.75rem;
    color: #6c757d;
    letter-spacing: 1px;
}

/* Podstrona Oferta */
.sticky-submenu {
    position: sticky;
    top: 90px;
    z-index: 990;
    width: 100%;
    left: 0;
    right: 0;
}

@media (max-width: 991px) {
    .sticky-submenu {
        top: 64px;
    }
}

.tech-nav-link {
    font-family: monospace;
    letter-spacing: 1px;
    font-size: 0.8rem !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #adb5bd !important;
    min-width: 145px;
}

.tech-nav-link:hover,
.tech-nav-link:focus {
    background-color: #d86000 !important;
    border-color: #d86000 !important;
    color: #ffffff !important;
}

html {
    scroll-behavior: smooth;
}

.spec-module {
    scroll-margin-top: 150px;
}

.tech-list li {
    font-size: 0.9rem;
    color: #495057;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
}

.tech-list li i {
    color: #d86000;
    font-size: 1.1rem;
    margin-right: 10px;
    margin-top: 2px;
}

.sticky-scroll-wrapper {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.sticky-scroll-wrapper::-webkit-scrollbar {
    display: none;
}