/* ===================================
   RESET & BASE STYLES
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy: #1A1F2C;
    --white: #FFFFFF;
    --cyan: #00D9FF;
    --gray: #8B92A8;
    --light-gray: #E8EAED;
    --shadow: rgba(0, 0, 0, 0.3);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--white);
    color: var(--navy);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ===================================
   GLASSMORPHISM HEADER
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 31, 44, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(26, 31, 44, 0.95);
    box-shadow: 0 4px 20px var(--shadow);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}

.logo-wrapper {
    flex-shrink: 0;
}

.logo {
    height: 50px;
    width: auto;
    display: block;
}

.nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cyan);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--cyan);
}

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

.lang-toggle {
    background: transparent;
    border: 2px solid var(--cyan);
    border-radius: 0;
    padding: 8px 16px;
    cursor: pointer;
    display: flex;
    gap: 8px;
    align-items: center;
    transition: var(--transition);
}

.lang-toggle:hover {
    background: var(--cyan);
}

.lang-option {
    color: var(--white);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    opacity: 0.5;
    transition: var(--transition);
}

.lang-option.active {
    opacity: 1;
    color: var(--cyan);
}

.lang-toggle:hover .lang-option {
    color: var(--navy);
}

.lang-toggle:hover .lang-option.active {
    color: var(--navy);
}

.lang-divider {
    color: var(--white);
    opacity: 0.5;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: var(--transition);
    border-radius: 0;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--navy);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/KTW.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 1;
}

.hero-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.05;
    z-index: 2;
    pointer-events: none;
}

.hero-watermark img {
    width: 600px;
    height: auto;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    padding: 100px 20px 50px;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 40px;
    color: var(--light-gray);
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.cta-button {
    display: inline-block;
    padding: 18px 40px;
    background: var(--cyan);
    color: var(--navy);
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    border-radius: 0;
    transition: var(--transition);
    animation: fadeInUp 1s ease-out 0.4s backwards;
    border: 2px solid var(--cyan);
}

.cta-button:hover {
    background: transparent;
    color: var(--cyan);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
}

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

/* ===================================
   PARTNERSHIP BANNER
   =================================== */
.partnership-banner {
    background: var(--navy);
    padding: 50px 0;
    border-top: 2px solid var(--cyan);
    border-bottom: 2px solid var(--cyan);
}

.partnership-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.partnership-text {
    color: var(--light-gray);
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.partnership-logo-link {
    display: block;
    transition: var(--transition);
}

.partnership-logo-link:hover {
    transform: scale(1.1);
}

.partnership-logo {
    height: 70px;
    width: auto;
    display: block;
    filter: brightness(1.1);
}

.partnership-description {
    color: var(--light-gray);
    font-size: 16px;
    font-weight: 500;
}

/* ===================================
   ABOUT SECTION
   =================================== */
.about {
    padding: 100px 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
    box-shadow: 0 10px 40px var(--shadow);
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--navy);
}

.section-title.centered {
    text-align: center;
}

.about-text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--gray);
    margin-bottom: 20px;
}

/* ===================================
   WORK METHOD SECTION
   =================================== */
.work-method {
    padding: 100px 0;
    background: var(--navy);
    position: relative;
    overflow: hidden;
}

.work-method::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/handshake.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.03;
    pointer-events: none;
}

.work-method .section-title {
    color: var(--white);
}

.work-subtitle {
    text-align: center;
    font-size: 20px;
    color: var(--gray);
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.work-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    padding: 50px 35px;
    position: relative;
    transition: var(--transition);
    overflow: hidden;
}

.work-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), rgba(0, 217, 255, 0.05));
    transition: var(--transition);
    z-index: 0;
}

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

.work-card.active {
    border-color: var(--cyan);
    background: rgba(0, 217, 255, 0.08);
}

.work-card.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--cyan);
}

.work-card:hover {
    transform: translateY(-10px);
    border-color: var(--cyan);
    box-shadow: 0 20px 50px rgba(0, 217, 255, 0.2);
}

.work-number {
    font-size: 72px;
    font-weight: 700;
    color: rgba(0, 217, 255, 0.15);
    line-height: 1;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.work-card:hover .work-number {
    color: rgba(0, 217, 255, 0.3);
    transform: scale(1.1);
}

.work-card.active .work-number {
    color: rgba(0, 217, 255, 0.4);
}

.work-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.work-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--light-gray);
    position: relative;
    z-index: 1;
}

/* ===================================
   SERVICES SECTION
   =================================== */
.services {
    padding: 100px 0;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.mural-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    background-size: cover;
    background-position: center;
    pointer-events: none;
}

.mural-1 {
    background-image: url('images/Mural KKP_plakat_1.jpg');
}

.mural-2 {
    background-image: url('images/Mural KKP_plakat_2.jpg');
}

.mural-3 {
    background-image: url('images/Mural KKP_plakat_3.jpg');
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--cyan);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 217, 255, 0.3);
    z-index: 10;
}

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

.service-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--navy);
}

.service-preview {
    font-size: 16px;
    color: var(--gray);
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card:hover .service-preview {
    color: var(--navy);
}

.service-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease;
    margin-top: 0;
    opacity: 0;
}

