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

body {
    font-family: 'Montserrat', sans-serif;    
    line-height: 1.6;
    color: #333;
    background-color: #FFFFFF;
    overflow-x: hidden;
}

h1, h2, h3, p {
    font-family: 'Montserrat', sans-serif;
}

/* Navigation */
nav {
    background: #FFFFFF;
    border-bottom: 1px solid #E5E1DA;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}

nav ul {
    display: flex;
    list-style: none;
    justify-content: center;
    flex-wrap: wrap; /* Ensures nav items wrap on smaller screens */
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: #92C7CF;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

nav ul li a:hover {
    color: #AAD7D9;
}

/* Section Styles */
section {
    padding: 2rem 1rem;
    max-width: 800px;
    margin: 2rem auto;
    text-align: center;
    background-color: #FFFFFF;
}

#intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 90vh;
    padding: 0 1rem;
    text-align: center;
}

.intro-content img {
    width: 100%;
    max-width: 400px; /* Responsive image */
    height: auto;
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

.btn {
    background: none;
    color: #92C7CF;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border: 1px solid #92C7CF;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
    display: inline-block;
    cursor: pointer;
}

.btn:hover {
    background: #AAD7D9;
    color: #fff;
}

/* Skills Section */
.skills {
    margin-top: 2rem;
    text-align: center;
}

.skills h2 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: #333;
}

/* Skill Categories Container */
.skills-category {
    display: flex;
    flex-wrap: wrap; /* Allows items to wrap */
    justify-content: center;
    gap: 0.5rem; /* Gap between skill items */
    margin-bottom: 2rem;
}

/* Skill Items with Dynamic Boxes */
.skills-item {
    background: #F1F1F1;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.9rem;
    text-align: center;
    flex: 0 1 auto;
    min-width: 80px;
    max-width: 200px;
    border: 1px solid #E5E1DA;
    margin: 0.2rem;
}

/* Tiles for Work Experience, Projects, and Blog Sections */
.tile {
    background: #F9F9F9;
    border: 1px solid #E5E1DA;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    text-align: left;
}

/* Style for unordered lists within tiles */
.tile ul {
    padding-left: 1.5rem;
    margin: 0.5rem 0;
    list-style-position: outside;
}

.tile ul li {
    margin-bottom: 0.5rem;
}

/* Blog Section */
#blog {
    padding: 2rem 1rem;
    max-width: 800px;
    margin: 2rem auto;
    text-align: center;
    background-color: #FFFFFF;
    opacity: 1; /* Ensure the blog section is visible */
}

.blog-item {
    background: #F9F9F9;
    border: 1px solid #E5E1DA;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    text-align: left;
}

/* Button Styling */
.blog-item .btn, .project-item .btn {
    background: none;
    color: #92C7CF;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border: 1px solid #92C7CF;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
    display: inline-block;
    margin-top: 1rem;
}

.blog-item .btn:hover, .project-item .btn:hover {
    background: #AAD7D9;
    color: #fff;
}


/* Contact Section */
form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-width: 400px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeIn 2s ease-out forwards;
}

form input, form textarea {
    padding: 0.6rem;
    border: 1px solid #AAD7D9;
    border-radius: 4px;
    font-size: 1rem;
    width: 100%;
    background: #FFFFFF;
    transition: box-shadow 0.3s;
}

form input:focus, form textarea:focus {
    box-shadow: 0 0 5px #AAD7D9;
}

form button {
    background: #92C7CF;
    color: #fff;
    padding: 0.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

form button:hover {
    background: #AAD7D9;
}

/* Footer Section */
footer {
    background-color: #FFFFFF;
    padding: 1rem 0;
    text-align: center;
    margin-top: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap; /* Allows links to wrap on small screens */
}

.social-links a {
    color: #92C7CF;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.social-links a:hover {
    color: #AAD7D9;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .intro-content h1 {
        font-size: 2rem;
    }
    .intro-content p {
        font-size: 1rem;
    }
    .skills-category, .tile {
        flex-direction: column;
        align-items: center;
    }
    nav ul {
        padding: 0;
    }
}

@media screen and (max-width: 480px) {
    nav ul li {
        margin: 0 0.5rem;
    }
    .btn {
        padding: 0.5rem;
    }
}
