@import url("https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

:root {
    /* Podstawowe kolory */
    --navy: #0a1f44;
    --navy-dark: #061530;
    --orange: #fd820a;
    --orange-light: #ffc534;
    --blue: #2a6c8e;
    --blue-light: #37cce3;
    --light: #f5f7fa;
    --dark: #333333;
    --text: #333333;
    
    /* Pomocnicze */
    --elegant: #1e3a8a;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-deep: 0 8px 24px rgba(0, 0, 0, 0.15);
    
    /* Gradienty */
    --navy-gradient: linear-gradient(90deg, var(--navy) 0%, var(--navy-dark) 100%);
    --orange-gradient: linear-gradient(90deg, var(--orange) 0%, var(--orange-light) 100%);
    --blue-gradient: linear-gradient(90deg, var(--blue) 0%, var(--blue-light) 100%);
    --dark-gradient: linear-gradient(90deg, var(--dark) 0%, #1a1a1a 100%);
    --navy-orange-gradient: linear-gradient(90deg, var(--navy) 0%, var(--orange) 100%);
    --blue-overlay-gradient: linear-gradient(0deg, rgba(42, 108, 142, 0.8), rgba(55, 204, 227, 0.8));
    --blue-overlay-gradient-darker: linear-gradient(0deg, rgba(42, 108, 142, 0.85), rgba(55, 204, 227, 0.85));
    --blue-overlay-gradient-darkest: linear-gradient(0deg, rgba(42, 108, 142, 0.9), rgba(55, 204, 227, 0.9));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Lato", sans-serif;
    color: var(--text);
}

body,
html {
    scroll-behavior: smooth;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    position: relative;
    box-sizing: border-box;
    overflow-x: hidden;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    letter-spacing: 1px;
    box-shadow: var(--shadow);
}

.btn i {
    margin-left: 8px;
    font-size: 16px;
    vertical-align: middle;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-deep);
}

.dark {
    background: var(--dark);
    color: white;
}

.dark:hover {
    background: var(--dark);
    color: white;
}

@-webkit-keyframes AnimatedGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes AnimatedGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.outline-light {
    background-color: transparent;
    color: white;
    border: 2px solid white;
    transition: all 0.3s ease;
}

.outline-light:hover {
    background-color: var(--orange);
    color: white;
    border-color: var(--orange);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.outline-primary {
    background-color: transparent;
    color: var(--navy);
    border: 2px solid var(--navy);
    transition: all 0.3s ease;
}

.outline-primary:hover {
    background: var(--navy-gradient);
    color: white;
    border-color: transparent;
}

h1 {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 48px;
    padding: 15px;
    margin: 0;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--orange-gradient);
    border-radius: 2px;
}

h2 {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 36px;
    padding: 15px;
    margin: 0;
}

h3 {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 24px;
}

p {
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--navy);
    transition: all 0.3s;
}

a:hover {
    color: var(--navy-dark);
}

i {
    color: inherit;
}

.navbar {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    height: 80px;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
    position: relative;
    min-height: 80px; /* Zapewnia minimalną wysokość */
}

nav {
    z-index: 1000;
    position: fixed;
    color: white;
    width: 100%;
    left: 0;
    top: 0;
    background: var(--navy-gradient);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

/* Prevent body scroll when mobile menu is open */
body.menu-open {
    overflow: hidden;
    /* Prevent background scroll/bounce on iOS while allowing inner menu scroll */
    overscroll-behavior: none;
}

/* Add a class for scrolled navbar */
nav.scrolled {
    padding: 5px 0;
    background: var(--navy);
    box-shadow: var(--shadow-deep);
}

.brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    font-size: 21px;
    margin-right: 30px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    height: 100%; /* Zajmuje pełną wysokość navbar */
    justify-content: flex-start;
}

.brand:hover {
    text-decoration: none;
    color: var(--orange-light);
}

