/* ========================================
   Zmienne główne i reset
   ======================================== */
:root {
    /* Kolory */
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --primary-light: #38bdf8;
    --accent: #8b5cf6;
    --accent-dark: #7c3aed;
    --bg-dark: #0a0e1a;
    --bg-darker: #050810;
    --bg-card: #111827;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: rgba(148, 163, 184, 0.1);
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #0ea5e9 0%, #8b5cf6 100%);
    --gradient-3: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);

    /* Odstępy */
    --section-padding: 80px;
    --container-padding: 2rem;

    /* Typografia */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', sans-serif;

    /* Cienie */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(14, 165, 233, 0.4);

    /* Animacje */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-darker);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* Animowany gradient tła */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(14, 165, 233, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(14, 165, 233, 0.08) 0%, transparent 40%);
    z-index: 0;
    pointer-events: none;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1) rotate(3deg);
    }
}

/* Efekt pływających cząstek */
.section-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.4;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    animation: floatParticle 20s infinite ease-in-out;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(100px) scale(1);
        opacity: 0;
    }
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    position: relative;
    z-index: 1;
}

/* Style bazowe sekcji z efektami */
section {
    position: relative;
    z-index: 1;
}

/* Animowane tło z gwiazdkami/kropkami */
.section-stars {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary);
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all var(--transition-base);
    background: transparent;
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--border-color);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform var(--transition-base);
}

.logo:hover {
    transform: scale(1.05);
}

.logo-text {
    color: var(--text-primary);
}

.logo-accent {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-2);
    transition: width var(--transition-base);
}

.nav-links a:hover {
    color: var(--primary-light);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all var(--transition-base);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 0;
}

.particles-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(14, 165, 233, 0.15) 0%, transparent 50%);
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding-top: 80px; /* Przestrzeń na navbar */
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 50px;
    color: var(--primary-light);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-typed-wrapper {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.typed-prefix {
    color: var(--text-secondary);
    font-weight: 400;
}

.typed-text {
    color: var(--primary);
    display: inline-block;
    min-width: 200px;
    text-align: left;
}

.cursor {
    display: inline-block;
    color: var(--primary);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.8;
    /* Stała wysokość na 4 linie tekstu - zapobiega skakaniu layoutu */
    height: 7.2em; /* 4 linie * 1.8 line-height */
    display: flex;
    align-items: center;
    justify-content: center;
}

.subtitle-text {
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.subtitle-text.fade-out {
    opacity: 0;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.hero-stats {
    display: flex;
    gap: 4rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 5rem;
}

.stat {
    text-align: center;
}

.hero-stats .stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    z-index: 3;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary);
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.1);
    transition: all var(--transition-base);
    animation: bounce 2s infinite;
}

.scroll-indicator:hover {
    background: var(--primary);
    transform: translateX(-50%) scale(1.1);
}

.scroll-indicator i {
    font-size: 1.5rem;
    color: var(--primary);
    transition: color var(--transition-base);
}

.scroll-indicator:hover i {
    color: white;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: var(--font-primary);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn span {
    position: relative;
    z-index: 1;
}

.btn i {
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient-2);
    color: white;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(14, 165, 233, 0.6);
}

.btn-secondary {
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary-light);
    border: 1px solid var(--primary);
}

.btn-secondary:hover {
    background: rgba(14, 165, 233, 0.2);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ========================================
   Section Styles
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 50px;
    color: var(--primary-light);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   About Section - Minimal Version
   ======================================== */
.about.about-minimal {
    padding: 60px 0;
    background: transparent;
    position: relative;
    overflow: hidden;
}

/* Dekoracyjne tło dla sekcji O mnie */
.about.about-minimal::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

.about-minimal-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
    padding: 2.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
    /* Animacja wejścia */
    animation: card-entrance 0.8s ease-out;
}

/* Gradient na górze karty */
.about-minimal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-2);
    border-radius: 24px 24px 0 0;
}

/* Efekt świecenia przy hover */
.about-minimal-content::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-2);
    border-radius: 26px;
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.about-minimal-content:hover::after {
    opacity: 0.15;
}

