/*
Theme Name: NAVICOM - Kosztorysowanie & IT
Theme URI: https://navicom.pl
Author: Sławomir Piwowarczyk
Author URI: https://navicom.pl
Description: Profesjonalny motyw WordPress dla NAVICOM — kosztorysowanie inwestycji energetycznych, telekomunikacyjnych oraz wsparcie IT. Jasny motyw z przełącznikiem ciemny/jasny, animacje, efekty parallax.
Version: 3.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: navicom
Tags: one-column, custom-menu, featured-images, translation-ready, custom-logo
*/

/* ========================================
   CSS VARIABLES - LIGHT THEME (DEFAULT)
   ======================================== */
:root {
    --primary: #ffffff;
    --primary-light: #f8fafb;
    --primary-dark: #f0f4f8;
    --accent: #5eb21d;
    --accent-hover: #4a9a12;
    --accent-glow: rgba(94, 178, 29, 0.25);
    --accent-secondary: #2d3a8c;
    --accent-secondary-light: #3d4cad;
    --accent-gradient: linear-gradient(135deg, #5eb21d 0%, #2d3a8c 100%);
    --green: #5eb21d;
    --green-light: #7acc3a;
    --blue: #2d3a8c;
    --blue-light: #3d4cad;
    --white: #ffffff;
    --black: #1a1a2e;
    --gray-50: #fafbfc;
    --gray-100: #f0f4f8;
    --gray-200: #d9e2ec;
    --gray-300: #bcccdc;
    --gray-400: #9fb3c8;
    --gray-500: #7b8fa3;
    --gray-600: #627d98;
    --gray-700: #486581;
    --gray-800: #334e68;
    --gray-900: #243b53;
    --text: #1a1a2e;
    --text-secondary: #486581;
    --text-muted: #627d98;
    --card-bg: #ffffff;
    --card-border: rgba(94, 178, 29, 0.08);
    --card-hover-border: rgba(94, 178, 29, 0.25);
    --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    --card-hover-shadow: 0 12px 40px rgba(94, 178, 29, 0.12);
    --section-alt: #f8fafb;
    --header-bg: rgba(255, 255, 255, 0.92);
    --header-scrolled: rgba(255, 255, 255, 0.97);
    --header-border: rgba(94, 178, 29, 0.1);
    --nav-text: #486581;
    --nav-hover: #1a1a2e;
    --footer-bg: #1a1a2e;
    --footer-text: #94a3b8;
    --overlay-grid: rgba(94, 178, 29, 0.02);
    --particle-opacity: 0.4;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Space Grotesk', 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --transition: cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 16px;
    --radius-sm: 8px;
    --radius-lg: 24px;
}

/* ========================================
   DARK THEME
   ======================================== */
[data-theme="dark"] {
    --primary: #0a1628;
    --primary-light: #0f2040;
    --primary-dark: #060e1a;
    --accent-glow: rgba(94, 178, 29, 0.4);
    --text: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --card-bg: rgba(19, 39, 68, 0.5);
    --card-border: rgba(94, 178, 29, 0.08);
    --card-hover-border: rgba(94, 178, 29, 0.3);
    --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --card-hover-shadow: 0 12px 40px rgba(94, 178, 29, 0.15);
    --section-alt: rgba(15, 32, 64, 0.5);
    --header-bg: rgba(10, 22, 40, 0.85);
    --header-scrolled: rgba(10, 22, 40, 0.95);
    --header-border: rgba(94, 178, 29, 0.1);
    --nav-text: #94a3b8;
    --nav-hover: #ffffff;
    --footer-bg: #060e1a;
    --footer-text: #64748b;
    --overlay-grid: rgba(94, 178, 29, 0.03);
    --particle-opacity: 0.6;
    --black: #ffffff;
    --gray-50: #0f2040;
    --gray-100: #162d50;
    --gray-200: #1e3a5f;
    --gray-800: #94a3b8;
    --gray-900: #e2e8f0;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    background: var(--primary);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.4s var(--transition), color 0.4s var(--transition);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.3s var(--transition);
}

a:hover {
    color: var(--accent-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
}

/* ========================================
   PARTICLE CANVAS & GRID OVERLAY
   ======================================== */
.particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--overlay-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--overlay-grid) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
    pointer-events: none;
    animation: gridPulse 8s ease-in-out infinite;
    opacity: 0.5;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* ========================================
   PRELOADER
   ======================================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo {
    position: relative;
}

.preloader-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    border: 2px solid transparent;
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: preloaderSpin 1s linear infinite;
}

