/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.change * {
    transition: all .2s ease;
}

:root {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --secondary-color: #8b5cf6;
    --accent-color: #06b6d4;
    --glow-color: rgba(59, 130, 246, 0.3);
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body.light-theme {
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --background: #ffffff;
    --background-secondary: #f8fafc;
    --border-color: #e5e7eb;
}

body.dark-theme {
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-light: #64748b;
    --background: #0f172a;
    --background-secondary: #1e293b;
    --border-color: #334155;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background);
    overflow-x: hidden;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

body.light-theme .nav {
    background: rgba(255, 255, 255, 0.95);
}

body.dark-theme .nav {
    background: rgba(15, 23, 42, 0.95);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-link img {
    height: 2.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    transition: all 0.3s ease;
}

body.light-theme .mobile-menu-toggle span {
    background: var(--text-primary);
}

body.dark-theme .mobile-menu-toggle span {
    background: var(--text-secondary);
}

/* Buttons */
.cta-button {
    position: relative;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    overflow: hidden;
}

.cta-button.primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cta-button.secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.cta-button.secondary:hover {
    background: var(--primary-color);
    color: white;
}

.cta-button.large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.button-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover .button-glow {
    left: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 70px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

body.light-theme .hero-background {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

body.dark-theme .hero-background {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.floating-particles {
    position: absolute;
    width: 110%;
    height: 110%;
    top: -5%;
    left: -5%;
    background-image: 
        radial-gradient(circle at 20% 20%, var(--glow-color) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(6, 182, 212, 0.2) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(1deg); }
    66% { transform: translateY(10px) rotate(-1deg); }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    animation: slideInLeft 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.hero-visual {
    animation: slideInRight 1s ease-out;
}

.ai-interface {
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

body.light-theme .ai-interface {
    background: white;
}

body.dark-theme .ai-interface {
    background: var(--background-secondary);
}

.interface-header {
    background: var(--gradient-primary);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.interface-dots {
    display: flex;
    gap: 0.5rem;
}

.interface-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

body.light-theme .interface-dots span {
    background: rgba(255, 255, 255, 0.3);
}

body.dark-theme .interface-dots span{
    background: rgba(248, 250, 252, 0.3);
}

.interface-title {
    font-weight: 600;
}

body.light-theme .interface-title {
    color: white;
}

body.dark-theme .interface-title {
    color: var(--text-primary);
}

.interface-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-message {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.chat-message.user {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-primary);
    flex-shrink: 0;
}

.message-content {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    max-width: 80%;
}

body.light-theme .message-content {
    background: var(--background-secondary);
}

body.dark-theme .message-content {
    background: var(--background);
}

.chat-message.user .message-content {
    background: var(--primary-color);
}

body.light-theme .chat-message.user .message-content {
    color: white;
}

body.dark-theme .chat-message.user .message-content {
    color: var(--text-primary);
}

.typing-indicator {
    display: flex;
    gap: 4px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-light);
    animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-10px); }
}

/* Features Section */
.services {
    padding: 6rem 0;
    background: var(--background);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid, .how-it-works-grid, .services-grid-bottom {
    display: grid;
    gap: 2rem;
}

.services-grid, .how-it-works-grid {
    grid-template-columns: repeat(4, 1fr);
}

/* .services-grid-bottom {
    grid-template-columns: repeat(2, 1fr);
} */

.service-card {
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.services-grid-bottom .service-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.services-grid-bottom .services-grid-bottom-innerDiv:nth-child(2) {
    grid-row: 1 / span 2;
    grid-column: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.services-grid-bottom .service-benefits-double {
    flex-grow: 0;
}

body.light-theme .service-card {
    background: white;
}

body.dark-theme .service-card {
    background: var(--background-secondary);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}


.icon-chat, .icon-phone, .icon-website, .icon-custom, .icon-seo {
    padding: 2px;
    width: 32px;
    height: 32px;
    border-radius: 4px;
}

body.light-theme .icon-chat, body.light-theme .icon-phone, body.light-theme .icon-website, .icon-seo {
    background: white;
}

body.dark-theme .icon-chat, body.dark-theme .icon-phone, body.dark-theme .icon-website, .icon-seo {
    background: var(--background);
}

.icon-outreach {
    padding: 2px;
    width: 32px !important;
    height: 32px !important;
    border-radius: 4px;
}

body.light-theme .icon-outreach {
    background-color: white;
}

body.dark-theme .icon-outreach {
    background-color: var(--background);
}

.ProFinder-24 {
    width: 24px;
    height: 24px;
    background-image: url('/src/icons/ProFinder-24.png');
    background-position: center;
    background-repeat: no-repeat;
}

.service-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.service-link:hover {
    color: var(--primary-dark);
}

/* Navigation Dropdown */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle svg {
    height: 100%;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-toggle svg {
    transform: rotate(180deg);
}

.dropdown-toggle span {
    display: flex;
    align-items: center;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown-menu-content {
    margin-top: 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    min-width: 200px;
}

body.light-theme .dropdown-menu-content {
    background: white;
}

body.dark-theme .dropdown-menu-content {
    background: var(--background-secondary);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0px);
}

.dropdown-link {
    align-items: center;
    gap: 10px;
    width: max-content;
    min-width: 100%;
    flex-direction: row;
    display: flex;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

.dropdown-link:last-child {
    border-bottom: none;
}

.dropdown-link:hover {
    background: var(--background-secondary);
    color: var(--primary-color);
}


/* Service Pages Styles */
.service-hero {
    padding: 8rem 0 4rem;
    text-align: center;
}

body.light-theme .service-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

body.dark-theme .service-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.service-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.service-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.service-hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.problem-section {
    padding: 6rem 0;
    background: var(--background);
}

.problem-content {
    text-align: center;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.problem-item {
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

body.light-theme .problem-item {
    background: white;
    border: 2px solid #fee2e2;
}

body.dark-theme .problem-item {
    background: var(--background-secondary);
    border: 2px solid #cc1313;
    box-shadow: 0 0 3px #cc1313, 0 0 5px #cc1313, 0 0 10px #cc1313;
}

.problem-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.problem-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

body.light-theme .problem-item h3 {
    color: #dc2626;
}

body.dark-theme .problem-item h3 {
    color: #f30000;
}

.problem-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.solution-section {
    padding: 6rem 0;
    background: var(--background-secondary);
}

.solution-content {
    text-align: center;
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.solution-item {
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all 0.3s ease;
}

body.light-theme .solution-item {
    background: white;
    border: 2px solid #dcfce7;
}

body.dark-theme .solution-item {
    background: var(--background-secondary);
    border: 2px solid #11a70c;
    box-shadow: 0 0 3px #11a70c, 0 0 5px #11a70c, 0 0 10px #11a70c;
}

.solution-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.solution-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.solution-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

body.light-theme .solution-item h3 {
    color: #059669;
}

body.dark-theme .solution-item h3 {
    color: #12dd0c;
}

.solution-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.features-detailed {
    padding: 6rem 0;
    background: var(--background);
}

.features-detailed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-detailed {
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

body.light-theme .feature-detailed {
    background: white;
}

body.dark-theme .feature-detailed {
    background: var(--background-secondary);
}

.feature-detailed:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.feature-detailed h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature-detailed p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.feature-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.benefit {
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    width: max-content;
}

body.light-theme .benefit {
    background: var(--background-secondary);
}

body.dark-theme .benefit {
    background: var(--background);
}

.how-it-works-hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    text-align: center;
}

.how-it-works-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.how-it-works-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.how-it-works-hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.services-detailed {
    padding: 6rem 0;
    background: var(--background);
}

.services-detailed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-detailed {
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

body.light-theme .service-detailed {
    background: white;
}

body.light-theme .service-detailed {
    background: var(--background-secondary);
}

.service-detailed:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.service-detailed h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-detailed p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex-direction: column;
    flex-grow: 1;
}

.service-benefits-double {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    flex-grow: 1;
    width: fit-content;
}

/* Services Section */
.how-it-works {
    padding: 6rem 0;
    background: var(--background-secondary);
}

.how-it-works-item {
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

body.light-theme .how-it-works-item {
    background: white;
}

body.dark-theme .how-it-works-item {
    background: var(--background);
    border: 1px solid var(--border-color);
}

.how-it-works-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.how-it-works-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.how-it-works-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.how-it-works-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 6rem 0;
    background: var(--background);
}

.multi-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr); /* Domyślny układ 1x6 na małych ekranach */
    gap: 2rem;
    margin-top: 3rem;
}

/* Układ 2x3 dla ekranów o szerokości co najmniej 600px */
@media (min-width: 600px) {
    .multi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Układ 3x2 dla ekranów o szerokości co najmniej 900px */
@media (min-width: 900px) {
    .multi-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Układ 6x1 dla ekranów o szerokości co najmniej 1200px */
@media (min-width: 2000px) {
    .multi-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.why-choose-item {
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-align: center;
}

body.light-theme .why-choose-item {
    background: white;
}

body.dark-theme .why-choose-item {
    background: var(--background-secondary);
}

.why-choose-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.why-choose-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
}

.why-choose-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.2;
    transform: scale(1.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1.2); opacity: 0.2; }
    50% { transform: scale(1.4); opacity: 0.1; }
    100% { transform: scale(1.2); opacity: 0.2; }
}

.icon-expertise, .icon-custom, .icon-support, 
.icon-roi, .icon-security, .icon-scalable {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    position: relative;
}

body.light-theme .icon-expertise, body.light-theme .icon-custom,
body.light-theme .icon-support, body.light-theme .icon-roi,
body.light-theme .icon-security, body.light-theme .icon-scalable {
    background: white;
}

body.dark-theme .icon-expertise, body.dark-theme .icon-custom,
body.dark-theme .icon-support, body.dark-theme .icon-roi,
body.dark-theme .icon-security, body.dark-theme .icon-scalable {
    background: var(--background);
}

.icon-expertise::after { content: '🎯'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 18px; }
.icon-custom::after { content: '⚙️'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 18px; }
.icon-support::after { content: '🛡️'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 18px; }
.icon-roi::after { content: '📈'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 18px; }
.icon-security::after { content: '🔒'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 18px; }
.icon-scalable::after { content: '🚀'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 18px; }

.why-choose-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.why-choose-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* FAQ Section */
.faq-section {
    padding: 6rem 0;
    background: var(--background-secondary);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    margin-top: 3rem;
}

.faq-item {
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

body.light-theme .faq-item {
    background: white;
}

body.dark-theme .faq-item {
    background: var(--background-secondary);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    user-select: none;
}

body.light-theme .faq-question:hover {
    background: var(--background-secondary);
}

body.dark-theme .faq-question:hover {
    background: var(--background);
}

.faq-question h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    margin-left: 1rem;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-item.active .faq-question {
    background: rgb(from var(--background) r g b / 0.5);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 2rem;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 2rem 1.5rem !important;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 10px 0 0 0;
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Articles */
.articles, .article-page {
    padding: 100px 2rem 20px;
    margin: 0 auto;
    max-width: 1200px;
}

.articles h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.articles h2 {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr)); 
    gap: 2rem; 
}

.article-image-section {
    aspect-ratio: 16 / 9; 
    overflow: hidden; 
    border-radius: 1.5rem; 
    border-width: 1px;
    margin-top: 10px;
}

.article-image-section img{
    object-fit: cover; 
    width: 100%; 
    height: 100%; 
}

.article-page main {
    margin-top: 15px;
}

@media (min-width: 768px) { 
    .articles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.article {
    overflow: hidden;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    background: rgb(from var(--background-secondary) r g b / 0.5);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.article:hover {
    background: var(--background-secondary);
    transform: translateY(-5px);
}

.article:hover .article-title {
    color: transparent;
}

.article-image-div {
    overflow: hidden; 
    position: relative; 
}

.article-image-div img {
    object-fit: cover; 
    width: 100%; 
    height: 100%; 
    transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
    transition-duration: 500ms;
}

.article-content-div {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-date {
    margin-bottom: 0.75rem; 
    font-size: 0.75rem;
    line-height: 1rem; 
    color: var(--text-secondary);
}

.article-title {
    background-image: var(--gradient-primary);
    background-clip: text;
    margin-bottom: 1rem; 
    font-size: 1.5rem;
    line-height: 2rem; 
    font-weight: 700; 
    transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms; 
}

.article-summary {
    margin-bottom: 1.5rem; 
    color: #9CA3AF;
    flex-grow: 1;
    text-overflow: ellipsis;
    overflow: hidden;
    max-height: 100px;
}

.article-read-more {
    display: inline-flex; 
    align-items: center; 
    font-weight: 600; 
    color: var(--primary-color);
    text-decoration: none;
}

.article-read-more svg {
    margin-left: 0.5rem; 
    width: 1rem; 
    height: 1rem; 
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms; 
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 95vh;
    overflow: hidden;
    animation: slideInUp 0.3s ease;
}

body.light-theme .modal-content {
    background: white;
}

body.dark-theme .modal-content {
    background: var(--background-secondary);
}

.modal-content-inner {
    overflow-y: auto;
    max-height: 95vh;
}

.modal-content-inner::-webkit-scrollbar {
    width: 6px;
    border-radius: .375rem;
}

.modal-content-inner::-webkit-scrollbar-thumb {
    border-radius: .125rem;
    background-color: var(--border-color);
}

.modal-content-inner::-webkit-scrollbar-track {
    border-radius: .125rem;
    background-color: transparent;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.booking-form {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;    
    font-size: .9rem;
}

/* Footer */
.footer {
    padding: 3rem 0 1rem;
}

body.light-theme .footer {
    background: var(--text-primary);
    color: white;
}

body.dark-theme .footer {
    background: #020617;
    color: var(--text-primary);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-tagline {
    margin-top: 0.5rem;
}

body.light-theme .footer-tagline {
    color: rgba(255, 255, 255, 0.7);
}

body.dark-theme .footer-tagline {
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 3rem;
    justify-content: right;
}

.footer-column h4 {
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-column a {
    display: block;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

body.light-theme .footer-column a {
    color: rgba(255, 255, 255, 0.7);
}

body.dark-theme .footer-column a {
    color: var(--text-secondary);
}

body.light-theme .footer-column a:hover {
    color: white;
}

body.dark-theme .footer-column a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    padding-top: 1rem;
    text-align: center;
}

body.light-theme .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

body.dark-theme .footer-bottom {
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.language-select {
    flex-grow: 1;
    display: flex;
    align-items: end;
    padding-top: 10px;
}
.language-select-div {
    position: relative;
    display: inline-block; /* Ważne, aby menu nie rozciągało się na całą szerokość */
}

/* Menu - stan początkowy (ukryty) */
.language-select-menu-outer {
    position: absolute;
    left: 0;
    padding-bottom: 10px; /* "Most" dla myszki, aby menu nie zniknęło przy przesuwaniu */
    padding-top: 10px; /* "Most" dla myszki, aby menu nie zniknęło przy przesuwaniu */
    width: max-content;
    min-width: 120px;
    
    /* Animacja jak w headerze */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px); /* Przesunięcie początkowe o 10px w dół */
    transition: all 0.3s ease; /* Płynne przejście wszystkich właściwości */
    z-index: 100;
}

/* Menu - stan aktywny (po najechaniu) */
.language-select-div:hover .language-select-menu-outer {
    opacity: 1;
    visibility: visible;
    transform: translateY(0px); /* Powrót na oryginalną pozycję */
}

/* Wewnętrzne stylowanie menu (podobnie do dropdown-menu-content w headerze) */
.language-select-menu {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    display: flex;
    flex-direction: column;
}

/* Wygląd opcji językowych */
.language-select-menu a {
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    text-decoration: none;
}

.language-select-menu a:hover {
    background: var(--background);
    color: var(--primary-color);
}

/* Dopasowanie kolorów tła do motywów (z Twojego pliku style.css) */
body.light-theme .language-select-menu { background: white; }
body.dark-theme .language-select-menu { background: var(--background); }

.language-select-button {
    border: none;
    background: none;
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    transition: color 0.3s ease;
    cursor: pointer;
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp-50 {
    from {
        opacity: 0;
        transform: translate(-50%, 30px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes slideOutDown-50 {
    from {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    to {
        opacity: 0;
        transform: translate(-50%, 30px);
    }
}

/* Responsive Design */

@media (max-width: 1200px) {
    .services-grid, .how-it-works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 930px) {
    .nav-links {
        max-height: 0;
        transition: all .2s ease;
        display: flex;
        align-items: start;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        flex-direction: column;
        overflow: hidden;
        gap: 0;
    }

    body.light-theme .nav-links {
        background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    }

    body.dark-theme .nav-links {
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    }

    .nav-links.active {
        max-height: 550px;
    }

    .nav-link, .nav-dropdown {
        width: 100%;
    }

    .nav-link {
        padding: 10px 10px 10px 1rem;
    }

    .dropdown-menu-content {
        border-radius: 0;
        box-shadow: unset;
        border: none;
        margin: 0 0 0 15px;
        border-top: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color);
    }

    body.light-theme .dropdown-menu-content {
        background: transparent;
    }

    body.dark-theme .dropdown-menu-content {
        background: var(--background);
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        max-height: 0;
        overflow: hidden;
    }

    body.light-theme .dropdown-menu {
        background: transparent;
    }
    
    body.dark-theme .dropdown-menu {
        background: var(--background);
    }

    .dropdown-menu.active {
        max-height: 260px;
     }

    .dropdown-toggle {
        display: block;
    }

    .dropdown-toggle svg{
        transform: rotate(0deg) !important;
    }
    
    .dropdown-toggle:hover svg{
        transform: rotate(0deg) !important;
    }
    
    .nav-dropdown:has(.active) .dropdown-toggle svg{
        transform: rotate(180deg) !important;
    }
    
    .nav-dropdown:has(.active) .dropdown-toggle:hover svg{
        transform: rotate(180deg) !important;
    }

    .nav-links .cta-button {
        margin: 10px 10px 10px 1rem;
    }
    
    .nav-links .theme-switch {
        margin: 10px 10px 10px 1rem;
    }
}

@media (min-width: 769px) {
    .language-select-menu-outer {
        bottom: 100%;
    }
}

@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .how-it-works-hero-title {
        font-size: 2.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .services-grid, .how-it-works-grid, .services-grid-bottom {
        grid-template-columns: 1fr;
    }
    
    .problem-grid,
    .solution-grid,
    .services-detailed-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .language-select {
        justify-content: center;
    }

    .language-select-menu-outer {
        top: 100%;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }

    .services-grid-bottom .service-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .services-grid-bottom .service-benefits-double {
        flex-grow: 1;
    }

    .services-grid-bottom .services-grid-bottom-innerDiv:nth-child(2) {
        grid-column: 1;
        grid-row: 2;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .how-it-works-hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .how-it-works-hero-subtitle {
        font-size: 1rem;
    }
    
    .service-card,
    .how-it-works-item,
    .problem-item,
    .solution-item,
    .service-detailed {
        padding: 1.5rem;
    }
}

#formStatus {
    color: red;
}

#submitSuccess {
    position: fixed;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
    border-radius: 20px;
    font-weight: 600;
    font-size: 1rem;
    padding: 15px 30px;
    z-index: 100000;
    animation: slideInUp-50 0.3s ease;
    display: none;
}

#submitSuccess button {
    width: 30px;
    height: 30px;
    position: absolute;
    top: 5px;
    right: 5px;
    border-radius: 50%;
    background: var(--gradient-primary);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: none;
}

#submitSuccess button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

body.dark-theme select, body.dark-theme input, body.dark-theme textarea {
    background: var(--background);
    color: var(--text-primary);
}

#theme-switch {
    display: none;
    user-select: none;
}

.theme-switch {
    display: flex;
    align-items: center;
    background-color: #eceded;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    transition: background-color .2s ease;
    user-select: none;
}

@media (max-width: 768px) {
    .theme-switch {
        margin: 10px;
        background-color: #d9d9d9;
    }
}

.theme-switch svg {
    z-index: 2;
    padding: 3px;
}

.theme-switch::after {
    content: '';
    display: inline-block;
    width: 30px;
    height: 30px;
    position: absolute;
    top: 4px;
    left: 7px;
    border-radius: 50%;
    background-color: #2e3690;
    z-index: 1;
    transition: left .2s ease;
}

#theme-switch:checked + .theme-switch::after {
    left: 38px;
}

#theme-switch:checked + .theme-switch {
    background-color: #211f1f;
}

.theme-switch svg:last-of-type {
    color: #727272;
    transition: color .2s ease;
}

#theme-switch:checked + .theme-switch svg:last-of-type {
    color: white;
}

.theme-switch svg:first-of-type {
    color: white;
}

.socialmedia a {
	gap: 10px;
    display: flex;
    align-items: center;
    justify-content: start;
}

.socialmedia div {
	background-size: contain;
    aspect-ratio: 1;
    display: block;
    width: 24px;
}

@media (max-width: 550px) {
    .footer-links {
        flex-direction: column;
    }
	
	.socialmedia a {
		justify-content: center;
	}
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.services-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.privacy-div {
    display: flex;
    font-size: 0.8rem;
    gap: 0.8rem;
}

.privacy-div input{
    width: 0.8rem;
}

.privacy-div label{
    margin-bottom: 0;
}

.privacy-div a {
    margin: 0;
    font-size: 0.8rem;
}

/* --- Promotion Banner Styles --- */
.promo-banner {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 2rem;
    text-align: center;
    position: sticky; /* Stick to top, below nav */
    top: 70px; /* Height of the fixed nav */
    width: 100%;
    z-index: 998; /* Below nav (1000) but above content */
    box-shadow: var(--shadow-md);
    display: flex; /* Use flex for centering and close button */
    align-items: center;
    justify-content: center;
}

.promo-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    position: relative;
    flex-grow: 1;
    max-width: 1200px;
}

.promo-banner p {
    margin: 0;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.4;
}

.promo-banner p strong {
    font-weight: 700;
    text-transform: uppercase;
}

/* Style the button to be small and stand out on the gradient */
.promo-banner .cta-button.promo-cta {
    background: white;
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    flex-shrink: 0;
    box-shadow: none;
}

.promo-banner .cta-button.promo-cta:hover {
    background: #f3f3f3;
    color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.promo-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.75rem; /* Larger tap target */
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: 1rem; /* Space from content */
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.promo-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .promo-banner {
        padding: 1rem 1.5rem;
    }
    
    .promo-banner-content {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }

    .promo-banner p {
        font-size: 0.875rem;
        text-align: center;
    }

    .promo-close {
        position: absolute;
        top: 0rem;
        right: 0rem;
        padding: 0.25rem;
        margin-left: 0;
    }
}