.logo {
    height: 70px;
    margin-right: 20px;
}

.nav-logo {
    height: 70px;
    width: auto;
    margin-right: 20px;
    position: relative;
    z-index: 10;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    background-color: transparent !important;
    transition: transform 0.3s ease;
    object-fit: contain; /* Zachowuje proporcje */
    max-width: 70px; /* Zapobiega rozciąganiu */
}

.brand:hover .nav-logo {
    transform: scale(1.05);
}

.links {
    overflow: hidden;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    justify-content: flex-end;
    align-items: center; /* Wyśrodkowanie pionowe */
    flex-grow: 1;
    padding: 15px;
    gap: 5px;
    height: 100%; /* Zajmuje pełną wysokość navbar */
}

.links a {
    color: white;
    text-decoration: none;
    padding: 10px 16px;
    text-align: center;
    transition: all 0.3s ease;
    white-space: nowrap;
    border-radius: 4px;
    letter-spacing: 0.5px;
    position: relative;
    display: flex;
    align-items: center; /* Wyśrodkowanie pionowe tekstu */
    height: auto;
}

.links a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--orange);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.links a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--orange-light);
}

.links a:hover::after {
    width: 50%;
}

#toggleNavButton {
    display: none;
    background: none;
    border: none;
    color: var(--orange) !important;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
}

#toggleNavButton svg path {
    stroke: var(--orange) !important;
}

#toggleNavButton:hover {
    color: var(--orange-light);
}

.icon {
    display: none;
}

/* Responsywny navbar */
@media (max-width: 1100px) {
    .navbar {
        padding: 0 30px;
        height: 80px; /* Zachowaj stałą wysokość */
    }
    
    .brand {
        font-size: 18px;
        margin-right: 20px;
        display: flex;
        align-items: center;
    }
    
    .nav-logo {
        height: 60px;
        width: auto;
        margin-right: 15px;
        object-fit: contain;
        max-width: 60px;
    }
    
    .links {
        gap: 0;
        display: flex;
        align-items: center;
    }
    
    .links a {
        padding: 8px 10px;
        font-size: 14px;
        display: flex;
        align-items: center;
    }
}

@media (max-width: 992px) {
    .navbar {
        padding: 0 20px;
        height: 80px; /* Zachowaj stałą wysokość */
    }
    
    .brand {
        font-size: 16px;
        margin-right: 15px;
        display: flex;
        align-items: center;
    }
    
    .nav-logo {
        height: 55px;
        width: auto;
        margin-right: 12px;
        object-fit: contain;
        max-width: 55px;
    }
    
    .links {
        gap: 0;
        display: flex;
        align-items: center;
    }
    
    .links a {
        padding: 8px 8px;
        font-size: 13px;
        display: flex;
        align-items: center;
    }
}

@media (max-width: 850px) {
    .navbar {
        padding: 0 15px;
        height: 80px; /* Zachowaj stałą wysokość */
    }
    
    .brand {
        font-size: 15px;
        margin-right: 10px;
        display: flex;
        align-items: center;
    }
    
    .nav-logo {
        height: 50px;
        width: auto;
        margin-right: 10px;
        object-fit: contain;
        max-width: 50px;
    }
    
    .links {
        display: flex;
        align-items: center;
    }
    
    .links a {
        padding: 6px 6px;
        font-size: 12px;
        display: flex;
        align-items: center;
    }
}

