/* Container pentru statistici */
.stats-container {
    display: flex;
    justify-content: space-between; /* Distribuie uniform pe orizontală */
    align-items: center;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1rem;
    border: 3px solid #28a745; /* Chenar verde */
    border-radius: 10px;
    background-color: white;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    gap: 1rem;
    flex-wrap: wrap; /* Asigură că elementele se vor aranja corect pe ecrane mici */
}

/* Fiecare statistică */
.stat-item {
    width: 200px;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #28a745; /* Verde */
    color: white;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    font-size: 1rem;
}

/* Stil pentru pictogramă */
.stat-icon img {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
}

/* Stil pentru număr */
.stat-info h3 {
    font-size: 2rem;
    margin: 5px 0;
    font-weight: bold;
    color: white;
}

/* Stil pentru textul statisticii */
.stat-info p {
    font-size: 1rem;
    color: white;
    font-weight: bold;
}

/* Responsivitate */
@media (max-width: 1024px) {
    .stats-container {
        flex-wrap: wrap;
        justify-content: center;
    }
    .stat-item {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 768px) {
    .stats-container {
        flex-wrap: wrap;
        justify-content: center;
    }
    .stat-item {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .stats-container {
        flex-direction: row;
        justify-content: center;
        gap: 0.5rem;
    }
    .stat-item {
        width: 100px;
        height: 100px;
    }
}
.portfolio-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.portfolio-item {
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
    padding: 1rem;
    transition: transform 0.3s ease-in-out;
}

.portfolio-item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.portfolio-item h3 {
    font-size: 1.2rem;
    color: #28a745;
    margin: 0.5rem 0;
}

.portfolio-item p {
    font-size: 0.9rem;
    color: #666;
}

.portfolio-item a {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.portfolio-item a:hover {
    background: #218838;
}

.portfolio-item:hover {
    transform: scale(1.05);
}

/* Responsivitate */
@media (max-width: 1024px) {
    .portfolio-container {
        grid-template-columns: repeat(2, 1fr); /* Două coloane pe ecrane mai mici */
    }
}

@media (max-width: 600px) {
    .portfolio-container {
        grid-template-columns: 1fr; /* O singură coloană pe telefoane */
    }
}
/* ========================= PORTOFOLII ========================= */
.portfolio-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 coloane pe desktop */
    gap: 1rem;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1rem;
    border: 3px solid #28a745; /* Chenar verde */
    border-radius: 10px;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Fiecare portofoliu */
.portfolio-item {
    background: white;
    border: 2px solid #28a745; /* Chenar verde */
    border-radius: 10px;
    text-align: center;
    padding: 1rem;
    transition: transform 0.3s ease-in-out;
}

/* Imagine portofoliu */
.portfolio-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border-bottom: 2px solid #28a745;
}

/* Titlu portofoliu */
.portfolio-item h3 {
    font-size: 1.2rem;
    color: #28a745;
    margin: 0.5rem 0;
}

/* Descriere portofoliu */
.portfolio-item p {
    font-size: 0.9rem;
    color: #666;
}

/* Buton vizualizare */
.portfolio-item a {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.portfolio-item a:hover {
    background: #218838;
}

/* RESPONSIVITATE */
@media (max-width: 1024px) {
    .portfolio-container {
        grid-template-columns: repeat(2, 1fr); /* 2 coloane pe ecrane mai mici */
    }
}

@media (max-width: 600px) {
    .portfolio-container {
        grid-template-columns: 1fr; /* 1 coloană pe telefon */
    }
}




.site-footer {
    background-color: #f4f4f4;
    padding: 2rem;
    border-top: 3px solid #28a745;
    text-align: center;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-left img {
    width: 120px;
    height: auto;
    margin-bottom: 10px;
}

.footer-left p {
    font-size: 0.9rem;
    color: #333;
}

.footer-center .support-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.footer-center .support-button:hover {
    background-color: #218838;
}

.footer-right {
    text-align: right;
}

.footer-right p {
    font-size: 0.9rem;
    color: #333;
    margin: 5px 0;
}

.footer-right a {
    color: #0073e6;
    text-decoration: none;
}

.footer-right a:hover {
    text-decoration: underline;
}

.footer-copy {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #777;
    text-align: center;
}



/* ===== Mobile-ready defaults ===== */
* { box-sizing: border-box; }
img { max-width: 100%; height: auto; display: block; }
.container, .page-wrap { padding-left: 1rem; padding-right: 1rem; }

/* Buttons look tappable */
.nav-buttons a,
.support-button,
.btn-learn-more {
  line-height: 1.2;
  touch-action: manipulation;
}

/* Search: input + button pe un rând, apoi full-width pe mobil */
.search-bar form { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.search-bar input[type="text"] { flex: 1 1 280px; max-width: 520px; min-width: 0; }
.search-bar button { flex: 0 0 auto; }

/* Grile “auto-fit” responsive (rubrici + galerie + portofoliu) */
.grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.gallery-grid     { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.portfolio-container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

/* Statistici în linie, dar cu wrap pe mobil */
.stats-container {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center;
}
.stat-item { width: 160px; height: 160px; }

/* Footer aliniat pe o coloană pe ecrane mici */
.site-footer .footer-container {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}

/* ===== Breakpoints ===== */

/* ≤ 1024px (tablete landscape) */
@media (max-width: 1024px) {
  .header { gap: 1rem; }
  .contact-info { text-align: right; font-size: .95rem; }
  .portfolio-container { grid-template-columns: repeat(3, 1fr); }
}

/* ≤ 768px (tablete / telefoane mari) */
@media (max-width: 768px) {
  /* Header pe două rânduri */
  .header { flex-direction: column; align-items: stretch; text-align: center; }
  .social-icons { justify-content: center; }
  .contact-info { text-align: center; }

  /* Butoane: rânduri compacte pe mobil */
  .nav-buttons { padding: .75rem; gap: .6rem; }
  .nav-buttons a { padding: .6rem .9rem; font-size: .95rem; }

  /* Grile */
  .grid-container { grid-template-columns: repeat(2, 1fr); }
  .portfolio-container { grid-template-columns: repeat(2, 1fr); }

  /* Statistici mai mici */
  .stat-item { width: 140px; height: 140px; }

  /* Footer pe coloană */
  .site-footer .footer-container { flex-direction: column; text-align: center; }
  .footer-right { text-align: center; }
}

/* ≤ 600px (telefoane) */
@media (max-width: 600px) {
  /* Search full-width frumos */
  .search-bar form { justify-content: stretch; }
  .search-bar input[type="text"] { flex-basis: 100%; max-width: 100%; }
  .search-bar button { width: 100%; }

  /* Grile 1 coloană */
  .grid-container,
  .portfolio-container { grid-template-columns: 1fr; }

  /* Statistici: pătrate mai compacte */
  .stat-item { width: 120px; height: 120px; }

  /* Titluri/texte ușor mai mici pt. lizibilitate */
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.25rem; }
  .page-hero p.desc,
  .footer-description { font-size: .95rem; }
}

/* ≤ 400px (telefoane mici) */
@media (max-width: 400px) {
  .nav-buttons a { width: 100%; text-align: center; }
  .stat-item { width: 110px; height: 110px; }
}
