/* ============================================
   Krita Tool Page - Advanced Design & Animations
   ============================================ */

/* CSS Variables */
:root {
    --krita-primary: #E85D4E;
    --krita-secondary: #4A90A4;
    --krita-accent: #F4A261;
    --krita-green: #2A9D8F;
    --krita-yellow: #E9C46A;
    --krita-dark: #1a1a2e;
    --krita-light: #f8f9fa;
}

/* ============================================
   Canvas Background Animation
   ============================================ */
.krita-canvas-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.03;
}

/* ============================================
   Floating Brush Elements
   ============================================ */
.krita-floating-brushes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.kfb-item {
    position: absolute;
    color: var(--krita-primary);
    opacity: 0.08;
    animation: floatBrush 25s ease-in-out infinite;
    filter: blur(0.5px);
}

.kfb-1 {
    top: 10%;
    right: 5%;
    width: 60px;
    animation-delay: 0s;
}

.kfb-2 {
    top: 40%;
    left: 3%;
    width: 80px;
    animation-delay: -7s;
    color: var(--krita-secondary);
}

.kfb-3 {
    bottom: 20%;
    right: 10%;
    width: 100px;
    animation-delay: -14s;
    color: var(--krita-accent);
}

@keyframes floatBrush {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.05;
    }
    20% {
        transform: translateY(-25px) rotate(3deg);
        opacity: 0.12;
    }
    40% {
        transform: translateY(-15px) rotate(-2deg);
        opacity: 0.08;
    }
    60% {
        transform: translateY(-35px) rotate(5deg);
        opacity: 0.1;
    }
    80% {
        transform: translateY(-20px) rotate(-4deg);
        opacity: 0.07;
    }
}

/* Enhanced Floating Animation */
@keyframes floatBrushEnhanced {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg) scale(1);
        opacity: 0.05;
    }
    25% {
        transform: translateY(-30px) translateX(10px) rotate(5deg) scale(1.05);
        opacity: 0.15;
    }
    50% {
        transform: translateY(-20px) translateX(-5px) rotate(-3deg) scale(0.98);
        opacity: 0.1;
    }
    75% {
        transform: translateY(-40px) translateX(8px) rotate(8deg) scale(1.02);
        opacity: 0.12;
    }
}

/* ============================================
   Header Section
   ============================================ */
.krita-header {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    overflow: hidden;
}

/* Header Background Image */
.krita-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.krita-header-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    animation: headerImageZoom 20s ease-in-out infinite;
}

@keyframes headerImageZoom {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.krita-header-visual {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Palette Animation */
.kh-palette {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 20px;
    z-index: 2;
}

.khp-color {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--color);
    box-shadow: 0 10px 40px var(--color);
    animation: palettePulse 3s ease-in-out infinite;
    animation-delay: var(--delay);
    opacity: 0.6;
}

@keyframes palettePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.4;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

/* Brush Stroke Animation */
.kh-brush-stroke {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 100px;
    z-index: 3;
}

.brush-path {
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    animation: drawBrush 4s ease-out forwards;
}

@keyframes drawBrush {
    to {
        stroke-dashoffset: 0;
    }
}

/* Header Content */
.krita-header-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
}

.krita-overlay {
    background: linear-gradient(
        to bottom,
        rgba(26, 26, 46, 0.3) 0%,
        rgba(26, 26, 46, 0.6) 50%,
        rgba(26, 26, 46, 0.9) 100%
    );
}

/* Title Letter Animation */
.krita-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 600;
    color: #fff;
    margin: 1rem 0;
    display: flex;
    justify-content: center;
    gap: 0.05em;
}

.kt-letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(50px) rotateX(-90deg);
    animation: letterReveal 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: calc(var(--i) * 0.15s);
    text-shadow: 0 0 60px rgba(232, 93, 78, 0.5);
}

@keyframes letterReveal {
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

.krita-subtitle {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.3em;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Non-Original Notice - Enhanced Clarity */
.non-original-notice {
    margin-top: 1.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.non-original-notice p {
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.9rem;
    line-height: 1.6;
}

.non-original-notice i {
    margin-right: 0.5rem;
    color: var(--krita-yellow);
}

.non-original-notice a {
    color: var(--krita-accent);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.non-original-notice a:hover {
    color: #fff;
    text-decoration: underline;
}

.non-original-notice strong {
    color: #fff;
    font-weight: 600;
}

/* Third-Party Notice Banner */
.third-party-notice-banner {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.08), rgba(232, 93, 78, 0.05));
    border-left: 4px solid var(--krita-primary);
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.tpnb-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--krita-primary), var(--krita-accent));
    border-radius: 50%;
    color: #fff;
    font-size: 1.1rem;
}