@media (max-width: 750px) {
    /* Switch to hamburger menu earlier */
    .navbar {
        height: auto;
        padding: 0 15px;
        position: relative;
    }
    
    .brand {
        width: 80%;
        justify-content: flex-start;
        padding: 10px 0;
        font-size: 16px;
    }
    
    .nav-logo {
        height: 55px;
        width: auto;
        margin-right: 15px;
        object-fit: contain;
        max-width: 55px;
    }
    
    .links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        /* Full-height on iOS Safari/Chrome with robust fallbacks */
        height: var(--app-viewport-height, 100svh);
        height: 100svh; /* modern browsers */
        height: 100dvh; /* dynamic viewport units */
        background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 80px 0 20px;
        gap: 0;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        overflow-y: auto;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    }
    
    .links.active {
        right: 0;
    }
    
    .links a {
        width: 100%;
        text-align: left;
        padding: 15px 20px;
        margin: 0;
        border-radius: 0;
        font-size: 16px;
    }

    /* Align AI button with menu links inside the hamburger */
    .links .nav-call {
        margin: 6px 20px 0 10px !important; /* same left/right as links padding */
        align-self: flex-start;
    }
    
    .links a::after {
        left: 10px;
        transform: none;
    }
    
    .links a:hover::after {
        width: 30px;
    }
    
    #toggleNavButton {
        display: block;
        position: absolute;
        right: calc(15px + env(safe-area-inset-right));
        top: calc(20px + env(safe-area-inset-top));
        z-index: 2100;
    }
}



@media (max-width: 480px) {
    .brand {
        font-size: 16px;
        max-width: 75%;
    }
    
    .nav-logo {
        height: 50px;
        width: auto;
        margin-right: 10px;
        object-fit: contain;
        max-width: 50px;
    }
    
    .links {
        width: 80%;
    }
    
    .links a {
        font-size: 16px;
        padding: 12px 15px;
    }
}

#intro {
    padding: 150px 20px 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100svh;
    width: 100%;
    background: var(--navy-gradient);
    background-size: cover;
    background-position: center;
    color: white;
    position: relative;
}

#intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 31, 68, 0.85) 0%, rgba(42, 108, 142, 0.85) 100%);
    z-index: 1;
}

#intro h1 {
    text-align: center;
    margin-bottom: 36px;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
    font-size: 52px;
    letter-spacing: 0.5px;
}

#intro p {
    font-weight: 400;
    font-size: 24px;
    line-height: 1.7;
    text-align: center;
    max-width: 900px;
    margin-bottom: 40px;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

#intro .btn {
    margin-bottom: 36px;
    position: relative;
    z-index: 2;
    padding: 14px 28px;
    font-size: 18px;
    letter-spacing: 1px;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#offer {
    padding: 120px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: var(--light);
    position: relative;
}

#offer h2 {
    color: var(--navy);
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

#offer h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--orange-gradient);
    border-radius: 2px;
}

.category-title {
    color: var(--navy);
    background: var(--navy-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin: 40px 0 30px;
    font-size: 28px;
    position: relative;
    width: 100%;
    max-width: 1200px;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--orange-gradient);
    border-radius: 2px;
}

/* On services index we use CSS grid. For the homepage cards, keep a responsive grid too */
#offer .cards {
    margin: 40px 0;
    color: var(--dark);
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* hard limit 3 columns on desktop */
    align-items: stretch;
    justify-content: center;
    max-width: 1440px;
    gap: 20px;
}

/* Smooth responsive steps for flip cards on homepage */
@media (max-width: 1400px) {
    #offer .cards { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1100px) {
    #offer .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
    #offer .cards { grid-template-columns: 1fr; }
}

/* Style dla linków technologii */
.tech-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.tech-link:hover {
    text-decoration: none;
}

/* Dodatkowe style dla sekcji zaawansowanej */
.category-title + .cards {
    margin-top: 30px;
}

.tech-more-link {
    margin-top: 40px;
    text-align: center;
}

#information {
    padding: 80px 20px;
    max-width: 1200px;
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

#information h2 {
    margin-bottom: 40px;
    color: var(--navy);
    background: var(--navy-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 36px;
    position: relative;
    padding-bottom: 15px;
}

#information h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--orange-gradient);
    border-radius: 2px;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    width: 100%;
    margin: 40px 0;
    gap: 30px;
}

