/*
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.5
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-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);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    /* scroll-snap-type: y proximity; */
}

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(15, 15, 15, 0.95) 0%, rgba(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(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;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

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

.nav-menu a:hover {
    color: var(--color-yellow);
    transition: all 0.3s ease;
}

.nav-menu a:hover::before {
    opacity: 1;
}

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

/* ===== 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;
}

.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;
    /* scroll-snap-align: start; */
    /* scroll-snap-stop: normal; */
}

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

.section-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--color-white), var(--color-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.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-top: 80px;
    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;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}


.hero-description {
    font-size: 1.3rem;
    color: var(--color-text-light);
    margin-bottom: 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.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;
}

/* Reset po kliknięciu */
.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;
}

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

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

.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(26, 26, 26, 0.9), rgba(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(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(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(212, 175, 55, 0.4);
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.3),
                0 0 40px rgba(212, 175, 55, 0.2),
                inset 0 0 30px rgba(212, 175, 55, 0.05);
    background: linear-gradient(135deg, rgba(26, 26, 26, 1), rgba(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;
}

/* ===== 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(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(212, 175, 55, 0.4);
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.25),
                0 0 40px rgba(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(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(212, 175, 55, 0.2);
    background: rgba(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(212, 175, 55, 0.5);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.2);
}

.portfolio-image-section {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, rgba(26, 26, 26, 1), rgba(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(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(212, 175, 55, 0.05);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: var(--transition-smooth);
}

.ai-project-card:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(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;
}

/* ===== CLIENTS SECTION ===== */
#clients {
    background-color: var(--color-navy);

    /* Dopasowanie wysokości sekcji do zawartości */
    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;
}

/* Karuzela */
.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);
}

/* Tor: flex, bez zawijania; będzie zawierał 2x tyle logotypów (oryginały + klony) */
.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;
}

/* Pauza animacji (niezmienione) */
.clients-marquee.paused .marquee-track,
.marquee-track:hover {
    animation-play-state: paused;
}

/* Animacja – przesuwa w lewo, uwzględnia połowę gap */
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(calc(-50% - var(--gap) / 2)); }
}

/* Pojedynczy kafelek */
.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;

    /* nadpisuje styl inline z GSAP */
    opacity: 1 !important;
    transform: none !important;

    /* brak tła i cienia */
    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;
}

/* Hover: rozjaśnienie i delikatne powiększenie logo */
.client-logo:hover {
    transform: scale(1.03);
    background: transparent !important;
}

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

/* REVERSE – dolna karuzela przesuwa się w prawo */
.clients-marquee.reverse .marquee-track {
    animation-direction: reverse; /* korzystamy z tych samych klatek, ale w odwrotnej kolejności */
}

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



/* ===== CONTACT SECTION — POPRAWIONE (CSS) ===== */
#contact {
    background-color: var(--color-dark);
}

/* Layout: lewa kolumna = info (contact-left), prawa = formularz */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

/* Nagłówek sekcji */
.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--color-yellow);
}

/* Blok z danymi kontaktowymi */
.contact-details {
    margin-bottom: 1rem;
}

/* Pojedynczy wiersz kontaktu: ikona + tekst */
.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;                 /* odstęp między ikoną a tekstem */
    margin-bottom: 1.5rem;     /* odstęp między wierszami — użyjemy tej wartości jako gap pionowy socialów */
    color: var(--color-text-light);
}

/* Stała szerokość małej ikonki — to będzie punkt odniesienia wyrównania */
.contact-item i {
    width: 28px;
    min-width: 28px;
    display: inline-flex;
    justify-content: center;
    color: var(--color-yellow);
    font-size: 1.5rem;
}

/* ===== Social links (układ 3x2) =====
   - 3 kolumny x 2 wiersze (2 rzędy po 3 ikonki),
   - pionowy gap dopasowany do .contact-item margin-bottom (1.5rem),
   - dosunięte do tej samej osi co małe ikonki (margin-left: 0 w połączeniu z wrapperem .contact-left) */
.social-links {
    display: grid;
    grid-template-columns: repeat(3, auto); /* 3 kolumny */
    grid-template-rows: repeat(2, auto);    /* 2 wiersze */
    gap: 1.5rem 1.6rem;                      /* pionowy gap = 1.5rem (jak .contact-item), poziomy = 1.6rem */
    margin-top: 0.8rem;
    justify-content: start;
    align-items: center;

    /* jeżeli nie dodasz wrappera .contact-left, możesz użyć margin-left: calc(28px) żeby wyrównać do ikony.
       Jeśli użyjesz HTML z .contact-left (polecane), pozostaw margin-left: 0; */
    margin-left: 0;
}

/* Wygląd pojedynczego kółeczka */
.social-link {
    width: 50px;
    height: 50px;
    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.25rem;
    transition: var(--transition-smooth);
    text-decoration: none;
    box-shadow: none;
}


.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);
}

/* Focus dla dostępności */
.social-link:focus {
    outline: 3px solid rgba(212,175,55,0.18);
    outline-offset: 3px;
}

/* ===== FORM — poprawione floating label (nie nachodzi na ramkę) ===== */
.contact-form {
    background: rgba(26, 26, 26, 0.6);
    padding: 3rem;
    border-radius: 20px;
    border: 2px solid rgba(212, 175, 55, 0.1);
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

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

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

/* Floating label: wyżej i z tłem, nie nachodzi na ramkę */
.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.25rem;
    left: 0.9rem;
    font-size: 0.78rem;
    color: var(--color-yellow);
    background: rgba(26, 26, 26, 0.85);
    padding: 0 0.5rem;
    transform-origin: left center;
}

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

/* Submit */
.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);
}

/* ===== RESPONSYWNOŚĆ ===== */
@media (max-width: 1024px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .social-links {
        margin-left: 0;
        justify-content: center;
        gap: 1rem 1.2rem;
    }
}

@media (max-width: 768px) {
    .social-link { width: 44px; height: 44px; font-size: 1rem; }
    .social-links { gap: 1rem 1.1rem; }
}


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

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

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

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

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

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

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

/* ===== 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;
    }
}

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

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

    .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(15, 15, 15, 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;
    }

    .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;
    }

    /* Reduce glow effects on mobile */
    .section-title,
    .hero-title .highlight,
    .service-icon {
        animation: none !important;
        text-shadow: none !important;
        filter: none !important;
    }

    /* Optimize images */
    img {
        will-change: auto;
    }
}

/* Additional mobile optimizations */
@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);
    }
}

/* Loading Spinner */
.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 ===== */
/* These styles ensure pages look consistent with homepage */

.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 */
.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 */
.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 */
.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 */
.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);
}

/* Responsive adjustments for pages */
@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;
    }
}

/* Animations for page template */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(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 */
.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;
}

/* Responsive for portfolio */
@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 */
.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 */
.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;
}

/* Responsive for archive */
@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 Styling */
.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 Form */
.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);
}

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