/* Global styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Poppins', sans-serif;
    background: #f5f5f5;
    color: #222;
    text-align: center;
}

/* Hero Section */
.hero {
  position: relative;
  background: url('images/gory.jpg') no-repeat center center/cover;
  color: white;
  padding: 100px 20px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Półprzezroczysta warstwa */
  z-index: 1;
}

.hero h1, .hero p {
  position: relative;
  z-index: 2;
}

/* Sections */

section {
    padding: 50px 20px;
    max-width: 1000px;
    margin: auto;
   
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.card {
    background: #0097A7;
    color: white;
    padding: 20px;
    border-radius: 12px;
    transition: 0.3s;
}
.card:hover {
    background: #f27dfa;
    transform: scale(1.05);
}

/* Images */
.section-img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
   /* margin-top: 20px; */
}

/* Contact Form */
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 10px;
}
.contact-form button {
    background: #f27dfa;
    border: none;
    padding: 12px 20px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s;
}
.contact-form button:hover {
    background: #f74ae3;
    transform: scale(1.05);
}

.o-mnie {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    background: #a5e7f0;
    padding: 50px;
    text-align: left;
}

.o-mnie img {
  width: 200px; /* ustalona szerokość dla większych ekranów */
  height: 200px; /* ustalona wysokość dla większych ekranów */
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  margin-right: 40px; /* zwiększony margines po prawej stronie */
}

.o-mnie div {
    max-width: 500px;
}

@media (max-width: 768px) {
    .o-mnie {
        flex-direction: column;
        text-align: center;
    }

    .o-mnie img {
        width: 150px; /* zmniejszamy, ale zachowujemy kształt */
        height: 150px; /* wymuszamy kwadrat */
        margin-right: 0;
        margin-bottom: 20px;
    }
}