.stat-item {
    padding: 30px;
    text-align: center;
    min-width: 250px;
    background-color: var(--light);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    flex: 1;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--orange-gradient);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-deep);
}

.stat-item:hover::before {
    transform: translateY(0);
}

.stat-number {
    font-size: 52px;
    font-weight: 700;
    color: var(--orange);
    font-family: "Montserrat", sans-serif;
    margin-bottom: 15px;
    background: var(--orange-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 18px;
    color: var(--text);
    font-weight: 500;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.cta-buttons .btn {
    min-width: 220px;
    padding: 14px 28px;
    font-size: 16px;
    letter-spacing: 1px;
    border-radius: 6px;
}

#pricing {
    padding: 120px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: var(--navy-gradient);
    background-size: cover;
    background-position: center;
    font-size: 16px;
    color: white;
    position: relative;
}

#pricing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 31, 68, 0.85) 0%, rgba(42, 108, 142, 0.85) 100%);
    z-index: 1;
}

#pricing h1 {
    color: white;
    text-align: center;
    margin-bottom: 30px;
    font-size: 42px;
    position: relative;
    z-index: 2;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
}

#pricing h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--orange-gradient);
    border-radius: 2px;
}

.price-tabs {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.price-tab {
    padding: 14px 28px;
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid var(--orange-light);
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: var(--shadow);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.price-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--orange-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.price-tab.active, .price-tab:hover, .price-tab.in-view {
    color: white;
    border-color: var(--orange);
    box-shadow: var(--shadow-deep);
    transform: translateY(-3px);
}

.price-tab.active::before, .price-tab:hover::before, .price-tab.in-view::before {
    opacity: 1;
}

#pricing .price-info {
    padding: 30px;
    max-width: 1000px;
    position: relative;
    z-index: 2;
    margin-top: 40px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

#pricing .price-info p {
    margin: 0;
    padding: 10px 0;
    font-weight: 500;
    width: 100%;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
    padding-left: 25px;
    line-height: 1.5;
    font-size: 16px;
    letter-spacing: 0.3px;
}

#pricing .price-info p::before {
    content: "•";
    color: var(--orange-light);
    font-weight: bold;
    position: absolute;
    left: 5px;
    font-size: 18px;
}

#pricing p {
    margin: 0;
    padding: 8px;
    font-weight: bold;
    width: 100%;
}

/* Pricing cards */
.pricing-wrapper {
    width: 100%;
    max-width: 1100px;
    position: relative;
    z-index: 2;
}

