/*
Theme Name: Quackweb
Theme URI: https://quackweb.pl
Author: Quackweb Sp. z o.o.
Author URI: https://quackweb.pl
Description: Nowoczesny motyw OnePage dla agencji Quackweb - strony internetowe, aplikacje mobilne, rozwiązania AI, kampanie reklamowe
Version: 1.7
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: quackweb
*/

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

:root {
    --color-dark: #0f0f0f;
    --color-dark-rgb: 15, 15, 15;
    --color-navy: #1a1a1a;
    --color-gray: #2d2d2d;
    --color-yellow: #d4af37;
    --color-yellow-hover: #e8c547;
    --color-white: #ffffff;
    --color-text-light: #a0a0a0;
    --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== VIEW TRANSITIONS API ===== */
::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: 0.8s;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    mix-blend-mode: normal;
}

::view-transition-old(root) {
    animation-name: theme-fade-out;
}

::view-transition-new(root) {
    animation-name: theme-circle-in;
}

/* Fade out stary motyw */
@keyframes theme-fade-out {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Circle reveal od przycisku */
@keyframes theme-circle-in {
    from {
        clip-path: circle(0% at var(--circle-x, 50%) var(--circle-y, 50%));
    }
    to {
        clip-path: circle(150% at var(--circle-x, 50%) var(--circle-y, 50%));
    }
}

/* Fallback dla przeglądarek bez clip-path */
@supports not (clip-path: circle(0%)) {
    @keyframes theme-circle-in {
        from {
            opacity: 0;
            transform: scale(0.8);
        }
        to {
            opacity: 1;
            transform: scale(1);
        }
    }
}

html {
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-dark);
    color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

/* ===== CUSTOM CURSOR ===== */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-yellow);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.2s ease, width 0.2s ease, height 0.2s ease;
    transform: translate(-50%, -50%);
}

.custom-cursor.hover {
    width: 50px;
    height: 50px;
    background-color: rgba(212, 175, 55, 0.2);
}

/* ===== PROGRESS BAR ===== */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-yellow), var(--color-yellow-hover));
    z-index: 9998;
    transition: width 0.1s ease;
}

/* ===== STICKY NAVIGATION ===== */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.2rem 5%;
    background: linear-gradient(180deg, 
        rgba(var(--color-dark-rgb, 15, 15, 15), 0.95) 0%, 
        rgba(var(--color-dark-rgb, 15, 15, 15), 0.85) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    z-index: 9997;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-nav.scrolled {
    padding: 0.8rem 5%;
    background: rgba(var(--color-dark-rgb, 15, 15, 15), 0.98);
    border-bottom-color: rgba(212, 175, 55, 0.2);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-yellow);
    text-decoration: none;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 1px;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
    position: relative;
    padding: 0;
}

.duck-logo,
.logo-image {
    width: 40px;
    height: 40px;
    color: var(--color-yellow);
    transition: transform 0.3s ease;
}

.logo-image {
    object-fit: contain;
    display: block;
    margin-right: 0.5rem;
}

.beak-top,
.beak-bottom {
    transition: d 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo:hover .duck-logo {
    animation: quack 0.5s ease-in-out;
}

@keyframes quack {
    0% {
        transform: scale(1) rotateZ(0deg);
    }
    25% {
        transform: scale(1.1) rotateZ(-5deg);
    }
    50% {
        transform: scale(1.15) rotateZ(5deg);
    }
    75% {
        transform: scale(1.1) rotateZ(-3deg);
    }
    100% {
        transform: scale(1) rotateZ(0deg);
    }
}

.logo-text {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.logo-quack {
    color: var(--color-yellow);
    font-weight: 800;
    font-family: Arial, sans-serif;
    letter-spacing: 1px;
}

.logo-web {
    color: var(--color-white);
    font-weight: 800;
    font-family: Arial, sans-serif;
    letter-spacing: 1px;
}

.logo::before,
.logo::after,
.logo-text::before,
.logo-text::after,
.logo-quack::before,
.logo-quack::after,
.logo-web::before,
.logo-web::after {
    display: none !important;
    content: '' !important;
}

.logo:hover {
    transform: scale(1.55);
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.8));
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

/* Ukryj hamburger na desktopie */
@media (min-width: 1181px) {
    .mobile-menu-btn {
        display: none !important;
    }
    .nav-menu {
        display: flex !important;
    }
}

.nav-menu a {
    color: var(--color-white);
    opacity: 0.85;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    transition: color 0.3s ease, opacity 0.3s ease, text-shadow 0.3s ease;
    padding: 8px 4px;
    border-radius: 0;
}

.nav-menu a::before {
    display: none;
}

/* Dot-underline: pojawia się jako złota kropka pod linkiem */
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-yellow);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.8);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.3s ease;
    opacity: 0;
    display: block;
}

.nav-menu a:hover {
    color: var(--color-yellow);
    opacity: 1;
    text-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}

.nav-menu a:hover::after {
    transform: translateX(-50%) scale(1);
    opacity: 1;
}

/* ===== MOBILE MENU BUTTON ===== */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
    padding: 0;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--color-yellow);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translateY(12px);
}

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

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-12px);
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
    width: 45px;
    height: 45px;
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    color: var(--color-yellow);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1rem;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.theme-toggle:focus {
    outline: none;
}

.theme-toggle:hover {
    background: var(--color-yellow);
    color: var(--color-dark);
    transform: rotate(180deg);
}

/* ===== SECTIONS BASE ===== */
section {
    padding: 120px 5%;
    min-height: 100vh;
    position: relative;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 3.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
    color: var(--color-yellow) !important;
    animation: titleBreathing 4s ease-in-out infinite !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    background-clip: initial !important;
}

@keyframes titleBreathing {
    0%, 100% { 
        opacity: 1;
        transform: translateY(0);
    }
    50% { 
        opacity: 0.85;
        transform: translateY(-3px);
    }
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-light);
    margin-bottom: 3rem;
}

/* ===== HERO SECTION ===== */
#hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 100px 5% 80px 5%;
    min-height: 100vh;
    box-sizing: border-box;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 50%, #2d2d2d 100%);
    z-index: 1;
}

.hero-background canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-background::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: none;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;
    padding: 0 1rem;
    max-width: 900px;
    margin: -80px auto 0 auto;
    width: 100%;
}

.hero-description {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--color-text-light);
    margin-bottom: 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 0.8rem;
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    background-color: var(--color-yellow);
    color: var(--color-dark);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-width: 320px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    opacity: 1 !important;
    visibility: visible !important;
    white-space: nowrap;
    transform-origin: center center;
}

.cta-button span {
    position: relative;
    z-index: 2;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: var(--color-yellow-hover);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1), height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translate(-50%, -50%);
    z-index: 1;
}

.cta-button:hover::before {
    width: 500px;
    height: 500px;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05) !important;
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.6) !important,
                0 10px 25px rgba(212, 175, 55, 0.4) !important;
}