.preloader-ring::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 2px solid transparent;
    border-top-color: var(--accent-secondary);
    border-radius: 50%;
    animation: preloaderSpin 0.6s linear reverse infinite;
}

@keyframes preloaderSpin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ========================================
   NAVIGATION
   ======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.4s var(--transition);
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.site-header.scrolled {
    background: var(--header-scrolled);
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid var(--header-border);
}

[data-theme="dark"] .site-header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    z-index: 1001;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-menu a {
    color: var(--nav-text);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 30px;
    transition: all 0.3s var(--transition);
    position: relative;
    letter-spacing: 0.3px;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--nav-hover);
    background: rgba(94, 178, 29, 0.08);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: all 0.3s var(--transition);
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-menu a:hover::after {
    width: 30px;
}

.nav-cta {
    padding: 10px 26px !important;
    background: var(--accent-gradient) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-radius: 30px !important;
    box-shadow: 0 4px 20px var(--accent-glow);
    transition: all 0.3s var(--transition) !important;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow) !important;
    color: #ffffff !important;
}

.nav-cta::after {
    display: none !important;
}

/* Nav actions (toggle + CTA) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Theme Toggle Button */
.theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--gray-200);
    background: var(--card-bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--transition);
    z-index: 1001;
}

.theme-toggle:hover {
    border-color: var(--accent);
    background: rgba(94, 178, 29, 0.08);
    transform: rotate(30deg);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    transition: all 0.3s var(--transition);
}

.theme-toggle:hover svg {
    color: var(--accent);
}

.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun { display: none; }

[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    padding: 8px;
}

.menu-toggle span {
    width: 28px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: var(--primary);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 50% 60% at 70% 20%, rgba(94, 178, 29, 0.06), transparent),
        radial-gradient(ellipse 40% 50% at 20% 80%, rgba(45, 58, 140, 0.05), transparent);
}

[data-theme="dark"] .hero-bg {
    background:
        radial-gradient(ellipse 50% 60% at 70% 20%, rgba(94, 178, 29, 0.12), transparent),
        radial-gradient(ellipse 40% 50% at 20% 80%, rgba(45, 58, 140, 0.10), transparent);
}

.hero .section-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding-top: 140px;
    padding-bottom: 100px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 22px;
    background: rgba(94, 178, 29, 0.06);
    border: 1px solid rgba(94, 178, 29, 0.15);
    border-radius: 30px;
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 40px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    animation: heroFadeIn 0.7s var(--transition) 0.1s both;
}

.hero-badge .pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(94, 178, 29, 0.6); }
    50% { box-shadow: 0 0 0 8px rgba(94, 178, 29, 0); }
}

.hero-title {
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 28px;
    letter-spacing: -1.5px;
    max-width: 800px;
    animation: heroFadeIn 0.7s var(--transition) 0.25s both;
}

.hero-title .gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 44px;
    line-height: 1.8;
    animation: heroFadeIn 0.7s var(--transition) 0.4s both;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: heroFadeIn 0.7s var(--transition) 0.55s both;
}

.hero-stats {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 72px;
    animation: heroFadeIn 0.7s var(--transition) 0.7s both;
}

.hero-stat {
    text-align: center;
    padding: 24px 28px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    min-width: 160px;
    transition: all 0.4s var(--transition);
}

.hero-stat:hover {
    border-color: var(--card-hover-border);
    box-shadow: var(--card-hover-shadow);
    transform: translateY(-4px);
}

.hero-stat-number {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 6px;
}