.pricing-cards {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pricing-card {
    background: #ffffff;
    color: var(--text);
    border-radius: 16px;
    box-shadow: var(--shadow-deep);
    padding: 28px;
    border: 1px solid rgba(10,31,68,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
    /* Make cards consistent height and align CTA to bottom */
    display: flex;
    flex-direction: column;
    min-height: 420px;
    /* LED border speed variable */
    --led-speed-base: 8s;
    --led-speed: var(--led-speed-base);
    /* LED color (RGB components for alpha control) */
    --led-color-rgb: 255, 130, 10; /* orange */
}

.pricing-card:hover,
.pricing-card.in-view,
.pricing-card.is-focused {
    transform: translateY(-6px) scale(1.015);
    box-shadow: 
        0 18px 30px rgba(0,0,0,0.18),
        0 0 20px rgba(255, 130, 10, 0.6),
        0 0 40px rgba(255, 130, 10, 0.4),
        0 0 80px rgba(255, 130, 10, 0.2);
    /* Speed up by max ~50% */
    --led-speed: calc(var(--led-speed-base) * 0.6667);
}

.pricing-card .badge {
    position: absolute;
    top: 40px;
    right: -40px;
    background: var(--orange-gradient);
    color: #fff;
    transform: rotate(35deg);
    padding: 6px 60px;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.6px;
}

.pricing-card h2 {
    color: var(--navy);
    margin: 6px 0 10px;
    font-size: 26px;
}

.pricing-card .price {
    font-size: 22px;
    font-weight: 800;
    background: var(--orange-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.pricing-card .features {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    /* Grow to push CTA to the bottom */
    flex-grow: 1;
}

.pricing-card .features li {
    position: relative;
    padding-left: 22px;
    margin: 10px 0;
}

.pricing-card .features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--orange);
    border-radius: 50%;
}

.pricing-card .btn {
    width: 100%;
    text-align: center;
    margin-top: auto;
}

/* LED-like animated border around pricing cards */
@keyframes proop-led-rotate { to { transform: rotate(360deg); } }
@keyframes proop-stroke-move { to { stroke-dashoffset: -1000; } }

/* Perimeter dash animation for LED border running along the card edges */
@keyframes proop-led-perimeter {
    0% {
        /* top, right, bottom, left */
        background-position:
            0 0,
            100% 0,
            0 100%,
            0 0;
    }
    100% {
        background-position:
            200% 0,     /* top: left -> right */
            100% 200%,  /* right: top -> bottom */
            -200% 100%, /* bottom: right -> left */
            0 -200%;    /* left: bottom -> top */
    }
}

/* Disable old gradient-based ring in favor of precise SVG stroke */
.pricing-card::before,
.pricing-card::after {
    content: none !important;
}

/* Dedicated SVG overlay for perfect rounded-corner perimeter animation */
#pricing .pricing-card { position: relative; }
/* Removed inline SVG neon border; keep soft glow via hover box-shadow on cards */

/* Single orange accent across cards */

/* Stronger premium effect for the popular plan */
.pricing-card.popular { transform-origin: center; }
.pricing-card.popular::before { padding: 3px; }
.pricing-card.popular::after { opacity: 0.6; filter: blur(10px); }
/* Make default selected pricing card visibly focused on load */
.pricing-card.is-default {
    outline: 2px solid var(--orange);
    outline-offset: 3px;
}

/* Button visual to match premium theme */
.btn.outline-dark {
    background-color: transparent;
    color: var(--navy);
    border: 2px solid var(--navy);
    transition: all 0.25s ease;
}
.btn.outline-dark:hover {
    color: white;
    background: var(--navy-gradient);
    border-color: transparent;
}

@media (max-width: 992px) {
    .pricing-wrapper { max-width: 560px; }
    .pricing-cards { grid-template-columns: 1fr; }
}

/* White variant of price-info aligned with cards */
.price-info.white {
    background: #ffffff;
    color: var(--text);
    border-radius: 16px;
    box-shadow: var(--shadow-deep);
    border: 1px solid rgba(10,31,68,0.08);
    margin-top: 24px;
    width: 100%; /* align width visually with cards wrapper */
    /* Center the white info block under the cards */
    margin-left: auto;
    margin-right: auto;
}

#contact {
    padding: 120px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: var(--navy-gradient), url("images/tinified/section-contact.jpg");
    background-size: cover;
    color: white;
}

#contact #contact-form {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#contact #contact-form .row {
    width: 100%;
    display: flex;
    flex-direction: row;
}

#contact #contact-form .btn {
    width: fit-content;
    margin-top: 40px;
}

#contact #contact-form textarea {
    height: 300px;
}

input,
textarea {
    width: 100%;
    margin: 15px;
    font-family: "Lato";
    font-style: normal;
    font-weight: 500;
    font-size: 18px;
    line-height: 20px;
    padding: 16px 32px;
    color: var(--dark);
    outline: none;
    border: none;
    border-radius: 10px;
    background-color: var(--light);
    box-shadow: var(--shadow);
}

footer {
    font-family: "Montserrat", sans-serif;
    width: 100%;
    background: var(--navy-gradient);
    color: white;
    font-size: 18px;
    font-weight: 400;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--shadow);
}