.cta-button:active {
    transform: translateY(-3px) scale(1.02) !important;
    transition: all 0.1s ease !important;
}

.cta-button {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-secondary {
    background: linear-gradient(135deg, var(--color-yellow), var(--color-yellow-hover));
}

/* ===== HERO CONTENT LAYOUT ===== */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding-bottom: 0;
    max-width: 900px;
    margin: 0 auto;
}

/* ===== ABOUT SECTION ===== */
#about {
    background-color: var(--color-navy);
}

.about-content {
    text-align: center;
    margin-bottom: 4rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    transition: var(--transition-smooth);
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.stat-item:hover {
    transform: translateY(-10px);
    border-color: var(--color-yellow);
    background: rgba(var(--color-yellow-rgb, 212, 175, 55), 0.15);
}

.stat-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--color-yellow);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.2rem;
    color: var(--color-text-light);
}

/* ===== SERVICES SECTION ===== */
#services {
    background-color: var(--color-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.service-card {
    background: linear-gradient(135deg, 
        rgba(var(--color-navy-rgb, 26, 26, 26), 0.9), 
        rgba(var(--color-gray-rgb, 45, 45, 45), 0.7));
    padding: 3rem 2rem;
    border-radius: 24px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(var(--color-yellow-rgb, 212, 175, 55), 0.1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(var(--color-yellow-rgb, 212, 175, 55), 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

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

.service-card:hover {
    transform: translateY(-12px);
    border-color: rgba(var(--color-yellow-rgb, 212, 175, 55), 0.4);
    box-shadow: 0 20px 60px rgba(var(--color-yellow-rgb, 212, 175, 55), 0.3),
                0 0 40px rgba(var(--color-yellow-rgb, 212, 175, 55), 0.2),
                inset 0 0 30px rgba(var(--color-yellow-rgb, 212, 175, 55), 0.05);
    background: linear-gradient(135deg, 
        rgba(var(--color-navy-rgb, 26, 26, 26), 1), 
        rgba(var(--color-gray-rgb, 45, 45, 45), 0.9));
}

.service-icon {
    font-size: 3rem;
    color: var(--color-yellow);
    margin-bottom: 1.5rem;
}

.service-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-white);
}

.service-description {
    color: var(--color-text-light);
    line-height: 1.8;
}

@media (max-width: 768px) {
  .service-card {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 0.6rem 1rem;
    align-items: start;
    padding: 1.4rem 1rem;
  }

  .service-icon {
    grid-column: 1;
    grid-row: 1 / 3;
    margin: 0;
    font-size: 2.4rem;
  }

  .service-title {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.1;
    align-self: center;
  }

  .service-description {
    grid-column: 2;
    grid-row: 2;
    margin-top: 0.4rem;
    font-size: 0.95rem;
    color: var(--color-text-light);
  }

  .service-card:hover {
    transform: none;
    box-shadow: none;
  }
}

/* ===== PORTFOLIO SECTION ===== */
#portfolio {
    background-color: var(--color-navy);
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 2rem;
    background: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-gray);
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--color-yellow);
    color: var(--color-dark);
    border-color: var(--color-yellow);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    cursor: pointer;
    height: 400px;
    background: var(--color-gray);
    border: 1px solid rgba(var(--color-yellow-rgb, 212, 175, 55), 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item:hover {
    transform: translateY(-8px);
    border-color: rgba(var(--color-yellow-rgb, 212, 175, 55), 0.4);
    box-shadow: 0 20px 60px rgba(var(--color-yellow-rgb, 212, 175, 55), 0.25),
                0 0 40px rgba(var(--color-yellow-rgb, 212, 175, 55), 0.15);
}

.portfolio-item:hover img {
    transform: scale(1.15);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, 
        rgba(var(--color-dark-rgb, 15, 15, 15), 0.95), 
        transparent);
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-yellow);
    margin-bottom: 0.5rem;
}

.portfolio-category {
    color: var(--color-text-light);
}

/* ===== PREMIUM PORTFOLIO CARDS ===== */
.portfolio-grid.premium {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.portfolio-card {
    position: relative;
    cursor: pointer;
    animation: portfolioBreathing 5.5s ease-in-out infinite;
}

@keyframes portfolioBreathing {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(-6px); opacity: 0.98; }
}

.portfolio-card-inner {
    position: relative;
    border: 1px solid rgba(var(--color-yellow-rgb, 212, 175, 55), 0.2);
    background: rgba(var(--color-navy-rgb, 26, 26, 26), 0.5);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.portfolio-card-inner:hover {
    transform: translateY(-10px);
    border-color: rgba(var(--color-yellow-rgb, 212, 175, 55), 0.5);
    box-shadow: 0 20px 40px rgba(var(--color-yellow-rgb, 212, 175, 55), 0.2);
}

.portfolio-image-section {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, 
        rgba(var(--color-navy-rgb, 26, 26, 26), 1), 
        rgba(var(--color-gray-rgb, 45, 45, 45), 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.portfolio-emoji {
    font-size: 5rem;
    animation: emojiFloat 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

@keyframes emojiFloat {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

.portfolio-card-inner:hover .portfolio-emoji {
    transform: scale(1.3) rotate(10deg);
}

.portfolio-overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, 
        rgba(var(--color-dark-rgb, 15, 15, 15), 0.8), 
        transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-card-inner:hover .portfolio-overlay-gradient {
    opacity: 1;
}

.portfolio-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.portfolio-category-tag {
    color: var(--color-yellow);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.portfolio-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.portfolio-card-inner:hover .portfolio-card-title {
    color: var(--color-yellow);
}

.portfolio-card-description {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex: 1;
}

.portfolio-results-badge {
    display: inline-block;
    padding: 0.75rem 1rem;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.portfolio-results-badge p {
    color: var(--color-yellow);
    font-weight: 600;
    font-size: 0.9rem;
}

.portfolio-card-inner:hover .portfolio-results-badge {
    background: rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.6);
    transform: scale(1.05);
}

.portfolio-accent-line {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(to right, var(--color-yellow), var(--color-yellow-hover));
    transition: width 0.3s ease;
}

.portfolio-card-inner:hover .portfolio-accent-line {
    width: 100%;
}

/* ===== AI ZONE SECTION ===== */
#ai-zone {
    background-color: var(--color-dark);
    position: relative;
    overflow: hidden;
}

.ai-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    z-index: 1;
}

.ai-background canvas {
    width: 100%;
    height: 100%;
}

.ai-content {
    position: relative;
    z-index: 2;
}

.ai-projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.ai-project-card {
    background: rgba(var(--color-yellow-rgb, 212, 175, 55), 0.05);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(var(--color-yellow-rgb, 212, 175, 55), 0.2);
    transition: var(--transition-smooth);
}

.ai-project-card:hover {
    background: rgba(var(--color-yellow-rgb, 212, 175, 55), 0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(var(--color-yellow-rgb, 212, 175, 55), 0.2);
}

.ai-project-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-yellow);
    margin-bottom: 1rem;
}

.ai-project-description {
    color: var(--color-text-light);
    line-height: 1.8;
}

#ai-zone .section-title,
#ai-zone .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

#ai-zone .ai-project-title {
    text-align: center !important;
}

/* ===== CLIENTS SECTION ===== */
#clients {
    background-color: var(--color-navy);
    min-height: auto;
    height: auto;
    padding-top: 100px;
    padding-bottom: 100px;
}

.clients-intro {
    text-align: left;
    font-size: 1.3rem;
    color: var(--color-text-light);
    margin-bottom: 4rem;
}

.clients-marquee {
    --gap: clamp(3.5rem, 8vw, 8rem);
    --logo-w: clamp(120px, 12vw, 220px);
    --fade-w: 120px;
    position: relative;
    overflow: hidden;
    padding: 10px 0;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--fade-w),
                        #000 calc(100% - var(--fade-w)), transparent);
            mask-image: linear-gradient(to right, transparent, #000 var(--fade-w),
                        #000 calc(100% - var(--fade-w)), transparent);
}

.marquee-track {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--gap);
    align-items: center;
    width: max-content;
    will-change: transform;
    animation: marquee var(--marquee-duration, 40s) linear infinite;
}

