/* General styles */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.7;
    background-color: #f8f8f8;
    color: #444;
    margin: 0;
    padding: 0;
}

/* Header */
header {
    background-color: #222;
    color: #fff;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 2rem;
    margin-bottom: 0;
}

/* Navigation - Primary navigation (in header) */
header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

header nav ul li {
    margin-left: 1.5rem;
}

header nav ul li:first-child {
    margin-left: 0;
}

header nav a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

header nav a:hover {
    color: #ddd;
}

/* Main content */
main {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

main h2 {
    font-size: 2.5rem;
    color: #222;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Hero section */
.hero {
    text-align: center;
    margin-bottom: 3rem;
}

.hero img {
    max-width: 80%;
    height: auto;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.hero h2 {
    font-size: 2.2rem;
}

.hero p {
    font-size: 1.1rem;
    color: #555;
}

/* Recent work section */
.recent-work {
    margin-bottom: 3rem;
}

.recent-work h3 {
    font-size: 1.8rem;
    color: #222;
    margin-bottom: 1rem;
    text-align: center;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.gallery img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.gallery img:hover {
    transform: scale(1.05);
}

/* About page styles */
.about-content {
    display: flex;
    align-items: flex-start; /* Asigură că imaginea și textul încep de sus */
    gap: 3rem; /* Spațiul dintre imagine și text-container */
}

.profile-image {
    max-width: 300px;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.text-container { /* Noul container pentru paragrafe */
    flex: 1; /* Permite containerului de text să ocupe spațiul rămas */
}

/* Definirea unică pentru paragrafele din .about-content */
.about-content p {
    font-size: 1.1rem;
    line-height: 1.4; /* Setează line-height pentru lizibilitate și spațiu */
    text-align: justify; /* Aliniere la ambele capete, așa cum dorești */
    text-indent: 3rem; /* Indentarea primei linii a fiecărui paragraf */

    /* SOLUȚIA CHEIE: Anulăm marginile implicite ale browserului și setăm propriile noastre */
    margin-top: 0; /* Anulează marginea superioară implicită a browserului */
    margin-bottom: 0.5rem; /* Ajustează spațiul dorit dintre paragrafe. Poți încerca 0.3rem sau 0.1rem dacă vrei mai puțin spațiu. */
}

/* Această regulă se aplică DOAR ultimului paragraf pentru a elimina margin-bottom-ul */
.about-content p:last-child {
    margin-bottom: 0;
}


/* Contact page styles */
.contact-info {
    margin-bottom: 2rem;
    text-align: center;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.contact-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.contact-info ul li {
    margin-bottom: 0.5rem;
}

.contact-info ul li strong {
    font-weight: bold;
}

.contact-info ul li a {
    color: #007bff;
    text-decoration: none;
}

.contact-info ul li a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: #222;
    color: #fff;
    text-align: center;
    padding: 1.5rem 2rem;
    position: static;
    width: 100%;
    margin-top: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    header nav ul {
        flex-direction: column;
        align-items: center;
        margin-top: 1rem;
    }

    header nav ul li {
        margin: 0.5rem 0;
    }

    .hero img {
        max-width: 100%;
    }

    .gallery {
        grid-template-columns: 1fr;
    }

    .about-content {
        flex-direction: column; /* Pe mobil, imaginea și textul se așează pe coloană */
        text-align: center; /* Aliniază imaginea și textul la centru pe mobil */
    }

    .profile-image {
        max-width: 200px;
        margin-bottom: 1.5rem; /* Spațiu sub imagine pe mobil */
    }

    .text-container {
        text-align: justify; /* Textul din container poate fi justificat și pe mobil */
    }

    .portfolio-categories-overview {
        grid-template-columns: 1fr;
    }

    .portfolio-category ul {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Styles for enlarged image view */
.enlarged-image-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    cursor: pointer;
}

.enlarged-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Styles for portfolio category overview on portfolio.html */
.portfolio-categories-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
    justify-items: center;
}

.category-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    width: 100%;
    max-width: 350px;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.portfolio-categories-overview .category-card a {
    text-decoration: none;
    color: #000 !important;
    display: block;
    padding-bottom: 1rem;
}

.portfolio-categories-overview .category-card a:hover {
    color: #ddd !important;
}

.category-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.category-card h3 {
    font-size: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 0;
    color: #222;
}

/* Styles for individual portfolio category pages (e.g., portret.html, eveniment.html) */
.portfolio-category {
    margin-bottom: 3rem;
}

.portfolio-category ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 2rem 0;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 1rem;
    border: 1px solid #e0e0e0;
    padding: 1.5rem;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.portfolio-category ul li {
    margin: 0 1rem;
}

.portfolio-category ul li a {
    text-decoration: none;
    color: #000;
    font-weight: bold;
}

.portfolio-category ul li a:hover {
    color: #ddd;
}

.portfolio-category h3 {
    font-size: 2rem;
    color: #222;
    margin-bottom: 1rem;
    text-align: center;
}