.footer-content {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding: 40px 20px;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-section {
    flex: 1;
    min-width: 280px;
    max-width: 320px;
    margin: 0 10px;
}

.footer-section h3 {
    color: white;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--orange-gradient);
    border-radius: 2px;
}

.footer-section p {
    color: white;
    line-height: 1.6;
    margin-bottom: 10px;
    font-size: 16px;
}

.footer-section a {
    color: var(--orange-light);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 2px 0;
}

.footer-section a:hover {
    color: white;
    text-decoration: none;
}

.footer-section a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: white;
    transition: width 0.3s ease;
}

.footer-section a:hover::after {
    width: 100%;
}

.footer-bottom {
    width: 100%;
    background: var(--navy-dark);
    padding: 15px 0;
    text-align: center;
}

/* Privacy link styling in footer (reuses existing footer styles) */
.footer-section .privacy-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-top: 8px;
}

.footer-section .privacy-link i {
    font-size: 14px;
    color: inherit;
}

/* Compact inline nav links under About section */
.footer-section .footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 12px;
}

.footer-section .footer-nav a {
    position: relative;
    padding: 0 0 2px 0;
}

/* Centered nav row below sections */
.footer-nav-row {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 0px;
}

.footer-nav-row .footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    justify-content: center;
}

/* Footer bottom links style (same look as links inside footer sections) */
.footer-nav-row a {
    color: var(--orange-light);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 2px 0;
}

.footer-nav-row a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: white;
    transition: width 0.3s ease;
}

.footer-nav-row a:hover {
    color: white;
}

.footer-nav-row a:hover::after {
    width: 100%;
}

.footer-bottom p {
    color: white;
    font-size: 14px;
    margin: 0;
    padding: 0;
}

.social-links {
    display: flex;
    gap: 15px;
    margin: 15px 0;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-link i {
    font-size: 18px;
    color: white;
}

.social-link:hover {
    background: var(--orange-gradient);
    transform: translateY(-3px);
}

.social-link::after {
    display: none;
}

/* Style dla obrazów technologii */
.tech-logo {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    margin: 20px auto;
    display: block;
    transition: transform 0.3s ease;
    padding: 20px;

}

/* Orange bullet points styles */
ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    list-style-type: none;
}

ul li::before {
    content: "•";
    color: var(--orange);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 22px;
    line-height: 1;
}

/* Add orange dot before each bullet point in the benefits list */
.benefits-list li::before {
    content: "•";
    color: var(--orange);
}

/* Add a small orange circle before each feature */
.feature-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
}

.feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 10px;
    height: 10px;
    background-color: var(--orange);
    border-radius: 50%;
}

/* Decorative cut-off bar for sections */
.section-cutoff::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--navy-gradient);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Decorative cut-off bar for sections - bottom variant */
.section-cutoff-bottom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--navy-gradient);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Top margin for sections to account for fixed navbar */
section:first-of-type {
    margin-top: 80px;
}

/* Pricing section starts directly under fixed nav – remove extra top margin */
#pricing:first-of-type {
    margin-top: 0;
}

/* Remove unexpected white gap below fixed navbar on first hero sections on mobile */
@media (max-width: 768px) {
    .hero:first-of-type,
    .tech-hero:first-of-type,
    #intro:first-of-type {
        margin-top: 0 !important;
        padding-top: 100px; /* ensure content is not covered by fixed nav */
    }
    /* Ensure pricing also sits flush under fixed nav on mobile */
    #pricing:first-of-type {
        margin-top: 0 !important;
        /* keep its own padding from base rule (120px) */
    }
}

.divider-line {
    height: 2px;
    background: var(--navy-gradient);
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    display: block;
    clear: both;
    box-sizing: border-box;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
}

.divider-container {
    width: 100%;
    display: block;
    clear: both;
    overflow: visible;
    position: relative;
    /* Remove layout height so the hero visually reaches the fold */
    height: 0;
    margin: 0;
    padding: 0;
}