.clients-marquee.paused .marquee-track,
.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(calc(-50% - var(--gap) / 2)); }
}

.client-logo {
    flex: 0 0 var(--logo-w);
    width: var(--logo-w);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 0;
    transition: transform .35s ease, opacity .35s ease;
    will-change: transform, opacity;
    opacity: 1 !important;
    transform: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.client-logo img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    filter: grayscale(100%) contrast(1.05) brightness(.95);
    opacity: .8;
    transition: filter .35s ease, opacity .35s ease, transform .35s ease;

}

.client-logo:hover {
    transform: scale(1.03);
    background: transparent !important;
	image-rendering: crisp-edges;
	image-rendering: -moz-crisp-edges;
}

.client-logo:hover img {
    filter: none;
    opacity: 1;
    transform: scale(1.08);
}

.clients-marquee.reverse .marquee-track {
    animation-direction: reverse;
}

@media (max-width: 768px) {
    .clients-marquee { --fade-w: 40px; }
    .client-logo img { opacity: .9; }
}

/* =======================
   CONTACT SECTION — FULL FIX
   ======================= */

#contact {
    background-color: var(--color-dark);
    overflow-x: hidden;
    max-width: 100vw;
}

#contact .section-container {
    overflow: hidden;
    max-width: 100%;
}

/* Nagłówek sekcji — wycentrowany jak w pozostałych sekcjach */
.contact-header {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-header .section-title {
    margin-bottom: 1rem !important;
}

.contact-header .section-subtitle {
    margin-bottom: 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.contact-info h3 {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    line-height: 1.2;
    margin-bottom: 2rem;
    color: var(--color-yellow);
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--color-text-light);
    word-break: break-word;
    max-width: 100%;
}

.contact-item i {
    width: 28px;
    min-width: 28px;
    display: inline-flex;
    justify-content: center;
    color: var(--color-yellow);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.social-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 1.8rem;
    color: var(--color-yellow);
}

.social-links {
    display: grid;
    grid-template-columns: repeat(3, auto);
    grid-template-rows: repeat(2, auto);
    gap: 1.8rem 1.9rem;
    justify-content: start;
    align-items: center;
    margin-left: 0;
    max-width: 100%;
}

.social-link {
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.08);
    border: 2px solid rgba(212, 175, 55, 0.28);
    border-radius: 50%;
    color: var(--color-yellow);
    font-size: 1.5rem;
    transition: var(--transition-smooth);
    text-decoration: none;
    box-shadow: none;
    flex-shrink: 0;
}

.social-link:hover {
    background: var(--color-yellow);
    color: var(--color-dark);
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

.social-link:focus {
    outline: 3px solid rgba(212,175,55,0.18);
    outline-offset: 3px;
}

.contact-form {
    margin-top: 0;
    background: rgba(var(--color-navy-rgb, 26, 26, 26), 0.6);
    padding: 3rem;
    border-radius: 20px;
    border: 2px solid rgba(var(--color-yellow-rgb, 212, 175, 55), 0.1);
    max-width: 100%;
    box-sizing: border-box;
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
    max-width: 100%;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    background: rgba(var(--color-white-rgb, 255, 255, 255), 0);
    border: 2px solid rgba(var(--color-white-rgb, 255, 255, 255), 0.08);
    border-radius: 10px;
    color: var(--color-white);
    font-size: 1rem;
    transition: var(--transition-smooth);
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    max-width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-yellow);
    box-shadow: 0 0 0 2px rgba(var(--color-yellow-rgb, 212, 175, 55), 0.18);
}

.form-group label {
    position: absolute;
    left: 1.2rem;
    top: 1.25rem;
    color: var(--color-text-light);
    transition: var(--transition-smooth);
    pointer-events: none;
    z-index: 3;
    background: transparent;
    padding: 0 0.35rem;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -1.5rem;
    left: 0.9rem;
    font-size: 0.78rem;
    color: var(--color-yellow);
    background: transparent;
    padding: 0 0.5rem;
    transform-origin: left center;
}

.form-group textarea {
    min-height: 220px;
    resize: vertical;
    padding-top: 1.15rem;
}

