/* --- Konfiguracja i Zmienne --- */
:root {
    --primary-color: #026625;
    --primary-hover: #024d1c;
    --dark-bg: #1e293b;
    --light-bg: #f8fafc;
    --text-main: #334155;
    --text-light: #64748b;
    --white: #ffffff;
    --logo-black: #1a202c;
    /* Czerń dla członu GIS */
    --logo-green: #026625;
    /* Zieleń dla członu HELP */
    --border-radius: 12px;
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s;
}

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

html {
    /* TO ODPOWIADA ZA PŁYNNE PRZEWIJANIE DO SEKCJI */
    scroll-behavior: smooth;
    /* Margines góry, żeby nawigacja nie zasłaniała nagłówków */
    scroll-padding-top: 90px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--white);
    padding-top: 70px;
    overflow-x: hidden;
    /* Zapobiega pojawianiu się paska poziomego */
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-speed) ease;
}

ul {
    list-style: none;
}

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

/* --- LOGO (ZAWSZE TAKIE SAMO) --- */
.logo,
.hero-logo {
    font-size: 1.5rem;
    font-weight: 800;
    /* Wymuszamy kolor czarny/grafitowy dla słowa GIS */
    color: var(--logo-black) !important;
    letter-spacing: -0.5px;
}

.highlight {
    /* Wymuszamy kolor zielony dla słowa HELP */
    color: var(--logo-green) !important;
}

/* W sekcji Hero logo jest większe */
.hero-logo {
    font-size: 3.5rem;
    margin-bottom: 10px;
    line-height: 1.1;
}

/* --- ANIMACJE (Klasy .hidden i .show) --- */
.hidden {
    opacity: 0;
    transform: translateY(30px);
    /* Przesunięcie w dół */
    transition: all 0.8s ease-out;
    /* Czas trwania animacji */
}

.show {
    opacity: 1;
    transform: translateY(0);
    /* Powrót na miejsce */
}

/* Opóźnienia dla kart obok siebie (efekt kaskady) */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}


/* --- Nawigacja --- */
.navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    /* Efekt szkła */
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    transition: box-shadow 0.3s;
}

.navbar:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

/* Subtelna linia pod linkiem przy najechaniu */
.nav-links a:not(.btn-nav)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.nav-links a:not(.btn-nav):hover::after {
    width: 100%;
}

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

.btn-nav {
    padding: 10px 24px;
    background-color: var(--primary-color);
    color: white !important;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(2, 102, 37, 0.2);
}

.btn-nav:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(2, 102, 37, 0.3);
}

/* --- Hero Section --- */
.hero {
    /* Delikatny gradient w tle */
    background: radial-gradient(circle at top right, rgba(2, 102, 37, 0.05), transparent 40%),
        radial-gradient(circle at bottom left, rgba(2, 102, 37, 0.05), transparent 40%);
    padding: 100px 0 80px;
    text-align: center;
}

.hero h3 {
    font-size: 1.5rem;
    color: var(--text-main);
    font-weight: 400;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.about-text {
    text-align: center;
    /* Wyśrodkowanie tekstu wewnątrz */
    max-width: 800px;
    /* Opcjonalnie: ograniczenie szerokości dla lepszej czytelności */
    margin: 0 auto;
    /* Wyśrodkowanie samego kontenera na stronie */
}

.btn-primary,
.btn-outline {
    padding: 12px 30px;
    border-radius: 50px;
    /* Zaokrąglone przyciski */
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 5px 15px rgba(2, 102, 37, 0.25);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(2, 102, 37, 0.35);
}

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

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* --- Sekcje Ogólne --- */
.section {
    padding: 90px 0;
}

.bg-light {
    background-color: var(--light-bg);
}

.bg-dark {
    background-color: var(--dark-bg);
    color: white;
}

.section-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 50px;
    font-weight: 700;
    position: relative;
}

.text-center {
    text-align: center;
}

.text-white {
    color: white !important;
}

/* --- Grid Layouts & Cards --- */
.grid-2-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.card-info {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary-color);
    transition: transform 0.3s;
}

.card-info:hover {
    transform: translateY(-5px);
    /* Unoszenie karty */
}

.card-info h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.mt-2 {
    margin-top: 20px;
}

/* --- Tagi Umiejętności --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.skill-category h4 {
    margin-bottom: 20px;
    color: var(--text-main);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.tags span {
    background: white;
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    transition: 0.3s;
}

.tags span:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: scale(1.05);
}

/* --- SLIDER (Ulepszony) --- */
.section-subtitle {
    text-align: center;
    margin-top: -30px;
    margin-bottom: 50px;
    opacity: 0.7;
    font-size: 0.9rem;
}

.slider-wrapper {
    width: 100%;
    overflow: hidden;
}

.slider-container {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    padding-bottom: 30px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-left: max(20px, (100% - 1200px) / 2);
    /* Centrowanie startu */
    padding-right: 20px;
}

.slider-container::-webkit-scrollbar {
    display: none;
}

.slide {
    flex: 0 0 320px;
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    scroll-snap-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
}

.slide:hover {
    transform: translateY(-5px);
    /* Uniesienie slajdu */
}

.slide-img {
    height: 220px;
    overflow: hidden;
    background: #000;
}

.slide-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.6s;
}

.slide:hover .slide-img img {
    transform: scale(1.05);
}

.slide-content {
    padding: 25px;
    color: var(--text-main);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.slide-content h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.slide-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* --- Portfolio Grid --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.portfolio-card {
    background: white;
    padding: 35px;
    border-radius: var(--border-radius);
    border: 1px solid #e2e8f0;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.portfolio-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.portfolio-card h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-main);
    font-weight: 700;
}

.link-text {
    margin-top: auto;
    padding-top: 20px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

/* --- Cennik --- */
.pricing-box {
    background: white;
    max-width: 700px;
    margin: 0 auto;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.price-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    padding: 40px;
    text-align: center;
}

.price {
    font-size: 3rem;
    font-weight: 700;
}

.pricing-list {
    padding: 40px;
}

.pricing-list li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
}

.pricing-list li:before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 10px;
}

.pricing-list li:last-child {
    border-bottom: none;
}

/* --- Stopka --- */
footer {
    background: #0f172a;
    color: white;
    padding: 80px 0 30px;
    text-align: center;
}

.footer-cta h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.contact-info {
    margin: 50px 0;
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.contact-item span {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    margin-bottom: 8px;
}

.contact-item a {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    position: relative;
}

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

.copyright {
    color: #475569;
    font-size: 0.9rem;
    border-top: 1px solid #1e293b;
    padding-top: 30px;
}

/* --- Mobile --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-container {
        justify-content: center;
    }

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

    .slide {
        flex: 0 0 85vw;
    }

    .grid-2-col {
        grid-template-columns: 1fr;
    }
}