/* Reset default HR to avoid stray black lines between sections */
hr {
    border: 0;
    border-top: 0;
    background: none;
    height: 0;
    margin: 0;
}

/* Filter components for technologies and services pages */
.filter-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 40px 0;
    margin-bottom: 50px;
    max-width: 1200px;
    padding: 0 20px;
    width: 100%;
}

.filter-btn {
    padding: 14px 28px;
    background-color: white;
    color: var(--navy);
    border: 2px solid var(--navy);
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--orange-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.filter-btn:hover, .filter-btn.active {
    color: white;
    border-color: var(--orange);
    transform: translateY(-3px);
    box-shadow: var(--shadow-deep);
}

.filter-btn:hover::before, .filter-btn.active::before {
    opacity: 1;
}

/* Media queries for filter components */
@media (max-width: 768px) {
    .filter-container {
        gap: 10px;
        margin: 30px 0;
    }
    
    .filter-btn {
        padding: 10px 18px;
        font-size: 14px;
    }

    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    /* Calendly responsive fix */
    .calendly-inline-widget {
        min-width: 100% !important;
        width: 100% !important;
        height: 1600px !important;
    }
    
    /* Calendly section mobile adjustments */
    #calendly-section {
        padding: 40px 10px !important;
    }
    
    #calendly-section .wrap {
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    #calendly-section > div > div {
        max-width: 100% !important;
        padding: 20px !important;
        margin: 0 !important;
    }
    
    .navbar {
        padding: 0 15px;
    }
    
    #intro h1 {
        font-size: 2.5rem;
        padding: 0 15px;
    }
    
    #intro p {
        padding: 0 20px;
        font-size: 1rem;
    }
    
    #intro .btn {
        margin: 10px 5px;
    }
    
    #offer h2, #information h2, #pricing h1 {
        font-size: 2.2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    #offer .cards {
        padding: 0 15px;
    }
    
    .tech-link {
        width: calc(50% - 15px);
        min-width: 250px;
    }
    
}



@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    p {
        font-size: 0.95rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .brand {
        font-size: 0.85rem;
    }
    
    .nav-logo {
        width: auto;
        height: 50px;
        object-fit: contain;
        max-width: 50px;
    }
    
    #intro h1 {
        font-size: 2rem;
    }
    
    #intro p {
        font-size: 0.95rem;
    }
    
    #offer h2, #information h2, #pricing h1 {
        font-size: 1.8rem;
    }
    
    .tech-link {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    
    #offer .cards {
        margin: 20px auto;
        max-width: 320px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
    
    .price-tab {
        width: 100%;
        margin: 5px 0;
    }
    
    .cta-full {
        padding: 60px 15px;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .cta-text {
        font-size: 0.95rem;
    }
    
    .filter-container {
        padding: 0 10px;
    }
    
    .filter-btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
}

@media (max-width: 360px) {
    #offer .cards {
        max-width: 280px;
    }
    
    .tech-link {
        max-width: 280px;
    }
}

.cta-full {
    background-color: var(--navy);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: visible;
    width: 100%;
    margin-bottom: 0;
    z-index: 1;
    box-sizing: border-box;
}

.cta-full::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    filter: blur(8px);
    z-index: 0;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
    font-weight: 700;
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Button styles */
.btn_orange {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(90deg, var(--orange) 0%, var(--orange-light) 100%);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(253, 130, 10, 0.3);
}

.btn_orange::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--orange-light) 0%, var(--orange) 100%);
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn_orange:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(253, 130, 10, 0.4);
}

.btn_orange:hover::before {
    opacity: 1;
}

.btn_orange-outline {
    background: transparent;
    border: 2px solid var(--orange);
    color: var(--orange);
    box-shadow: none;
}

.btn_orange-outline::before {
    background: var(--orange);
}

.btn_orange-outline:hover {
    color: white;
}

