/* ===========================================
   RAJKOWSKI.NET - Enhanced Design
   =========================================== */

:root {
    /* Kolory */
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-tertiary: #707070;
    --accent: #ff6b35;
    --accent-dark: #e55a2b;
    --accent-glow: rgba(255, 107, 53, 0.2);
    
    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --nav-height: 260px;
    --container-width: 1400px;
    --section-padding: clamp(80px, 12vw, 140px);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 60px);
}

/* ===========================================
   HEADER / NAVIGATION
   =========================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
}

.header.scrolled {
    height: 140px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.nav-wrapper {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 60px);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.nav-logo {
    flex-shrink: 0;
}

.logo {
    display: block;
    width: 400px;
    height: auto;
    transition: transform 0.3s ease;
}

.header.scrolled .logo {
    transform: scale(0.55);
    transform-origin: left center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: clamp(20px, 3vw, 50px);
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.3px;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease;
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

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

.nav-link-cta {
    background: var(--accent);
    color: var(--bg-primary);
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
}

.nav-link-cta::after {
    display: none;
}

.nav-link-cta:hover {
    background: var(--accent-dark);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* ===========================================
   HERO SECTION
   =========================================== */

.hero {
    min-height: 100vh;
    padding-top: calc(var(--nav-height) + 40px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, var(--accent-glow) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(53, 107, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 60px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 650px;
}

.hero-title {
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 30px;
    letter-spacing: -0.02em;
}

.title-highlight {
    color: var(--accent);
}

.title-accent {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-lead {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
}

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

.hero-visual {
    position: relative;
    height: 500px;
}

.visual-grid {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-tertiary);
    font-size: 14px;
    animation: bounce 2s infinite;
}

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

/* ===========================================
   BUTTONS
   =========================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-main);
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--accent-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

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

/* ===========================================
   SECTIONS
   =========================================== */

section {
    padding: var(--section-padding) 0;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-tag {
    display: inline-block;
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

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

/* ===========================================
   SERVICES
   =========================================== */

.services {
    background: var(--bg-secondary);
}

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

.service-card {
    background: var(--bg-tertiary);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 107, 53, 0.3);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.service-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.service-desc {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===========================================
   PROCESS
   =========================================== */

.process-timeline {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 40px;
    bottom: 40px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent) 0%, transparent 100%);
}

.process-step {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 40px;
    margin-bottom: 60px;
    position: relative;
}

.step-marker {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 3px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    position: relative;
    z-index: 1;
}

.step-content {
    padding-top: 15px;
}

.step-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.step-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ===========================================
   STACK
   =========================================== */

.stack {
    background: var(--bg-secondary);
}

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

.stack-text {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.9;
}

/* ===========================================
   FAQ
   =========================================== */

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-tertiary);
    padding: 35px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.faq-question {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.faq-icon {
    color: var(--accent);
    font-size: 1.5rem;
}

.faq-answer {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===========================================
   CONTACT
   =========================================== */

.contact {
    background: var(--bg-secondary);
}

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

.contact-form {
    background: var(--bg-tertiary);
    padding: 50px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 25px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-field-full {
    grid-column: 1 / -1;
}

.form-field label {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.optional {
    color: var(--text-tertiary);
    font-weight: 400;
}

.form-field input,
.form-field textarea {
    padding: 16px 20px;
    background: var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 16px;
    font-family: var(--font-main);
    transition: all 0.3s ease;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-field textarea {
    resize: vertical;
    min-height: 140px;
}

.btn-submit {
    width: 100%;
    margin-top: 10px;
}

.form-note {
    text-align: center;
    color: var(--text-tertiary);
    font-size: 14px;
    margin-top: 20px;
}

.form-message {
    margin-top: 30px;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    display: none;
}

.form-message.success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4caf50;
}

.form-message.error {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #f44336;
}

.form-message.show {
    display: block;
}

/* ===========================================
   FOOTER
   =========================================== */

.footer {
    background: var(--bg-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--accent);
}

.footer-brand address {
    font-style: normal;
    color: var(--text-secondary);
    line-height: 1.8;
}

.footer-brand address a,
.footer-brand address .js-mail {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer-brand address a:hover,
.footer-brand address .js-mail:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

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

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    color: var(--text-tertiary);
    font-size: 14px;
}

/* ===========================================
   RESPONSIVE
   =========================================== */

@media (max-width: 1200px) {
    :root {
        --nav-height: 180px;
    }
    
    .logo {
        width: 300px;
    }
    
    .header.scrolled {
        height: 100px;
    }
    
    .header.scrolled .logo {
        transform: scale(0.5);
    }
    
    .hero {
        padding-top: calc(var(--nav-height) + 30px);
    }
}

@media (max-width: 968px) {
    :root {
        --nav-height: 110px;
        --section-padding: 60px;
    }
    
    .header,
    .header.scrolled {
        height: 110px;
    }
    
    .logo {
        width: 200px;
    }
    
    .header.scrolled .logo {
        transform: scale(0.8);
    }
    
    .nav-menu {
        position: fixed;
        top: 110px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 40px;
        gap: 30px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        max-height: calc(100vh - 110px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }
    
    .hero {
        padding-top: calc(var(--nav-height) + 40px);
        padding-bottom: 60px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .hero-visual {
        height: 300px;
    }
    
    .process-timeline::before {
        display: none;
    }
    
    .process-step {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 35px 25px;
    }
}

@media (max-width: 640px) {
    :root {
        --section-padding: 50px;
    }
    
    .hero {
        padding-top: calc(var(--nav-height) + 50px);
        padding-bottom: 50px;
        min-height: auto;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
}

/* ===========================================
   ACCESSIBILITY
   =========================================== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

