/* Global Styles */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    
    height: 100vh;
    flex-direction: column;
}

.container {
    background-color: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    border-radius: 10px;
    width: 350px;
    text-align: center;
    margin: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.container:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

/* Heading and Labels */
h1 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

label {
    display: block;
    margin: 10px 0 5px;
    color: #555;
    font-weight: bold;
}

/* Form Inputs */
input {
    width: 100%;
    padding: 12px;
    margin: 5px 0 20px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

input:focus {
    outline: none;
    border-color: #4caf50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.4);
}

/* Buttons */
button {
    background-color: #4caf50;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #45a049;
}

/* Links */
a {
    color: #4caf50;
    text-decoration: none;
    margin-left: 10px;
    font-size: 1rem;
}

a:hover {
    text-decoration: underline;
}

/* Heart Icon */
.heart-icon {
    display: inline-block;
    margin-bottom: 20px;
}

.btn-primary {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 6px;
    font-size: 1rem;
}

.btn-primary:hover {
    background-color: #0056b3;
}

/* Navigation Styles */
nav {
    width: 100%;
    background-color: #333;
    padding: 0;
    margin: 0;
    position: fixed;
    top: 0;
    z-index: 1000;
}

#home {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.profile_name {
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
}

.contact_info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 10px;
}

.contact_info a {
    color: #ccc;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.contact_info img {
    width: 16px;
    height: 16px;
}

.topdiv {
    display: flex;
    gap: 20px;
    align-items: center;
}

.topmenu {
    color: white !important;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.topmenu:hover {
    background-color: #555;
    text-decoration: none;
}

/* Adjust body padding to account for fixed nav */
body {
    padding-top: 80px;
}

/* Skills/Services Section */
#skills {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

#skills h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 40px;
    font-weight: bold;
}

.all_skills {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.skill {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px 20px;
    width: 300px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

.skill:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.skill a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.skill img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 2px solid #f0f0f0;
}

.skill h6 {
    font-size: 1.2rem;
    color: #333;
    margin: 15px 0 10px 0;
    font-weight: 600;
}

.skill p {
    font-size: 1.1rem;
    color: #0071bc;
    margin: 0;
    font-weight: 500;
}

/* Projects Section */
.projects {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.projects h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 40px;
    font-weight: bold;
}

.projects-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.project-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.project-card h3 {
    color: #0071bc;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.project-card h4 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.project-card ul {
    margin-left: 20px;
}

.project-card li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Donation Section */
.container_donacion {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    margin: 40px 0;
}

/* Recommendations Section */
#recommendations {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

#recommendations h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 40px;
    font-weight: bold;
}

.all_recommendations {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.recommendation {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-style: italic;
    border-left: 4px solid #0071bc;
}

/* Contact Section */
#contact {
    padding: 40px 20px;
    background: #f8f9fa;
}

.flex_center {
    display: flex;
    justify-content: center;
    align-items: center;
}

fieldset {
    border: 2px solid #0071bc;
    border-radius: 10px;
    padding: 30px;
    background: white;
    max-width: 500px;
}

legend {
    font-size: 1.3rem;
    font-weight: bold;
    color: #0071bc;
    padding: 0 15px;
}

#contact textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: Arial, sans-serif;
    resize: vertical;
}

/* Media Queries for Responsiveness */
@media (max-width: 600px) {
    .container {
        width: 100%;
        padding: 20px;
    }
    
    #home {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .topdiv {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .topmenu {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .all_skills {
        flex-direction: column;
        align-items: center;
    }
    
    .skill {
        width: 90%;
        max-width: 300px;
    }
    
    #skills h2, .projects h2, #recommendations h2 {
        font-size: 2rem;
    }
}
