/* Reset i podstawowe style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Kolory Miraculous */
    --ladybug-red: #ff0040;
    --ladybug-dark-red: #cc0033;
    --cat-green: #00ff41;
    --cat-dark-green: #00cc33;
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --card-bg: #1a1a1a;
    --text-light: #ffffff;
    --text-gray: #cccccc;
    --text-dark-gray: #888888;
    --border-color: #333333;
    --shadow-color: rgba(0, 0, 0, 0.5);
    --gradient-red: linear-gradient(45deg, var(--ladybug-red), var(--ladybug-dark-red));
    --gradient-green: linear-gradient(45deg, var(--cat-green), var(--cat-dark-green));
    --gradient-dark: linear-gradient(135deg, var(--dark-bg), var(--darker-bg));
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    background: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Smooth transition for blur effect */
main, .nav {
    transition: filter 0.3s ease;
}

/* Particles Background */
#particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--ladybug-red);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    opacity: 0.7;
}

.particle:nth-child(even) {
    background: var(--cat-green);
    animation-delay: -3s;
}

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav.scrolled {
    background: rgba(10, 10, 10, 0.98);
    box-shadow: 0 2px 20px rgba(255, 0, 64, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Lato', monospace;
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--text-light);
}

.logo img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 0 10px var(--ladybug-red));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-red);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--ladybug-red);
    text-shadow: 0 0 10px var(--ladybug-red);
}

.ladybug-btn {
    background: var(--gradient-red);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.ladybug-btn::after {
    display: none;
}

.ladybug-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 0, 64, 0.4);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    margin: 3px 0;
    transition: 0.3s;
}

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

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

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

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: var(--gradient-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255, 0, 64, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(0, 255, 65, 0.1) 0%, transparent 50%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-family: 'Lato', monospace;
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1;
}

.miraculous-text {
    background: var(--gradient-red);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    text-shadow: 0 0 30px rgba(255, 0, 64, 0.5);
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-gray);
    display: block;
    margin-top: 0.5rem;
}

.hero-description {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--text-gray);
}

.highlight-red {
    color: var(--ladybug-red);
    font-weight: bold;
}

.highlight-green {
    color: var(--cat-green);
    font-weight: bold;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-ladybug {
    background: var(--gradient-red);
    color: white;
}

.btn-chat-noir {
    background: var(--gradient-green);
    color: white;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 0, 64, 0.3);
}

.btn-chat-noir:hover {
    box-shadow: 0 10px 30px rgba(0, 255, 65, 0.3);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.miraculous-symbol {
    font-size: 4rem;
    position: absolute;
    animation: rotate 10s linear infinite;
}

.ladybug-symbol {
    top: -50px;
    left: 50px;
    color: var(--ladybug-red);
    text-shadow: 0 0 20px var(--ladybug-red);
}

.cat-symbol {
    bottom: -50px;
    right: 50px;
    color: var(--cat-green);
    text-shadow: 0 0 20px var(--cat-green);
    animation-direction: reverse;
}

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

.code-animation {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.code-line {
    font-family: 'Courier New', monospace;
    color: var(--cat-green);
    margin: 0.5rem 0;
    opacity: 0;
    animation: typewriter 2s ease-in-out forwards;
}

.code-line:nth-child(2) {
    animation-delay: 1s;
}

.code-line:nth-child(3) {
    animation-delay: 2s;
}

@keyframes typewriter {
    from { 
        opacity: 0;
        transform: translateX(20px);
    }
    to { 
        opacity: 1;
        transform: translateX(0);
    }
}

/* Section Styling */
section {
    padding: 6rem 0;
    position: relative;
    z-index: 3;
}

.section-title {
    font-family: 'Lato', monospace;
    font-size: 3rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-light);
}

/* Portfolio Section */
.portfolio {
    background: var(--darker-bg);
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.7rem 1.5rem;
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-light);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-red);
    border-color: var(--ladybug-red);
    transform: translateY(-2px);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 0, 64, 0.2);
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.project-description {
    color: var(--text-gray);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    background: var(--gradient-green);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dark-gray);
    font-size: 0.9rem;
}

.featured-badge {
    background: var(--gradient-red);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
}

/* About Section */
.about {
    background: var(--dark-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-family: 'Lato', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.about-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-gray);
}

.skills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.skill-item {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.ladybug-skill {
    border-left: 4px solid var(--ladybug-red);
}

.cat-skill {
    border-left: 4px solid var(--cat-green);
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.skill-item h3 {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.skill-item p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.stat-number {
    display: block;
    font-family: 'Lato', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--ladybug-red);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-gray);
    font-weight: 600;
}

/* Enhanced About Section */
.about-text {
    max-width: none;
}

.about-intro {
    margin-bottom: 2rem;
}

.about-intro p {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-gray);
}