@keyframes card-entrance {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-avatar {
    flex-shrink: 0;
    position: relative;
}

/* Animowany pierścień wokół avatara */
.about-avatar::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        var(--primary),
        var(--accent),
        var(--primary)
    );
    animation: rotate-ring 6s linear infinite;
    opacity: 0.4;
    z-index: -1;
}

@keyframes rotate-ring {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Efekt pulsowania */
.about-avatar::after {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    opacity: 0;
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(0.9); opacity: 0.6; }
    100% { transform: scale(1.1); opacity: 0; }
}

.about-avatar .avatar-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid transparent;
    background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
                var(--gradient-2) border-box;
    box-shadow: 0 0 30px rgba(14, 165, 233, 0.3);
    transition: all var(--transition-base);
    position: relative;
    z-index: 1;
}

.about-avatar:hover .avatar-img {
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(14, 165, 233, 0.6);
}

.about-avatar:hover::before {
    opacity: 0.7;
    animation-duration: 3s;
}

.about-intro {
    flex: 1;
}

.about-intro .section-badge {
    margin-bottom: 0.5rem;
}

.about-name {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.about-tagline {
    font-size: 1.1rem;
    color: var(--primary-light);
    font-weight: 500;
    margin-bottom: 1rem;
}

.about-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-description strong {
    color: var(--text-primary);
}

.about-cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn.btn-sm {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

/* Responsive dla minimal about */
@media (max-width: 768px) {
    .about-minimal-content {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .about-avatar .avatar-img {
        width: 120px;
        height: 120px;
    }

    .about-name {
        font-size: 1.6rem;
    }

    .about-cta-buttons {
        justify-content: center;
    }
}

/* Legacy About styles usunięte - używamy .about-minimal */

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* ========================================
   Technologies Section
   ======================================== */
.technologies {
    padding: 20px;
    background: transparent;
    position: relative;
    overflow: visible;
}

.technologies::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.14) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 14s ease-in-out infinite;
    z-index: 0;
}

.technologies::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.11) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 16s ease-in-out infinite reverse;
    z-index: 0;
}

.container-full {
    max-width: 100%;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.tech-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 4rem 3rem;
    margin-top: 4rem;
}

.slider-container {
    overflow: hidden;
    padding: 3rem 0;
    padding-top: 10rem;
    position: relative;
}

.slider-track {
    display: flex;
    gap: 3rem;
    animation: scroll-slider 40s linear infinite;
}

.slider-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-slider {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Stare style .tech-item, .tech-categories usunięte - używamy nowego slidera */

/* Style slidera technologii */
.tech-slider-container {
    position: relative;
    padding: 2rem 0;
    max-width: 1400px;
    margin: 0 auto;
    overflow-x: hidden;
    overflow-y: visible;
}

.tech-slides-wrapper {
    overflow: visible;
    width: 100%;
    padding: 0 60px;
}

.tech-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    overflow: visible;
}

.tech-slide {
    min-width: 100%;
    flex-shrink: 0;
    overflow: visible;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    z-index: 10;
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.slider-nav:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.slider-nav.prev {
    left: 0;
}

.slider-nav.next {
    right: 0;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    padding: 0;
}

.slider-dots .dot:hover {
    background: var(--text-secondary);
    transform: scale(1.2);
}

.slider-dots .dot.active {
    background: var(--primary);
    transform: scale(1.3);
}

.tech-category-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem;
    transition: all var(--transition-base);
    overflow: visible;
}

.tech-category-section:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.category-main-icon {
    font-size: 2rem;
    color: var(--primary);
}

.category-header h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 0;
}

.tech-icons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 1.5rem;
    justify-items: center;
    justify-content: center;
    max-width: 100%;
    padding-top: 140px;
    margin-top: -120px;
    overflow: visible;
}

.tech-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
}

.tech-icon-box {
    width: 80px;
    height: 80px;
    background: rgba(14, 165, 233, 0.05);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    transition: all var(--transition-base);
}