.tpnb-content {
    flex: 1;
}

.tpnb-content p {
    margin: 0;
    color: var(--krita-dark);
    font-size: 0.95rem;
    line-height: 1.7;
}

.tpnb-content strong {
    color: var(--krita-dark);
    font-weight: 600;
}

/* Dark Theme - Third-Party Notice Banner */
.dark-theme .third-party-notice-banner {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.12), rgba(232, 93, 78, 0.08));
    border-left-color: var(--krita-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.dark-theme .tpnb-content p {
    color: rgba(255, 255, 255, 0.9);
}

.dark-theme .tpnb-content strong {
    color: #fff;
}

/* ============================================
   Video Tutorial Section
   ============================================ */
.krita-video-section {
    margin: 3rem 0;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(232, 93, 78, 0.05), rgba(74, 144, 164, 0.05));
    border-radius: 24px;
    border: 1px solid rgba(232, 93, 78, 0.1);
}

.kvs-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.5rem;
    color: var(--krita-dark);
    margin: 0 0 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.kvs-title i {
    color: var(--krita-primary);
    font-size: 1.8rem;
}

.kvs-intro {
    color: var(--krita-dark);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.kvs-intro strong {
    color: var(--krita-primary);
    font-weight: 600;
}

.kvs-video-container {
    margin-bottom: 1.5rem;
}

.kvs-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.kvs-video-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.kvs-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
}

.kvs-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.kvs-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.kvsm-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--krita-dark);
    font-size: 0.9rem;
    opacity: 0.8;
}

.kvsm-item i {
    color: var(--krita-secondary);
    font-size: 1rem;
}

.kvs-actions {
    display: flex;
    gap: 1rem;
}

.kvs-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: linear-gradient(135deg, var(--krita-primary), var(--krita-accent));
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(232, 93, 78, 0.25);
}

.kvs-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(232, 93, 78, 0.35);
}

.kvs-link i {
    font-size: 1.1rem;
}

/* Dark Theme - Video Section */
.dark-theme .krita-video-section {
    background: linear-gradient(135deg, rgba(232, 93, 78, 0.1), rgba(74, 144, 164, 0.1));
    border-color: rgba(232, 93, 78, 0.2);
}

.dark-theme .kvs-title {
    color: #fff;
}

.dark-theme .kvs-intro {
    color: rgba(255, 255, 255, 0.9);
}

.dark-theme .kvs-video-wrapper {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.dark-theme .kvs-video-wrapper:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.dark-theme .kvsm-item {
    color: rgba(255, 255, 255, 0.8);
}

.dark-theme .kvsm-item i {
    color: var(--krita-accent);
}

/* Responsive Video Section */
@media (max-width: 768px) {
    .krita-video-section {
        padding: 1.5rem;
    }
    
    .kvs-title {
        font-size: 1.25rem;
    }
    
    .kvs-intro {
        font-size: 0.95rem;
    }
    
    .kvs-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .kvs-meta {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .kvs-actions {
        width: 100%;
    }
    
    .kvs-link {
        width: 100%;
        justify-content: center;
    }
}

/* Badge Design */
.badge-design {
    background: linear-gradient(135deg, var(--krita-primary), var(--krita-accent));
}

/* ============================================
   Diary Section
   ============================================ */
.krita-diary {
    background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
    position: relative;
}

.krita-diary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--krita-primary), transparent);
}

.krita-date {
    background: linear-gradient(135deg, var(--krita-dark), var(--krita-secondary));
}

.krita-lead {
    font-size: 1.3rem;
    color: var(--krita-dark);
    font-weight: 500;
}

/* Quote Styling */
.krita-quote {
    position: relative;
    background: linear-gradient(135deg, rgba(232, 93, 78, 0.05), rgba(74, 144, 164, 0.05));
    border-left: 4px solid var(--krita-primary);
    padding: 2rem 2rem 2rem 3rem;
    margin: 2rem 0;
    border-radius: 0 12px 12px 0;
}

.kq-brush {
    position: absolute;
    top: -10px;
    left: 20px;
    width: 40px;
    height: 4px;
    background: var(--krita-primary);
    border-radius: 2px;
    animation: brushStroke 2s ease-in-out infinite;
}

@keyframes brushStroke {
    0%, 100% {
        width: 40px;
        opacity: 1;
    }
    50% {
        width: 60px;
        opacity: 0.7;
    }
}