.service-details p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--gray);
    padding-top: 20px;
    border-top: 2px solid var(--light-gray);
}

.service-card:hover .service-details,
.service-card.expanded .service-details {
    max-height: 600px;
    opacity: 1;
}

/* ===================================
   OFFICES SECTION WITH MAP
   =================================== */
.offices {
    padding: 100px 0;
    background: var(--navy);
    position: relative;
    overflow: hidden;
}

.offices .section-title {
    color: var(--white);
}

.offices-grid-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 60px auto 0;
}

.office-item {
    display: flex;
    gap: 20px;
    padding: 35px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    transition: var(--transition);
}

.office-item:hover {
    background: rgba(0, 217, 255, 0.08);
    border-color: var(--cyan);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 217, 255, 0.2);
}

.office-icon {
    font-size: 40px;
    flex-shrink: 0;
}

.office-details {
    flex: 1;
}

.office-details h4 {
    font-size: 22px;
    font-weight: 700;
    color: var(--cyan);
    margin-bottom: 12px;
}

.office-details p {
    font-size: 16px;
    color: var(--light-gray);
    margin-bottom: 15px;
    line-height: 1.6;
}

.office-link {
    display: inline-block;
    color: var(--cyan);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
}

.office-link:hover {
    color: var(--white);
    transform: translateX(5px);
}

/* ===================================
   CONTACT SECTION
   =================================== */
.contact {
    padding: 100px 0;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.contact-item {
    text-align: center;
}

.contact-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.contact-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--navy);
}

.contact-item a,
.contact-item p {
    color: var(--gray);
    text-decoration: none;
    font-size: 16px;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--cyan);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 2px solid var(--light-gray);
    border-radius: 0;
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--cyan);
}

/* Honeypot - ukryte pole dla botów */
.honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.submit-btn {
    padding: 15px 30px;
    background: var(--navy);
    color: var(--white);
    border: 2px solid var(--navy);
    border-radius: 0;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background: transparent;
    color: var(--navy);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-status {
    margin-top: 20px;
    padding: 15px;
    border-radius: 0;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    display: none;
}

.form-status.success {
    display: block;
    background: rgba(0, 217, 255, 0.1);
    border: 2px solid var(--cyan);
    color: var(--cyan);
}

.form-status.error {
    display: block;
    background: rgba(255, 0, 0, 0.1);
    border: 2px solid #ff4444;
    color: #ff4444;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: var(--navy);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-column {
    color: var(--white);
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 50px;
    width: auto;
}

.footer-description {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.6;
}

.footer-title {
    color: var(--cyan);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 12px;
    color: var(--gray);
    font-size: 14px;
    line-height: 1.6;
}

.footer-list a {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
}

.footer-list a:hover {
    color: var(--cyan);
    padding-left: 5px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 20px;
}

.footer-text {
    color: var(--gray);
    font-size: 14px;
}

.footer-partner {
    display: flex;
    align-items: center;
    gap: 10px;
}

.partner-text {
    color: var(--gray);
    font-size: 14px;
}

.partner-link {
    color: var(--cyan);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.partner-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--cyan);
    transition: var(--transition);
}

.partner-link:hover {
    color: var(--white);
}

.partner-link:hover::after {
    width: 100%;
}

/* ===================================
   REVEAL ANIMATION
   =================================== */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 968px) {
    .nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(26, 31, 44, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        transition: var(--transition);
    }
    
    .nav.active {
        left: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .work-grid {
        grid-template-columns: 1fr;
    }
    
    .offices-grid-layout {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .partnership-content {
        gap: 25px;
    }
    
    .partnership-logo {
        height: 55px;
    }
    
    .partnership-text {
        font-size: 16px;
    }
    
    .partnership-description {
        font-size: 14px;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .hero-watermark img {
        width: 300px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .partnership-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .partnership-logo {
        height: 50px;
    }
    
    .partnership-text {
        font-size: 14px;
    }
    
    .partnership-description {
        font-size: 13px;
    }
    
    .city-info {
        min-width: 200px;
        padding: 15px;
    }
}

/* ===================================
   ADDITIONAL RESPONSIVE IMPROVEMENTS
   =================================== */

/* Tablet landscape / small desktop */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }

    .hero-title {
        font-size: 46px;
    }

    .section-title {
        font-size: 36px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet portrait */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-info {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

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

    .work-method,
    .services,
    .offices,
    .contact,
    .about {
        padding: 70px 0;
    }

    .hero-content {
        padding: 80px 20px 40px;
    }

    .section-title {
        font-size: 30px;
        margin-bottom: 20px;
    }

    .work-card {
        padding: 35px 25px;
    }

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

/* Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .cta-button {
        font-size: 16px;
        padding: 14px 28px;
    }

    .section-title {
        font-size: 26px;
    }

    .work-method,
    .services,
    .offices,
    .contact,
    .about {
        padding: 50px 0;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

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

    .footer {
        padding: 40px 0 20px;
    }

    .office-item {
        padding: 20px;
        flex-direction: column;
        gap: 10px;
    }

    .work-number {
        font-size: 52px;
    }

    .work-title {
        font-size: 22px;
    }

    .service-title {
        font-size: 20px;
    }

    .header-content {
        padding: 12px 16px;
    }

    .logo {
        height: 40px;
    }
}
