/* Kompletny plik CSS dla strony Technikalia z ochroną */

/* Blokada zaznaczania tekstu */
body, .no-select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Blokada przeciągania obrazów */
img {
    -webkit-user-drag: none;
    user-drag: none;
}

/* Opcjonalnie — jeśli chcesz, żeby obrazów nie dało się klikać */
.protected-img {
    pointer-events: none;
}

/* Hero Section - Tech */
.hero-tech {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-tech::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y=".9em" font-size="90" opacity="0.1">💻</text></svg>') repeat;
    background-size: 120px 120px;
    opacity: 0.1;
    z-index: 1;
}

.hero-tech .container {
    position: relative;
    z-index: 2;
}

.hero-tech h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

.hero-tech p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 0.5rem;
}

.hero-subtitle {
    font-size: 1rem !important;
    opacity: 0.8 !important;
    font-style: italic;
    margin-bottom: 2rem !important;
}

.github-link {
    margin-top: 2rem;
}

.btn-github {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255,255,255,0.15);
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.2);
}

.btn-github:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.github-icon {
    font-size: 1.3rem;
}

/* GitHub Info Banner */
.github-info {
    background: white;
    padding: 2rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.info-banner {
    background: #f0f9ff;
    border: 1px solid #0284c7;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.banner-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.banner-content {
    flex-grow: 1;
}

.banner-content h3 {
    color: #0c4a6e;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.banner-content p {
    color: #475569;
    margin: 0;
    line-height: 1.6;
}

.btn-refresh {
    background: #0284c7;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-refresh:hover {
    background: #0369a1;
    transform: translateY(-2px);
}

.btn-refresh:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* GitHub Container - Screenshot Version */
.github-container {
    background: white;
    padding: 2rem 0;
}

.github-preview {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.preview-header {
    background: #f6f8fa;
    border-bottom: 1px solid #d1d9e0;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.browser-buttons {
    display: flex;
    gap: 0.5rem;
}

.browser-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.btn-close {
    background: #ff5f57;
}

.btn-minimize {
    background: #ffbd2e;
}

.btn-maximize {
    background: #28ca42;
}

.address-bar {
    flex-grow: 1;
    background: white;
    border: 1px solid #d1d9e0;
    border-radius: 6px;
    padding: 0.5rem 1rem;
}

.address-text {
    color: #586069;
    font-size: 0.9rem;
    font-family: 'Monaco', 'Menlo', monospace;
}

.github-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-live {
    background: #0366d6;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-live:hover {
    background: #0256cc;
    transform: translateY(-1px);
}

.github-screenshot {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.github-screenshot img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.github-screenshot:hover img {
    transform: scale(1.02);
}

.screenshot-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(59, 130, 246, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.github-screenshot:hover .screenshot-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: white;
    padding: 2rem;
}

.overlay-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.overlay-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.btn-visit-github {
    background: white;
    color: #3b82f6;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-visit-github:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,255,255,0.3);
}

/* Success message for refresh */
.refresh-success {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: #10b981;
    color: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.refresh-success.show {
    transform: translateX(0);
}

.refresh-success .success-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.refresh-success .success-icon {
    font-size: 1.2rem;
}

.refresh-success p {
    margin: 0;
    font-size: 0.9rem;
}

/* Skills Section */
.skills-section {
    padding: 5rem 0;
    background: white;
}

.skills-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #1e3a8a;
    margin-bottom: 3rem;
    font-weight: 300;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.skill-category {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: #3b82f6;
    background: white;
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.skill-category h3 {
    color: #1e3a8a;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.skill-tag {
    background: #3b82f6;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

/* Projects Preview */
.projects-preview {
    padding: 5rem 0;
    background: #f8f9fa;
}

.projects-preview h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #1e3a8a;
    margin-bottom: 3rem;
    font-weight: 300;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.project-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-top: 4px solid #3b82f6;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.project-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.project-card h3 {
    color: #1e3a8a;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.project-card p {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: #e0e7ff;
    color: #3730a3;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* GitHub Stats */
.github-stats {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 4rem 0;
}

.github-stats h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 300;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-item {
    background: rgba(255,255,255,0.1);
    padding: 2rem 1rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.stat-item:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.3;
}

/* Tech CTA */
.tech-cta {
    background: white;
    padding: 4rem 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    color: #1e3a8a;
    margin-bottom: 1rem;
    font-weight: 300;
}

.cta-content p {
    font-size: 1.2rem;
    color: #6b7280;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-cta.primary {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.btn-cta.primary:hover {
    background: #2563eb;
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.btn-cta.secondary {
    background: transparent;
    color: #3b82f6;
    border-color: #3b82f6;
}

.btn-cta.secondary:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .info-banner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .github-preview {
        margin: 0 1rem;
    }
}

@media (max-width: 768px) {
    .hero-tech h1 {
        font-size: 2.5rem;
    }
    
    .hero-tech p {
        font-size: 1rem;
    }
    
    .btn-github {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }
    
    .info-banner {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
    }
    
    .banner-content h3 {
        font-size: 1.1rem;
    }
    
    .banner-content p {
        font-size: 0.9rem;
    }
    
    .preview-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .browser-buttons {
        justify-content: center;
    }
    
    .github-actions {
        justify-content: center;
    }
    
    .skill-category {
        padding: 1.5rem;
    }
    
    .skills-list {
        justify-content: flex-start;
    }
    
    .project-card {
        padding: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat-item {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-cta {
        width: 100%;
        max-width: 300px;
    }
    
    .refresh-success {
        right: 1rem;
        left: 1rem;
        transform: translateY(-100px);
    }
    
    .refresh-success.show {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .hero-tech {
        padding: 3rem 1rem;
    }
    
    .hero-tech h1 {
        font-size: 2rem;
    }
    
    .skill-category {
        padding: 1rem;
    }
    
    .category-icon {
        font-size: 2.5rem;
    }
    
    .project-card {
        padding: 1rem;
    }
    
    .project-icon {
        font-size: 2.5rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .stat-icon {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .container {
        padding: 0 1rem;
    }
}

/* Animation Effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.skill-category,
.project-card,
.stat-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Pulse animation for loading */
@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

/* Hover effects for interactive elements */
.skill-tag,
.tag {
    cursor: pointer;
}

/* Special animations for stats */
.stat-number {
    transition: transform 0.3s ease;
}

.stat-item:hover .stat-number {
    transform: scale(1.1);
}

/* GitHub button enhancement */
.btn-github::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-github:hover::after {
    left: 100%;
}

.btn-github {
    position: relative;
    overflow: hidden;
}

/* Enhanced focus states for accessibility */
.btn-github:focus,
.btn-refresh:focus,
.btn-live:focus,
.btn-cta:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .github-container,
    .github-preview {
        page-break-inside: avoid;
    }
    
    .screenshot-overlay {
        display: none;
    }
    
    .btn-live,
    .btn-refresh,
    .btn-visit-github {
        display: none;
    }
}

/* Animation delays for smoother loading */
.skill-category:nth-child(1) { animation-delay: 0.1s; }
.skill-category:nth-child(2) { animation-delay: 0.2s; }
.skill-category:nth-child(3) { animation-delay: 0.3s; }
.skill-category:nth-child(4) { animation-delay: 0.4s; }

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
