/* Deklaracja zmiennych */
:root {
    --primary: #4900c8;
    --secondary: #ffffff;
    --bg-dark: #1a1a1a;
    --light-gray: #f5f5f5;
}

/* Resetowanie stylów */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    background: var(--light-gray);
}

/* Nawigacja */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--secondary);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
}

.navbar .logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary);
}

/* Hamburger menu - domyślnie ukryty */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    height: 3px;
    width: 25px;
    background: var(--primary);
    margin-bottom: 4px;
    border-radius: 2px;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease, transform 0.3s ease;
}

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

/* Sekcja hero */
.hero {
    position: relative;
    background: linear-gradient(rgba(73, 0, 200, 0.7), rgba(73, 0, 200, 0.7)), url('../images/hero-bg.jpg') no-repeat center center/cover;
    color: var(--secondary);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    opacity: 0;
    animation: fadeIn 2s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.btn {
    padding: 0.8rem 2rem;
    background: var(--primary);
    color: var(--secondary);
    text-decoration: none;
    border-radius: 30px;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    font-weight: 700;
}

.btn:hover {
    background: darken(var(--primary), 10%);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Sekcje */
section {
    padding: 4rem 2rem;
    margin-top: 80px; /* aby nie ukrywać treści przez fixed header */
}

section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary);
    font-size: 2rem;
}

.offerings {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.offering {
    background: var(--secondary);
    padding: 2rem;
    width: 300px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.offering:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* Nowa sekcja Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
}

.portfolio-item {
    background: var(--secondary);
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.portfolio-item img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.portfolio-item:hover {
    transform: translateY(-10px);
}

/* Nowa sekcja Opinie */
.testimonials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 0 2rem;
}

.testimonial {
    background: var(--secondary);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    max-width: 350px;
    text-align: center;
    transition: transform 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-8px);
}

/* Formularz kontaktowy */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    background: var(--secondary);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.contact-form input,
.contact-form textarea {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact-form button {
    padding: 0.75rem;
    background: var(--primary);
    color: var(--secondary);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.contact-form button:hover {
    background: darken(var(--primary), 10%);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Stopka */
footer {
    text-align: center;
    padding: 1rem 0;
    background: var(--secondary);
    border-top: 1px solid #ddd;
}

/* Responsywność */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    .nav-links {
        position: absolute;
        top: 70px;
        right: 0;
        background: var(--secondary);
        flex-direction: column;
        width: 200px;
        padding: 1rem;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        display: none;
    }
    .nav-links li {
        margin: 1rem 0;
    }
}

/* Animacje dodatkowe */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Ustawienie początkowego stanu dla elementów animowanych */
.portfolio-item, .testimonial {
    opacity: 0;
}

/* Klasa aktywująca animację */
.animate-visible {
    animation: fadeInUp 1s ease forwards;
} 