/* ========================================
   koduje.my - Ultra Unique Landing
   Unikalne kolory + Animacje + Efekty WOW
   ======================================== */

:root {
    /* Unikalna paleta kolorów */
    --color-bg: #0a0a0f;
    --color-bg-2: #12121a;
    --color-accent-1: #ff006e;
    /* Neon różowy */
    --color-accent-2: #8338ec;
    /* Fioletowy */
    --color-accent-3: #3a86ff;
    /* Niebieski */
    --color-accent-4: #06ffa5;
    /* Neon zielony */
    --color-text: #ffffff;
    --color-text-muted: rgba(255, 255, 255, 0.6);
    --font-main: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --transition: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global link reset - no underlines */
a,
a:hover,
a:focus,
a:active,
a:visited {
    text-decoration: none !important;
    outline: none;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
}

/* ========================================
   ANIMATED BACKGROUND
   ======================================== */
.bg-animation {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.gradient-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: sphere-move 20s ease-in-out infinite;
}

.sphere-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, var(--color-accent-1), var(--color-accent-2));
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.sphere-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, var(--color-accent-3), var(--color-accent-4));
    bottom: -150px;
    left: -100px;
    animation-delay: -7s;
}

.sphere-3 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--color-accent-2), var(--color-accent-1));
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes sphere-move {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(50px, -50px) scale(1.1);
    }

    50% {
        transform: translate(-30px, 50px) scale(0.9);
    }

    75% {
        transform: translate(-50px, -30px) scale(1.05);
    }
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: grid-fade 4s ease-in-out infinite;
}

@keyframes grid-fade {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* ========================================
   PARTICLES CANVAS
   ======================================== */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    touch-action: none;
    max-width: 100vw;
}

/* ========================================
   NAVIGATION
   ======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-logo {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.nav-logo .bracket {
    color: var(--color-text-muted);
}

.nav-logo .accent {
    background: linear-gradient(135deg, var(--color-accent-1), var(--color-accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s var(--transition);
    text-decoration: none !important;
}

.nav-cta:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-accent-1);
    transform: translateY(-2px);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    padding: 8rem 2rem 4rem;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin-bottom: 3rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 0, 110, 0.1);
    border: 1px solid rgba(255, 0, 110, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-accent-1);
    margin-bottom: 2rem;
    animation: fade-in-up 0.8s var(--transition) 0.2s both;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-accent-1);
    border-radius: 50%;
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 10px var(--color-accent-1);
    }

    50% {
        opacity: 0.5;
        box-shadow: 0 0 20px var(--color-accent-1);
    }
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
}

.hero-title .line {
    display: block;
    animation: fade-in-up 0.8s var(--transition) both;
}

.hero-title .line:nth-child(1) {
    animation-delay: 0.4s;
}

.hero-title .line:nth-child(2) {
    animation-delay: 0.6s;
}

.hero-title .line:nth-child(3) {
    animation-delay: 0.8s;
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-accent-1) 0%, var(--color-accent-2) 50%, var(--color-accent-3) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradient-shift 5s ease infinite;
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--color-text-muted);
    max-width: 550px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
    animation: fade-in-up 0.8s var(--transition) 1s both;
}

.hero-subtitle strong {
    color: var(--color-text);
    font-weight: 600;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    animation: fade-in-up 0.8s var(--transition) 1.2s both;
}

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.1rem 2.5rem;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent-1), var(--color-accent-2));
    color: white;
    box-shadow: 0 10px 40px rgba(255, 0, 110, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 60px rgba(255, 0, 110, 0.5);
}

.btn-glow {
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--color-accent-1), var(--color-accent-2), var(--color-accent-3));
    border-radius: 50px;
    opacity: 0;
    z-index: -1;
    filter: blur(15px);
    transition: opacity 0.3s;
}

.btn-primary:hover .btn-glow {
    opacity: 0.6;
}

.location-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.location-tag svg {
    color: var(--color-accent-4);
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   CODE WINDOW
   ======================================== */
.code-window {
    position: relative;
    width: 100%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    animation: fade-in-up 0.8s var(--transition) 1.4s both, float-window 6s ease-in-out infinite;
    box-shadow:
        0 50px 100px -20px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    margin: 0 auto;
}

