/* Apply box-sizing for layout control */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Body styling */
body {
    font-family: 'Crimson Text', serif;
    background-color: #FFFFFF;
    color: #000;
    line-height: 1.6;
}

/* Header and Footer style */
header, footer {
    background-color: #B48EAE;
    color: white;
    text-align: center;
    padding: 1.5rem 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Add spacing between the footer and content */
footer {
    margin-top: 2rem;
}

/* Layout for the whole page */
.container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
    max-width: 1000px;
    margin: auto;
}

/* Section styling */
section {
    background-color: #D7D9D7;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Paragraph and list spacing */
.intro p, .skills ul {
    margin-bottom: 1rem;
}

/* Bullet list style */ 
.skills ul {
    list-style: disc inside;
    padding-left: 1rem;
}

/* Image fallery layout using flex */
.images {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

/* figure box for each image and caption */
figure {
    background-color: #FFFFFF;
    border-radius: 10px;
    padding: 1rem;
    max-width: 350px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    text-align: center;
}

/* Responsive image styling */
figure img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Caption text style */
figcaption {
    font-size: 0.95rem;
    color: #646E68;
    margin-top: 0.5rem;
}

h1 {
    font-size: 2.2rem;
    font-weight: 600;
}

h2, h3 {
    color: #B48EAE;
    margin-bottom: 1rem;
}

/* Tablet friendly view */
@media screen and (max-width: 768px) {
    .container {
        padding: 1.5rem;
    }

    .images {
        flex-direction: column;
        align-items: center;
    }
}

/* Mobile friendly view */
@media screen and (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    section {
        padding: 1rem;
    }
}