.tech-icon-item:hover .tech-icon-box {
    transform: translateY(-5px) scale(1.05);
    border-color: var(--primary);
    background: rgba(14, 165, 233, 0.1);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.2);
}

.tech-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    transition: color var(--transition-base);
}

.tech-icon-item:hover .tech-name {
    color: var(--primary-light);
}

.tech-tooltip {
    position: absolute;
    bottom: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: var(--bg-darker);
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    width: max-content;
    max-width: 280px;
    min-width: 180px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-base);
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-secondary);
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
}

.tech-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 10px solid transparent;
    border-top-color: var(--primary);
}

.tech-icon-item:hover .tech-tooltip {
    opacity: 1;
    transform: translateX(-50%) scale(1) translateY(-5px);
    pointer-events: auto;
}

/* Responsywność dla siatki technologii */
@media (max-width: 968px) {
    .tech-grid-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .tech-icons-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 1.25rem;
    }

    .tech-icon-box {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .tech-tooltip {
        max-width: 220px;
        min-width: 160px;
    }
}

@media (max-width: 480px) {
    .tech-grid-wrapper {
        gap: 2rem;
    }

    .tech-icons-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 1rem;
    }

    .tech-icon-box {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }

    .tech-name {
        font-size: 0.75rem;
    }

    .tech-tooltip {
        max-width: 180px;
        min-width: 140px;
        font-size: 0.8rem;
        padding: 0.75rem 1rem;
    }

    .category-header h3 {
        font-size: 1.2rem;
    }
}

/* ========================================
   Offer Section - Tabs/Zakładki
   ======================================== */
.offer2-section {
    padding: var(--section-padding) 0;
    background: transparent;
    position: relative;
}

.offer2-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.offer2-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-base);
}

.offer2-tab:hover {
    border-color: var(--primary);
    color: var(--text-primary);
}

.offer2-tab.active {
    background: var(--gradient-2);
    border-color: transparent;
    color: white;
}

.offer2-tab i {
    font-size: 1rem;
}

.offer2-content {
    max-width: 1100px;
    margin: 0 auto;
}

.offer2-panel {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.offer2-panel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
}

.offer2-info {
    display: flex;
    flex-direction: column;
}

.offer2-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.offer2-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    flex-shrink: 0;
}

.offer2-header h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.offer2-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.offer2-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.offer2-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.offer2-benefit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--accent);
}

.offer2-benefit i {
    font-size: 0.85rem;
}

.offer2-services-list {
    background: rgba(14, 165, 233, 0.03);
    border-radius: 12px;
    padding: 1.5rem;
}

.offer2-services-list h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.offer2-services-list ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.offer2-services-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.offer2-services-list li:last-child {
    border-bottom: none;
}

.offer2-services-list li i {
    color: var(--primary);
    margin-top: 3px;
    flex-shrink: 0;
}

.offer2-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.offer2-tech .tech-tag,
.tech-tag {
    padding: 0.25rem 0.75rem;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--primary-light);
    font-family: monospace;
}

@media (max-width: 900px) {
    .offer2-panel-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .offer2-tabs {
        gap: 0.5rem;
    }

    .offer2-tab {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .offer2-tab span {
        display: none;
    }

    .offer2-tab i {
        font-size: 1.2rem;
    }
}

/* ========================================
   Contact Section
   ======================================== */
.contact {
    padding: 60px 0;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 950px;
    height: 950px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.14) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite;
    z-index: 0;
}

.contact::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.11) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 18s ease-in-out infinite reverse;
    z-index: 0;
}

.contact .section-header {
    margin-bottom: 2rem;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2rem;
    height: fit-content;
    position: sticky;
    top: 120px;
}

.info-card h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    color: var(--text-primary);
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(14, 165, 233, 0.05);
    border-radius: 12px;
    border: 1px solid transparent;
    transition: all var(--transition-base);
    text-decoration: none;
    color: inherit;
}

.info-item:hover {
    background: rgba(14, 165, 233, 0.1);
    border-color: var(--primary);
    transform: translateX(5px);
}

.info-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient-2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.info-content {
    flex: 1;
}

