/* Existing styles */
:root {
    --hover-color: #FF8C00;
    --bg-color: #f1efe9;
    --text-color: #000;
    --button-bg: #000000; 
    --button-text: #fff;
}

::selection {
            background-color: orange;
            color: black; /* Optional: Change the text color while selected */
        }

body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    height: 100%;
    background-color: var(--bg-color);
    color: var(--text-color);
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
}

nav {
    padding: 0.5rem;
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 0.5rem;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 300;
    position: relative;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--hover-color);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

nav ul li a:hover {
    color: var(--hover-color);
    transform: scale(1.05);
}

nav ul li a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

main {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.title-wrapper {
    position: relative;
    display: inline-block;
    text-align: center;
    padding: 4rem 0;
}

h1 {
    font-size: 4rem;
    font-weight: bold;
    transition: transform 0.3s ease, color 0.3s ease;
}

h1:hover {
    transform: scale(1.1);
    color: var(--hover-color);
}

.title-wrapper::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--hover-color);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.title-wrapper:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    width: 100%;
    height: auto;
    max-width: 1000px;
    max-height: 1000px;
    border-radius: 10px;
    object-fit: cover;
}

.about-text {
    flex: 3;
    min-width: 300px;
}

.about-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 175px;
}

/* Updated button styles */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--button-bg);
    color: var(--button-text);
    text-decoration: none;
    margin-right: 10px;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 5px; /* Rounded edges for buttons */
    font-weight: bold;
    text-transform: uppercase;
}

.btn:hover {
    background-color: var(--hover-color);
    color: var(--button-text);
    text-decoration: none;
}

/* Remove underline from links */
a {
    text-decoration: none;
}

/* Ensure no underline on hover for all links */
a:hover {
    text-decoration: none;
}

/* Styles for the skills box */
.skills-box {
    border: 3px solid var(--text-color);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 10px; /* Rounded edges for skills box */
}

.skill {
    display: inline-block;
    background-color: var(--text-color);
    color: var(--bg-color);
    padding: 0.25rem 0.5rem;
    margin: 0.25rem;
    font-size: 0.9rem;
    border-radius: 15px; /* Rounded edges for individual skills */
}

.about-description {
    margin-top: 2rem;
}

#portfolio {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Updated styles for portfolio projects */
.project {
    display: flex;
    margin-bottom: 40px;
    border: 1px solid #ccc;
    padding: 20px;
    border-radius: 10px; /* Rounded edges for project containers */
}

.project-image {
    flex: 0 0 150px;
    margin-right: 20px;
}

.color-block {
    width: 150px;
    height: 150px;
    border-radius: 5px; /* Rounded edges for color blocks */
}

.project-details {
    flex: 1;
}

.project-details h2 {
    margin: 0 0 5px 0;
    font-size: 24px;
}

.project-details h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #666;
}

.project-details p {
    margin: 0 0 10px 0;
}

.project-details a {
    color: #0066cc;
    text-decoration: none;
}

.project-details a:hover {
    text-decoration: underline;
}

/* Styles specific to portfolio page buttons */
.project-buttons .btn {
    background-color: var(--button-bg);
    color: var(--button-text);
}

.project-buttons .btn:hover {
    background-color: var(--hover-color);
    color: var(--button-text);
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    margin-right: 10px;
}