.hero-stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

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

@keyframes blink {
    50% { opacity: 0; }
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-main);
    cursor: pointer;
    transition: all 0.4s var(--transition);
    border: none;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #ffffff;
    box-shadow: 0 4px 25px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px var(--accent-glow);
    color: #ffffff;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--gray-300);
}

.btn-outline:hover {
    background: rgba(94, 178, 29, 0.06);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
}

.btn-icon {
    width: 20px;
    height: 20px;
}

/* ========================================
   SECTION SHARED STYLES
   ======================================== */
.section {
    position: relative;
    z-index: 1;
    padding: 120px 0;
}

.section-alt {
    background: var(--section-alt);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    margin-bottom: 20px;
}

.section-label::before {
    content: '';
    width: 30px;
    height: 2px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.section-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.8;
}

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

.section-header.center {
    text-align: center;
}

.section-header.center .section-description {
    margin: 0 auto;
}

/* ========================================
   REVEAL ANIMATIONS
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--transition);
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 0.8s var(--transition);
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.8s var(--transition);
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.85);
    transition: all 0.8s var(--transition);
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

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

/* ========================================
   SERVICES / CARDS
   ======================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 48px 36px;
    transition: all 0.5s var(--transition);
    overflow: hidden;
    cursor: default;
    box-shadow: var(--card-shadow);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(94, 178, 29, 0.03), transparent);
    opacity: 0;
    transition: opacity 0.5s var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--card-hover-border);
    box-shadow: var(--card-hover-shadow);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(94, 178, 29, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    transition: all 0.5s var(--transition);
    position: relative;
    z-index: 1;
}

.service-card:hover .service-icon {
    background: rgba(94, 178, 29, 0.12);
    box-shadow: 0 0 30px var(--accent-glow);
}

.service-icon svg {
    width: 30px;
    height: 30px;
    color: var(--accent);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.service-tag {
    font-size: 0.75rem;
    padding: 4px 12px;
    background: rgba(94, 178, 29, 0.04);
    border: 1px solid rgba(94, 178, 29, 0.12);
    border-radius: 20px;
    color: var(--accent);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ========================================
   ABOUT / EXPERIENCE SECTION
   ======================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-visual {
    position: relative;
}

.about-image-frame {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--primary-light), var(--section-alt));
    border: 1px solid var(--card-border);
}

.about-floating-card {
    position: absolute;
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--card-hover-border);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    animation: floatCard 6s ease-in-out infinite;
    box-shadow: var(--card-shadow);
}

.about-floating-card.card-1 {
    top: -20px;
    right: -20px;
}

.about-floating-card.card-2 {
    bottom: -20px;
    left: -20px;
    animation-delay: -3s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.about-floating-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.about-floating-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.about-content .section-description {
    margin-bottom: 36px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.about-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(94, 178, 29, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.about-feature-icon svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

.about-feature h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.about-feature p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ========================================
   CLIENTS SECTION
   ======================================== */
.clients-section {
    background: var(--section-alt);
}

.clients-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.client-logo {
    opacity: 0.5;
    transition: all 0.5s var(--transition);
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gray-500);
    padding: 16px 24px;
    cursor: default;
    border-radius: var(--radius-sm);
}

.client-logo:hover {
    opacity: 1;
    color: var(--accent);
    transform: scale(1.05);
    background: rgba(94, 178, 29, 0.04);
}

.client-logo.featured {
    opacity: 0.9;
    font-size: 2rem;
    color: var(--accent);
    border: 1px solid var(--card-hover-border);
    background: var(--card-bg);
    box-shadow: var(--card-shadow);
}

.client-logo.featured:hover {
    box-shadow: var(--card-hover-shadow);
}

/* Client cards grid */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 60px;
}

.client-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    transition: all 0.4s var(--transition);
    cursor: default;
    text-align: center;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.client-card:hover {
    transform: translateY(-4px);
    border-color: var(--card-hover-border);
    box-shadow: var(--card-hover-shadow);
    color: var(--accent);
}