.info-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-value {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.info-availability {
    padding: 1rem;
    background: rgba(39, 201, 63, 0.1);
    border: 1px solid rgba(39, 201, 63, 0.3);
    border-radius: 10px;
    margin-top: 1.2rem;
}

.availability-indicator {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #4ade80;
    font-weight: 500;
}

.status-dot {
    width: 12px;
    height: 12px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
    50% { opacity: 0.8; box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
}

/* Formularz kontaktowy */
.contact-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    background: rgba(14, 165, 233, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.85rem 1.2rem;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(14, 165, 233, 0.1);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-message {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    margin-top: 1rem;
}

.form-message.success {
    background: rgba(39, 201, 63, 0.1);
    border: 1px solid rgba(39, 201, 63, 0.3);
    color: #4ade80;
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
}

/* .footer-content - główna definicja przeniesiona do sekcji "Ulepszenia stopki" */

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 1rem;
    line-height: 1.8;
}

.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-links a,
.footer-contact a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--primary);
}

.footer-contact p {
    color: var(--text-secondary);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

    /* Responsywność osi czasu */
    .timeline-row {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .timeline-arrow {
        display: none;
    }

    .timeline-icon {
        width: 70px;
        height: 70px;
        font-size: 1.5rem;
    }

    .timeline-grid {
        gap: 2rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .info-card {
        position: static;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
        --container-padding: 1.5rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: var(--bg-card);
        flex-direction: column;
        padding: 6rem 2rem;
        transition: right var(--transition-base);
        box-shadow: var(--shadow-xl);
        border-left: 1px solid var(--border-color);
    }

    .nav-links.active {
        right: 0;
    }

    .hero-subtitle {
        height: 9em; /* Więcej miejsca na tablet - teksty mogą mieć 5 linii */
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-stats {
        gap: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .tech-categories {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        height: 11em; /* Więcej miejsca na mobile - teksty mogą mieć 6-7 linii */
    }

    .typed-text {
        min-width: 200px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .info-card,
    .contact-form-wrapper {
        padding: 2rem;
    }
}

/* ========================================
   Utility Classes & Animations
   ======================================== */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* @keyframes fadeIn - zdefiniowane wcześniej w sekcji Offer (linia ~1458) */

/* Płynny pasek przewijania */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* Zaznaczenie tekstu */
::selection {
    background: var(--primary);
    color: white;
}
/* ========================================
   Additional Styles for New Sections
   Lead IT - Karol Kobus
   ======================================== */

/* Oś czasu podróży w sekcji O mnie */
.about-journey {
    margin: 3rem 0 2rem;
    padding: 2rem;
    background: rgba(14, 165, 233, 0.05);
    border-radius: 16px;
    border-left: 4px solid var(--primary);
}

.about-journey h4 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--primary-light);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.journey-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.journey-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.journey-year {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    padding: 0.5rem 1rem;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 8px;
    text-align: center;
    height: fit-content;
}

.journey-content strong {
    color: var(--text-primary);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.75rem;
}

.journey-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

.journey-content p:last-child {
    margin-bottom: 0;
}

/* Sekcja Experience usunięta - zastąpiona przez Offer Section */

/* Oś czasu procesu - 2 rzędy */
.process {
    background: transparent;
    overflow: hidden;
}

.timeline-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    padding: 3rem 0;
    position: relative;
    z-index: 1;
}

.timeline-row {
    display: grid;
    grid-template-columns: 1fr 50px 1fr 50px 1fr;
    gap: 1.5rem;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
}

.timeline-item {
    text-align: center;
    position: relative;
    padding: 2rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all var(--transition-base);
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

.timeline-item:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.timeline-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    background: var(--bg-card);
    border: 3px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--primary);
    transition: all var(--transition-base);
    position: relative;
    z-index: 2;
}

.timeline-item:hover .timeline-icon {
    background: var(--gradient-2);
    border-color: var(--secondary);
    color: white;
    transform: scale(1.1) rotate(360deg);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.3);
}

.timeline-arrow {
    align-self: center;
    font-size: 1.8rem;
    color: var(--primary);
    font-weight: bold;
    margin-top: 6rem;
}

.timeline-step {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Services styles removed - replaced by Offer Section */

/* Sekcja Projekty */
.projects {
    padding: 20px;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.projects::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -15%;
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.13) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 11s ease-in-out infinite;
    z-index: 0;
}

/* Stare style .projects-grid, .project-card usunięte - zastąpione przez .portfolio-grid */

.tag {
    padding: 0.4rem 1rem;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 20px;
    color: var(--primary-light);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.tag:hover {
    background: rgba(14, 165, 233, 0.2);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* ========================================
   Portfolio Grid - Nowy układ realizacji
   ======================================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.portfolio-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4 / 3;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-xl), 0 0 30px rgba(14, 165, 233, 0.2);
}

.portfolio-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-darker) 100%);
}

