:root {
    --primary-color: #2a2a72;
    --secondary-color: #009ffd;
    --accent-color: #00ff88;
    --text-color: #ffffff;
    --background-color: #0a0a0a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: var(--secondary-color) var(--background-color);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    height: 80px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.logo:hover {
    background: var(--secondary-color);
    color: var(--background-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 159, 253, 0.3);
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 2rem;
    position: relative;
    transition: color 0.3s ease;
}

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

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

/* Sections padding for fixed navbar */
section {
    scroll-margin-top: 100px;
    padding-top: 100px;
    margin-top: -100px;
}

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

.hero-content {
    text-align: center;
    z-index: 2;
}

.glitch {
    font-size: 5rem;
    font-weight: bold;
    text-transform: uppercase;
    position: relative;
    text-shadow: 0.05em 0 0 var(--accent-color),
        -0.05em -0.05em 0 var(--secondary-color);
    animation: glitch 1s infinite;
}

@keyframes glitch {
    0% {
        text-shadow: 0.05em 0 0 var(--accent-color),
            -0.05em -0.05em 0 var(--secondary-color);
    }

    14% {
        text-shadow: 0.05em 0 0 var(--accent-color),
            -0.05em -0.05em 0 var(--secondary-color);
    }

    15% {
        text-shadow: -0.05em -0.025em 0 var(--accent-color),
            0.025em 0.025em 0 var(--secondary-color);
    }

    49% {
        text-shadow: -0.05em -0.025em 0 var(--accent-color),
            0.025em 0.025em 0 var(--secondary-color);
    }

    50% {
        text-shadow: 0.025em 0.05em 0 var(--accent-color),
            0.05em 0 0 var(--secondary-color);
    }

    99% {
        text-shadow: 0.025em 0.05em 0 var(--accent-color),
            0.05em 0 0 var(--secondary-color);
    }

    100% {
        text-shadow: -0.025em 0 0 var(--accent-color),
            -0.025em -0.025em 0 var(--secondary-color);
    }
}

.subtitle {
    font-size: 1.5rem;
    margin: 1rem 0 2rem;
    color: var(--secondary-color);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.cta-primary,
.cta-secondary {
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--text-color);
}

.cta-secondary {
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

.cta-primary:hover,
.cta-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Hero Background */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.grid {
    width: 100%;
    height: 100%;
    background:
        linear-gradient(transparent 0%, rgba(42, 42, 114, 0.1) 2%, transparent 3%),
        linear-gradient(90deg, transparent 0%, rgba(42, 42, 114, 0.1) 2%, transparent 3%);
    background-size: 50px 50px;
    animation: grid-animation 20s linear infinite;
}

@keyframes grid-animation {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0);
    }

    100% {
        transform: perspective(500px) rotateX(60deg) translateY(50px);
    }
}

/* Services Section */
.services {
    padding: 5rem 10%;
    background: var(--background-color);
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.service-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-card i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* About Section */
.about {
    padding: 5rem 10%;
    background: var(--background-color);
    margin-bottom: 4rem;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    transition: transform 0.3s ease;
}

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

.number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-color);
}

/* Contact Section */
.contact {
    padding: 5rem 10%;
    background: linear-gradient(to bottom, var(--background-color) 60%, #000 100%);
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-info {
    text-align: center;
    padding: 2rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.contact-info p {
    font-size: 1.2rem;
    margin: 1rem 0;
}

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

.social-icon {
    color: var(--text-color);
    font-size: 1.8rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 2rem;
    background: #1a1a1a;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.company-info {
    text-align: left;
    padding: 0 1rem;
}

.company-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.company-info p {
    margin: 0.5rem 0;
    color: var(--text-color);
    opacity: 0.8;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    margin-top: 1rem;
    text-align: center;
}

@media (min-width: 768px) {
    .company-info {
        text-align: left;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 5%;
    }

    .nav-links {
        display: none;
    }

    .glitch {
        font-size: 3rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

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

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 10px;
    background-color: var(--background-color);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 5px;
}

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

.tech-stack {
    margin-top: 3rem;
    text-align: center;
}

.tech-stack h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 120px;
}

.tech-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.tech-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.tech-item span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .tech-grid {
        gap: 1rem;
    }

    .tech-item {
        width: 100px;
        padding: 0.8rem;
    }

    .tech-icon {
        width: 32px;
        height: 32px;
    }

    .tech-item span {
        font-size: 0.8rem;
    }
}

/* Sekcja Realizacje */
.projects {
    padding: 5rem 10%;
    background: var(--background-color);
}

.projects h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

.project-card h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.project-card p {
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-link {
    display: inline-flex;
    align-items: center;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.project-link i {
    margin-left: 8px;
    font-size: 0.9em;
}

.project-link:hover {
    color: var(--secondary-color);
}

.project-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.app-store-badge {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.app-store-badge img {
    transition: transform 0.3s ease;
}

.app-store-badge img:hover {
    transform: scale(1.05);
}

.app-description {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.app-description h4 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.app-description p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.5;
}