* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    font-family: 'Roboto', sans-serif; 
}

/* Reset link styles for entire site */
a {
    color: inherit;
    text-decoration: none;
}

/* header height variable and mobile override */
:root { 
    --header-height: 48px; 
}
@media (max-width: 768px) {
    :root { 
        --header-height: 64px; 
    }
}

body { 
    line-height: 1.6; 
    padding-top: 0; 
    overflow-x: hidden;
}

/* Container for consistent max-width across sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* make header slightly translucent so hero can show behind it */
.header-container {
    max-width: 1200px;
    width: calc(100% - 40px);
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

header { 
    background: #141518; 
    color: #fff; 
    padding: 6px 0; 
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    z-index: 1000; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.15); 
}

header .logo img {
    max-height: 70px;
    width: auto;
    vertical-align: middle;
    transition: transform 0.3s;
}

header .logo:hover img {
    transform: scale(1.05);
}

header .logo, .header-container nav, .header-container .contact {
    opacity: 0;
    transform: translateY(-30px);
    animation: headerFadeIn 1s forwards;
}

header .logo { animation-delay: 0.1s; }
.header-container nav { animation-delay: 0.3s; }
.header-container .contact { animation-delay: 0.5s; }

@keyframes headerFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

header nav a {
    position: relative;
    transition: color 0.3s;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    font-synthesis: none;
}

header nav a::after {
    content: "";
    position: absolute;
    left: 0; 
    bottom: -4px;
    width: 100%; 
    height: 2px;
    background: #01a1e5;
    transform: scaleX(0);
    transition: transform 0.3s;
}

header nav a:hover {
    color: #01a1e5;
}

header nav a:hover::after {
    transform: scaleX(1);
}

header nav a.active::after {
    transform: scaleX(1);
}

header nav a.active {
    color: #01a1e5;
}

header nav a { 
    color: #fff; 
    text-decoration: none; 
    margin: 0 15px; 
    font-weight: 300; 
}

header .contact {
    font-size: 0.9em;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.contact-phone, .contact-email {
    white-space: nowrap;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.3s;
    z-index: 1001;
}

.mobile-menu-btn:hover {
    color: #01a1e5;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    padding: 0;
    position: relative;
    overflow: hidden;
    margin-top: calc(-1 * var(--header-height));
}

.hero h1 { display: none; }

/* full-bleed hero image that fills viewport width/height */
.hero-bleed {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    object-fit: cover;
    object-position: center 70%;
    display: block;
    z-index: 1;
}

/* scroll-down arrow inside hero */
.hero-scroll {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 18px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: transparent !important;
    border: none;
    cursor: pointer;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    opacity: 100%;
}

.hero-scroll:focus {
    outline: none;
    box-shadow: none;
}

.hero-scroll:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(1,161,229,0.18);
    border-radius: 6px;
}

.hero-scroll::-moz-focus-inner { border: 0; }
.hero-scroll { -webkit-tap-highlight-color: transparent; }

.hero-arrow {
    width: 30px;
    height: 30px;
    border-left: 3px solid #fff;
    border-bottom: 3px solid #fff;
    transform: rotate(-45deg);
    display: inline-block;
    animation: bounce 1s infinite;
    opacity: 100%;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) rotate(-45deg); }
    40% { transform: translateY(-10px) rotate(-45deg); }
    60% { transform: translateY(-6px) rotate(-45deg); }
}

.hero-scroll:hover .hero-arrow { 
    transform: rotate(-45deg) translateY(-4px); 
}

/* Section Base Styles */
section { 
    padding: 60px 0; 
}

section:not(.hero) { 
    padding-top: calc(60px + var(--header-height)); 
}

.about, .services, .why-us, .contact { 
    max-width: 1200px; 
    margin: auto; 
}

h2 { 
    color: #141518; 
    margin-bottom: 30px; 
    font-size: 2em; 
    text-align: center;
}

p { 
    margin-bottom: 20px; 
    color: #333; 
}

/* Services Grid */
.services-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); 
    gap: 24px; 
    justify-items: center; 
}

.service-card {
    background: #f5f5f5;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 0.6s cubic-bezier(.2,.9,.2,1), box-shadow 0.3s;
    will-change: transform, opacity;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    transform: translateZ(0);
    position: relative;
    margin: auto;
    overflow: hidden;
}

.service-card:hover {
    transform: translate3d(0,-8px,0);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

.service-card, .service-card * {
    transform-origin: center center;
}

.service-card > h3,
.service-card > p {
    transition: transform 0.6s cubic-bezier(.2,.9,.2,1), opacity 0.4s;
    will-change: transform, opacity;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0) rotate(0);
}

