/* General Reset */
body, h1, h2, p, ul, ol, li, a {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: #f0f0f0;
    background: #181818; /* Dark gray background */
}

img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 80%;
    max-height: 750px;
}

figure {
    display: block;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 1em;
    margin-inline-end: 1em;
    unicode-bidi: isolate;
}

figcaption {
    font-size: 1em;
    color: white;
    font-style: italic;
    padding: 2px;
    text-align: center;
}

.roundimg {
    border-radius: 15px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.container_narrow {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
}

.hero {
    background: linear-gradient(to bottom right, #ff005c, #ff77a9); /* Dark pink gradient */
    color: white;
    text-align: center;
    padding: 60px 20px;
}

.hero h1 {
    font-size: 3.5em;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 25px;
}

.hero nav ul {
    list-style: none;
}

.hero nav ul li {
    display: inline;
    margin: 0 15px;
}

.hero nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1em;
}

.hero nav ul li a:hover {
    text-decoration: underline;
}

.section {
    padding: 60px 20px;
    background: #2a2a2a; /* Slightly lighter dark gray */
    border-top: 1px solid #444;
}

.section h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
    color: #ff77a9; /* Accent pink */
}

.section p {
    font-size: 1.2em;
    text-align: justify;
    margin-bottom: 30px;
    color: #cccccc;
}

.section a {
    color: #ff77a9; /* Accent color for headings */
}

footer {
    background: #181818;
    color: white;
    text-align: center;
    padding: 20px 0;
}

footer p {
    font-size: 0.9em;
}