@keyframes float-window {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.window-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.window-dots {
    display: flex;
    gap: 0.5rem;
}

.window-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.window-dots span:nth-child(1) {
    background: #ff5f57;
}

.window-dots span:nth-child(2) {
    background: #febc2e;
}

.window-dots span:nth-child(3) {
    background: #28c840;
}

.window-title {
    flex: 1;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.window-content {
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    overflow-x: auto;
    max-width: 100%;
}

.code-line {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.line-num {
    color: rgba(255, 255, 255, 0.2);
    min-width: 1.5rem;
    text-align: right;
    user-select: none;
}

.code .keyword {
    color: #ff79c6;
}

.code .function {
    color: #8be9fd;
}

.code .string {
    color: #f1fa8c;
}

.code .variable {
    color: #50fa7b;
}

.code .property {
    color: #ffb86c;
}

.code .boolean {
    color: #bd93f9;
}

.code .comment {
    color: #6272a4;
}

.cursor-line {
    position: relative;
}

.cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background: var(--color-accent-1);
    margin-left: 0.25rem;
    animation: blink 1s infinite;
    vertical-align: middle;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* ========================================
   FLOATING ELEMENTS
   ======================================== */
.floating-element {
    position: absolute;
    left: var(--x);
    top: var(--y);
    animation: float-card 5s ease-in-out var(--delay) infinite;
}

@keyframes float-card {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

.float-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    transition: all 0.3s;
}

.float-card:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.float-card .icon {
    font-size: 1.5rem;
    font-weight: 700;
}

.float-card .label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.float-card.html .icon {
    color: #e34c26;
}

.float-card.css .icon {
    color: #264de4;
}

.float-card.js .icon {
    color: #f7df1e;
}

.float-card.react .icon {
    color: #61dafb;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact {
    position: relative;
    padding: 8rem 2rem;
    z-index: 2;
    display: flex;
    justify-content: center;
}

.contact-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(131, 56, 236, 0.3) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.contact-content {
    position: relative;
    text-align: center;
    max-width: 600px;
}

.contact-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-content p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    transition: all 0.3s;
    margin-bottom: 1.5rem;
    text-decoration: none !important;
}

.contact-email:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-accent-2);
    transform: scale(1.05);
}

.email-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-accent-2), var(--color-accent-3));
    border-radius: 50%;
}

.contact-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.contact-location svg {
    color: var(--color-accent-4);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    position: relative;
    z-index: 2;
    padding: 3rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 600;
}

.footer-logo .bracket {
    color: var(--color-text-muted);
}

.footer-logo .accent {
    color: var(--color-accent-1);
}

.footer-text {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

/* ========================================
   COOKIE BANNER
   ======================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem 2rem;
    transform: translateY(100%);
    transition: transform 0.4s var(--transition);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner.hide {
    transform: translateY(100%);
    pointer-events: none;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-text p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

.cookie-link {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    transition: color 0.3s;
}

.cookie-link:hover {
    color: var(--color-accent-1);
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--color-accent-1), var(--color-accent-2));
    color: white;
    border: none;
    border-radius: 50px;
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.cookie-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 0, 110, 0.3);
}

@media (max-width: 768px) {
    .cookie-banner {
        padding: 1rem;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .cookie-actions {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }

    .cookie-btn {
        width: 100%;
    }
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {

    html,
    body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }

    .nav {
        padding: 1rem 1.5rem;
    }

    .nav-cta span {
        display: none;
    }

    .hero {
        padding: 7rem 1rem 3rem;
        width: 100%;
    }

    .hero-content {
        padding: 0 0.5rem;
        width: 100%;
    }

    .floating-element {
        display: none;
    }

    .code-window {
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
    }

    .window-content {
        font-size: 0.75rem;
        padding: 0.75rem;
        overflow-x: auto;
    }

    .code-line {
        gap: 0.5rem;
        white-space: nowrap;
    }

    .line-num {
        min-width: 1.25rem;
        font-size: 0.7rem;
    }

    .contact {
        padding: 5rem 1rem;
        width: 100%;
    }

    .contact-content {
        padding: 0 0.5rem;
    }

    .contact-email {
        font-size: 0.9rem;
        padding: 0.75rem 1.25rem;
        max-width: 100%;
        word-break: break-all;
    }

    .contact-email span {
        word-break: break-all;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 6rem 0.75rem 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .code-window {
        border-radius: 12px;
    }

    .window-header {
        padding: 0.75rem 1rem;
    }

    .window-content {
        font-size: 0.7rem;
        padding: 0.5rem;
    }

    .window-dots span {
        width: 10px;
        height: 10px;
    }

    .btn {
        padding: 0.9rem 1.75rem;
        font-size: 0.9rem;
    }

    .contact-email {
        font-size: 0.85rem;
        padding: 0.75rem 1rem;
    }

    .email-icon {
        width: 40px;
        height: 40px;
    }

    .email-icon svg {
        width: 20px;
        height: 20px;
    }
}

/* ========================================
   REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   MODAL
   ======================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--transition);
}

.modal-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--color-bg-2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s var(--transition);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.modal-overlay.show .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
    z-index: 10;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--color-accent-1);
}

.modal-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.modal-content p {
    color: var(--color-text-muted);
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.modal-content strong {
    color: var(--color-accent-3);
    font-weight: 600;
}

@media (max-width: 768px) {
    .modal-content {
        padding: 1.5rem;
        border-radius: 16px;
        width: 94%;
        max-height: 80vh;
    }

    .modal-content h3 {
        font-size: 1.25rem;
        padding-right: 2rem;
    }

    .modal-content p {
        font-size: 0.9rem;
    }

    .modal-close {
        top: 10px;
        right: 10px;
    }
}