.portfolio-placeholder i {
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.5;
    transition: all var(--transition-base);
}

.portfolio-item:hover .portfolio-placeholder i {
    opacity: 0.8;
    transform: scale(1.1);
}

/* Kropki nawigacji zdjęć w karcie */
.portfolio-image-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.portfolio-item:hover .portfolio-image-dots {
    opacity: 1;
}

.portfolio-image-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.portfolio-image-dots span.active {
    background: var(--primary);
    transform: scale(1.2);
}

.portfolio-image-dots span:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Badge kategorii - zawsze widoczny w rogu */
.portfolio-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.35rem 0.9rem;
    background: rgba(14, 165, 233, 0.9);
    border-radius: 20px;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Overlay z informacjami - pojawia się przy hover */
.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.5rem;
    background: rgba(5, 8, 16, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: all var(--transition-base);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.portfolio-client {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.portfolio-tags span {
    padding: 0.3rem 0.7rem;
    background: rgba(139, 92, 246, 0.25);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 15px;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 500;
}

.portfolio-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    background: rgba(14, 165, 233, 0.15);
    border: 1px solid rgba(14, 165, 233, 0.4);
    border-radius: 25px;
    transition: all var(--transition-fast);
}

.portfolio-action:hover {
    background: rgba(14, 165, 233, 0.25);
    border-color: var(--primary);
}

.portfolio-action i {
    transition: transform var(--transition-fast);
}

.portfolio-item:hover .portfolio-action i {
    transform: translateX(4px);
}

/* Projects CTA */
.projects-cta {
    margin-top: 4rem;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    text-align: center;
}

.projects-cta-content h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.projects-cta-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.projects-cta .btn {
    display: inline-flex;
}

@media (max-width: 768px) {
    .projects-cta {
        padding: 2rem;
        margin-top: 3rem;
    }

    .projects-cta-content h3 {
        font-size: 1.4rem;
    }

    .projects-cta-content p {
        font-size: 1rem;
    }
}

/* ========================================
   Project Modal
   ======================================== */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 8, 16, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.project-modal.active {
    opacity: 1;
    visibility: visible;
}

.project-modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform var(--transition-base);
}

.project-modal.active .project-modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 10;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.8);
    transform: rotate(90deg);
}

/* Zdjęcie na górze modala */
.modal-image-section {
    width: 100%;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    background: var(--bg-darker);
}

.modal-image-section img {
    width: 100%;
    height: auto;
    display: block;
}

/* Placeholder w modalu */
.modal-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

