html, body {
    margin: 0;
    padding: 0;
    width: 100%; /* Ensures the body is confined to the viewport width */
    overflow-x: hidden; /* Prevents horizontal scrolling */
    
}

/* Hero Section Styling */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    /*min-height: 10vh; /* Sets a minimum height for the hero section */
    width: 100%; /* Ensures the hero spans the entire width */
    min-height: 80vh;
}

/* Hero Container */
.hero-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 90%;
    gap: 20px;
}

/* Hero Image Container */
.hero-image-container {
    flex: 0 0 40%; /* Increase the width to allow a bigger image */
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-right: 20px;
}

/* Hero Image */
.hero-image {
    width: 100%;
    height: 100%; /* Ensures a perfect circle */
    max-width: 100px; /* Adjust the maximum size for larger screens */
    aspect-ratio: 1 / 1; /* Enforces a 1:1 aspect ratio for a perfect circle */
    border-radius: 50%; /* Makes the image completely round */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); /* Adds a shadow for depth */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 3px solid var(--stars-detail);
}

.hero-image:hover {
    transform: scale(1.1); /* Slight zoom effect on hover */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5); /* Enhanced shadow on hover */
}


/* Hero Text */
.hero-text {
    flex: 0 0 40%; /* Hero text takes 40% of the container width */
    color: var(--text-primary);
    text-align: center;
    min-width: fit-content;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-text:hover {
    transform: scale(1.1); /* Slight zoom effect on hover */
}

.hero-text h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 10px;
    margin-top: 10px;
    color: var(--text-primary);
}

.hero-text h2 {
    font-family: var(--font-body);
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.hero-text p {
    font-family: var(--font-body);
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.hero-button,
.cta-button-one {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--accent-purple);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.hero-button:hover,
.cta-button-one:hover {
    background-color: var(--background-dark);
    box-shadow: 0 0 10px var(--accent-purple);
    color: var(--stars-detail);
}

.cta-button-two,
.hero-button-secondary {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--text-secondary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.cta-button-two:hover
.hero-button-secondary:hover {
    background-color: var(--background-dark);
    box-shadow: 0 0 10px var(--accent-purple);
    color: var(--accent-purple);
}

/* Skills Section Wrapper */
.skills {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.skills h2 {
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
}

/* Grid Layout for Skills */
.skills-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    text-align: center;
    gap: 30px; /* Space between items */
    width: 100%;
     /* Restricts the grid's maximum width */

}

/* Individual Skill Items */
.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--text-primary); /* Default text color */
   
    transition: color 0.3s ease, transform 0.3s ease; /* Smooth hover animations */
}

.skill-item:hover {
    color: var(--accent-purple); /* Hover effect changes color to purple */
    transform: translateY(-5px); /* Slight lift on hover */
}

/* Skill Icons */
.skill-icons {
    font-size: 2rem; /* Consistent size for all icons */
    margin-bottom: 5px; /* Space between icon and name */
}

/* Skill Names */
.skill-item span {
    font-size: 0.8rem;
    font-family: var(--font-body);
}



.overview-grid {
    display:flex;
    flex-direction: row; /* Align sections in a row */
    justify-content: space-between; /* Distribute space evenly between sections */
    align-items: stretch; /* Ensure all items have the same height */
    gap: 20px; /* Space between the sections */
    padding: 15px;
    background-color: var(--divider-line);
}



.overview-grid > * {
   
    background-color: var(--background-dark); /* Example styling for visibility */
    padding: 20px; /* Inner padding for content */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); /* Add a shadow for aesthetics */
    border-radius: 5px; /* Rounded corners for design */
    text-align: center; /* Center-align content for readability */
}

.overview-grid p {
    text-align: justify;
    padding-left: 15px;
    padding-right: 15px;
    margin-top: 0px;
}

.overview-grid h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--accent-purple);
}

.button-group a {
    font-size: 16px; /* Adjust as needed */
    font-weight: 500; /* Medium weight for better emphasis */
    text-transform: uppercase; /* Optional: Adds a bold and modern look */
    letter-spacing: 0.05em; /* Slight spacing for clarity */
    line-height: 1.5; /* Keeps links spaced nicely */
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.button-group a:hover {
    color: var(--stars-detail);
}

.cta {
    text-align: center;
    margin: 40px 0; /* Adds space between sections */
    padding: 20px;
    background-color: var(--background-dark); /* Matches the site's theme */
    border-radius: 10px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); /* Subtle shadow for emphasis */
}

.cta h3 {
    font-size: 1.8rem;
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin-bottom: 10px;
}

.cta p {
    font-size: 1rem;
    font-family: var(--font-body);
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.projects {
    background-color: var(--background-dark);
}

.featured-links a {
    font-size: 14px; /* Adjust as needed */
    font-weight: 500; /* Medium weight for better emphasis */
    text-transform: uppercase; /* Optional: Adds a bold and modern look */
    letter-spacing: 0.05em; /* Slight spacing for clarity */
    line-height: 1.5; /* Keeps links spaced nicely */
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-links a:hover {
    color: var(--hover-glow);
}

.featured-links ul {
    padding-left: 0;
    margin-top: 20px;
}
.featured-links ul li {
    list-style-type: none;
    margin-bottom: 10px;
}

.featured-projects h2 {
    text-align: center;
    color: var(--text-primary);
    margin: 0;
    padding: 10px;
}
.projects-grid {
    display: flex;
    flex-direction: row; /* Ensures all items are in a single row */
    justify-content: space-evenly; /* Centers the grid horizontally */
    align-items: center; /* Ensures items align vertically */
    gap: 15px; /* Consistent spacing between items */
    padding: 10px;
    overflow-x: auto; /* Allows horizontal scrolling for small screens */
}

.project-item {
    flex: 0 0 250px; /* Fixes each item to a square */
    width: 250px; /* Explicit width for consistency */
    height: 250px; /* Explicit height to maintain square shape */
    background-color: var(--accent-purple); /* Matches site theme */
    border-radius: 10px; /* Rounded corners */
    text-align: center; /* Centers text inside each item */
    padding: 10px;
    display: flex; /* Ensures content inside aligns properly */
    flex-direction: column; /* Stacks content (image + text) vertically */
    justify-content: center; /* Centers content vertically */
    align-items: center; /* Centers content horizontally */
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3); /* Adds a shadow for depth */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-item img {
    width: 90%; /* Ensures the image fills the container */
    height: 90%; /* Ensures the image fills the container */
    object-fit: cover; /* Crops the image to maintain aspect ratio */
    border-radius: 10px; /* Matches container's rounded corners */
    margin-bottom: 10px; /* Adds spacing between the image and text */
    transition: transform 0.3s ease;
}

#opensource img {
    width: 90%; /* Ensures the image fills the container */
    height: 80%; /* Ensures the image fills the container */
    object-fit: cover; /* Crops the image to maintain aspect ratio */
    border-radius: 10px; /* Matches container's rounded corners */
    margin-bottom: 10px; /* Adds spacing between the image and text */
    transition: transform 0.3s ease;
}

.project-item h2 {
    font-size: 1rem;
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin: 0;
    text-align: center; /* Centers the text */
}

.project-item:hover {
    transform: scale(1.05); /* Slightly enlarges the project item */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5); /* Enhances shadow on hover */
}

#contact-cta {
    margin-bottom: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Subtle top border */
}

/* END OF HOME.CSS anthonyem.com */