/*
Theme Name: KDS Industrial
Theme URI: https://group-kds.com
Author: KDS Group
Author URI: https://group-kds.com
Description: Nowoczesny motyw dla KDS Group - specjalizacje przemysłowe
Version: 1.3
*/

:root {
    --bg-color: #0a0a0a;
    --text-color: #e0e0e0;
    --primary-color: #00f2ff;
    --secondary-color: #0051ff;
    --accent-color: #ffffff;
    --card-bg: #141414;
    --font-main: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --transition-speed: 0.4s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
    cursor: none;
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--primary-color);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

body:hover .cursor-outline {
    width: 40px;
    height: 40px;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-main);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed);
}

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

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: radial-gradient(circle at center, #1a1a1a 0%, #0a0a0a 100%);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 48%, rgba(0, 242, 255, 0.03) 50%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(0, 242, 255, 0.03) 50%, transparent 52%);
    background-size: 60px 60px;
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero h1 .highlight {
    color: transparent;
    -webkit-text-stroke: 1px var(--primary-color);
    position: relative;
}

.hero p {
    font-size: 1.2rem;
    color: #888;
    margin-bottom: 40px;
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-family: var(--font-main);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transition: left var(--transition-speed);
    z-index: -1;
}

.btn-primary:hover {
    color: #000;
}

.btn-primary:hover::before {
    left: 0;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
}

.scroll-indicator span {
    display: block;
    width: 4px;
    height: 8px;
    background: var(--primary-color);
    margin: 10px auto;
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(20px);
        opacity: 0;
    }
}

/* Sections General */
.section {
    padding: 120px 0;
    position: relative;
}

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

.section-header {
    margin-bottom: 80px;
}

.subtitle {
    display: block;
    color: var(--primary-color);
    font-family: var(--font-main);
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: 3rem;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #aaa;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.stat-item {
    background: var(--card-bg);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    transition: transform 0.3s;
}

.stat-item:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.stat-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-main);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 0.9rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--card-bg);
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.4s;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 242, 255, 0.1);
}

