/* Cyber‑Premium Portfolio CSS */
:root {
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --bg-glass: rgba(20, 20, 30, 0.6);
    --neon-purple: #8a2be2;
    --neon-blue: #00ffff;
    --neon-pink: #ff00ff;
    --text-primary: #f0f0f0;
    --text-secondary: #b0b0c0;
    --border-glow: rgba(138, 43, 226, 0.4);
    --shadow-neon: 0 0 15px rgba(0, 255, 255, 0.5);
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Poppins', sans-serif;
}

/* Light theme variables - piękny czytelny jasny motyw */
:root[data-theme="light"] {
    --bg-dark: #f8f9fa;
    --bg-darker: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.92);
    --neon-purple: #7b1fa2;
    --neon-blue: #0077cc;
    --neon-pink: #d5006d;
    --text-primary: #111111;
    --text-secondary: #444444;
    --border-glow: rgba(123, 31, 162, 0.4);
    --shadow-neon: 0 0 12px rgba(0, 119, 204, 0.3);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

.dark-bg {
    background: linear-gradient(135deg, var(--bg-darker) 0%, #111125 100%);
    min-height: 100vh;
}

[data-theme="light"] .dark-bg {
    background: linear-gradient(135deg, #ffffff 0%, #f0f2f5 100%);
}

/* Typography */
h1, h2, h3, h4, h5, .navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-blue));
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.neon-text {
    color: var(--neon-blue);
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.7);
}

.neon-gradient {
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 600;
}

/* Navigation */
.glass-nav {
    background: rgba(10, 10, 20, 0.85) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(138, 43, 226, 0.2);
    padding: 1rem 0;
    transition: var(--transition-smooth);
}

.glass-nav.scrolled {
    padding: 0.7rem 0;
    background: rgba(5, 5, 15, 0.95) !important;
}

.navbar-brand {
    font-size: 1.8rem;
    letter-spacing: 1px;
}

.nav-link {
    color: var(--text-primary) !important;
    margin: 0 0.5rem;
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-purple);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--neon-blue) !important;
}

.nav-link.active {
    color: var(--neon-blue) !important;
}

/* Buttons */
.btn-neon {
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-blue));
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: var(--transition-smooth);
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.5);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-neon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    transition: left 0.5s ease;
    z-index: -1;
}

.btn-neon:hover::before {
    left: 0;
}

.btn-neon:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.7);
}

.btn-outline-neon {
    border: 2px solid var(--neon-purple);
    color: var(--neon-purple);
    background: transparent;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-outline-neon:hover {
    background: var(--neon-purple);
    color: white;
    border-color: var(--neon-purple);
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.7);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    position: relative;
    color: white;
}

[data-theme="light"] .hero-title {
    color: var(--text-primary);
}

.glitch {
    position: relative;
    animation: glitch 3s infinite;
}

@keyframes glitch {
    0% { transform: translate(0); }
    2% { transform: translate(-2px, 2px); }
    4% { transform: translate(-2px, -2px); }
    6% { transform: translate(2px, 2px); }
    8% { transform: translate(2px, -2px); }
    10% { transform: translate(0); }
    100% { transform: translate(0); }
}

.hero-subtitle {
    font-size: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-secondary);
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--neon-blue);
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Video Cards */
.showcase-section {
    background: rgba(5, 5, 15, 0.7);
    padding: 5rem 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.video-card {
    background: var(--bg-glass);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(138, 43, 226, 0.3);
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
    height: 100%;
}

.video-card:hover {
    transform: translateY(-10px);
    border-color: var(--neon-blue);
    box-shadow: 0 15px 30px rgba(0, 255, 255, 0.2);
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 177.78%; /* 9:16 aspect ratio */
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px 20px 0 0;
}

.video-card:hover .video-overlay {
    opacity: 1;
}

.play-icon {
    font-size: 3rem;
    color: white;
    background: rgba(138, 43, 226, 0.8);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.9);
}

.video-info {
    padding: 1.5rem;
}

.video-title {
    color: var(--neon-blue);
    font-weight: 600;
}

.video-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* About Section */
.about-section {
    padding: 5rem 0;
    background: rgba(10, 10, 20, 0.5);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.avatar-wrapper {
    position: relative;
    display: inline-block;
}

.avatar-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--neon-purple);
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.7);
}

.avatar-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.4) 0%, transparent 70%);
    z-index: -1;
}

.skill-list {
    list-style: none;
    padding-left: 0;
}

