/* General Styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    color: #333;
}

h1, h2 {
    color: #FF7F00;
}

a {
    color: #FF7F00;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

button {
    background-color: #FF7F00;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #E67300;
}

/* Hero Section */
.about-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 0;
    background-color: #FFF4E6;
}

.about-hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.about-hero .container {
    display: flex;
    flex-direction: row-reverse; /* Swaps the order: image first, then text on desktop */
    align-items: center;
    justify-content: space-between;
}

.about-hero-content {
    flex: 2; /* 2/3 of the width */
    margin-left: 40px; /* Adds spacing between image and text */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centers the content vertically */
    text-align: center; /* Centers the text horizontally */
}

.about-hero p {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.about-hero-image {
    flex: 1; /* 1/3 of the width */
    max-width: 100%;
}

.about-hero-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* For small screens, stack the text and image with image above */
@media (max-width: 768px) {
    .about-hero .container {
        flex-direction: column; /* Stack image and text vertically on mobile */
    }

    .about-hero-image {
        order: -1; /* Ensure image comes before text */
        margin-bottom: 20px; /* Adds spacing below the image */
        width: 100%; /* Ensure image spans full width on mobile */
    }

    .about-hero-content {
        margin-left: 0; /* Remove left margin on mobile */
        text-align: center; /* Center the text on mobile */
    }

    .about-hero-image img {
        content: url("https://vlcjaume.s3.eu-north-1.amazonaws.com/about_me/hero-small.webp"); /* Use mobile-sized image */
        width: 100%;
        height: auto;
        border-radius: 8px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
}

/* About Section */
.about-me {
    padding: 50px 0;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* Image Row Styling */
.image-row {
    display: flex;
    justify-content: center;
    gap: 20px; /* Default gap for smaller screens */
    margin-bottom: 1.5rem;
}

.image-row img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 0;
}

@media (min-width: 768px) {
    .image-row {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 80px; /* Larger gap for medium screens (tablets, small desktops) */
    }

    .image-row img {
        width: 30%;
    }
}

@media (min-width: 1024px) {
    .image-row {
        gap: 120px; /* Even larger gap for larger screens (desktops) */
    }
}

@media (max-width: 767px) {
    .image-row {
        display: flex;
        flex-direction: column;
    }

    .image-row img {
        width: 80%; /* Smaller width on mobile */
        margin: 0 auto; /* Center images on mobile */
    }
}

/* Languages Section */
.languages {
    background-color: #FFF4E6;
    padding: 50px 0;
    text-align: center;
}

.languages h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.languages p {
    font-size: 1.15rem;
    line-height: 1.6;
    text-align: justify;
    margin-bottom: 20px;
}

/* Archaeology Section */
.archaeology {
    padding: 50px 0;
    text-align: center; /* This will center the text and the image */
}

.archaeology h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.archaeology p {
    font-size: 1.15rem;
    line-height: 1.6;
    text-align: justify;
    margin-bottom: 20px; /* Add some margin at the bottom of the paragraph */
}

.archaeology div {
    margin: 0 auto; /* Center the div containing the image */
}

.archaeology img {
    max-width: 600px; /* Set max-width specifically for the image */
    width: 100%; /* Make the image responsive */
    height: auto; /* Maintain aspect ratio */
    border-radius: 8px; /* Optional: add a border radius to the image */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Optional: add a subtle shadow */
}


@media (max-width: 768px) {
    .archaeology img {
        margin: 0px 16px;
        width: 80%;
    }
}

/* Passion Section */
.passion {
    background-color: #FFF4E6;
    padding: 50px 0;
}

.passion h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.passion p {
    font-size: 1.15rem;
    line-height: 1.6;
    text-align: justify;
}

/* Gallery Section */
.about-photos {
    padding: 50px 0;
}

.about-photos h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns for desktop */
    gap: 20px;
}

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

.photo-card img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.photo-card p {
    font-size: 1rem;
    margin-top: 10px;
}

/* Media query for mobile: make all images stack vertically */
@media (max-width: 768px) {
    .photo-grid {
        grid-template-columns: 1fr; /* Stack the images vertically */
    }
}


/* Personal Touch Section */
.personal-touch {
    padding: 50px 0;
}

.personal-touch h2 {
    font-size: 2.5rem;
    text-align: center;
}

.personal-touch p {
    font-size: 1.15rem;
    text-align: justify;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    background-color: #FFF4E6;
    padding: 50px 0;
    text-align: center;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.contact .button {
    background-color: #FF7F00;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact .button:hover {
    background-color: #E67300;
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-hero h1 {
        font-size: 2rem;
    }

    .about-text h2, .languages h2, .archaeology h2, .passion h2, .about-photos h2, .personal-touch h2, .contact h2 {
        font-size: 2rem;
    }

    .about-text p, .languages p, .archaeology p, .passion p, .personal-touch p {
        font-size: 1rem;
    }

    .photo-grid {
        grid-template-columns: 1fr;
    }
}