.modal-placeholder .placeholder-icon {
    width: 120px;
    height: 120px;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-placeholder .placeholder-icon i {
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.6;
}

/* Szczegóły w modalu */
.modal-details {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.modal-header .modal-category {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    background: rgba(14, 165, 233, 0.15);
    border-radius: 20px;
    color: var(--primary-light);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.modal-header h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.modal-header .modal-client {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-style: italic;
}

.modal-description p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

.modal-results {
    background: rgba(14, 165, 233, 0.05);
    border-radius: 12px;
    padding: 1.25rem;
    border-left: 3px solid var(--primary);
}

.modal-results h4 {
    color: var(--primary-light);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.modal-results ul {
    list-style: none;
}

.modal-results li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.9rem;
}

.modal-results li:last-child {
    margin-bottom: 0;
}

.modal-results i {
    color: var(--primary);
    margin-top: 3px;
    font-size: 0.85rem;
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.modal-tags .tag {
    padding: 0.3rem 0.75rem;
    font-size: 0.75rem;
}

.modal-link {
    flex-shrink: 0;
}

/* ========================================
   Portfolio Responsive
   ======================================== */
@media (max-width: 1200px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .portfolio-item {
        aspect-ratio: 16 / 10;
    }

    .portfolio-category {
        top: 0.75rem;
        left: 0.75rem;
        padding: 0.3rem 0.7rem;
        font-size: 0.65rem;
    }

    .portfolio-overlay {
        padding: 1.25rem;
    }

    .portfolio-title {
        font-size: 1.1rem;
    }

    .portfolio-client {
        font-size: 0.85rem;
    }

    .project-modal {
        padding: 0.75rem;
    }

    .project-modal-content {
        border-radius: 16px;
        max-height: 95vh;
    }

    .modal-image-section {
        border-radius: 16px 16px 0 0;
    }

    .modal-details {
        padding: 1.5rem;
    }

    .modal-header h2 {
        font-size: 1.3rem;
    }

    .modal-close {
        top: 0.75rem;
        right: 0.75rem;
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .modal-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .modal-link {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .portfolio-title {
        font-size: 1rem;
    }

    .portfolio-tags span {
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
    }

    .portfolio-action {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }

    .modal-details {
        padding: 1.25rem;
        gap: 1rem;
    }

    .modal-results {
        padding: 1rem;
    }

    .modal-results li {
        font-size: 0.85rem;
    }
}

/* Sekcja Opinie */
.testimonials {
    padding: 20px;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 10%;
    right: -20%;
    width: 850px;
    height: 850px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 14s ease-in-out infinite;
    z-index: 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    transition: all var(--transition-base);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.testimonial-quote {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
    color: rgba(14, 165, 233, 0.15);
    line-height: 1;
}

.testimonial-text {
    color: var(--text-secondary);
    line-height: 1.9;
    font-size: 1.05rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.author-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.05rem;
}

.author-position {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.testimonial-rating {
    display: flex;
    gap: 0.3rem;
}

.testimonial-rating i {
    color: #fbbf24;
    font-size: 1rem;
}

/* Ulepszenia stopki */
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-tagline {
    color: var(--primary-light);
    margin-top: 0.5rem;
    font-style: italic;
}

.footer-services {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-services h4 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-services p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-note {
    color: var(--primary-light);
    font-style: italic;
    margin-top: 0.5rem;
}

/* Statystyki Hero - 4 kolumny */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    justify-content: center;
    margin-top: 5rem;
}

/* Dostosowania responsywne */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

@media (max-width: 1024px) {
    .journey-item {
        grid-template-columns: 100px 1fr;
        gap: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .projects-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .journey-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .journey-year {
        width: fit-content;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-card,
    .testimonial-card {
        padding: 2rem;
    }

    .hero-stats {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    /* Responsywność slidera technologii - przeniesiona do Fix 5 */
}

@media (max-width: 480px) {
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-header {
        flex-direction: column;
        gap: 1rem;
    }

    .project-category {
        align-self: flex-start;
    }

    /* Slider technologii mobile - przeniesiona do Fix 5 */
}

/* Stan ładowania dla obrazów */
img.revealed {
    animation: fadeInImage 0.6s ease-in-out;
}

@keyframes fadeInImage {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Płynne przejścia dla wszystkich interaktywnych elementów */
a, button, .btn, .card, .tag {
    transition: all var(--transition-base);
}

/* Style dla druku */
@media print {
    .navbar,
    .particles-bg,
    .hero-gradient,
    .scroll-indicator,
    .contact-form,
    .floating-elements {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .container {
        max-width: 100%;
    }
}

/* Dodatkowe efekty animacji */
.project-card {
    animation: fadeInUp 0.6s ease-out backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efekt świecenia przy najechaniu */
.project-card:hover {
    box-shadow:
        var(--shadow-lg),
        0 0 30px rgba(14, 165, 233, 0.15);
}

/* Animowane podkreślenie dla linków */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-2);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Animacje nagłówków sekcji */
.section-badge {
    display: inline-block;
    animation: slideInDown 0.6s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    animation: fadeIn 0.8s ease-out 0.2s backwards;
}

.section-subtitle {
    animation: fadeIn 0.8s ease-out 0.4s backwards;
}

/* ========================================
   Mobile Responsiveness Fixes (iPhone)
   ======================================== */

/* Fix 1: Hero section - badge i title zbyt wysoko na mobile */
@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding-top: 100px;
        padding-bottom: 40px;
    }

    .hero-content {
        padding-top: 20px;
    }

    .hero-title {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .hero-typed-wrapper {
        font-size: clamp(1.2rem, 5vw, 1.8rem);
    }

    .hero-subtitle {
        height: auto;
        min-height: auto;
        margin-bottom: 2rem;
    }
}

/* Fix 2: Hero stats - siatka 2x2 na mobile */
@media (max-width: 768px) {
    .hero-stats {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem !important;
        margin-top: 2rem;
    }

    .hero-stats .stat-number {
        font-size: 2.5rem;
    }

    .hero-stats .stat-label {
        font-size: 0.85rem;
    }

    .scroll-indicator {
        display: none;
    }
}

/* Fix 3: Timeline grid - karty w kolumnie na mobile */
@media (max-width: 768px) {
    .timeline-row {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .timeline-item {
        width: 100%;
        max-width: 100%;
    }

    .timeline-arrow {
        display: none;
    }
}

/* Fix 4: Offer tabs - pokazuj tekst na mobile */
@media (max-width: 900px) {
    .offer2-tabs {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .offer2-tab {
        flex: 0 1 auto;
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }

    .offer2-tab span {
        display: inline !important;
    }

    .offer2-tab i {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .offer2-tabs {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .offer2-tab {
        padding: 0.6rem 0.5rem;
        font-size: 0.7rem;
        justify-content: center;
    }

    .offer2-tab span {
        display: inline !important;
        font-size: 0.65rem;
    }

    .offer2-tab i {
        font-size: 0.9rem;
    }
}

/* Fix 5: Tech slider i icons grid na mobile */
@media (max-width: 768px) {
    .tech-slider-container {
        overflow: hidden;
        position: relative;
        padding-left: 50px;
        padding-right: 50px;
    }

    .tech-slides-wrapper {
        overflow: hidden;
        padding: 0;
        width: 100%;
    }

    .tech-slides {
        overflow: visible;
    }

    .tech-slide {
        min-width: 100%;
        width: 100%;
        flex: 0 0 100%;
        overflow: hidden;
    }

    .tech-category-section {
        padding: 1.5rem;
        margin: 0;
        overflow: hidden;
        max-width: 100%;
        box-sizing: border-box;
    }

    .tech-icons-grid {
        padding-top: 20px !important;
        margin-top: 0 !important;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.75rem;
        overflow: hidden;
        max-width: 100%;
        box-sizing: border-box;
    }

    .tech-icon-item {
        min-width: 0;
        max-width: 100%;
    }

    .tech-icon-box {
        width: 55px;
        height: 55px;
        font-size: 1.6rem;
    }

    .tech-name {
        font-size: 0.7rem;
        word-break: break-word;
        text-align: center;
        max-width: 70px;
    }

    .slider-nav {
        width: 40px;
        height: 40px;
    }

    .tech-tooltip {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .tech-slider-container {
        padding-left: 40px;
        padding-right: 40px;
    }

    .tech-slides-wrapper {
        padding: 0;
    }

    .tech-category-section {
        padding: 1rem;
    }

    .tech-icons-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.5rem;
    }

    .tech-icon-box {
        width: 45px;
        height: 45px;
        font-size: 1.4rem;
    }

    .tech-name {
        font-size: 0.6rem;
        max-width: 60px;
    }

    .slider-nav {
        width: 35px;
        height: 35px;
    }
}