.skill-list li {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.stat-card {
    background: var(--bg-glass);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(0, 255, 255, 0.2);
    transition: var(--transition-smooth);
}

.stat-card:hover {
    border-color: var(--neon-blue);
    box-shadow: var(--shadow-neon);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Process Timeline */
.process-section {
    padding: 5rem 0;
    background: rgba(5, 5, 15, 0.7);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 3rem auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--neon-purple), var(--neon-blue));
    transform: translateX(-50%);
}

.timeline-step {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-step:nth-child(odd) {
    flex-direction: row;
}

.timeline-step:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-glass);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--neon-blue);
    border: 2px solid var(--neon-purple);
    flex-shrink: 0;
    z-index: 2;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.timeline-content {
    background: var(--bg-glass);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid rgba(138, 43, 226, 0.3);
    width: calc(50% - 60px);
    margin: 0 2rem;
    backdrop-filter: blur(10px);
}

.timeline-step:nth-child(odd) .timeline-content {
    text-align: right;
}

.timeline-step:nth-child(even) .timeline-content {
    text-align: left;
}

.timeline-content h4 {
    color: var(--neon-blue);
    margin-bottom: 0.5rem;
}

/* Contact */
.contact-section {
    padding: 5rem 0;
    background: rgba(10, 10, 20, 0.5);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.glass-form {
    background: var(--bg-glass);
    border-radius: 25px;
    padding: 2.5rem;
    border: 1px solid rgba(138, 43, 226, 0.3);
    backdrop-filter: blur(10px);
}

.glass-input {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(138, 43, 226, 0.4) !important;
    color: white !important;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: var(--transition-smooth);
}

.glass-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(138, 43, 226, 0.25);
    border-color: var(--neon-blue) !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

.contact-info {
    background: var(--bg-glass);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(0, 255, 255, 0.2);
    transition: var(--transition-smooth);
}

.contact-info:hover {
    border-color: var(--neon-purple);
    transform: translateY(-5px);
}

/* Footer */
.footer {
    background: rgba(5, 5, 15, 0.95);
    border-top: 1px solid rgba(138, 43, 226, 0.3);
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: rgba(138, 43, 226, 0.2);
    color: var(--neon-blue);
    border-radius: 50%;
    margin-left: 10px;
    transition: var(--transition-smooth);
}

.social-links a:hover {
    background: var(--neon-purple);
    color: white;
    transform: scale(1.1);
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Magnetic Button */
.magnetic-btn {
    position: relative;
    overflow: hidden;
}

/* Light theme overrides - piękny czytelny jasny motyw */
[data-theme="light"] .glass-nav {
    background: rgba(255, 255, 255, 0.92) !important;
    border-bottom: 1px solid var(--border-glow);
}

[data-theme="light"] .glass-nav.scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
}

[data-theme="light"] .showcase-section,
[data-theme="light"] .process-section {
    background: rgba(248, 249, 250, 0.9);
}

[data-theme="light"] .about-section,
[data-theme="light"] .contact-section {
    background: rgba(240, 242, 245, 0.85);
}

[data-theme="light"] .video-card:hover {
    box-shadow: 0 15px 30px rgba(0, 119, 204, 0.2);
}

[data-theme="light"] .glass-input {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid var(--border-glow) !important;
    color: var(--text-primary) !important;
}

[data-theme="light"] .glass-input:focus {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: var(--neon-blue) !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 119, 204, 0.25);
}

[data-theme="light"] .footer {
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid var(--border-glow);
}

[data-theme="light"] .social-links a {
    background: rgba(123, 31, 162, 0.1);
    color: var(--neon-purple);
}

[data-theme="light"] .social-links a:hover {
    background: var(--neon-purple);
    color: white;
}

[data-theme="light"] .play-icon {
    background: rgba(123, 31, 162, 0.9);
}

[data-theme="light"] .video-overlay {
    background: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .stat-card,
[data-theme="light"] .timeline-content,
[data-theme="light"] .contact-info {
    background: var(--bg-glass);
}

[data-theme="light"] .btn-outline-neon {
    color: var(--neon-purple);
    border-color: var(--neon-purple);
}

[data-theme="light"] .btn-outline-neon:hover {
    color: white;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
    }
    .section-title {
        font-size: 2.5rem;
    }
    .timeline::before {
        left: 30px;
    }
    .timeline-step {
        flex-direction: row !important;
        align-items: flex-start;
    }
    .timeline-icon {
        margin-right: 2rem;
        margin-left: 0;
    }
    .timeline-content {
        width: calc(100% - 120px);
        margin: 0 0 0 2rem;
        text-align: left !important;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }
    .video-wrapper {
        padding-top: 177.78%; /* keep 9:16 */
    }
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.5rem;
    }
    .btn-neon, .btn-outline-neon {
        padding: 0.6rem 1.5rem;
    }
    .glass-form {
        padding: 1.5rem;
    }
}