/* Updates for Projects Section */
.project-grid {
    display: flex;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.project-item {
    background: #333333;
    border: 1px solid #444;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    flex-direction: column;
    max-width: 500px;
}

.project-item img,
.project-item .placeholder svg {
    max-width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
    display: block;
}

.project-item h3 {
    font-size: 1.5em;
    color: #ff77a9; /* Accent pink */
    margin-bottom: 10px;
}

.project-item p {
    font-size: 1em;
    color: #cccccc;
    margin-bottom: 15px;
}

/* Updates for View Details link */
.details-link {
    display: inline-block;
    background: #ff77a9;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.details-link:hover,
.details-link:focus {
    background: #ff005c;
    color: #ffffff; /* Ensure text stays white when hovered or focused */
}

/* Social Links Styling */
.social-links {
    margin-top: 15px;
    display: flex;
    justify-content: center; /* Centers icons horizontally */
    align-items: center; /* Ensures the icons are aligned properly */
}

.social-icon {
    color: #fff;
    text-decoration: none;
    margin: 0 15px; /* Space out icons */
    font-size: 2em;  /* Adjusted size for better visibility */
    transition: all 0.3s ease;
    padding: 10px; /* Added padding for clickable area */
}

.social-icon:hover {
    transform: scale(1.1);  /* Slightly enlarge icons on hover */
}

/* LinkedIn icon styles */
.social-icon.linkedin {
    border-radius: 50%; /* Makes the icon circular */
    border: 2px solid #0077b5; /* LinkedIn's brand color */
    padding: 10px;
}

.social-icon.github {
    border-radius: 50%; /* Makes the icon circular */
    border: 2px solid #333; /* GitHub's brand color */
    padding: 10px;
}

.social-icon.mail {
    border-radius: 50%; /* Makes the icon circular */
    border: 2px solid #7f7f7f;
    padding: 10px;
}

.social-icon i {
    display: block;
    transition: color 0.3s ease;
}

/* Hover effect: change icon color */
.social-icon:hover i {
    color: #fff; /* Maintain white icon on hover */
}

/* Local Font Awesome icons */
@font-face {
    font-family: 'Font Awesome 5 Free';
    src: url('libs/fontawesome/webfonts/fa-solid-900.woff2') format('woff2'),
         url('libs/fontawesome/webfonts/fa-solid-900.woff') format('woff');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'Font Awesome 5 Free';
    src: url('libs/fontawesome/webfonts/fa-regular-400.woff2') format('woff2'),
         url('libs/fontawesome/webfonts/fa-regular-400.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Font Awesome 5 Brands';
    src: url('libs/fontawesome/webfonts/fa-brands-400.woff2') format('woff2'),
         url('libs/fontawesome/webfonts/fa-brands-400.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

/* Main Project Page Layout */
.project-detail {
    display: flex; /* Flexbox layout to arrange content and sidebar horizontally */
    justify-content: space-between; /* Spaces out content and sidebar */
    margin-top: 20px;
    gap: 20px; /* Space between content and sidebar */
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Sidebar Styling */
.project-sidebar {
    align-self: flex-start;
    width: 200px; /* Fixed width for the sidebar */
    background-color: #2a2a2a;
    color: white;
    padding: 20px;
    position: sticky; /* Keeps sidebar visible while scrolling */
    top: 20px;
    flex-shrink: 0; /*Prevent sidebar from shrinking*/
}

/* Sidebar links */
.project-sidebar h3 {
    text-align: center;
    font-size: 1.4em;
}

.project-sidebar ul {
    list-style-type: none;
    padding: 0;
}

.project-sidebar ul li {
    margin-bottom: 10px;
}

.project-sidebar ul li a {
    text-decoration: none;
    color: white;
    font-size: 1.1em;
    display: block;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.project-sidebar ul li a:hover {
    background-color: #ff77a9; /* Highlighted background on hover */
}

.project-stage {
    margin-bottom: 40px;
    font-size: 1.1em;
}

.project-stage h3 {
    font-size: 1.6em;
    color: #ff77a9; /* Accent color for headings */
}

.project-stage h4 {
    font-size: 1.2em;
    color: #ff77a9; /* Accent color for headings */
}

.project-stage p {
    font-size: 1em;
    line-height: 1.6;
    color: #ccc; /* Light gray text for paragraphs */
}

.project-stage p + ul {
    margin-top: -1lh;
}

.project-stage p + ol {
    margin-top: -1lh;
}

.project-stage ol + p {
    margin-top: +1lh;
}

.project-stage ul + p {
    margin-top: +1lh;
}

.project-stage ul {
    text-align: justify;
    font-size: 1em;
    margin-left: 3em;
    line-height: 1.6;
    color: #ccc; /* Light gray text for paragraphs */
}

.project-stage ol {
    text-align: justify;
    font-size: 1em;
    margin-left: 3em;
    line-height: 1.6;
    color: #ccc; /* Light gray text for paragraphs */
}

/* Responsive Layout */
@media (max-width: 768px) {
    .project-detail {
        padding-top: 20px;
        flex-direction: column-reverse; /* Stack the sidebar and content on small screens */
        gap: 20px; /* Add space between stacked items */
    }

    .project-sidebar {
        width: 100%;
        box-sizing: border-box;
        position: unset;
    }

    .section {
        border-top: 0px solid #444;
    }

    img {
        max-width: 100%;
        max-height: 750px;
    }

    figure {
        margin-block-start: 0;
        margin-block-end: 0;
        margin-inline-start: 0;
        margin-inline-end: 0;
    }

    .project-stage ul {
        margin-left: 1em;
    }
    
    .project-stage ol {
        margin-left: 1.5em;
    }
}

/* Style for 'Get back to the Home page' link */
.home-link {
    display: block;
    font-size: 1em;
    color: #ffffff; /* Accent color */
    text-decoration: none;
    margin-bottom: 15px; /* Space between the link and title */
    text-align: center;
}

.home-link:hover {
    text-decoration: underline;
    color: #ffffff; /* Lighter color on hover */
}

/* Style for 'Get back to the Home page' link */
.text-link {
    color: #ff77a9; /* Accent color */
}

.text-link:hover {
    text-decoration: underline;
    color: #ffffff; /* Lighter color on hover */
}