@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700&display=swap');

body {
    font-family: 'Poppins', Arial, sans-serif;
    background-color: #fdf6f0; 
    margin: 0;
    padding: 0;
    color: #2c2c2c; 
    line-height: 1.7;
}


h1 {
    text-align: center;
    margin: 2rem 1rem 1rem;
    font-size: 2.8em;
    font-weight: 700;
    color: #d35400; 
}

h2 {
    margin: 2rem 1rem 1rem;
    font-size: 2em;
    font-weight: 600;
    color: #6e2c00; 
    border-left: 5px dotted;
    border-bottom: 5px dotted;
    padding-left: 10px;
}

.intro {
    text-align: center; 
}

.intro figure,
.intro p {
    display: inline-block;
    vertical-align: middle;
    width: 40%;  
    margin: 0 2rem;
}

.intro p {
    text-align: justify;
}

p {
    margin: 0 2vw;
    padding: 1rem;
    font-size: 1.05em;
    width: 60%;
    max-width: 400px;
    padding: 2rem;
    margin: 2rem auto;
    text-align: justify;
    background-color: #fff3e0;
    border-radius: 1rem 0.5rem 1rem 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}


figure {
    text-align: center;
    margin: 0 2rem ;
}

img {
    width: 50%;
    max-width: 280px;
    border-radius: 20% 20% 20% 20%;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 25px rgba(0,0,0,0.25);
}

img:focus {
    outline: 3px solid #e67e22;
}

figcaption {
    font-size: 0.95em;
    margin-top: 0.5rem;
    color: #555;
}

.books, .interests {
    display: inline-block;
    vertical-align: top; 
    width: 45%;         
    margin: 10px;
}

ul, ol {
    margin: 1rem 2vw;
    padding: 1.5rem 2rem;
    font-size: 1.05em;
    background-color: #fff3e0;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

ul li:nth-child(odd),
ol li:nth-child(odd) {
    color: #d35400; 
}

ul li:last-child,
ol li:last-child {
    font-weight: 700; 
}

.fact, .link {
    display: inline-block;
    vertical-align: top; 
    width: 45%;         
    margin: 10px;
}
table {
    width: 90%;
    margin: 2rem auto;
    border-collapse: collapse;
    background-color: #fff3e0;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}

th {
    background-color: #e67e22;
    color: white;
    padding: 14px;
    border: 1px solid #d35400;
}

td {
    padding: 14px;
    border: 1px solid #d35400;
    text-align: center;
}


a {
    display: inline-block;
    text-decoration: none;
    color: #e67e22;
    font-weight: 600;
    margin: 1rem 2rem;
    padding: 8px 16px;
    border: 2px solid #e67e22;
    border-radius: 12px;
    transition: 0.3s ease;
}

a:hover {
    background-color: #e67e22;
    color: white;
}


form {
    background-color: #fff3e0;
    padding: 2rem;
    margin: 2rem auto;
    width: 80%;
    max-width: 500px;
    border-radius: 2rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    text-align: left;
}

label {
    display: block;
    margin: 0.8rem 0 0.3rem;
    font-weight: 500;
}

input, textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 1.2rem;
    border-radius: 1rem;
    border: 1px solid #d35400;
    font-family: inherit;
    font-size: 1em;
    transition: 0.3s;
}

input:hover, textarea:hover {
    border-color: #e67e22;
    box-shadow: 0 0 6px rgba(230,126,34,0.4);
}

input:focus, textarea:focus {
    outline: 3px solid #e67e22;
}


button {
    background-color: #e67e22;
    color: white;
    padding: 12px 22px;
    border: none;
    border-radius: 1.5rem;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: 0.3s;
}

button:hover {
    background-color: #d35400;
    transform: scale(1.05);
}

button:focus {
    outline: 3px solid #e67e22;
}


footer {
    background-color: #6e2c00;
    color: white;
    text-align: center;
    padding: 1rem 1rem;
    margin-top: 1rem;
}


@media (max-width: 768px) {
    h1 { font-size: 2.2em; }
    h2 { font-size: 1.6em; }
    img { width: 80%; }
    table { font-size: 0.9em; }
    form { width: 90%; padding: 1.5rem; }
}