/* ============================================
   Intro Section with Canvas Visual
   ============================================ */
.krita-intro-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 4rem 0;
}

.kis-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kis-canvas {
    width: 300px;
    height: 220px;
    background: #1a1a2e;
    border-radius: 8px;
    position: relative;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.kisc-layers {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 60px;
    bottom: 20px;
}

.kisc-layer {
    position: absolute;
    border-radius: 4px;
    animation: layerFloat 4s ease-in-out infinite;
}

.kisc-layer.layer-1 {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--krita-primary), var(--krita-accent));
    opacity: 0.3;
    animation-delay: 0s;
}

.kisc-layer.layer-2 {
    width: 80%;
    height: 70%;
    top: 15%;
    left: 10%;
    background: linear-gradient(135deg, var(--krita-secondary), var(--krita-green));
    opacity: 0.4;
    animation-delay: -1.3s;
}

.kisc-layer.layer-3 {
    width: 60%;
    height: 50%;
    top: 25%;
    left: 20%;
    background: linear-gradient(135deg, var(--krita-yellow), var(--krita-primary));
    opacity: 0.5;
    animation-delay: -2.6s;
}

@keyframes layerFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.02);
    }
}

.kisc-cursor {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    animation: cursorMove 3s ease-in-out infinite;
}

@keyframes cursorMove {
    0%, 100% {
        top: 40%;
        left: 40%;
    }
    25% {
        top: 60%;
        left: 60%;
    }
    50% {
        top: 50%;
        left: 30%;
    }
    75% {
        top: 30%;
        left: 70%;
    }
}

.krita-section-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 2rem;
    color: var(--krita-dark);
    margin-bottom: 1.5rem;
}