.service-card p {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    background: #f5f5f5;
    font-size: 1em;
    padding: 20px;
    transform: translateY(40px) scale(0.95) rotate(0);
    transition: opacity 0.4s cubic-bezier(.4,2,.3,1), transform 0.4s cubic-bezier(.4,2,.3,1);
}

.service-card:hover p {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1) translateZ(0);
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit;
    border-radius: 50%;
    z-index: 0;
    transition: transform 0.8s cubic-bezier(.2,.9,.2,1);
    will-change: transform, opacity;
    transform: rotate(0) translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.service-card > * { 
    position: relative; 
    z-index: 1; 
}

.service-card:hover::before {
    transform: rotate(360deg);
}

.service-card > h3, .service-card > p {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.service-card img {
    display: block;
    max-width: 40%;
    max-height: 50%;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.service-icon {
    font-size: 40px;
    color: #01a1e5;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.service-card p {
    position: absolute;
    z-index: 3;
}

.service-card h3 { 
    margin-bottom: 10px; 
    color: #141518; 
}

/* Contact Preview Section */
.contact-preview {
    padding: 80px 0;
    text-align: center;
    background-color: #f8f9fa;
}

.contact-preview h2 {
    margin-bottom: 20px;
}

.contact-preview p {
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    display: inline-block;
    background-color: #01a1e5;
    color: white;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s;
}

.btn-primary:hover {
    background-color: #0181b5;
    transform: translateY(-2px);
}

/* Footer */
footer { 
    background: #141518; 
    color: #fff; 
    padding: 30px 0; 
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-text {
    flex: 1;
    min-width: 200px;
}

.footer-logo img {
    height: 40px;
    width: auto;
}

.footer-links {
    flex: 1;
    text-align: right;
    min-width: 200px;
}

/* Info Cards */
.info-row { 
    max-width: 1200px; 
    margin: 30px auto; 
    padding: 0 20px; 
    display: flex; 
    gap: 20px; 
    justify-content: center; 
    flex-wrap: wrap;
}

.info-card { 
    background: #f5f5f5; 
    color: #141518; 
    padding: 20px 30px; 
    border-radius: 12px; 
    box-shadow: 0 6px 18px rgba(0,0,0,0.06); 
    font-weight:700; 
    display:flex; 
    align-items:center; 
    justify-content:center; 
    min-width:260px; 
    flex: 1;
}

.feature-card { 
    flex-direction: column; 
    text-align: center; 
    padding: 26px; 
    min-width:260px; 
    max-width: 400px;
}

.info-icon { 
    font-size: 36px; 
    color: #01a1e5; 
    margin-bottom: 10px; 
}

.feature-card h3 { 
    margin: 8px 0; 
    font-size: 1.05rem; 
}

.feature-card p { 
    font-weight: 400; 
    color: #555; 
    margin: 0; 
    font-size: 0.95rem; 
}

/* Why Us Section */
.why-us-list p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.why-us-list i {
    color: #01a1e5;
}

/* ============================================= */
/* RESPONSIVE DESIGN - MOBILE FIRST APPROACH */
/* ============================================= */

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
    .container {
        padding: 0;
    }
}

/* Tablet and Desktop (769px - 1199px) */
@media (max-width: 1199px) {
    .header-container {
        width: calc(100% - 40px);
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 20px;
    }
    
    .service-card {
        width: 240px;
        height: 240px;
    }
}

/* Tablet (769px - 1024px) */
@media (max-width: 1024px) {
    .header-container nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: #141518;
        flex-direction: column;
        padding: 20px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        z-index: 999;
        height: auto;
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
        pointer-events: none;
    }
    
    .header-container nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    
    .header-container nav a {
        margin: 8px 0;
        padding: 15px 12px;
        text-align: center;
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        opacity: 1;
        transform: translateY(0);
        transition: all 0.3s ease;
        border-radius: 6px;
        font-size: 1.1em;
        display: block;
        color: #fff !important;
        text-decoration: none !important;
        font-weight: 400 !important;
    }
    
    .header-container nav a:last-child {
        border-bottom: none;
    }
    
    .header-container nav a:hover {
        background-color: rgba(255,255,255,0.05);
        color: #01a1e5 !important;
    }
    
    .header-container nav a::after {
        display: none;
    }
    
    .header-container nav a.active {
        background-color: rgba(1, 161, 229, 0.1);
        color: #01a1e5 !important;
        font-weight: 500;
    }
    
    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 8px 12px;
        border-radius: 4px;
        transition: all 0.3s ease;
        z-index: 1001;
    }
    
    .mobile-menu-btn:hover,
    .mobile-menu-btn:focus {
        background-color: rgba(255,255,255,0.1);
        color: #01a1e5;
        outline: none;
    }
    
    .header-container .contact {
        display: none;
    }
    
    .hero-bleed {
        object-position: center 60%;
    }
    
    section:not(.hero) {
        padding-top: calc(40px + var(--header-height));
    }
    
    section {
        padding: 40px 0;
    }
}

