/* ============================================
   CORNERSTONE - MINIMALIST PRO THEME
   Paleta: Czarno-biała z szarymi akcentami
   ============================================ */

/* === ZMIENNE KOLORÓW === */
:root {
    /* Kolory główne */
    --color-background: hsl(0, 0%, 100%);
    --color-foreground: hsl(0, 0%, 10%);
    --color-primary: hsl(0, 0%, 15%);
    --color-primary-foreground: hsl(0, 0%, 98%);
    --color-secondary: hsl(0, 0%, 96%);
    --color-accent: hsl(0, 0%, 20%);
    --color-border: hsl(0, 0%, 90%);
    --color-muted: hsl(0, 0%, 40%);

    /* Cienie */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px -5px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px -10px rgba(0, 0, 0, 0.2);

    /* Przejścia */
    --transition: all 0.3s ease;

    /* Czcionki */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-background);
    color: var(--color-foreground);
    line-height: 1.6;
    overflow-x: hidden;
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
    width: 12px;
}

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

::-webkit-scrollbar-thumb {
    background: hsl(0, 0%, 30%);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

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

/* === NAWIGACJA === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    color: var(--color-foreground);
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    opacity: 0.7;
}

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

.nav-link {
    color: var(--color-foreground);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-foreground);
    transition: var(--transition);
}

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--color-foreground);
    transition: var(--transition);
}

/* === HERO SECTION === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px 50px;
    background: var(--color-background);
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-foreground);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-muted);
    margin-bottom: 2.5rem;
}

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

/* === PRZYCISKI === */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--color-foreground);
    border: 2px solid var(--color-foreground);
}

.btn-secondary:hover {
    background: var(--color-foreground);
    color: var(--color-background);
    transform: translateY(-2px);
}

/* === SEKCJE === */
.section {
    padding: 80px 20px;
}

.section-gray {
    background: var(--color-secondary);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--color-foreground);
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--color-muted);
    margin-bottom: 3rem;
}

/* === O NAS === */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.about-text {
    font-size: 1.125rem;
}

.about-text .lead {
    font-size: 1.375rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--color-foreground);
}

.about-text p {
    margin-bottom: 1.25rem;
    color: var(--color-muted);
}

.about-highlight {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--color-background);
    border-left: 4px solid var(--color-foreground);
    border-radius: 8px;
}

.about-highlight h3 {
    margin-bottom: 0.75rem;
    color: var(--color-foreground);
}

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

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--color-background);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-foreground);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === USŁUGI === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    padding: 2rem;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    border-color: var(--color-foreground);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

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

.service-card p {
    color: var(--color-muted);
    line-height: 1.7;
}

/* === TECHNOLOGIE === */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.tech-item {
    padding: 1.5rem;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    transition: var(--transition);
}

.tech-item:hover {
    border-color: var(--color-foreground);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.tech-name {
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--color-foreground);
}

.tech-desc {
    font-size: 0.875rem;
    color: var(--color-muted);
}

/* === PORTFOLIO === */
.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 3rem 0;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: var(--color-background);
    color: var(--color-foreground);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--color-foreground);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--color-foreground);
    color: var(--color-background);
    border-color: var(--color-foreground);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.project-card {
    background: var(--color-background);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.project-image {
    width: 100%;
    height: 250px;
    background: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--color-muted);
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-foreground);
}

.project-meta {
    font-size: 0.875rem;
    color: var(--color-muted);
    margin-bottom: 0.75rem;
}

.project-desc {
    font-size: 0.9375rem;
    color: var(--color-muted);
    line-height: 1.6;
}

.portfolio-more {
    text-align: center;
    margin-top: 3rem;
}

/* === MODAL === */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
}

.modal.active {
    display: block;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
}

.modal-content {
    position: relative;
    max-width: 900px;
    margin: 50px auto;
    background: var(--color-background);
    border-radius: 12px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 2001;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: var(--color-foreground);
    color: var(--color-background);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 2002;
}

.modal-close:hover {
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
}

/* === PARTNERZY === */
.partners-container {
    min-height: 300px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
    padding: 3rem 0;
}

.partner-item {
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: var(--transition);
    animation: levitate 6s ease-in-out infinite;
    cursor: pointer;
}

.partner-item:hover {
    animation-play-state: paused;
    transform: scale(1.1);
    border-color: var(--color-foreground);
    box-shadow: var(--shadow-lg);
}

.partner-item:nth-child(2) {
    animation-delay: 1s;
}

.partner-item:nth-child(3) {
    animation-delay: 2s;
}

.partner-item:nth-child(4) {
    animation-delay: 3s;
}

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

.partner-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.partner-name {
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--color-foreground);
    text-align: center;
}

/* === KONTAKT === */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-info h3,
.contact-persons h3,
.contact-form-wrapper h3 {
    margin-bottom: 1.5rem;
    color: var(--color-foreground);
}

.contact-item {
    margin-bottom: 1.5rem;
    color: var(--color-muted);
}

.contact-item strong {
    color: var(--color-foreground);
}

.contact-item a {
    color: var(--color-foreground);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--color-accent);
}

.person-card {
    padding: 1.5rem;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.person-card:hover {
    border-color: var(--color-foreground);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.person-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-foreground);
}

.person-role {
    font-size: 0.875rem;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.person-card p {
    margin-bottom: 0.5rem;
}

.person-card a {
    color: var(--color-foreground);
    text-decoration: none;
    transition: var(--transition);
}

.person-card a:hover {
    color: var(--color-accent);
}

/* === FORMULARZ === */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group textarea {
    padding: 0.875rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--color-background);
    color: var(--color-foreground);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-foreground);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    display: none;
}

.form-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* === FOOTER === */
.footer {
    background: var(--color-primary);
    color: var(--color-primary-foreground);
    padding: 3rem 20px;
    text-align: center;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo svg {
    color: var(--color-primary-foreground);
}

.footer-text p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-background);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        box-shadow: var(--shadow-lg);
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        padding: 1rem;
        border-bottom: 1px solid var(--color-border);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .portfolio-filters {
        flex-direction: column;
    }

    .filter-btn {
        width: 100%;
    }
}

/* Zgoda RODO w formularzu */
.consent label{display:flex;gap:.6rem;align-items:flex-start;font-size:.85rem;line-height:1.5;color:var(--color-muted);cursor:pointer}
.consent input[type="checkbox"]{width:auto;margin-top:.25rem;flex:0 0 auto}
.consent a{color:var(--color-foreground);text-decoration:underline}