.submit-btn {
    width: 100%;
    padding: 1.2rem;
    background-color: var(--color-yellow);
    color: var(--color-dark);
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.submit-btn:hover {
    background-color: var(--color-yellow-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

/* ===== CONTACT RESPONSIVE ===== */
@media (max-width: 1024px) {
    #contact {
        padding: 80px 5% 60px 5%;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-info {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "title cta"
            "details social";
        gap: 2rem 3rem;
        align-items: start;
    }

    .contact-info h3 {
        grid-area: title;
        margin-bottom: 1.2rem;
    }

    .contact-details {
        grid-area: details;
        margin-bottom: 1.4rem;
    }

    .social-title {
        grid-area: cta;
        margin-bottom: 1rem;
    }

    .social-links {
        grid-area: social;
        gap: 1.4rem;
    }

    .contact-form {
        margin-top: 0;
        width: 100%;
    }
}

@media (max-width: 768px) {
    /* Reset grid z 1024px — wracamy do single column */
    .contact-info {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem;
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .contact-details {
        margin-bottom: 0.5rem;
        width: 100%;
    }

    /* Kontakt items — nie wylewają się */
    .contact-item {
        flex-wrap: nowrap;
        max-width: 100%;
        overflow: hidden;
    }

    .contact-item span,
    .contact-item a {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: calc(100% - 40px);
        display: inline-block;
        font-size: 0.95rem;
    }

    .social-title {
        color: var(--color-yellow);
        text-align: left;
        margin-bottom: 1rem;
    }

    .social-links {
        display: grid !important;
        grid-template-columns: repeat(3, 50px) !important;
        gap: 1rem !important;
        justify-content: start !important;
        margin-bottom: 0;
        width: auto;
    }

    .social-link {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .contact-form {
        padding: 2rem;
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 500px) {
    .contact-container {
        gap: 2rem;
        padding: 0;
        overflow: hidden;
    }

    .contact-item span,
    .contact-item a {
        font-size: 0.9rem;
    }

    .social-links {
        gap: 0.8rem !important;
    }

    .social-link {
        width: 46px;
        height: 46px;
        font-size: 1.1rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 1rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 420px) {
    #contact {
        padding-left: 0;
        padding-right: 0;
    }

    .contact-container {
        padding-left: clamp(14px, 5vw, 22px);
        padding-right: clamp(14px, 5vw, 22px);
        box-sizing: border-box;
        width: 100%;
    }

    .contact-info {
        gap: 1.2rem;
    }

    .contact-info h3,
    .social-title {
        font-size: 1.15rem;
        line-height: 1.15;
    }

    .contact-item {
        gap: 0.6rem;
        font-size: 0.9rem;
        max-width: 100%;
    }

    .contact-item i {
        font-size: 1.15rem;
        width: 22px;
        min-width: 22px;
    }

    .social-links {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.9rem;
        max-width: 100%;
    }

    .social-link {
        width: 44px;
        height: 44px;
        font-size: 1.05rem;
    }

    .contact-form {
        padding: 1.4rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        font-size: 0.9rem;
        padding: 0.9rem;
        box-sizing: border-box;
    }
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--color-navy);
    padding: 3rem 5%;
    text-align: center;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer-tagline {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--color-yellow);
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--color-text-light);
    text-decoration: none;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.footer-links a:hover {
    color: var(--color-yellow);
}

.footer-copyright {
    color: var(--color-text-light);
    font-size: 0.9rem;
    text-align: center;
}

@media (max-width: 768px) {
    footer {
        padding: 2rem 5%;
    }
    
    .footer-tagline {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .footer-links {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .footer-copyright {
        font-size: 0.8rem;
    }
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 15, 15, 0.95);
    z-index: 10000;
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--color-navy);
    padding: 3rem;
    border-radius: 20px;
    max-width: 800px;
    width: 90%;
    position: relative;
    animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    color: var(--color-yellow);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    transform: rotate(90deg);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .section-title {
        font-size: 2.5rem;
    }

    .hero-title {
        font-size: 3rem;
    }

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

/* ===== NAVBAR MOBILE — od 1180px ===== */
@media (max-width: 1180px) {
    .main-nav {
        padding: 1rem 5%;
        position: fixed;
    }

    .nav-container {
        flex-direction: row;
        gap: 1rem;
        justify-content: center;
        width: 100%;
    }

    .logo {
        flex: 1;
        text-align: center;
    }

    .mobile-menu-btn {
        display: flex;
        position: absolute;
        right: 4rem;
    }

    .theme-toggle {
        position: absolute;
        right: 1rem;
        margin-left: 0;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        width: 100%;
        background: rgba(var(--color-dark-rgb), 0.98);
        border-bottom: 1px solid rgba(212, 175, 55, 0.2);
        gap: 0;
        font-size: 0.9rem;
        padding: 1rem 0;
        border-radius: 0;
    }

    .nav-menu.active {
        display: flex;
        animation: slideDownMenu 0.4s ease-out forwards;
    }

    .nav-menu li {
        border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    }

    .nav-menu a {
        display: block;
        padding: 1rem 1.5rem;
        border-radius: 0;
    }

    .nav-menu a::after {
        display: none;
    }
}

@media (max-width: 768px) {
    body {
        cursor: auto;
    }

    .custom-cursor,
    .mouse-follower {
        display: none !important;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.3;
    }

    .hero-description {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        padding: 0 1rem;
        gap: 1rem;
    }

    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
        width: 100%;
        max-width: 350px;
        text-align: center;
    }

    section {
        padding: 60px 5%;
        min-height: 100vh;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .services-grid,
    .portfolio-grid,
    .ai-projects {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
        transform: none !important;
    }

    .service-card:hover {
        transform: translateY(-5px) !important;
    }

    .portfolio-item {
        height: 300px;
    }

    .contact-container {
        gap: 2rem;
    }

    .contact-form {
        padding: 2rem;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .social-links {
        justify-content: center;
    }

    .section-title,
    .hero-title .highlight,
    .service-icon {
        animation: none !important;
        text-shadow: none !important;
        filter: none !important;
    }

    img {
        will-change: auto;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .nav-menu {
        font-size: 0.8rem;
        gap: 0.5rem;
    }

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

    .contact-container {
        gap: 1.5rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes slideDownMenu {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.slide-up {
    opacity: 0;
    transform: translateY(50px);
    animation: slideUp 0.8s ease forwards;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loader {
    border: 3px solid rgba(212, 175, 55, 0.3);
    border-top: 3px solid var(--color-yellow);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== PAGE TEMPLATE STYLES ===== */
.page-hero-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 100px;
    margin-bottom: 4rem;
}

.page-hero-section .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.page-hero-section .hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 2rem;
    z-index: 1;
}

.page-hero-section .hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-yellow) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 0.8s ease-out;
}

.page-hero-section .hero-description {
    font-size: 1.2rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.page-content-section {
    padding: 4rem 0;
    min-height: 50vh;
}

.page-article {
    background: linear-gradient(135deg, rgba(42, 42, 42, 0.4) 0%, rgba(26, 26, 26, 0.6) 100%);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid rgba(212, 175, 55, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.6s ease-out;
}

.page-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.page-featured-image {
    margin-bottom: 2rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.page-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.page-featured-image:hover img {
    transform: scale(1.05);
}

.page-text-content {
    color: var(--color-white);
    line-height: 1.8;
}

.page-text-content h1,
.page-text-content h2,
.page-text-content h3,
.page-text-content h4,
.page-text-content h5,
.page-text-content h6 {
    color: var(--color-yellow);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-text-content h2 {
    font-size: 2rem;
    border-bottom: 2px solid var(--color-yellow);
    padding-bottom: 0.5rem;
    margin-top: 3rem;
}

.page-text-content h3 {
    font-size: 1.5rem;
}

.page-text-content p {
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.page-text-content a {
    color: var(--color-yellow);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition-smooth);
}

.page-text-content a:hover {
    color: var(--color-yellow-hover);
    border-bottom-color: var(--color-yellow-hover);
}

.page-text-content ul,
.page-text-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.page-text-content li {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.85);
}

.page-text-content blockquote {
    border-left: 4px solid var(--color-yellow);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--color-text-light);
}

.page-text-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-text-content code {
    background: rgba(212, 175, 55, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--color-yellow);
}

.page-text-content pre {
    background: rgba(26, 26, 26, 0.8);
    padding: 1.5rem;
    border-radius: 10px;
    overflow-x: auto;
    margin: 2rem 0;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.page-text-content pre code {
    background: none;
    padding: 0;
}

.child-pages-grid {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid rgba(212, 175, 55, 0.2);
}

.child-pages-title {
    font-size: 1.8rem;
    color: var(--color-yellow);
    margin-bottom: 2rem;
    font-weight: 700;
}

.page-cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(42, 42, 42, 0.3) 0%, rgba(26, 26, 26, 0.5) 100%);
    margin-top: 4rem;
}

.page-cta-section .cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.page-cta-section .section-title {
    margin-bottom: 1rem;
}

.page-cta-section .section-subtitle {
    margin-bottom: 2.5rem;
}

.page-edit-link {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.edit-link a {
    color: var(--color-yellow);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-yellow);
    border-radius: 5px;
    transition: var(--transition-smooth);
    display: inline-block;
}

.edit-link a:hover {
    background: var(--color-yellow);
    color: var(--color-dark);
}

@media (max-width: 768px) {
    .page-hero-section {
        min-height: 50vh;
        padding-top: 80px;
    }
    
    .page-article {
        padding: 2rem 1.5rem;
        border-radius: 15px;
    }
    
    .page-text-content h2 {
        font-size: 1.5rem;
    }
    
    .page-cta-section {
        padding: 3rem 0;
    }
}

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

/* ===== SINGLE PORTFOLIO STYLES ===== */
.portfolio-hero {
    min-height: 70vh;
}

.portfolio-category-badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.2);
    color: var(--color-yellow);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid var(--color-yellow);
    animation: fadeInUp 0.6s ease-out;
}

.portfolio-featured-image {
    width: 100%;
    margin-bottom: 3rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.portfolio-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.portfolio-meta {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(212, 175, 55, 0.2);
}

.portfolio-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.meta-item-full {
    grid-column: 1 / -1;
}

.meta-label {
    color: var(--color-yellow);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-value {
    color: var(--color-white);
    font-size: 1rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-yellow);
    color: var(--color-dark);
    padding: 1rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.project-link:hover {
    background: var(--color-yellow-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(212, 175, 55, 0.4);
}

.portfolio-description {
    margin-top: 2rem;
}

.portfolio-navigation {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid rgba(212, 175, 55, 0.1);
}

.portfolio-nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.portfolio-nav-item {
    background: linear-gradient(135deg, rgba(42, 42, 42, 0.4) 0%, rgba(26, 26, 26, 0.6) 100%);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    text-decoration: none;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.portfolio-nav-item:not(.empty):hover {
    border-color: var(--color-yellow);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

.portfolio-nav-item.prev {
    text-align: left;
}

.portfolio-nav-item.next {
    text-align: right;
}

.portfolio-nav-item.empty {
    visibility: hidden;
}

.nav-label {
    color: var(--color-yellow);
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.portfolio-nav-item.prev .nav-label {
    justify-content: flex-start;
}

.portfolio-nav-item.next .nav-label {
    justify-content: flex-end;
}

.nav-title {
    color: var(--color-white);
    font-size: 1.2rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .portfolio-hero {
        min-height: 50vh;
    }
    
    .portfolio-meta-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-nav-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-nav-item.empty {
        display: none;
    }
}

/* ===== ARCHIVE STYLES ===== */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.archive-item {
    background: linear-gradient(135deg, rgba(42, 42, 42, 0.4) 0%, rgba(26, 26, 26, 0.6) 100%);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: var(--transition-smooth);
    animation: fadeIn 0.6s ease-out;
}

.archive-item:hover {
    border-color: var(--color-yellow);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.2);
}

.archive-thumbnail {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.archive-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.archive-item:hover .archive-thumbnail img {
    transform: scale(1.1);
}

.archive-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 15, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.archive-item:hover .archive-overlay {
    opacity: 1;
}

.view-project {
    color: var(--color-yellow);
    font-weight: 600;
    font-size: 1.1rem;
}

.archive-content {
    padding: 1.5rem;
}

.archive-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.archive-category {
    background: rgba(212, 175, 55, 0.2);
    color: var(--color-yellow);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.archive-date {
    color: var(--color-text-light);
    font-size: 0.85rem;
}

.archive-title {
    margin-bottom: 0.8rem;
}

.archive-title a {
    color: var(--color-white);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

.archive-title a:hover {
    color: var(--color-yellow);
}

.archive-excerpt {
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.archive-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-yellow);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.archive-link:hover {
    gap: 0.8rem;
    color: var(--color-yellow-hover);
}

.archive-pagination {
    margin-top: 3rem;
}

.pagination-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
}

.pagination-list li {
    margin: 0;
}

.pagination-list a,
.pagination-list span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0.5rem 1rem;
    background: rgba(42, 42, 42, 0.6);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: var(--transition-smooth);
    font-weight: 600;
}

.pagination-list a:hover {
    background: var(--color-yellow);
    color: var(--color-dark);
    border-color: var(--color-yellow);
    transform: translateY(-2px);
}

.pagination-list .current {
    background: var(--color-yellow);
    color: var(--color-dark);
    border-color: var(--color-yellow);
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
}

.no-results h2 {
    color: var(--color-yellow);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.no-results p {
    color: var(--color-text-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .archive-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pagination-list {
        flex-wrap: wrap;
    }
    
    .pagination-list a,
    .pagination-list span {
        min-width: 40px;
        height: 40px;
        padding: 0.4rem 0.8rem;
    }
}

/* ===== SINGLE POST STYLES ===== */
.post-meta {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1.5rem;
    font-size: 0.95rem;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-light);
}

.post-meta i {
    color: var(--color-yellow);
}

.post-featured-image {
    width: 100%;
    margin-bottom: 3rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(212, 175, 55, 0.2);
}

.tags-label {
    color: var(--color-yellow);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tag-item {
    display: inline-block;
    background: rgba(212, 175, 55, 0.2);
    color: var(--color-yellow);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    border: 1px solid transparent;
    transition: var(--transition-smooth);
}

.tag-item:hover {
    background: var(--color-yellow);
    color: var(--color-dark);
    border-color: var(--color-yellow);
}

.comments-area {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid rgba(212, 175, 55, 0.2);
}

.comments-title {
    color: var(--color-yellow);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    background: linear-gradient(135deg, rgba(42, 42, 42, 0.3) 0%, rgba(26, 26, 26, 0.5) 100%);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.comment-author {
    color: var(--color-yellow);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.comment-meta {
    color: var(--color-text-light);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.comment-content {
    color: var(--color-white);
    line-height: 1.6;
}

.comment-content p {
    margin-bottom: 1rem;
}

.reply {
    margin-top: 1rem;
}

.comment-reply-link {
    display: inline-block;
    color: var(--color-yellow);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
    border: 1px solid var(--color-yellow);
    border-radius: 5px;
    transition: var(--transition-smooth);
}

.comment-reply-link:hover {
    background: var(--color-yellow);
    color: var(--color-dark);
}

.comment-respond {
    margin-top: 3rem;
}

.comment-reply-title {
    color: var(--color-yellow);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.comment-form {
    display: grid;
    gap: 1rem;
}

.comment-form-author,
.comment-form-email,
.comment-form-url,
.comment-form-comment {
    margin: 0;
}

.comment-form label {
    display: block;
    color: var(--color-yellow);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(42, 42, 42, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    color: var(--color-white);
    font-family: var(--font-primary);
    transition: var(--transition-smooth);
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--color-yellow);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.form-submit {
    margin-top: 1rem;
}

.submit {
    background: var(--color-yellow);
    color: var(--color-dark);
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.submit:hover {
    background: var(--color-yellow-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

@media (max-width: 768px) {
    .post-meta {
        gap: 1rem;
        font-size: 0.85rem;
    }
    
    .comment {
        padding: 1.5rem;
    }
}

/* Mobile Logo Fix */
@media screen and (max-width: 1180px) {
    .nav-container {
        justify-content: flex-start !important;
        overflow: visible !important;
    }

    .main-nav {
        overflow: visible !important;
    }

    body {
        overflow-x: hidden !important;
    }

    #quackweb-logo-animation {
        margin-left: -70px !important;
    }
}

/* ===== SCROLL TO TOP BUTTON ===== */
#scrollToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-yellow);
    color: var(--color-dark);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#scrollToTop:hover {
    background: var(--color-yellow-hover);
    transform: translateY(0) scale(1);
    box-shadow: 0 6px 25px rgba(var(--color-yellow-rgb), 0.4);
}

#scrollToTop.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

#scrollToTop i {
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    #scrollToTop {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* tylko urządzenia dotykowe */
@media (hover: none) and (pointer: coarse) {
    * {
        -webkit-tap-highlight-color: transparent;
    }

    a:focus,
    a:active,
    .service-card:focus,
    .service-card:active {
        outline: none;
    }
}


/* HERO TITLE — statyczny, zero efektów */

.hero-title {
    font-size: clamp(2rem, 6vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.15;
    color: var(--color-white);
    position: relative;
    z-index: 10;
    opacity: 1 !important;
    visibility: visible !important;
    transition: none !important;
    animation: none !important;
    transform: none !important;
    text-shadow: none !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    view-transition-name: none;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: manual;
    max-width: 100%;
}

.hero-title:hover,
.hero-title:focus {
    color: var(--color-white) !important;
    transform: none !important;
    text-shadow: none !important;
    animation: none !important;
}

.hero-title::before,
.hero-title::after {
    display: none !important;
}

.hero-title .highlight {
    color: var(--color-yellow);
    position: relative;
    display: inline-block;
    animation: none !important;
    text-shadow: none !important;
    transition: none !important;
}

.hero-title .highlight:hover {
    color: var(--color-yellow);
    text-shadow: none !important;
}

/* Fix dla mobile */
@media (max-width: 768px) {
    #hero {
        padding: 120px 3% 60px 3%;
    }

    .hero-content {
        margin: -60px auto 0 auto;
        gap: 1.5rem;
    }

    .hero-title {
        font-size: clamp(1.75rem, 7vw, 2.5rem) !important;
        line-height: 1.2 !important;
        margin-bottom: 1.2rem !important;
    }

    .hero-description {
        font-size: clamp(0.95rem, 3.5vw, 1.1rem) !important;
    }
}

@media (max-width: 480px) {
    #hero {
        padding: 110px 2% 50px 2%;
    }

    .hero-content {
        margin: -50px auto 0 auto;
    }

    .hero-title {
        font-size: clamp(1.6rem, 8vw, 2rem) !important;
        padding: 0 0.5rem;
        line-height: 1.15 !important;
    }

    .hero-description {
        font-size: 0.9rem !important;
    }
}

/* Force visibility */
.hero-content .hero-title {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* ===== PORTFOLIO LINK CARD ===== */
a.portfolio-card-inner {
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.portfolio-link-hint {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.8rem;
    color: var(--color-yellow);
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

a.portfolio-card-inner:hover .portfolio-link-hint {
    opacity: 1;
    transform: translateY(0);
}

/* ===== FLUID TEXT & MOBILE FIXES ===== */

/* Section titles - fluid, no-break */
.section-title {
    font-size: clamp(1.6rem, 5vw, 3.5rem) !important;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: break-word;
}

/* Hero title - płynne skalowanie, nie łamie słów agresywnie */
.hero-title {
    font-size: clamp(1.8rem, 6vw, 4.5rem) !important;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: break-word;
    hyphens: manual;
}

/* Contact items - email/telefon nie łamie się w środku */
.contact-item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: inline-block;
}

/* Na bardzo małych ekranach pozwól na wrap ale nie w środku słowa */
@media (max-width: 380px) {
    .contact-item span {
        white-space: normal;
        word-break: break-all;
    }
}

/* ===== CTA BUTTONS MOBILE ===== */
@media (max-width: 768px) {
    .hero-buttons {
        align-items: center;
        padding: 0 5%;
    }

    .cta-button {
        min-width: unset;
        width: 100%;
        max-width: 320px;
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .cta-button {
        max-width: 280px;
        padding: 0.85rem 1.2rem;
        font-size: 0.9rem;
    }

    /* Sekcja "Nasze realizacje" tytuł */
    #portfolio .section-title,
    #services .section-title,
    #about .section-title,
    #ai-zone .section-title {
        font-size: clamp(1.5rem, 8vw, 2rem) !important;
    }
}

/* Nav menu mobile - dot ukryty (obsługa w bloku 1180px powyżej) */

/**
 * QUACKWEB PREMIUM EFFECTS - STYLES
 * Dodatkowe style dla efektów wizualnych
 */

/* ===== MOUSE FOLLOWER ===== */
.mouse-follower {
    position: fixed;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.3) 0%, rgba(212, 175, 55, 0) 70%);
    pointer-events: none;
    z-index: 9996;
    transform: translate(-50%, -50%);
    transition: width 0.1s ease, height 0.1s ease, background 0.1s ease;
}

.mouse-follower.active {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.5) 0%, rgba(212, 175, 55, 0) 70%);
}

/* ===== RIPPLE EFFECT ===== */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.cta-button,
.submit-btn,
.filter-btn {
    position: relative;
    overflow: hidden;
}

/* ===== SMOOTH CARD TRANSITIONS (NO 3D TILT) ===== */
.service-card,
.portfolio-item,
.ai-project-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow;
}

/* ===== GLOW EFFECTS ===== */
.section-title {
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.3),
                 0 0 40px rgba(212, 175, 55, 0.2);
    animation: title-glow 3s ease-in-out infinite;
}

@keyframes title-glow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(212, 175, 55, 0.3),
                     0 0 40px rgba(212, 175, 55, 0.2);
    }
    50% {
        text-shadow: 0 0 30px rgba(212, 175, 55, 0.5),
                     0 0 60px rgba(212, 175, 55, 0.3),
                     0 0 90px rgba(212, 175, 55, 0.15);
    }
}

.hero-title {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.hero-title .highlight {
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.8),
                 0 0 60px rgba(212, 175, 55, 0.4);
    animation: text-glow 2s ease-in-out infinite;
}

@keyframes text-glow {
    0%, 100% {
        text-shadow: 0 0 30px rgba(212, 175, 55, 0.8),
                     0 0 60px rgba(212, 175, 55, 0.4);
    }
    50% {
        text-shadow: 0 0 40px rgba(212, 175, 55, 1),
                     0 0 80px rgba(212, 175, 55, 0.6),
                     0 0 120px rgba(212, 175, 55, 0.3);
    }
}

/* Glow on service icons */
.service-icon {
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
    transition: filter 0.4s ease;
}

.service-card:hover .service-icon {
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.6))
            drop-shadow(0 0 40px rgba(212, 175, 55, 0.3));
}

/* Glow on stat numbers */
.stat-number {
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

/* Button glow effect - REMOVED, styles moved to style.css */

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

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

/* ===== ENHANCED HOVER STATES ===== */
.service-card,
.portfolio-item,
.ai-project-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== PARTICLES CANVAS ===== */
#particles-canvas {
    filter: blur(1px);
}

/* ===== MAGNETIC BUTTONS - REMOVED, styles in style.css ===== */

/* ===== ANIMATED UNDERLINES ===== */
.nav-menu a {
    position: relative;
    overflow: hidden;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 25%;
    width: 55%;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        var(--color-yellow),
        transparent
    );
    transform: translateX(-100%);
    transition: transform 1.5s ease;
}

.nav-menu a:hover::before {
    transform: translateX(100%);
}

/* ===== GLITCH EFFECT ON HOVER (opcjonalny) ===== */
.hero-title:hover {
    animation: glitch 0.3s ease;
}

@keyframes glitch {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
    100% {
        transform: translate(0);
    }
}

/* ===== PULSING ELEMENTS ===== */
.stat-number {
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ===== HOVER LIFT EFFECT ===== */
.client-logo {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                filter 0.4s ease,
                box-shadow 0.4s ease;
}

.client-logo:hover {
    transform: translateY(-10px) scale(1.1);
    filter: grayscale(0%) brightness(1.2);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.3);
}

/* ===== GRADIENT TEXT ===== */
.section-title {
    background: linear-gradient(135deg,
        #ffffff 0%,
        #d4af37 50%,
        #e8c547 100%
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* ===== SUBTLE BORDER GLOW ===== */
.service-card,
.portfolio-item,
.ai-project-card {
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.4s ease;
}

.service-card:hover,
.portfolio-item:hover,
.ai-project-card:hover {
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2),
                0 0 40px rgba(212, 175, 55, 0.1),
                inset 0 0 20px rgba(212, 175, 55, 0.05);
}

/* ===== SPOTLIGHT EFFECT ===== */
.portfolio-item,
.service-card {
    position: relative;
    overflow: hidden;
}

.portfolio-item::after,
.service-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.portfolio-item:hover::after,
.service-card:hover::after {
    opacity: 1;
}

/* ===== ENHANCED SHADOWS - REMOVED, styles in style.css ===== */

/* ===== SMOOTH TRANSITIONS FOR ALL ===== */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== SCROLL INDICATOR - PRZYKLEJONY DO DNA STRONY ===== */
.scroll-indicator-fixed {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid rgba(212, 175, 55, 0.5);
    border-radius: 20px;
    z-index: 9998;
    animation: scroll-indicator-pulse 2s ease-in-out infinite;
    pointer-events: all;
    cursor: pointer;
    /* Smooth transitions dla wszystkiego */
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s ease,
                box-shadow 0.3s ease;
}

.scroll-indicator-fixed:hover {
    border-color: rgba(212, 175, 55, 0.8);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    transform: translateX(-50%) scale(1.1);
}

.scroll-indicator-fixed:active {
    transform: translateX(-50%) scale(0.95);
}

.scroll-indicator-fixed::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--color-yellow);
    border-radius: 50%;
    animation: scroll-dot 2s ease-in-out infinite;
}

/* Tekst "Przewiń w dół" */
.scroll-text-fixed {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(212, 175, 55, 0.8);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 9998;
    pointer-events: all;
    cursor: pointer;
    animation: scroll-indicator-pulse 2s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
    /* Smooth transitions */
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.3s ease,
                text-shadow 0.3s ease;
}

.scroll-text-fixed:hover {
    color: rgba(212, 175, 55, 1);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
    transform: translateX(-50%) scale(1.05);
}

.scroll-text-fixed:active {
    transform: translateX(-50%) scale(0.95);
}

/* Ukryj gdy użytkownik przewinie stronę - z smooth animation */
.scroll-indicator-fixed.hidden,
.scroll-indicator-fixed.hidden:hover {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(20px);
    animation: fadeOutScroll 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.scroll-text-fixed.hidden,
.scroll-text-fixed.hidden:hover {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(20px);
    animation: fadeOutScroll 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Animacje */
@keyframes scroll-indicator-pulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

@keyframes fadeOutScroll {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes scroll-dot {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, 20px);
        opacity: 0;
    }
}

/* ===== LOADING ANIMATION FOR IMAGES ===== */
img {
    animation: fade-in-image 0.6s ease;
}

@keyframes fade-in-image {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
.service-card,
.portfolio-item,
.ai-project-card,
.cta-button,
.submit-btn {
    will-change: transform, box-shadow;
}

/* Reset will-change after animation */
.service-card:not(:hover),
.portfolio-item:not(:hover),
.ai-project-card:not(:hover) {
    will-change: auto;
}

/* ===== ANIMATED LOGO ===== */
.logo {
    position: relative;
    transition: all 0.4s ease;
}

.logo::before {
    content: '🦆';
    position: absolute;
    left: -30px;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    transform: scale(1);
}

.logo:hover::before {
    animation: quack 0.5s ease;
}

.logo:hover {
    transform: scale(1.05);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
}

@keyframes quack {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.2) rotate(-10deg);
    }
    50% {
        transform: scale(0.9) rotate(10deg);
    }
    75% {
        transform: scale(1.1) rotate(-5deg);
    }
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    /* Disable heavy effects on mobile */
    .mouse-follower {
        display: none !important;
    }

    /* Simplify animations */
    .service-card,
    .portfolio-item,
    .ai-project-card {
        transform: none !important;
    }

    /* Reduce glow effects */
    .hero-title .highlight {
        animation: none;
        text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .mouse-follower,
    #particles-canvas,
    .custom-cursor,
    .scroll-indicator-fixed,
    .scroll-text-fixed {
        display: none !important;
    }
}


/* === LOGO === */

/* QuackWeb Logo Animation Styles */
.qw-animation-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Usuń podświetlanie na mobile */
#quackweb-logo-animation,
.qw-duck-logo,
.qw-logo-text {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

#quackweb-logo-animation:focus {
    outline: none;
}

.qw-typing-text {
    font-size: 32px;
    font-weight: bold;
    color: var(--color-white);
    display: flex;
    align-items: center;
    font-family: 'Courier New', monospace;
    position: absolute;
    z-index: 3;
}

.qw-cursor {
    animation: qw-blink 1s infinite;
    margin-left: 5px;
}

@keyframes qw-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.qw-particles-container {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

.qw-particle {
    position: absolute;
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    pointer-events: none;
}

.qw-logo-outer-container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.8s ease-out;
    z-index: 10;
}

.qw-logo-outer-container.qw-shift-left {
    transform: translate(-50%, -50%) translateX(-60px);
}

.qw-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: scale(0) rotate(-10deg);
    position: relative;
}

.qw-logo-wrapper::before {
    content: '';
    position: absolute;
    left: -100px;
    top: 50%;
    transform: translateY(-50%);
    width: 125px;
    height: 60px;
    background: var(--color-dark);
    z-index: 2;
    pointer-events: none;
}

.qw-logo-wrapper.qw-appear {
    animation: qw-logo-appear 0.6s ease-out forwards;
}

@keyframes qw-logo-appear {
    0% {
        transform: scale(0) rotate(-10deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.08) rotate(2deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.qw-duck-logo {
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 2px 6px rgba(255, 183, 0, 0.3));
    flex-shrink: 0;
    position: relative;
    z-index: 3;
    cursor: pointer;
    transition: filter 0.3s ease;
}

.qw-duck-logo:hover {
    filter: drop-shadow(0 2px 8px rgba(255, 183, 0, 0.5));
}

.qw-duck-logo.qw-breathing {
    animation: qw-float 4s ease-in-out infinite;
}

@keyframes qw-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

.qw-logo-text-wrapper {
    position: absolute;
    left: 0;
    overflow: visible;
    z-index: 1;
}

.qw-logo-text {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -1px;
    color: #fff;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-80px);
    transition: all 0.8s ease-out;
    position: relative;
    left: 0;
    z-index: 1;
}

.qw-logo-text.qw-show {
    opacity: 1;
    transform: translateX(70px);
}

.qw-quack {
    color: #FFB700;
}

.qw-web {
    color: var(--color-white);
}

.qw-hidden {
    display: none !important;
}


/* ===== YOOTHEME COMPATIBILITY (minimal) ===== */

/* 1. YOOtheme wrappers - no background, no padding */
.uk-section,
.uk-section-default {
    background: transparent !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* 2. Full width containers */
.uk-container {
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* 3. Body base background */
html {
    background-color: var(--color-dark) !important;
}
body, .tm-page {
    background-color: transparent !important;
    color: var(--color-white) !important;
}

/* 4. tsParticles - fixed behind everything */
#tsparticles, #quackweb-particles {
    position: fixed !important;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0 !important;
    pointer-events: none !important;
}

/* 5. All sections need position relative to sit above particles */
section, footer, .main-nav {
    position: relative;
    z-index: 2;
}
.main-nav { z-index: 9997 !important; }

/* 6. Remove nav underlines added by premium-effects */
.nav-menu a::before { display: none !important; }

/* 7. Disable buggy per-element animations */
.service-card, .portfolio-card, .portfolio-item,
.ai-project-card, .stat-item {
    opacity: 1 !important;
    transform: none !important;
}
.service-card:hover { transform: translateY(-12px) !important; }
.portfolio-card-inner:hover { transform: translateY(-10px) !important; }
.ai-project-card:hover { transform: translateY(-5px) !important; }
.stat-item:hover { transform: translateY(-10px) !important; }
.portfolio-card { animation: none !important; }

/* 8. Hide YOOtheme toolbar if present */
.tm-toolbar { display: none !important; }



/* ===== PARTICLES THROUGH SECTIONS - THEME-AWARE ===== */
#about {
    background-color: rgba(var(--color-navy-rgb, 26, 26, 26), 0.93) !important;
}
#services {
    background-color: rgba(var(--color-dark-rgb, 15, 15, 15), 0.93) !important;
}
#portfolio {
    background-color: rgba(var(--color-navy-rgb, 26, 26, 26), 0.93) !important;
}
#ai-zone {
    background-color: rgba(var(--color-dark-rgb, 15, 15, 15), 0.93) !important;
}
#clients {
    background-color: rgba(var(--color-navy-rgb, 26, 26, 26), 0.93) !important;
}
#contact {
    background-color: rgba(var(--color-dark-rgb, 15, 15, 15), 0.93) !important;
}
footer {
    background-color: rgba(var(--color-navy-rgb, 26, 26, 26), 0.95) !important;
}


/* ===== LIGHT THEME - MORE TRANSPARENCY ===== */
[style*="--color-dark: #f4ebe1"] #about,
[style*="--color-dark: #f4ebe1"] #services,
[style*="--color-dark: #f4ebe1"] #portfolio,
[style*="--color-dark: #f4ebe1"] #ai-zone,
[style*="--color-dark: #f4ebe1"] #clients,
[style*="--color-dark: #f4ebe1"] #contact {
    background-color: rgba(var(--color-navy-rgb), 0.85) !important;
}

/* ===== FIX: HOVER - NO UNDERLINES, NO BLUE ===== */
/* Kill ALL link underlines and blue color globally */
a, a:hover, a:focus, a:active, a:visited {
    text-decoration: none !important;
    outline: none !important;
}

/* UK (UIkit) link overrides */
.uk-link, .uk-link:hover,
a.uk-link-text, a.uk-link-text:hover {
    text-decoration: none !important;
    color: inherit !important;
}

/* Nav links - gold on hover, nothing else */
.nav-menu a,
.nav-menu a:hover,
.nav-menu a:focus,
.nav-menu a:visited {
    color: var(--color-white) !important;
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
}
.nav-menu a:hover {
    color: var(--color-yellow) !important;
}

/* Footer links */
.footer-links a,
.footer-links a:hover {
    text-decoration: none !important;
}
.footer-links a:hover {
    color: var(--color-yellow) !important;
}

/* Portfolio card links */
a.portfolio-card-inner,
a.portfolio-card-inner:hover {
    text-decoration: none !important;
    color: inherit !important;
}

/* Contact links */
.contact-item a,
.contact-item a:hover {
    text-decoration: none !important;
    color: inherit !important;
}

/* Social links */
.social-link,
.social-link:hover {
    text-decoration: none !important;
}

/* Client logos */
.client-logo,
.client-logo:hover {
    text-decoration: none !important;
}

/* CTA buttons */
.cta-button,
.cta-button:hover {
    text-decoration: none !important;
    color: var(--color-dark) !important;
}

/* UIkit default link styles - nuclear option */
.tm-page a:not(.cta-button):not(.social-link):not(.client-logo):not(.submit-btn) {
    text-decoration: none !important;
}