.krita-num {
    background: linear-gradient(135deg, var(--krita-primary), var(--krita-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* ============================================
   Free Price Highlight
   ============================================ */
.krita-free-highlight {
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0 3rem;
    border: 2px dashed var(--krita-primary);
    position: relative;
}

.kfh-badge {
    position: absolute;
    top: -12px;
    left: 2rem;
    background: var(--krita-primary);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.kfh-comparison {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.kfh-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease;
}

.kfh-item:hover {
    transform: translateY(-5px);
}

.kfh-paid {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
}

.kfh-free {
    background: linear-gradient(135deg, var(--krita-primary), var(--krita-accent));
    color: #fff;
    position: relative;
    animation: freePulse 2s ease-in-out infinite;
}

@keyframes freePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(232, 93, 78, 0.4); }
    50% { box-shadow: 0 0 20px 5px rgba(232, 93, 78, 0.2); }
}

.kfh-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.kfh-price {
    font-size: 1.5rem;
    font-weight: 700;
}

.kfh-paid .kfh-price {
    color: #666;
    text-decoration: line-through;
}

.kfh-free .kfh-price {
    font-size: 2.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.kfh-tag {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #fff;
    color: var(--krita-primary);
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.kfh-note {
    text-align: center;
    color: #999;
    font-size: 0.8rem;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .kfh-comparison {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   Features Grid
   ============================================ */
.krita-features-section {
    background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
}

.krita-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.kf-item {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.kf-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--krita-primary), var(--krita-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.kf-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.kf-item:hover::before {
    transform: scaleX(1);
}

.kfi-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Brush Preview Animation */
.kfi-brush-preview {
    width: 100%;
    height: 100%;
    color: var(--krita-primary);
}

.brush-stroke-anim {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawStroke 2s ease-out infinite;
}

.kf-item:hover .brush-stroke-anim {
    animation: drawStroke 1s ease-out forwards;
}

@keyframes drawStroke {
    to {
        stroke-dashoffset: 0;
    }
}

/* Layers Preview */
.kfi-layers-preview {
    position: relative;
    width: 60px;
    height: 60px;
}

.kflp-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    border: 2px solid;
    animation: layerStack 3s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.3s);
}

.kflp-layer:nth-child(1) {
    background: rgba(232, 93, 78, 0.2);
    border-color: var(--krita-primary);
    transform: translate(0, 0);
}

.kflp-layer:nth-child(2) {
    background: rgba(74, 144, 164, 0.2);
    border-color: var(--krita-secondary);
    transform: translate(-8px, -8px);
}

.kflp-layer:nth-child(3) {
    background: rgba(244, 162, 97, 0.2);
    border-color: var(--krita-accent);
    transform: translate(-16px, -16px);
}

@keyframes layerStack {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* Animation Preview */
.kfi-anim-preview {
    display: flex;
    gap: 4px;
}

.kfap-frames {
    display: flex;
    gap: 4px;
}

.kfap-frames span {
    width: 16px;
    height: 20px;
    background: var(--krita-dark);
    border-radius: 2px;
    animation: framePlay 1s ease-in-out infinite;
}

.kfap-frames span:nth-child(1) { animation-delay: 0s; background: var(--krita-primary); }
.kfap-frames span:nth-child(2) { animation-delay: 0.2s; background: var(--krita-secondary); }
.kfap-frames span:nth-child(3) { animation-delay: 0.4s; background: var(--krita-accent); }
.kfap-frames span:nth-child(4) { animation-delay: 0.6s; background: var(--krita-green); }

@keyframes framePlay {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* Color Wheel Preview */
.kfi-color-preview {
    width: 70px;
    height: 70px;
}

.kfcp-wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    animation: wheelRotate 10s linear infinite;
}

.kfcp-segment {
    position: absolute;
    width: 50%;
    height: 50%;
    background: hsl(var(--hue), 70%, 60%);
    transform-origin: 100% 100%;
    transform: rotate(calc(var(--hue) * 1deg)) skewY(30deg);
}

@keyframes wheelRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Format Preview */
.kfi-format-preview {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.kffp-files {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.kffp-file {
    padding: 4px 8px;
    background: var(--krita-dark);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 4px;
    text-align: center;
    animation: fileAppear 2s ease-in-out infinite;
}

.kffp-file:nth-child(1) { animation-delay: 0s; background: var(--krita-primary); }
.kffp-file:nth-child(2) { animation-delay: 0.5s; background: var(--krita-secondary); }
.kffp-file:nth-child(3) { animation-delay: 1s; background: var(--krita-green); }

@keyframes fileAppear {
    0%, 100% { opacity: 0.5; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(5px); }
}

.kfi-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.kfi-tag {
    padding: 0.3rem 0.8rem;
    background: rgba(232, 93, 78, 0.1);
    color: var(--krita-primary);
    font-size: 0.75rem;
    border-radius: 20px;
    font-weight: 500;
}

.kf-item h4 {
    font-size: 1.2rem;
    color: var(--krita-dark);
    margin-bottom: 0.75rem;
}

.kf-item p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================
   Categories Section
   ============================================ */
.krita-categories-section {
    background: linear-gradient(180deg, #fff 0%, #f8f9fa 100%);
}

.krita-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.kc-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
}

.kc-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.kc-visual {
    height: 180px;
    background: linear-gradient(135deg, var(--krita-dark), var(--krita-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Illustration Visual */
.kcv-illustration {
    width: 120px;
    height: 80px;
    position: relative;
}

.kcvi-scene {
    width: 100%;
    height: 100%;
    position: relative;
}

.kcvi-mountain {
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 50px solid rgba(255, 255, 255, 0.3);
    animation: mountainFloat 4s ease-in-out infinite;
}

.kcvi-sun {
    position: absolute;
    top: 10%;
    right: 20%;
    width: 20px;
    height: 20px;
    background: var(--krita-yellow);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--krita-yellow);
    animation: sunPulse 3s ease-in-out infinite;
}

.kcvi-cloud {
    position: absolute;
    top: 30%;
    left: 20%;
    width: 40px;
    height: 15px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    animation: cloudMove 6s ease-in-out infinite;
}

@keyframes mountainFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes sunPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
}

@keyframes cloudMove {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10px); }
}

/* Comic Visual */
.kcv-comic {
    display: flex;
    gap: 8px;
}

.kcvc-panels {
    display: flex;
    gap: 8px;
}

.kcvc-panel {
    width: 35px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    animation: panelReveal 2s ease-in-out infinite;
}

.kcvc-panel:nth-child(1) { animation-delay: 0s; }
.kcvc-panel:nth-child(2) { animation-delay: 0.3s; }
.kcvc-panel:nth-child(3) { animation-delay: 0.6s; }

@keyframes panelReveal {
    0%, 100% { opacity: 0.3; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1); }
}

/* Texture Visual */
.kcvt-pattern {
    width: 80px;
    height: 80px;
}

.kcvt-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    width: 100%;
    height: 100%;
}

.kcvt-grid span {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    animation: gridPulse 1.5s ease-in-out infinite;
}

.kcvt-grid span:nth-child(1) { animation-delay: 0s; }
.kcvt-grid span:nth-child(2) { animation-delay: 0.1s; }
.kcvt-grid span:nth-child(3) { animation-delay: 0.2s; }
.kcvt-grid span:nth-child(4) { animation-delay: 0.3s; }
.kcvt-grid span:nth-child(5) { animation-delay: 0.4s; }
.kcvt-grid span:nth-child(6) { animation-delay: 0.5s; }
.kcvt-grid span:nth-child(7) { animation-delay: 0.6s; }
.kcvt-grid span:nth-child(8) { animation-delay: 0.7s; }
.kcvt-grid span:nth-child(9) { animation-delay: 0.8s; }

@keyframes gridPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* Animation Visual */
.kcv-animation {
    display: flex;
    align-items: center;
    gap: 12px;
}

.kcva-timeline {
    display: flex;
    align-items: center;
    gap: 6px;
}

.kcva-frame {
    width: 12px;
    height: 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    animation: frameBlink 0.8s ease-in-out infinite;
}

.kcva-frame.active {
    background: var(--krita-primary);
}

.kcva-frame:nth-child(1) { animation-delay: 0s; }
.kcva-frame:nth-child(2) { animation-delay: 0.2s; }
.kcva-frame:nth-child(3) { animation-delay: 0.4s; }
.kcva-frame:nth-child(4) { animation-delay: 0.6s; }

.kcva-play {
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 12px solid rgba(255, 255, 255, 0.6);
    margin-left: 8px;
}

@keyframes frameBlink {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Education Visual */
.kcve-book {
    width: 60px;
    height: 50px;
    position: relative;
    perspective: 200px;
}

.kcve-pages {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: bookOpen 3s ease-in-out infinite;
}

.kcve-pages span {
    position: absolute;
    width: 50%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 0 4px 4px 0;
    transform-origin: left center;
}

.kcve-pages span:nth-child(1) {
    transform: rotateY(-30deg);
    background: rgba(255, 255, 255, 0.4);
}

.kcve-pages span:nth-child(2) {
    transform: rotateY(-15deg);
    background: rgba(255, 255, 255, 0.3);
}

.kcve-pages span:nth-child(3) {
    transform: rotateY(0deg);
    background: rgba(255, 255, 255, 0.2);
}

@keyframes bookOpen {
    0%, 100% { transform: rotateY(0deg); }
    50% { transform: rotateY(-10deg); }
}

.kc-content {
    padding: 2rem;
    flex: 1;
}

.kc-content h4 {
    font-size: 1.3rem;
    color: var(--krita-dark);
    margin-bottom: 0.75rem;
}

.kc-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.kc-features {
    list-style: none;
    padding: 0;
}

.kc-features li {
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #555;
    font-size: 0.9rem;
}

.kc-features li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--krita-primary);
}

/* ============================================
   Experience Timeline
   ============================================ */
.krita-experience-section {
    background: linear-gradient(180deg, #f8f9fa 0%, #fff 100%);
}

.krita-timeline {
    position: relative;
    max-width: 800px;
    margin: 3rem auto 0;
    padding-left: 3rem;
}

.krita-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--krita-primary), var(--krita-secondary), var(--krita-green));
}

.kt-item {
    position: relative;
    padding: 2rem 0;
    padding-left: 2rem;
}

.kti-marker {
    position: absolute;
    left: -3rem;
    top: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ktim-dot {
    width: 16px;
    height: 16px;
    background: var(--krita-primary);
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 0 0 2px var(--krita-primary);
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 2px var(--krita-primary); }
    50% { transform: scale(1.2); box-shadow: 0 0 0 4px rgba(232, 93, 78, 0.3); }
}

.ktim-line {
    width: 2px;
    height: calc(100% + 2rem);
    background: linear-gradient(to bottom, var(--krita-primary), transparent);
    margin-top: 8px;
}

.kt-item:last-child .ktim-line {
    display: none;
}

.kti-content {
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.kti-content:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.kti-label {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: linear-gradient(135deg, var(--krita-primary), var(--krita-accent));
    color: #fff;
    font-size: 0.8rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

.kti-content h4 {
    font-size: 1.3rem;
    color: var(--krita-dark);
    margin-bottom: 0.75rem;
}

.kti-content p {
    color: #666;
    line-height: 1.8;
}

/* ============================================
   Download Section
   ============================================ */
.krita-download-section {
    background: linear-gradient(180deg, #fff 0%, #f0f4f8 100%);
}

.krita-download-cards {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}

.kdc-main,
.kdc-alt {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
}

.kdc-main {
    background: linear-gradient(135deg, var(--krita-dark), var(--krita-secondary));
    color: #fff;
}

.kdc-main:hover,
.kdc-alt:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--krita-primary);
}

.kdc-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 2rem;
    color: var(--krita-primary);
}

.kdc-main .kdc-icon {
    color: #fff;
}

.kdc-icon svg {
    width: 40px;
    height: 40px;
}

.kdc-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.kdc-content p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.kdc-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.kdc-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.krita-tips {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(232, 93, 78, 0.05), rgba(74, 144, 164, 0.05));
    border-radius: 20px;
    border-left: 4px solid var(--krita-primary);
}

.krita-tips h4 {
    color: var(--krita-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.krita-tips h4 i {
    color: var(--krita-yellow);
}

.krita-tips ul {
    list-style: none;
    padding: 0;
}

.krita-tips li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #555;
}

.krita-tips li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--krita-primary);
}