/* Small Tablet (577px - 768px) */
@media (max-width: 768px) {
    :root { 
        --header-height: 64px; 
    }
    
    header .logo img {
        max-height: 50px;
    }
    
    .hero-arrow {
        width: 22px;
        height: 22px;
        border-width: 2px;
    }
    
    .hero-scroll {
        bottom: 14px;
    }
    
    .hero-bleed {
        object-position: center 50%;
    }
    
    h2 {
        font-size: 1.75em;
        margin-bottom: 25px;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 16px;
    }
    
    .service-card {
        width: 220px;
        height: 220px;
    }
    
    .service-icon {
        font-size: 36px;
    }
    
    .service-card h3 {
        font-size: 1.1em;
    }
    
    .service-card p {
        font-size: 0.9em;
        padding: 15px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-links {
        text-align: center;
    }
    
    .info-row {
        flex-direction: column;
        align-items: center;
    }
    
    .info-card {
        width: 100%;
        max-width: 400px;
    }
}

/* Mobile (425px - 576px) */
@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .header-container {
        width: calc(100% - 30px);
    }
    
    :root { 
        --header-height: 56px; 
    }
    
    header .logo img {
        max-height: 45px;
    }
    
    .mobile-menu-btn {
        font-size: 1.3rem;
        padding: 5px 8px;
    }
    
    .hero-bleed {
        object-position: center 40%;
    }
    
    h2 {
        font-size: 1.5em;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        width: 280px;
        height: 280px;
    }
    
    .service-icon {
        font-size: 38px;
    }
    
    .info-card {
        padding: 20px;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .btn-primary {
        padding: 10px 25px;
        font-size: 0.95em;
    }
    
    .footer-text, .footer-links {
        font-size: 0.9em;
    }
}

/* Small Mobile (320px - 424px) */
@media (max-width: 424px) {
    .container {
        padding: 0 10px;
    }
    
    .header-container {
        width: calc(100% - 20px);
        gap: 10px;
    }
    
    header .logo img {
        max-height: 40px;
    }
    
    .hero-arrow {
        width: 20px;
        height: 20px;
    }
    
    .service-card {
        width: 260px;
        height: 260px;
    }
    
    .service-icon {
        font-size: 34px;
    }
    
    .service-card h3 {
        font-size: 1em;
    }
    
    .service-card p {
        font-size: 0.85em;
        padding: 12px;
    }
    
    .info-card {
        min-width: auto;
        padding: 15px;
    }
    
    .feature-card h3 {
        font-size: 1em;
    }
    
    .feature-card p {
        font-size: 0.9em;
    }
    
    .btn-primary {
        width: 100%;
        text-align: center;
    }
}

/* Very Small Mobile (max-width: 320px) */
@media (max-width: 320px) {
    .service-card {
        width: 240px;
        height: 240px;
    }
    
    .service-icon {
        font-size: 32px;
    }
    
    .info-icon {
        font-size: 32px;
    }
}

/* High DPI/Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-bleed {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    header, .hero-scroll, .mobile-menu-btn {
        display: none !important;
    }
    
    .hero {
        height: auto;
        position: static;
    }
    
    .hero-bleed {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
}

/* Blokada scrolla gdy menu jest otwarte */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Dodatkowe style dla płynniejszej animacji menu */
@media (max-width: 1024px) {
    .header-container nav {
        will-change: transform, opacity;
        backface-visibility: hidden;
        perspective: 1000px;
    }
    
    .header-container nav:not(.active) {
        display: none;
    }
    
    .header-container nav.active {
        display: flex;
    }
}

/* Poprawki dla linków w menu mobilnym */
@media (max-width: 1024px) {
    .header-container nav a {
        color: #fff !important;
        text-decoration: none !important;
        font-weight: 400 !important;
    }
    
    .header-container nav a:hover {
        color: #01a1e5 !important;
    }
    
    .header-container nav a.active {
        color: #01a1e5 !important;
    }
}