:root {
    --bg-color: #050505;
    /* Prawie czarny */
    --surface-color: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --accent-primary: #a855f7;
    /* Charakterystyczny fiolet */
    --accent-glow: rgba(168, 85, 247, 0.8);
    --border-color: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body,
html {
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    scroll-behavior: smooth;
    cursor: default;
    /* Można by dać customowy, ale zostańmy przy default dla wygody */
}

.card-icon img {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
}

/* Background Effects */
.ambient-glow {
    position: fixed;
    bottom: -20vh;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 40vh;
    background: radial-gradient(ellipse at bottom, rgba(168, 85, 247, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -2;
    pointer-events: none;
}

.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.07) 0%, rgba(0, 0, 0, 0) 60%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -1;
    transition: width 0.3s, height 0.3s;
}

/* Typography */
h1,
h2,
h3 {
    text-transform: uppercase;
    letter-spacing: -2px;
}

.huge-text {
    font-size: clamp(2.5rem, 5.5vw, 7rem);
    font-weight: 900;
    line-height: 0.95;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 20px;
}

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

p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1.1rem;
    font-weight: 300;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
    padding: 30px 0;
}

nav.scrolled {
    padding: 15px 0;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    max-width: 1600px;
    margin: 0 auto;
}

.logo {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

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

.nav-cta {
    color: var(--accent-primary) !important;
}

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

.hamburger .line {
    width: 30px;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 40px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.btn-primary:hover {
    background: transparent;
    color: var(--text-primary);
}

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

.btn-outline:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Layout */
main {
    padding-top: 100px;
}

section {
    padding: 120px 5%;
    max-width: 1600px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-content {
    flex: 1;
    max-width: 800px;
}

.hero-subtitle {
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.hero-desc {
    max-width: 500px;
    margin-bottom: 40px;
    font-size: 1.2rem;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    transform: translateY(-50px);
}

/* Glowing Ring Accent */
.glowing-ring {
    position: relative;
    width: clamp(200px, 25vw, 350px);
    height: clamp(200px, 25vw, 350px);
    border-radius: 50%;
    background: transparent;
    box-shadow: 0 0 60px var(--accent-glow), inset 0 0 40px var(--accent-glow);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: pulse 4s infinite ease-in-out alternate;
}

.glowing-ring::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(45deg, transparent, var(--accent-primary), transparent);
    z-index: -1;
    animation: rotate 6s linear infinite;
}

.inner-circle {
    width: 90%;
    height: 90%;
    background: var(--bg-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    font-weight: 900;
    color: var(--border-color);
}

.hero-logo {
    width: 55%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 15px var(--accent-glow));
    transition: transform 0.4s ease;
}

.glowing-ring:hover .hero-logo {
    transform: scale(1.1);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 40px var(--accent-glow), inset 0 0 20px var(--accent-glow);
    }

    100% {
        transform: scale(1.05);
        box-shadow: 0 0 80px rgba(168, 85, 247, 0.4), inset 0 0 50px rgba(168, 85, 247, 0.6);
    }
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* Portfolio Section */
.section-header {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 80px;
}

.title-line {
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1px;
    /* Aby uzyskać efekt siatki po nałożeniu borderów w css gridzie, ale tu zrobimy prościej */
    background: var(--border-color);
    border: 1px solid var(--border-color);
}

.card {
    background: var(--bg-color);
    padding: 50px 40px;
    transition: background 0.4s ease, transform 0.4s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-primary);
    display: block;
    cursor: pointer;
}

.card:hover {
    background: var(--surface-color);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.card-number {
    font-size: 1rem;
    font-weight: 800;
    color: var(--border-color);
    transition: color 0.4s;
}

.card-icon {
    font-size: 2rem;
    filter: grayscale(100%) opacity(0.5);
    transition: filter 0.4s;
}

.card:hover .card-number {
    color: var(--accent-primary);
}

.card:hover .card-icon {
    filter: none;
}

.card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

/* About Section */
.about {
    text-align: center;
    padding-top: 150px;
    padding-bottom: 150px;
}

.about-text {
    max-width: 700px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.5rem;
    line-height: 1.8;
}

/* Contact */
.contact-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 50px;
}

.minimal-input {
    width: 100%;
    padding: 20px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 300;
    outline: none;
    transition: border-color 0.3s ease;
}

.minimal-input::placeholder {
    color: var(--text-secondary);
}

.minimal-input:focus {
    border-color: var(--accent-primary);
}

/* Footer */
.minimal-footer {
    text-align: center;
    padding: 40px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .huge-text {
        font-size: clamp(3rem, 10vw, 5rem);
    }

    .hero {
        flex-direction: column;
        text-align: left;
        padding-top: 150px;
    }

    .hero-content {
        max-width: 100%;
        width: 100%;
        transform: none;
    }

    .hero-visual {
        max-width: 100%;
        width: 100%;
        transform: none;
        justify-content: center;
    }

    .glowing-ring {
        width: 250px;
        height: 250px;
        margin-top: 50px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        background: var(--bg-color);
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: -1;
    }

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

    .nav-links a {
        font-size: 2rem;
        font-weight: 800;
    }

    .hamburger {
        display: flex;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}