.testimonial-card {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 60px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    position: relative;
    box-shadow: var(--card-shadow);
}

.testimonial-quote {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text);
    font-style: italic;
    margin-bottom: 30px;
}

.testimonial-quote::before {
    content: '\201C';
    font-size: 4rem;
    color: var(--accent);
    opacity: 0.2;
    position: absolute;
    top: 20px;
    left: 30px;
    font-family: Georgia, serif;
    line-height: 1;
}

/* ========================================
   TECHNOLOGIES / TOOLS
   ======================================== */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 36px 20px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    transition: all 0.4s var(--transition);
    cursor: default;
    text-align: center;
    box-shadow: var(--card-shadow);
}

.tech-item:hover {
    transform: translateY(-6px);
    border-color: var(--card-hover-border);
    box-shadow: var(--card-hover-shadow);
}

.tech-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
}

.tech-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
}

.tech-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ========================================
   PROCESS / TIMELINE
   ======================================== */
.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 32px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), var(--accent-secondary), transparent);
}

.process-step {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
    position: relative;
}

.process-number {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 20px var(--accent-glow);
    transition: all 0.4s var(--transition);
}

.process-step:hover .process-number {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 0 40px var(--accent-glow);
}

.process-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.process-content p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   VALUES GRID
   ======================================== */
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.value-card {
    text-align: center;
    padding: 48px 32px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    transition: all 0.5s var(--transition);
    box-shadow: var(--card-shadow);
}

.value-card:hover {
    transform: translateY(-8px);
    border-color: var(--card-hover-border);
    box-shadow: var(--card-hover-shadow);
}

.value-card .service-icon {
    margin: 0 auto 28px;
}

.value-card h3 {
    font-size: 1.2rem;
    margin-bottom: 14px;
}

.value-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
    padding: 140px 40px;
}

.cta-card {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 80px 60px;
    background: var(--card-bg);
    border: 1px solid var(--card-hover-border);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-hover-shadow);
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(94, 178, 29, 0.03), transparent, rgba(45, 58, 140, 0.03), transparent);
    animation: ctaRotate 15s linear infinite;
}

@keyframes ctaRotate {
    to { transform: rotate(360deg); }
}

.cta-card > * {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.cta-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-grid-full {
    grid-template-columns: 1fr;
    max-width: 700px;
}

.contact-info-items {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 40px;
}

.contact-info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(94, 178, 29, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s var(--transition);
}

.contact-info-item:hover .contact-icon {
    background: rgba(94, 178, 29, 0.12);
    box-shadow: 0 0 20px var(--accent-glow);
}

.contact-icon svg {
    width: 22px;
    height: 22px;
    color: var(--accent);
}

.contact-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
}

.contact-value {
    font-size: 1.1rem;
    color: var(--text);
    font-weight: 500;
}

.contact-value a {
    color: var(--text);
}

.contact-value a:hover {
    color: var(--accent);
}

.contact-form {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 48px;
    box-shadow: var(--card-shadow);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 20px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

/* Form messages */
.form-message {
    display: none;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-top: 20px;
}

.form-message-success {
    display: block;
    background: rgba(94, 178, 29, 0.08);
    border: 1px solid rgba(94, 178, 29, 0.3);
    color: var(--accent);
}

.form-message-error {
    display: block;
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #dc2626;
}

[data-theme="dark"] .form-message-error {
    color: #f87171;
}

/* Offer box */
.offer-box {
    margin-top: 40px;
    padding: 24px;
    background: rgba(94, 178, 29, 0.03);
    border: 1px solid rgba(94, 178, 29, 0.1);
    border-radius: var(--radius-sm);
}

.offer-box p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.offer-box strong {
    color: var(--text);
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    position: relative;
    z-index: 1;
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 60px 40px 30px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-brand {
    max-width: 350px;
}

.footer-brand p {
    color: var(--footer-text);
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-brand a {
    color: var(--footer-text);
}

.footer-brand a:hover {
    color: var(--accent);
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-col h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--footer-text);
    font-size: 0.9rem;
    transition: all 0.3s;
}

.footer-col ul li a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    font-size: 0.85rem;
    color: var(--footer-text);
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--transition);
}

