/*
Theme Name: Kacper Studio
Theme URI: https://kacper.studio
Author: Twoje Imię / Firma
Author URI: https://kacper.studio
Description: Nowoczesny motyw WordPress przekonwertowany z projektu React/TSX.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kacper-studio
*/

:root {
    --bg-main: #0a0a0a;
    --bg-card: #141414;
    --text-main: #ffffff;
    --text-secondary: #a3a3a3;
    --text-muted: #737373;
    --accent: #3ea6ff;
    --accent-cyan: #00f2fe;
    --accent-glow: rgba(62, 166, 255, 0.3);
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

/* Navigation */
.navbar-container {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #fff;
}

.logo-icon {
    background: linear-gradient(135deg, var(--accent), var(--accent-cyan));
    padding: 6px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px var(--accent-glow);
}

.logo-text { font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.nav-links a:hover { color: #fff; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: #000;
}

.btn-primary:hover {
    background: var(--accent-cyan);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid var(--text-muted);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--text-main);
    background: rgba(255,255,255,0.05);
}

/* Sections */
section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.headline-huge {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 100vh;
    padding-top: 8rem;
}

.badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: rgba(62, 166, 255, 0.1);
    color: var(--accent);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.hero-content p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-custom-image { max-width: 100%; border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,0.5); }

/* Code Editor Mock */
.code-editor-mock {
    background: #1e1e1e;
    border-radius: 12px;
    border: 1px solid #333;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    font-family: monospace;
}

.editor-header {
    background: #252526;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #333;
}

.dot-term { width: 12px; height: 12px; border-radius: 50%; }
.file-name { color: #858585; margin-left: 10px; font-size: 0.9rem; }
.code-content { padding: 20px; color: #d4d4d4; font-size: 0.95rem; line-height: 1.5; overflow-x: auto; }
.code-keyword { color: #569cd6; }
.code-class { color: #4ec9b0; }
.code-func { color: #dcdcaa; }
.code-string { color: #ce9178; }

/* Specializations */
.spec-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.spec-item {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    display: block;
}

.spec-item:hover {
    transform: translateX(10px);
    border-color: rgba(62, 166, 255, 0.3);
    background: rgba(20, 20, 20, 0.8);
}

.spec-num {
    color: var(--text-muted);
    font-family: monospace;
    font-size: 1.2rem;
}

.spec-title { margin: 1rem 0; font-size: 1.25rem; }
.spec-desc { color: var(--text-secondary); font-size: 0.95rem; }
.spec-icon { margin-top: 1.5rem; }

/* Process */
.process-timeline {
    margin-top: 3rem;
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid rgba(255,255,255,0.1);
}

.process-step {
    position: relative;
    padding-bottom: 3rem;
}

.step-dot {
    position: absolute;
    left: -2.4rem;
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--accent);
    border-radius: 50%;
    border: 4px solid var(--bg-main);
}

.step-title { font-size: 1.5rem; margin-bottom: 0.5rem; }
.step-desc { color: var(--text-secondary); }

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.portfolio-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    display: block;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.portfolio-item.large { grid-column: 1 / -1; }
.portfolio-img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 16/9;}
.portfolio-item.large .portfolio-img { aspect-ratio: 21/9; }

.portfolio-info {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}

.portfolio-info h3 { font-size: 1.5rem; margin-bottom: 0.3rem; }
.portfolio-info p { color: var(--accent); font-size: 0.8rem; letter-spacing: 0.1em; font-weight: 700; }

/* Marquee */
.marquee-container {
    padding: 4rem 0;
    overflow: hidden;
    background: var(--bg-card);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.marquee-content {
    display: flex;
    width: max-content;
    animation: scroll 30s linear infinite;
}

.marquee-item {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-muted);
    margin: 0 2rem;
    transition: all 0.3s ease;
    cursor: default;
}

.marquee-item:hover { color: var(--accent); transform: scale(1.1); }

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* CTA Section & Editable Page Content */
.cta-section { text-align: center; }
.cta-text { color: var(--text-secondary); margin: 0 auto 2.5rem; font-size: 1.1rem; max-width: 600px; }
.wp-page-content { margin-bottom: 4rem; color: var(--text-secondary); font-size: 1.1rem; }

/* Footer */
footer {
    max-width: 1200px;
    margin: 4rem auto 0;
    padding: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo { display: flex; align-items: center; gap: 0.8rem; opacity: 0.8; }
.footer-logo span:first-of-type { font-weight: 700; font-size: 14px; }
.footer-logo span.year { color: var(--text-muted); font-size: 12px; font-weight: 400; margin-left: 10px; }

.footer-links { display: flex; list-style: none; gap: 1.5rem; font-size: 0.9rem; color: var(--text-secondary); }
.footer-links a:hover { color: #fff; }

.footer-socials { display: flex; gap: 1.5rem; }
.social-icon { color: var(--text-muted); transition: all 0.3s ease; }
.social-icon:hover { color: #fff; transform: scale(1.1); }

/* CSS Animations (Replacing Framer Motion) */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section { grid-template-columns: 1fr; padding-top: 6rem; text-align: center; gap: 2rem;}
    .hero-actions { justify-content: center; }
    .nav-links { display: none; /* W prawdziwym motywie dodalibyśmy hamburger menu, tu uproszczone dla zachowania struktury komponentów */ }
    .portfolio-grid { grid-template-columns: 1fr; }
    footer { flex-direction: column; text-align: center; }
}