/* AI Button animations */
@keyframes aiBreath {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.06); }
  100% { transform: scale(1); }
}

@keyframes slideGrad {
  0% { background-position: 0% 50%; }   /* pełny pomarańczowy */
  50% { background-position: 100% 50%; } /* pełny granatowy */
  100% { background-position: 0% 50%; }  /* powrót do pomarańczowego */
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Ring effect for AI button */
.ring {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: conic-gradient(from 0deg, rgba(255,255,255,.0), rgba(255,255,255,.7), rgba(255,255,255,.0) 75%);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
          mask: radial-gradient(closest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  animation: spin 3.6s linear infinite;
  pointer-events: none;
}

/* AI Button navbar variant */
.nav-call { 
    margin-left: 16px; 
    width: 90px !important;
    height: 45px !important;
    border-radius: 12px !important;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 10px 28px, rgba(253, 130, 10, 0.34) 0px 8px 24px !important;
    background: linear-gradient(135deg, #fd820a 0%, #fd820a 30%, #0a1f44 70%, #0a1f44 100%) !important;
    background-size: 300% 300% !important;
    animation: aiBreath 2200ms ease-in-out infinite, slideGrad 8000ms ease-in-out infinite !important;
    position: relative !important;
    overflow: hidden !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    font-weight: 800 !important;
    text-decoration: none !important;
}

/* Desktop popover for call button */
.nav-call .call-popover {
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%) scale(0.96);
    transform-origin: right center;
    background: rgba(11,20,48,0.96);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    border-radius: 12px;
    padding: 10px 14px;
    min-width: 220px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    white-space: nowrap;
}
.nav-call .call-popover .call-title {
    font-weight: 800;
    font-size: 14px;
    letter-spacing: .3px;
    opacity: .9;
    margin-bottom: 4px;
}
.nav-call .call-popover .call-row {
    display: flex;
    gap: 10px;
    align-items: center;
}
.nav-call .call-popover .call-number {
    color: #ffd4b1;
    font-weight: 800;
    text-decoration: none;
}
.nav-call .call-popover .call-copy {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 8px;
    padding: 6px 10px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease;
}
.nav-call .call-popover .call-copy:hover { background: rgba(255,255,255,0.16); }
.nav-call .call-popover .call-copy:active { background: rgba(255,255,255,0.22); }

.nav-call.desktop-open .call-popover {
    opacity: 1;
    transform: translateY(-50%) scale(1);
    pointer-events: auto;
}

/* Morphing content (desktop) */
.nav-call .call-text,
.nav-call .call-number {
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    transition: opacity .2s ease, max-width .3s ease;
    white-space: nowrap;
    margin-left: 10px;
}
.nav-call .call-text { color: #fff; font-weight: 800; letter-spacing: .3px; }
.nav-call .call-number { color: #ffd4b1; font-weight: 800; }

.nav-call.desktop-expanded {
    width: auto !important;
    padding: 0 14px !important;
}
.nav-call.desktop-expanded .ring { display: none; }
.nav-call.desktop-expanded { letter-spacing: 0.2px; }
.nav-call .call-label { transition: opacity .15s ease; }
.nav-call.desktop-expanded .call-label { opacity: 0; }
.nav-call.desktop-expanded .call-text,
.nav-call.desktop-expanded .call-number { opacity: 1; max-width: 180px; }

/* Contact page call section (top, white, centered) */
.call-ai-section {
    background: #ffffff;
    padding: 110px 20px 60px;
}
.call-ai-section .wrap {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}
.call-ai-section h2 {
    margin: 0 0 12px;
    font-size: 36px;
    color: var(--navy);
}
.call-ai-section p {
    margin: 0 0 28px;
    color: var(--text);
    opacity: .9;
    font-size: 18px;
}
.call-ai-section .nav-call {
    display: inline-flex !important;
    width: auto !important;
    min-width: 280px;
    padding: 0 20px !important;
}