@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;600;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --bg-dark: #050505;
    --bg-light: #f8f9fa;
    --text-main: #212529;
    --accent: #c5a47e;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Manrope', sans-serif;
}

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-serif);
    color: var(--bg-dark);
    font-weight: 400;
}

a { 
    text-decoration: none; 
    color: inherit; 
    transition: 0.3s; 
}

a:hover { 
    color: var(--accent); 
}

.btn {
    border-radius: 0;
    padding: 14px 35px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: 0.4s;
    font-size: 13px;
}

.btn-premium {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.4);
    color: white;
}

.btn-premium:hover {
    background: white;
    color: var(--bg-dark);
    border-color: white;
}

.btn-premium-dark {
    background: var(--bg-dark);
    color: white;
    border: 1px solid var(--bg-dark);
}

.btn-premium-dark:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.btn-premium-gold {
    background: var(--accent);
    color: #000;
    border: 1px solid var(--accent);
}

.btn-premium-gold:hover {
    background: transparent;
    color: var(--accent);
}

/* ==================== NAVBAR ==================== */
.navbar {
    /* Wracamy do pełnego gradientu z góry na dół na całą szerokość */
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    padding: 25px 0;
    transition: all 0.4s ease;
    border: none; /* USUWA KRESKĘ ODDZIELAJĄCĄ */
}

/* Wygląd po przewinięciu strony (ciemny pasek) */
.navbar.scrolled {
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid #222; /* Ta kreska zostaje tylko podczas scrollowania */
}

.navbar-toggler { border: none; }
.navbar-toggler-icon { filter: invert(1); }

/* --- LOGO --- */
.navbar-brand {
    font-family: var(--font-sans);
    font-weight: 800;
    letter-spacing: 2px;
    color: #ffffff !important;
    font-size: 1.4rem;
    position: relative;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.brand-accent { color: var(--accent); }

/* --- LINKI W MENU --- */
.nav-link {
    color: #ffffff !important;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 2px;
    margin-left: 30px;
    font-weight: 700;
    position: relative;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8); /* Lekki cień, by tekst nie ginął na jasnym */
    transition: color 0.3s ease;
}

.nav-link:hover { color: var(--accent) !important; }
.nav-link.active { color: var(--accent) !important; }

/* Złota linia dla aktywnego/hover menu */
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.nav-link:hover::after { width: 100%; }
.nav-link.active::after { width: 100%; left: 0; transform: translateX(0); }
/* ==================== HERO ==================== */
.hero {
    height: 100vh;
    /* USUŃ LUB ZAKOMENTUJ TĘ LINIĘ: background: url(...) */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Reszta zostaje: */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::after {
    content:'';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.22) 0%, rgba(0,0,0,0.68) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 980px;
}

.hero-subtitle {
    display: block;
    text-transform: uppercase;
    letter-spacing: 6px;
    font-size: 14px;
    color: var(--accent);
    margin-bottom: 25px;
    font-weight: 600;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 18px;
    line-height: 1.1;
    color: white;
}

.hero-desc {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.72);
    margin-bottom: 38px;
    letter-spacing: 1px;
}

.scroll-indicator {
    position: absolute;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
    animation: bounce 2s infinite;
}

.scroll-indicator .mouse {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255,255,255,0.38);
    border-radius: 15px;
    margin: 0 auto 10px;
    position: relative;
}

.scroll-indicator .mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 10px;
    background: var(--accent);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

.scroll-indicator span {
    color: rgba(255,255,255,0.5);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes scroll {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 22px; }
}

/* ==================== SEKCJE I KARTY ==================== */
.section-header h6 {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 15px;
    font-family: var(--font-sans);
}

.section-header h2 { font-size: 3rem; margin-bottom: 20px; }
.separator { width: 70px; height: 2px; background: var(--accent); margin: 30px auto; }

.process-card {
    padding: 50px 30px;
    background: #fff;
    border: 1px solid #eee;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.process-card:hover {
    border-color: var(--accent);
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
}

.process-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 4rem;
    font-weight: 800;
    color: #f5f5f5;
    line-height: 1;
    font-family: var(--font-sans);
}

.process-card:hover .process-number { color: rgba(197, 164, 126, 0.22); }