.specializations {
    margin-bottom: 2rem;
}

.specializations h3 {
    color: var(--text-light);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.spec-item:hover {
    transform: translateY(-2px);
    border-color: var(--cat-green);
    box-shadow: 0 5px 20px rgba(0, 255, 65, 0.2);
}

.spec-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.spec-item span {
    color: var(--text-gray);
    font-weight: 500;
}

.about-philosophy {
    margin-bottom: 2rem;
}

.about-philosophy p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.why-choose {
    margin-bottom: 2rem;
}

.why-choose h3 {
    color: var(--text-light);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.why-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.8rem;
}

.why-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem;
    background: var(--darker-bg);
    border-radius: 8px;
    color: var(--text-gray);
    font-weight: 500;
    transition: all 0.3s ease;
}

.why-item:hover {
    background: var(--card-bg);
    transform: translateX(5px);
}

.about-cta {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.about-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 0, 64, 0.05), rgba(0, 255, 65, 0.05));
    z-index: 1;
}

.about-cta p {
    position: relative;
    z-index: 2;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.about-cta p:last-child {
    margin-bottom: 0;
}

.final-call {
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    color: var(--text-light) !important;
}

/* Reviews Section - Complete */
.reviews {
    background: var(--darker-bg);
}

.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.review-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    position: relative;
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 255, 65, 0.1);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.review-info h4 {
    color: var(--text-light);
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.review-company {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.review-rating {
    display: flex;
    gap: 0.2rem;
    margin-bottom: 1rem;
}

.star {
    color: var(--cat-green);
    font-size: 1.2rem;
}

.review-text {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-style: italic;
}

.review-project {
    color: var(--ladybug-red);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Contact Section - Complete */
.contact {
    background: var(--dark-bg);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 0, 64, 0.05), rgba(0, 255, 65, 0.05));
    z-index: 1;
}

.contact .container {
    position: relative;
    z-index: 2;
}

.contact-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.contact-text h3 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.contact-text p {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.contact-subtitle {
    font-size: 1rem;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.miraculous-sparkle {
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(180deg); }
}

.contact-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.contact-orb {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    animation: float-orb 3s ease-in-out infinite;
}

.ladybug-orb {
    background: var(--gradient-red);
    animation-delay: 0s;
}

.cat-orb {
    background: var(--gradient-green);
    animation-delay: 1.5s;
}

.contact-orb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(255, 0, 64, 0.5);
}

@keyframes float-orb {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.contact-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border: 2px solid var(--ladybug-red);
    border-radius: 50%;
    animation: pulse-ring 4s ease-in-out infinite;
}

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

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.contact-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.contact-card:hover::before {
    left: 100%;
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--ladybug-red);
    box-shadow: 0 15px 35px rgba(255, 0, 64, 0.2);
}

.discord-card:hover {
    border-color: var(--cat-green);
    box-shadow: 0 15px 35px rgba(0, 255, 65, 0.2);
}

.contact-card:active {
    transform: translateY(-2px);
}

.contact-icon {
    margin-bottom: 1rem;
}

