/*Styles*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Set global font and text color */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}


/* Navigation bar styling */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #fff;
    padding: 1rem 2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 1s ease-in-out;
}

/* Logo text inside navbar */
.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2d3436;
}

/* Navbar link list */
.nav-links {
    display: flex;
    list-style: none;
}

/* Navbar links */
.nav-links li a {
    text-decoration: none;
    color: #2d3436;
    padding: 0.5rem 1rem;
}


/* Fullscreen hero section with gradient background */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #74b9ff, #800080);
    color: white;
    text-align: center;
}

/* Hero text animation and styling */
.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeIn 2s ease-in-out;
}

/* Highlighted text in purple */
.highlight {
    color: purple;
}

/* Social media links*/
.social-links {
    margin-top: 2rem;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    margin: 0 1rem;
}

/*About section*/

.about {
    padding: 5rem 2rem;
    background-color: #f5f6fa;
}

/* About section title */
.about h2 {
    text-align: center;
    margin-bottom: 3rem;
}

/* Container for about content */
.about-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* Biography paragraph */
.about-text {
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeIn 3s ease-in-out;
}

/* Skills container */
.skills {
    animation: fadeIn 2s ease-in-out;
}

/* Skill tags layout */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

/* Each individual skill tag */
.skill-tags span {
    background-color: #800080;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/*Projects Section*/

.projects {
    padding: 5rem 2rem;
}

/* Projects section title */
.projects h2 {
    text-align: center;
    margin-bottom: 3rem;
}

/* Container for all project cards */
.projects-grid {
    max-width: 800px;
    margin: 0 auto;
}

/* Project card container */
.project-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Project images */
.project-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* Project title */
.project-card h3 {
    padding: 1rem;
}

/* Project description */
.project-card p {
    padding: 0 1rem;
}


.project-links {
    padding: 1rem;
    display: flex;
    gap: 1rem;
}


.contact {
    padding: 5rem 2rem;
    background-color: #f5f6fa;
}

/* Contact section title */
.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
}

/* Centered form container */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

/* Contact form layout */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Input and textarea fields */
.contact-form input,
.contact-form textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

/* Resizable textarea */
.contact-form textarea {
    height: 150px;
    resize: vertical;
}

/* Button style */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #800080;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

/*The footer*/

footer {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(45deg, #74b9ff, #800080);
    color: white;
}



/*Responsive Design*/


/*For tablet*/
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 1rem;
    }

    .nav-links {
        margin-top: 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }
}

/*For movil*/
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }
}

/* Grid adjustment for small screens */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/*Animations*/


/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Smooth transitions for buttons and nav links */
.btn,
.nav-links li a {
    transition: all 0.3s ease-in-out;
}

/* Optional hover effect for nav links */
.nav-links li a:hover {
    color: #800080;
    transform: scale(1.05);
}

/* Hover effects for project cards */
.project-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}