.process-icon {
    width: 90px;
    height: 90px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: var(--accent);
    transition: 0.4s;
}

.process-card:hover .process-icon {
    background: var(--accent);
    color: #000;
    transform: scale(1.08);
}

.process-card h5 {
    font-family: var(--font-sans);
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.testimonials-slider { padding-bottom: 60px; }
.testimonial-card {
    background: #fff;
    padding: 40px;
    border: 1px solid #eee;
    height: 100%;
    transition: 0.4s;
    margin: 10px;
}

.testimonial-card:hover {
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border-color: var(--accent);
}

.testimonial-stars { color: var(--accent); margin-bottom: 20px; font-size: 14px; }
.testimonial-text { font-style: italic; color: #555; line-height: 1.9; margin-bottom: 30px; font-size: 15px; }
.testimonial-author { display: flex; align-items: center; }

.author-avatar {
    width: 55px;
    height: 55px;
    background: var(--bg-dark);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 15px;
    font-size: 14px;
}

.testimonial-author strong { display: block; color: #000; font-size: 15px; }
.testimonial-author span { font-size: 12px; color: #999; text-transform: uppercase; letter-spacing: 1px; }

.testimonials-pagination { text-align: center; margin-top: 30px; }
.testimonials-pagination .swiper-pagination-bullet {
    width: 10px; height: 10px; background: #ddd; opacity: 1; margin: 0 6px; transition: 0.3s;
}
.testimonials-pagination .swiper-pagination-bullet-active { background: var(--accent); }

.project-card {
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    cursor: pointer;
    border: none;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
    filter: grayscale(100%);
}

.project-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(17,17,17,0.85);
    opacity: 0;
    transition: 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 20px;
}

.project-card:hover .project-img { transform: scale(1.1); filter: grayscale(0%); }
.project-card:hover .project-overlay { opacity: 1; }
.project-title { color: white; font-size: 1.8rem; transform: translateY(20px); transition: 0.4s; }
.project-desc { font-family: var(--font-sans); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); transform: translateY(20px); transition: 0.4s 0.1s; }
.project-card:hover .project-title, .project-card:hover .project-desc { transform: translateY(0); }

/* ==================== FOOTER ==================== */
#footer {
    background: #111111;
    color: #999999;
    padding: 60px 0 20px;
    font-size: 14px;
    border-top: 1px solid #222;
}

#footer p { margin-bottom: 5px; }
.footer-info { margin-bottom: 40px; }

.footer-logo {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
}

.footer-logo:hover { color: #ffffff; }
.footer-address-block a { color: #ffffff; font-weight: 600; text-decoration: none; transition: 0.3s; }
.footer-address-block a:hover { color: var(--accent); }

.footer-info-links ul { list-style: none; padding: 0; margin: 0; }
.footer-info-links li { margin-bottom: 8px; }
.footer-info-links li a { color: #999999; text-decoration: none; transition: 0.3s; font-weight: 400; }
.footer-info-links li a:hover { color: var(--accent); }

.legal-footer {
    border-top: 1px solid #222222;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #777777;
}

.legal-footer p { margin: 0; }
.legal-footer strong { color: #ffffff; font-weight: 600; }
.legal-footer .created a { color: var(--accent); font-weight: 600; }
.legal-footer .created a:hover { color: #ffffff; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 992px) {
    .hero-title { font-size: 3rem; }
    .section-header h2 { font-size: 2.2rem; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.4rem; }
    .hero-subtitle { font-size: 12px; letter-spacing: 4px; }
    .navbar { background: rgba(0,0,0,0.9); padding: 15px 0; }
    .nav-link { margin-left: 0; padding: 10px 0; }
    .scroll-indicator { display: none; }
    .btn { padding: 12px 25px; font-size: 12px; }
    .legal-footer { flex-direction: column; text-align: center; gap: 10px; }
}

/* ==================== SEKCJA OPROGRAMOWANIE (O Nas) ==================== */
.software-slider {
    padding-bottom: 50px;
}

.software-card {
    background: #111111;
    border: 1px solid #222222;
    padding: 40px 30px;
    height: 100%;
    transition: all 0.4s ease;
}

.software-card:hover {
    border-color: var(--accent);
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(197, 164, 126, 0.1); /* Złota poświata */
}

.software-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 25px;
    display: block;
}

.software-card h5 {
    font-family: var(--font-sans);
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

/* ==================== PAGINACJA SLIDERA (NAPRAWA KLIKALNOŚCI) ==================== */
.software-pagination {
    text-align: center;
    margin-top: 40px;
    position: relative;
    z-index: 20; /* Wymuszenie by kropki były na wierzchu */
}

.software-pagination .swiper-pagination-bullet {
    width: 12px; 
    height: 12px; 
    background: #555; 
    opacity: 1; 
    margin: 0 8px !important; 
    transition: 0.3s;
    cursor: pointer; /* Zmiana kursora na rączkę */
}

.software-pagination .swiper-pagination-bullet-active {
    background: var(--accent);
    transform: scale(1.3);
}
/* ==================== STRONA OFERTA (Premium Boxes) ==================== */
.offer-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.offer-box {
    background: #1a1a1a;
    border-left: 4px solid var(--accent);
    padding: 50px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.offer-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.offer-box-header {
    flex: 1;
    min-width: 300px;
}

.offer-box-header h3 {
    color: #ffffff;
    font-family: var(--font-serif);
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.offer-box-header p {
    color: #aaaaaa;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

.offer-box-content {
    flex: 2;
    min-width: 300px;
    color: #cccccc;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Stylizacja wypunktowań (ul) z edytora Summernote w tych boxach */
.offer-box-content ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.offer-box-content ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
}

.offer-box-content ul li::before {
    content: '\f105'; /* Strzałka z FontAwesome */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--accent);
}

@media (max-width: 768px) {
    .offer-box { padding: 30px; flex-direction: column; gap: 20px; }
}

/* ==================== FORMULARZ KONTAKTOWY (Poprawa czytelności) ==================== */
.premium-input {
    background-color: #1a1a1a !important; /* Szaro-czarne tło odcinające się od reszty */
    border: 1px solid #333333 !important; /* Wyraźniejsza, ale elegancka ramka */
    color: #ffffff !important; /* Czysty, biały tekst w polu */
    transition: all 0.3s ease;
}

.premium-input:focus {
    background-color: #222222 !important;
    border-color: var(--accent) !important; /* Złota ramka po kliknięciu */
    box-shadow: none !important; /* Usunięcie domyślnego niebieskiego podświetlenia z Bootstrap */
    color: #ffffff !important;
}

/* Kolory Placeholderów (podpowiedzi w polu) */
.premium-input::placeholder {
    color: #888888 !important; /* Jasnoszary kolor, żeby podpowiedź nie zlewała się z czarnym */
    opacity: 1; /* Wymagane dla poprawnego działania w Firefox */
}

.premium-input:-ms-input-placeholder {
    color: #888888 !important;
}

.premium-input::-ms-input-placeholder {
    color: #888888 !important;
}


/* ==================== POPRAWKA ZDJĘĆ NA MOBILE (Wszystkie podstrony) ==================== */
@media (max-width: 768px) {
    
    /* 1. Strona Główna (Hero) */
    .hero {
        background-attachment: scroll !important;
        background-position: center top !important; /* Centrujemy od góry */
        background-size: cover !important;
        height: 60vh !important; /* Zmniejszamy wysokość na mobile, żeby widać było więcej */
        min-height: 400px;
    }

    /* 2. Podstrony (Kontakt, O nas, Oferta, Projekt) */
    header[style*="height: 60vh"], 
    header[style*="height: 65vh"],
    header[style*="height: 70vh"] {
        height: 50vh !important; /* Mniejsza wysokość nagłówka na telefonie */
        min-height: 350px;
    }

    /* Naprawa tła na podstronach (div wewnątrz header) */
    header > div[style*="background: url"] {
        background-attachment: scroll !important;
        background-position: center center !important;
        background-size: cover !important;
    }

    /* Skalowanie tytułów, żeby nie zajmowały całego zdjęcia */
    .hero-title, h1.display-2, h1.text-white {
        font-size: 2.2rem !important;
        line-height: 1.2 !important;
    }

    .hero-subtitle, .d-block.text-uppercase {
        font-size: 11px !important;
        letter-spacing: 2px !important;
        margin-bottom: 10px !important;
    }
}