/* ============================================
   Ending Section
   ============================================ */
.krita-ending {
    background: linear-gradient(180deg, #f0f4f8 0%, #fff 100%);
}

.krita-quote.final {
    background: linear-gradient(135deg, rgba(232, 93, 78, 0.08), rgba(74, 144, 164, 0.08));
}

.krita-footer {
    text-align: right;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.krita-meta {
    background: linear-gradient(135deg, #f8f9fa, #fff);
    border-radius: 16px;
    padding: 2rem;
}

.krita-btn {
    background: linear-gradient(135deg, var(--krita-primary), var(--krita-accent));
    color: #fff;
    border: none;
}

.krita-btn:hover {
    background: linear-gradient(135deg, #d94a3d, #e5914a);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(232, 93, 78, 0.3);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .krita-intro-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .kis-visual {
        height: 300px;
    }
    
    .krita-download-cards {
        grid-template-columns: 1fr 1fr;
    }
    
    .kdc-main {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .krita-title {
        font-size: 3rem;
    }
    
    .kh-palette {
        gap: 10px;
    }
    
    .khp-color {
        width: 40px;
        height: 40px;
    }
    
    .krita-features-grid {
        grid-template-columns: 1fr;
    }
    
    .krita-categories {
        grid-template-columns: 1fr;
    }
    
    .krita-download-cards {
        grid-template-columns: 1fr;
    }
    
    .kdc-main {
        grid-column: span 1;
    }
    
    .krita-timeline {
        padding-left: 2rem;
    }
    
    .kti-marker {
        left: -2rem;
    }
}

/* ============================================
   Scroll Reveal Animation
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Dark Theme Support
   ============================================ */
.dark-theme .krita-diary,
.dark-theme .krita-features-section,
.dark-theme .krita-categories-section,
.dark-theme .krita-experience-section,
.dark-theme .krita-download-section {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
}

.dark-theme .kf-item,
.dark-theme .kc-card,
.dark-theme .kti-content,
.dark-theme .kdc-main,
.dark-theme .kdc-alt {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-theme .kf-item h4,
.dark-theme .kc-content h4,
.dark-theme .kti-content h4,
.dark-theme .krita-section-title {
    color: #fff;
}

.dark-theme .kf-item p,
.dark-theme .kc-content p,
.dark-theme .kti-content p,
.dark-theme .kc-features li,
.dark-theme .krita-tips li {
    color: rgba(255, 255, 255, 0.7);
}

.dark-theme .krita-quote {
    background: linear-gradient(135deg, rgba(232, 93, 78, 0.1), rgba(74, 144, 164, 0.1));
}

.dark-theme .kfi-tag {
    background: rgba(232, 93, 78, 0.2);
    color: var(--krita-accent);
}

/* ============================================
   Dark Theme - Enhanced Visual Effects
   ============================================ */

/* Body & Background */
.dark-theme .krita-article {
    background: linear-gradient(180deg, #0d0d1a 0%, #1a1a2e 100%);
}

/* Header Section - Dark Mode Glow */
.dark-theme .krita-header {
    background: linear-gradient(135deg, #0d0d1a 0%, #1a1a2e 50%, #16213e 100%);
}

.dark-theme .krita-header-img {
    opacity: 0.25;
    filter: contrast(1.2) saturate(1.1);
}

/* Diary Section - Dark Mode */
.dark-theme .krita-diary {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
}

.dark-theme .krita-diary::before {
    background: linear-gradient(90deg, transparent, var(--krita-primary), var(--krita-secondary), transparent);
    height: 2px;
}

.dark-theme .krita-lead {
    color: #fff;
}

.dark-theme .diary-content p {
    color: rgba(255, 255, 255, 0.85);
}

/* Quote Block - Enhanced Dark Mode */
.dark-theme .krita-quote {
    background: linear-gradient(135deg, rgba(232, 93, 78, 0.15), rgba(74, 144, 164, 0.15));
    border-left: 4px solid var(--krita-primary);
    box-shadow: 0 4px 20px rgba(232, 93, 78, 0.1);
}

.dark-theme .krita-quote p {
    color: #fff;
}

/* Intro Section - Dark Mode */
.dark-theme .krita-intro-section {
    background: linear-gradient(180deg, #16213e 0%, #1a1a2e 100%);
}

.dark-theme .krita-section-title {
    color: #fff;
}

.dark-theme .kis-content p {
    color: rgba(255, 255, 255, 0.8);
}

/* Canvas Visual - Dark Mode Enhancement */
.dark-theme .kis-canvas {
    background: #0d0d1a;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 30px rgba(232, 93, 78, 0.1);
}

/* Features Section - Dark Mode */
.dark-theme .krita-features-section {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
}

.dark-theme .kf-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.dark-theme .kf-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(232, 93, 78, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(232, 93, 78, 0.1);
}

.dark-theme .kf-item h4 {
    color: #fff;
}

.dark-theme .kf-item p {
    color: rgba(255, 255, 255, 0.7);
}

/* Free Price Highlight - Dark Mode */
.dark-theme .krita-free-highlight {
    background: linear-gradient(135deg, rgba(232, 93, 78, 0.1) 0%, rgba(26, 26, 46, 0.5) 100%);
    border: 2px dashed rgba(232, 93, 78, 0.4);
}

.dark-theme .kfh-paid {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-theme .kfh-paid .kfh-name {
    color: rgba(255, 255, 255, 0.7);
}

.dark-theme .kfh-paid .kfh-price {
    color: rgba(255, 255, 255, 0.5);
}

/* Categories Section - Dark Mode */
.dark-theme .krita-categories-section {
    background: linear-gradient(180deg, #16213e 0%, #1a1a2e 100%);
}

.dark-theme .kc-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.dark-theme .kc-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(232, 93, 78, 0.3);
}

.dark-theme .kc-content h4 {
    color: #fff;
}

.dark-theme .kc-content p {
    color: rgba(255, 255, 255, 0.7);
}

.dark-theme .kc-features li {
    color: rgba(255, 255, 255, 0.6);
}

/* Experience Section - Dark Mode */
.dark-theme .krita-experience-section {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
}

.dark-theme .krita-timeline::before {
    background: linear-gradient(to bottom, var(--krita-primary), var(--krita-secondary), var(--krita-green));
    box-shadow: 0 0 10px rgba(232, 93, 78, 0.3);
}

.dark-theme .kti-content {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.dark-theme .kti-content:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(232, 93, 78, 0.2);
}

.dark-theme .kti-content h4 {
    color: #fff;
}

.dark-theme .kti-content p {
    color: rgba(255, 255, 255, 0.75);
}

.dark-theme .ktim-dot {
    background: var(--krita-primary);
    border-color: #1a1a2e;
    box-shadow: 0 0 0 2px var(--krita-primary), 0 0 15px rgba(232, 93, 78, 0.5);
}

/* Download Section - Dark Mode */
.dark-theme .krita-download-section {
    background: linear-gradient(180deg, #16213e 0%, #1a1a2e 100%);
}

.dark-theme .kdc-main {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9), rgba(22, 33, 62, 0.9));
    border: 1px solid rgba(232, 93, 78, 0.3);
}

.dark-theme .kdc-alt {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-theme .kdc-alt:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--krita-primary);
}

.dark-theme .kdc-content h4 {
    color: #fff;
}

.dark-theme .kdc-content p {
    color: rgba(255, 255, 255, 0.7);
}

.dark-theme .krita-tips {
    background: linear-gradient(135deg, rgba(232, 93, 78, 0.08), rgba(74, 144, 164, 0.08));
    border-left: 4px solid var(--krita-primary);
}

.dark-theme .krita-tips h4 {
    color: #fff;
}

.dark-theme .krita-tips li {
    color: rgba(255, 255, 255, 0.7);
}

/* Ending Section - Dark Mode */
.dark-theme .krita-ending {
    background: linear-gradient(180deg, #1a1a2e 0%, #0d0d1a 100%);
}

.dark-theme .krita-quote.final {
    background: linear-gradient(135deg, rgba(232, 93, 78, 0.12), rgba(74, 144, 164, 0.12));
}

.dark-theme .krita-meta {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.dark-theme .krita-meta .tmii-label {
    color: rgba(255, 255, 255, 0.6);
}

.dark-theme .krita-meta a,
.dark-theme .krita-meta span:last-child {
    color: rgba(255, 255, 255, 0.9);
}

/* Tool Actions - Dark Mode */
.dark-theme .tool-actions .btn-primary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.dark-theme .tool-actions .btn-primary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.dark-theme .krita-btn {
    background: linear-gradient(135deg, var(--krita-primary), var(--krita-accent));
    border: none;
}

.dark-theme .krita-btn:hover {
    background: linear-gradient(135deg, #d94a3d, #e5914a);
    box-shadow: 0 10px 30px rgba(232, 93, 78, 0.3);
}

/* Dark Theme - Non-Original Notice Enhancement */
.dark-theme .non-original-notice {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(232, 93, 78, 0.1);
}

.dark-theme .non-original-notice p {
    color: rgba(255, 255, 255, 0.9);
}

.dark-theme .non-original-notice i {
    color: var(--krita-yellow);
    filter: drop-shadow(0 0 5px rgba(233, 196, 106, 0.5));
}

.dark-theme .non-original-notice a {
    color: var(--krita-accent);
}

.dark-theme .non-original-notice a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(244, 162, 97, 0.5);
}

/* ============================================
   Screenshots Gallery Section
   ============================================ */
.krita-screenshots {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(232, 93, 78, 0.03), rgba(74, 144, 164, 0.03));
    border-radius: 24px;
}

.ks-main {
    margin-bottom: 1.5rem;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.ks-main:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.ks-main .ks-img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    transition: transform 0.5s ease;
}

.ks-main:hover .ks-img {
    transform: scale(1.02);
}

.ks-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.ks-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.ks-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.ks-item .ks-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.5s ease;
}

.ks-item:hover .ks-img {
    transform: scale(1.05);
}

.ks-caption {
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    font-size: 0.9rem;
    color: #555;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.ks-main .ks-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
    text-align: left;
    padding: 2rem 1.5rem 1.5rem;
    border: none;
}

/* Dark Mode Screenshots */
.dark-theme .krita-screenshots {
    background: linear-gradient(135deg, rgba(232, 93, 78, 0.08), rgba(74, 144, 164, 0.08));
}

.dark-theme .ks-main {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.dark-theme .ks-item {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.dark-theme .ks-caption {
    background: rgba(26, 26, 46, 0.95);
    color: rgba(255, 255, 255, 0.8);
    border-top-color: rgba(255, 255, 255, 0.1);
}

.dark-theme .ks-main .ks-caption {
    background: linear-gradient(transparent, rgba(13, 13, 26, 0.9));
    color: #fff;
}

/* Responsive Screenshots */
@media (max-width: 768px) {
    .ks-grid {
        grid-template-columns: 1fr;
    }
    
    .ks-item .ks-img {
        height: 180px;
    }
}

/* ============================================
   Lightbox Styles
   ============================================ */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.lightbox-img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

.lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    text-align: center;
    max-width: 80%;
    padding: 0.75rem 1.5rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* ============================================
   Krita Footer Section
   ============================================ */
.krita-footer-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.krita-footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--krita-primary), var(--krita-secondary), var(--krita-accent), var(--krita-green));
}

.krita-footer-section .footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    position: relative;
    z-index: 1;
}

.krita-footer-brand {
    display: flex;
    align-items: flex-start;
}

.kfb-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.kfb-logo .footer-logo {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.kfb-text h3 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
    background: linear-gradient(135deg, #fff, rgba(255,255,255,0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.kfb-text p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.krita-footer-section .footer-section h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.krita-footer-section .footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--krita-primary);
}

.krita-footer-section .footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: block;
    padding: 0.4rem 0;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.krita-footer-section .footer-section a::before {
    content: '→';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--krita-primary);
}

.krita-footer-section .footer-section a:hover {
    color: #fff;
    padding-left: 15px;
}

.krita-footer-section .footer-section a:hover::before {
    left: 0;
    opacity: 1;
}

.krita-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 2rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
}

.krita-footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0.3rem 0;
}

.krita-footer-note {
    font-size: 0.8rem !important;
    color: rgba(255, 255, 255, 0.4) !important;
    font-style: italic;
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .krita-footer-section .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .krita-footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .krita-footer-section .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1.5rem;
    }
    
    .krita-footer-brand {
        grid-column: span 1;
    }
    
    .kfb-logo {
        flex-direction: column;
        text-align: center;
    }
}