/* Services Section Visibility Fix - HIGH CONTRAST */
.service-card h3 {
    font-size: 2rem;
    color: #ffffff !important;
    /* PURE WHITE */
    opacity: 0.8;
    margin-bottom: 20px;
    transition: color 0.4s;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.service-card:hover h3 {
    color: var(--primary-color) !important;
    opacity: 1;
}

.service-card h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #ffffff !important;
    /* PURE WHITE */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.service-card p {
    color: #eeeeee !important;
    /* VERY BRIGHT GREY */
    line-height: 1.5;
    font-size: 0.95rem;
    font-weight: 400;
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.portfolio-item {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    height: 400px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 30px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-overlay h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.portfolio-overlay p {
    color: #ddd;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Contact Section */
.contact-wrapper {
    background: linear-gradient(135deg, var(--card-bg) 0%, #0f0f0f 100%);
    padding: 80px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.contact-link {
    display: inline-block;
    margin-top: 30px;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
}

.contact-link:hover {
    color: var(--primary-color);
}

/* Footer */
footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #555;
    font-size: 0.9rem;
}

footer a {
    cursor: pointer;
}

footer a:hover {
    color: var(--primary-color);
}

/* Privacy Policy Modal */
.privacy-modal {
    display: none;
    position: fixed;
    z-index: 2147483647 !important;
    /* MAX Z-INDEX */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    cursor: default !important;
    /* FORCE DEFAULT CURSOR */
}

.privacy-modal-content {
    background-color: #1a1a1a;
    margin: 5% auto;
    padding: 40px;
    border: 1px solid var(--primary-color);
    width: 90%;
    max-width: 900px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    border-radius: 4px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    cursor: auto !important;
}

.privacy-modal-content h2 {
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.privacy-modal-content h2:first-child {
    margin-top: 0;
}

.privacy-modal-content ol,
.privacy-modal-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
    line-height: 1.8;
}

.privacy-modal-content li {
    margin-bottom: 10px;
    color: #ddd;
}

.privacy-modal-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.privacy-modal-content a:hover {
    color: #fff;
}

.privacy-close {
    color: var(--primary-color);
    float: right;
    font-size: 35px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    z-index: 2147483648;
    position: relative;
}

.privacy-close:hover,
.privacy-close:focus {
    color: #fff;
    transform: rotate(90deg);
}

.privacy-modal-footer {
    margin-top: 40px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.privacy-modal-footer button {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 40px;
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s;
}

.privacy-modal-footer button:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
}

/* Hide custom cursor when modal is open (handled by JS, but extra safety here) */
.privacy-modal:hover~.cursor-dot,
.privacy-modal:hover~.cursor-outline {
    opacity: 0 !important;
    display: none !important;
}

/* Responsive */
@media (max-width: 1024px) {
    .section {
        padding: 80px 0;
    }

    .section-header h2 {
        font-size: 2.5rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .contact-wrapper {
        padding: 60px 40px;
    }

    .contact-link {
        font-size: 1.5rem;
    }

    .privacy-modal-content {
        padding: 30px;
        width: 95%;
    }
}

@media (max-width: 768px) {
    body {
        cursor: auto;
    }

    .cursor-dot,
    .cursor-outline {
        display: none;
    }

    .navbar {
        padding: 15px 20px;
    }

    .logo img {
        height: 30px !important;
    }

    .nav-links {
        display: none;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    /* Mobile menu toggle */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
    }

    /* Language Switcher Mobile Adjustments */
    .lang-switcher {
        margin-top: 10px;
    }





    .menu-toggle span {
        width: 25px;
        height: 2px;
        background: var(--primary-color);
        transition: all 0.3s;
    }

    .hero {
        min-height: 100vh;
        padding: 80px 0 40px;
    }

    .hero h1 {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .hero h1 .highlight {
        -webkit-text-stroke: 0.5px var(--primary-color);
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .btn-primary {
        padding: 12px 30px;
        font-size: 0.85rem;
        letter-spacing: 1px;
    }

    .scroll-indicator {
        display: none;
    }

    .section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 0.8rem;
        letter-spacing: 2px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-text p {
        font-size: 0.95rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stat-item {
        padding: 25px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 30px 25px;
    }

    .service-card h3 {
        font-size: 1.5rem;
    }

    .service-card h4 {
        font-size: 1.2rem;
    }

    .service-card p {
        font-size: 0.9rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .portfolio-item {
        height: 300px;
    }

    .portfolio-overlay {
        padding: 20px;
        transform: translateY(0);
        opacity: 1;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.3));
    }

    .portfolio-overlay h3 {
        font-size: 1.2rem;
    }

    .portfolio-overlay p {
        font-size: 0.85rem;
    }

    .contact-wrapper {
        padding: 40px 25px;
    }

    .contact-wrapper h2 {
        font-size: 1.8rem;
    }

    .contact-wrapper p {
        font-size: 0.95rem;
    }

    .contact-link {
        font-size: 1.2rem;
        margin-top: 20px;
    }

    footer {
        padding: 30px 20px;
        font-size: 0.85rem;
    }

    .privacy-modal-content {
        margin: 10% auto;
        padding: 25px;
        width: 95%;
        max-height: 85vh;
    }

    .privacy-modal-content h2 {
        font-size: 1.2rem;
    }

    .privacy-close {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.6rem;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .portfolio-item {
        height: 250px;
    }

    .contact-link {
        font-size: 1rem;
        word-break: break-all;
    }

    .privacy-modal-content {
        padding: 20px;
    }
}

/* =========================================
   POPRAWKI FINALNE (Wklej na końcu pliku)
   ========================================= */

/* 1. NAPRAWA MODALA (Żeby był nad bannerem cookies i miał kursor) */
.privacy-modal {
    z-index: 2147483647 !important;
    /* Maksymalna możliwa wartość */
    background-color: rgba(0, 0, 0, 0.95) !important;
    cursor: default !important;
    /* Przywraca normalny kursor */
}

.privacy-modal-content {
    cursor: auto !important;
    /* Kursor tekstowy/strzałka wewnątrz */
    background-color: #111 !important;
    border: 1px solid #00f2ff !important;
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.9) !important;
}

/* Ukryj kropkę kursora gdy jesteśmy nad modalem */
.privacy-modal:hover~.cursor-dot,
.privacy-modal:hover~.cursor-outline {
    display: none !important;
    opacity: 0 !important;
}

/* 2. NAPRAWA TEKSTÓW W USŁUGACH (Żeby były widoczne i NIE ZNIKAŁY) */
/* Override GSAP opacity animation */
.service-card,
.service-card h3,
.service-card p,
.service-card h4 {
    /* Removed opacity !important to allow GSAP animation */
    visibility: visible;
}

.service-card h3 {
    color: #ffffff !important;
    /* Pure white */
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.service-card:hover h3 {
    color: #00f2ff !important;
    /* Neonowy cyan po najechaniu */
}

.service-card p {
    color: #ffffff !important;
    /* Biały tekst opisu */
    font-weight: 400;
}

.service-card h4 {
    color: #ffffff !important;
    /* Biały tytuł usługi */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* 3. NAPRAWA PRZYCISKU ZAMKNIJ */
.privacy-close {
    z-index: 2147483648 !important;
    /* Nad modalem */
    position: relative;
    color: #00f2ff !important;
    opacity: 1 !important;
}

/* =========================================
   POPUP REKRUTACYJNY
   ========================================= */
.recruitment-modal {
    display: none;
    /* Domyślnie ukryty */
    position: fixed;
    z-index: 2147483650;
    /* Wyżej niż wszystko */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.recruitment-modal-content {
    position: relative;
    max-width: 900px;
    width: 90%;
    background: transparent;
    padding: 0;
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 50px rgba(0, 242, 255, 0.2);
    animation: popupFadeIn 0.5s ease-out;
}

.recruitment-modal-content img {
    width: 100%;
    height: auto;
    display: block;
}

.recruitment-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.recruitment-close:hover {
    color: var(--primary-color);
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* =========================================
   LANGUAGE SWITCHER
   ========================================= */
.lang-switcher {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-left: 20px;
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    opacity: 0.5;
    transition: opacity 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-btn img {
    width: 24px;
    height: auto;
    display: block;
    border-radius: 2px;
}

.lang-btn:hover,
.lang-btn.active {
    opacity: 1;
    transform: scale(1.1);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .lang-switcher {
        margin: 20px 0;
        justify-content: center;
    }

    .lang-btn img {
        width: 32px;
    }
}