.icon-bg {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.ladybug-bg {
    background: var(--gradient-red);
}

.cat-bg {
    background: var(--gradient-green);
}

.contact-card:hover .icon-bg {
    transform: scale(1.1);
}

.contact-info {
    position: relative;
}

.contact-info h4 {
    color: var(--text-light);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-value {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.copy-hint {
    color: var(--text-dark-gray);
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-card:hover .copy-hint {
    opacity: 1;
    color: var(--ladybug-red);
}

.discord-card:hover .copy-hint {
    color: var(--cat-green);
}

.contact-sparkles {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
}

.sparkle {
    width: 8px;
    height: 8px;
    background: var(--cat-green);
    border-radius: 50%;
    opacity: 0;
    animation: sparkle-float 2s ease-in-out infinite;
}

.sparkle:nth-child(1) {
    animation-delay: 0s;
}

.sparkle:nth-child(2) {
    animation-delay: 0.5s;
}

.sparkle:nth-child(3) {
    animation-delay: 1s;
}

.contact-card:hover .sparkle {
    opacity: 1;
}

@keyframes sparkle-float {
    0%, 100% { transform: translateY(0px); opacity: 0; }
    50% { transform: translateY(-10px); opacity: 1; }
}

.contact-message {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.contact-message p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin: 0;
}

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

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--ladybug-red), var(--cat-green), transparent);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.footer-logo span {
    font-family: 'Lato', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-light);
}

.footer-tagline {
    color: var(--ladybug-red);
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
}

.footer-description {
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-section h4 {
    color: var(--text-light);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--ladybug-red);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.contact-item .contact-icon {
    width: 20px;
    text-align: center;
}

.footer-social {
    text-align: center;
}

.footer-social h4 {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-gray);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-link.discord:hover {
    border-color: #5865f2;
    color: #5865f2;
}

.social-link.twitter:hover {
    border-color: #1da1f2;
    color: #1da1f2;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.footer-copyright p {
    color: var(--text-gray);
    margin: 0;
    font-size: 0.9rem;
}

.footer-motto {
    color: var(--ladybug-red);
    font-weight: 600;
    margin-top: 0.5rem;
}

.footer-tech {
    text-align: right;
}

.footer-tech p {
    color: var(--text-gray);
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
}

.tech-icons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.tech-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.tech-icon:hover {
    transform: scale(1.1);
    border-color: var(--ladybug-red);
}

.tech-icon svg {
    width: 20px;
    height: 20px;
}

.tech-icon[title="React"]:hover svg {
    filter: drop-shadow(0 0 10px #61dafb);
}

.tech-icon[title="JavaScript"]:hover svg {
    filter: drop-shadow(0 0 10px #f7df1e);
}

.tech-icon[title="Node.js"]:hover svg {
    filter: drop-shadow(0 0 10px #339933);
}

.tech-icon[title="CSS3"]:hover svg {
    filter: drop-shadow(0 0 10px #1572b6);
}

.tech-icon[title="HTML5"]:hover svg {
    filter: drop-shadow(0 0 10px #e34f26);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    /* Navigation Mobile */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .nav-link {
        font-size: 1.2rem;
        padding: 1rem 2rem;
    }
    
    .hamburger {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        z-index: 1001;
    }
    
    .hamburger span {
        width: 25px;
        height: 3px;
        background: var(--text-light);
        margin: 3px 0;
        transition: 0.3s;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    /* Hero Mobile */
    .hero {
        min-height: 100vh;
        padding: 80px 0 40px;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .hero-visual {
        order: -1;
        scale: 0.8;
    }
    
    /* Portfolio Mobile */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-card {
        margin: 0 auto;
        max-width: 100%;
    }
    
    .portfolio-filters {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .filter-btn {
        flex: 1;
        min-width: 100px;
        font-size: 0.9rem;
        padding: 0.8rem 1rem;
    }
    
    /* About Mobile */
    .about-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        order: 2; /* Przenosi stats na koniec */
    }
    
    .about-text {
        order: 1; /* Tekst najpierw */
    }
    
    .skills {
        grid-template-columns: 1fr;
    }
    
    .spec-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .why-list {
        grid-template-columns: 1fr;
    }
    
    /* Reviews Mobile */
    .reviews-container {
        grid-template-columns: 1fr;
    }
    
    /* Contact Mobile */
    .contact-methods {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-hero {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .contact-visual {
        order: -1;
        scale: 0.8;
    }
    
    /* Footer Mobile */
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-tech {
        text-align: center;
    }
    
    .social-links {
        gap: 1rem;
    }
    
    .social-link {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    /* Extra small devices */
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .project-card {
        border-radius: 15px;
    }
    
    .spec-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        order: 2; /* Zachowuje kolejność na małych ekranach */
    }
    
    .about-text {
        order: 1;
    }
    
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-logo span {
        font-size: 1.2rem;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .social-link {
        width: 200px;
        justify-content: center;
    }
    
    .tech-icons {
        justify-content: center;
    }
}

/* Extra small devices - 320px and below */
@media (max-width: 320px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .about-text h2 {
        font-size: 1.8rem;
    }
    
    .contact-text h3 {
        font-size: 1.8rem;
    }
    
    .modal-content {
        width: 100%;
        margin: 0;
        border-radius: 0;
        max-height: 100vh;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-title {
        font-size: 1.3rem;
    }
    
    .btn {
        font-size: 0.9rem;
        padding: 0.7rem 1.2rem;
    }
    
    .nav-link {
        font-size: 1.1rem;
    }
    
    .filter-btn {
        font-size: 0.8rem;
        padding: 0.6rem 0.8rem;
    }
}

/* Landscape orientation fixes */
@media (orientation: landscape) and (max-height: 500px) {
    .hero {
        min-height: 100vh;
        padding: 60px 0 20px;
    }
    
    .hero-content {
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-visual {
        scale: 0.6;
    }
    
    .modal-content {
        margin: 1rem auto;
        max-height: 90vh;
    }
}

/* Print styles */
@media print {
    * {
        background: white !important;
        color: black !important;
    }
    
    .nav, .hamburger, .modal, .particles-container, .contact-orb {
        display: none !important;
    }
    
    .hero {
        page-break-after: always;
    }
    
    .section-title {
        border-bottom: 2px solid black;
        padding-bottom: 0.5rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --text-light: #ffffff;
        --text-gray: #cccccc;
        --text-dark-gray: #999999;
        --border-color: #555555;
        --card-bg: #222222;
        --dark-bg: #000000;
        --darker-bg: #000000;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
    
    .project-card, .review-card, .contact-card {
        border: 2px solid var(--border-color);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .particle {
        animation: none;
    }
    
    .miraculous-symbol {
        animation: none;
    }
    
    .contact-orb {
        animation: none;
    }
    
    .sparkle {
        animation: none;
    }
}

/* Focus states and accessibility */
*:focus {
    outline: 2px solid var(--ladybug-red);
    outline-offset: 2px;
}

.nav-link:focus {
    background: rgba(255, 0, 64, 0.1);
    border-radius: 5px;
}

.btn:focus {
    box-shadow: 0 0 0 3px rgba(255, 0, 64, 0.3);
}

.filter-btn:focus {
    box-shadow: 0 0 0 3px rgba(255, 0, 64, 0.3);
}

.project-card:focus {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 0, 64, 0.2);
}

.contact-card:focus {
    transform: translateY(-5px);
    border-color: var(--ladybug-red);
    box-shadow: 0 15px 35px rgba(255, 0, 64, 0.2);
}

.modal-content:focus {
    outline: none;
}

/* Skip link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--ladybug-red);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 3px;
    font-weight: bold;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Better button states */
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn:disabled:hover {
    transform: none;
}

/* Loading state */
.loading {
    opacity: 0.7;
    cursor: wait;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--text-light);
    border-top: 2px solid var(--ladybug-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Better error states */
.error {
    color: var(--ladybug-red);
    background: rgba(255, 0, 64, 0.1);
    border: 1px solid var(--ladybug-red);
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
}

/* Success states */
.success {
    color: var(--cat-green);
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid var(--cat-green);
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
}

/* Modal - Improved Design */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    overflow-y: auto; /* Pozwala na scroll w modalu */
    padding: 1rem 0; /* Dodaje padding dla lepszego wyświetlania */
}

.modal-content {
    background: var(--card-bg);
    margin: 2rem auto;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    width: 90%;
    max-width: 900px;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
    max-height: 90vh; /* Ogranicza wysokość całego modala */
    overflow: hidden; /* Blokuje scroll kontenera */
    box-shadow: 0 20px 60px rgba(255, 0, 64, 0.2);
    display: flex;
    flex-direction: column;
}

.modal-content-body {
    padding: 2rem;
    overflow-y: auto; /* Tylko zawartość się przewija */
    flex: 1; /* Zajmuje pozostałą przestrzeń */
    -webkit-overflow-scrolling: touch; /* Smooth scroll na mobile */
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-header {
    position: relative;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, var(--darker-bg), var(--card-bg));
    flex-shrink: 0; /* Nie zmniejsza się */
}

.close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: var(--text-gray);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--darker-bg);
    border: none;
    z-index: 10;
}

.close:hover {
    color: var(--ladybug-red);
    background: var(--card-bg);
    transform: scale(1.1);
}

.modal-title {
    font-family: 'Lato', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--text-light);
    margin: 0 0 1rem 0;
    padding-right: 60px;
    line-height: 1.2;
}

.modal-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 0;
    flex-wrap: wrap;
}

.modal-meta span {
    color: var(--text-gray);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-meta strong {
    color: var(--text-light);
}

.modal-body {
    padding: 0; /* Usuwa padding - jest już w modal-content-body */
    flex: 1; /* Zajmuje pozostałą przestrzeń */
    overflow: hidden; /* Blokuje scroll na tym poziomie */
    display: flex;
    flex-direction: column;
}

.modal-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.modal-section {
    margin-bottom: 2rem;
}

.modal-section h3 {
    color: var(--text-light);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-section h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--gradient-red);
    border-radius: 2px;
}

.modal-section p {
    color: var(--text-gray);
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.modal-section ul {
    list-style: none;
    padding: 0;
}

.modal-section li {
    color: var(--text-gray);
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.modal-section li:last-child {
    border-bottom: none;
}

.modal-section li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--cat-green);
    font-weight: bold;
    font-size: 1.2rem;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--darker-bg);
    border-radius: 50%;
    border: 2px solid var(--cat-green);
}

.modal-section li:hover {
    background: var(--darker-bg);
    padding-left: 2.5rem;
}

.modal-tech {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.modal-tech .tag {
    background: var(--darker-bg);
    color: var(--cat-green);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid var(--cat-green);
    transition: all 0.3s ease;
}

.modal-tech .tag:hover {
    background: var(--cat-green);
    color: var(--darker-bg);
    transform: translateY(-2px);
}

.modal-testimonial {
    background: var(--darker-bg);
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid var(--ladybug-red);
    font-style: italic;
    color: var(--text-gray);
    font-size: 1.1rem;
    line-height: 1.8;
    position: relative;
    margin-top: 1rem;
}

.modal-testimonial::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 3rem;
    color: var(--ladybug-red);
    font-style: normal;
}

.modal-testimonial::after {
    content: '"';
    position: absolute;
    bottom: -20px;
    right: 20px;
    font-size: 3rem;
    color: var(--ladybug-red);
    font-style: normal;
}

.modal-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.modal-links a {
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 150px;
    justify-content: center;
}

.modal-links a:first-child {
    background: var(--gradient-red);
    color: white;
}

.modal-links a:last-child {
    background: var(--gradient-green);
    color: white;
}

.modal-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Modal Responsive */
@media (max-width: 768px) {
    .modal {
        padding: 0.5rem 0;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem auto;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .modal-title {
        font-size: 1.8rem;
        padding-right: 50px;
    }
    
    .modal-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .modal-content-body {
        padding: 1.5rem;
        overflow-y: auto; /* Scroll także na tablecie */
        -webkit-overflow-scrolling: touch;
    }
    
    .modal-image {
        height: 250px;
    }
    
    .modal-section h3 {
        font-size: 1.2rem;
    }
    
    .modal-section p {
        font-size: 1rem;
    }
    
    .modal-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .modal-links a {
        width: 100%;
    }
    
    .close {
        top: 0.8rem;
        right: 1rem;
        font-size: 1.8rem;
        width: 35px;
        height: 35px;
    }
    
    .modal-progress {
        height: 3px;
    }
}

@media (max-width: 480px) {
    .modal {
        padding: 0.2rem 0;
    }
    
    .modal-content {
        width: 98%;
        margin: 0.5rem auto;
        border-radius: 15px;
        max-height: 98vh;
    }
    
    .modal-header {
        padding: 1rem 1rem 0.8rem;
    }
    
    .modal-title {
        font-size: 1.5rem;
        padding-right: 45px;
        line-height: 1.3;
    }
    
    .modal-content-body {
        padding: 1rem;
        overflow-y: auto; /* Scroll także na mobile */
        -webkit-overflow-scrolling: touch;
    }
    
    .modal-image {
        height: 200px;
        border-radius: 10px;
    }
    
    .modal-section {
        margin-bottom: 1.5rem;
    }
    
    .modal-section h3 {
        font-size: 1.1rem;
    }
    
    .modal-section p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .modal-tech .tag {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
    
    .modal-testimonial {
        padding: 1.5rem;
        font-size: 1rem;
    }
    
    .close {
        top: 0.5rem;
        right: 0.8rem;
        font-size: 1.5rem;
        width: 30px;
        height: 30px;
    }
    
    .modal-progress {
        height: 2px;
    }
}

/* Copy Notification Popup */
.copy-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    background: var(--gradient-red);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(255, 0, 64, 0.3);
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    pointer-events: none;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.copy-notification.show {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notification-icon {
    font-size: 1.2rem;
    animation: bounce 0.6s ease-in-out;
}

.notification-text {
    font-size: 1rem;
    font-weight: 600;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Mobile responsive for copy notification */
@media (max-width: 768px) {
    .copy-notification {
        top: 80px; /* Pod nawigacją */
        right: 15px;
        left: 15px;
        transform: translateY(-100px);
        border-radius: 20px;
        padding: 1rem 1.2rem;
        font-size: 0.95rem;
        text-align: center;
        justify-content: center;
    }
    
    .copy-notification.show {
        transform: translateY(0);
    }
    
    .notification-text {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .copy-notification {
        top: 70px;
        right: 10px;
        left: 10px;
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
        border-radius: 15px;
    }
    
    .notification-text {
        font-size: 0.9rem;
    }
    
    .notification-icon {
        font-size: 1.1rem;
    }
}

/* Modal Progress Bar */
.modal-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-red);
    border-radius: 0 0 2px 2px;
    transition: width 0.1s ease;
    z-index: 11;
}