.footer-social-link:hover {
    background: rgba(94, 178, 29, 0.15);
    transform: translateY(-3px);
}

.footer-social-link svg {
    width: 18px;
    height: 18px;
    color: var(--footer-text);
}

.footer-social-link:hover svg {
    color: var(--accent);
}

/* ========================================
   SCROLL PROGRESS BAR
   ======================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--accent-gradient);
    z-index: 10001;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px var(--accent-glow);
}

/* ========================================
   CURSOR GLOW (Desktop only)
   ======================================== */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(94, 178, 29, 0.04), transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
}

[data-theme="dark"] .cursor-glow {
    background: radial-gradient(circle, rgba(94, 178, 29, 0.06), transparent 70%);
}

/* ========================================
   PAGE TEMPLATE - SUBPAGE HERO
   ======================================== */
.page-hero {
    position: relative;
    padding: 160px 40px 80px;
    text-align: center;
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(94, 178, 29, 0.04), rgba(45, 58, 140, 0.04));
    z-index: 0;
}

[data-theme="dark"] .page-hero-bg {
    background: linear-gradient(135deg, rgba(94, 178, 29, 0.08), rgba(45, 58, 140, 0.08));
}

.page-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.page-hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}

.page-hero-content p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ========================================
   MAGNETIC & COUNT-UP
   ======================================== */
.magnetic {
    transition: transform 0.3s var(--transition);
}

.count-up {
    display: inline-block;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .section {
        padding: 80px 0;
    }

    .section-container {
        padding: 0 24px;
    }

    .hero .section-container {
        padding-top: 120px;
        padding-bottom: 80px;
        min-height: 100vh;
    }

    .page-hero {
        padding: 130px 24px 60px;
    }

    .nav-container {
        padding: 0 20px;
    }

    .footer-container {
        padding: 0 24px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--header-scrolled);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 16px;
        transition: right 0.4s var(--transition);
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-menu a {
        font-size: 1.2rem;
        padding: 16px 32px;
    }

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

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

    .hero-stats {
        gap: 12px;
    }

    .hero-stat {
        min-width: 0;
        padding: 18px 16px;
        flex: 1;
    }

    .hero-stat-number {
        font-size: 1.8rem;
    }

    .hero-stat-label {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }

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

    .footer-top {
        flex-direction: column;
    }

    .footer-links {
        flex-direction: column;
        gap: 30px;
    }

    .clients-logos {
        gap: 20px;
    }

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

    .process-step {
        gap: 24px;
    }

    .cta-card {
        padding: 50px 30px;
    }

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

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
        letter-spacing: -1px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 10px;
    }

    .hero-stat {
        min-width: 0;
    }

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

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

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

/* ========================================
   PAGE-SPECIFIC STYLES
   ======================================== */

/* Client cards with details (page-klienci.php) */
.client-card h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.client-card .client-address {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.client-card .client-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 8px;
    line-height: 1.5;
}

/* Detailed client cards need more space and left alignment */
.client-card:has(h4) {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 24px;
}

/* Featured client card (ZBT) */
.client-featured-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 600px;
    margin: 0 auto;
    transition: all 0.4s var(--transition);
    box-shadow: var(--card-shadow);
}

.client-featured-card:hover {
    border-color: var(--accent);
    box-shadow: var(--card-hover-shadow);
}

.client-featured-name {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
}

/* Contact form select */
#contactForm select {
    width: 100%;
    padding: 14px 18px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 1rem;
    font-family: var(--font-main);
    transition: all 0.3s var(--transition);
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

#contactForm select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Grid variants */
.services-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.services-grid-centered {
    max-width: 900px;
    margin: 0 auto;
}

.tech-grid-3 {
    grid-template-columns: repeat(3, 1fr);
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .services-grid-3 {
        grid-template-columns: 1fr;
    }

    .tech-grid-3 {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
}

@media (max-width: 1024px) {
    .services-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}
