body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #0D1117; /* Darker, more modern background */
    color: #e6edf3; /* Lighter text for better contrast */
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.1) 1px, transparent 0);
    background-size: 20px 20px;
}
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px; /* Slightly narrower */
    height: 100%;
    background: rgba(13, 17, 23, 0.7); /* Semi-transparent background */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* For Safari */
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    transition: transform 0.3s ease;
    z-index: 1000;
}
.sidebar .logo {
    text-align: center;
    margin-bottom: 40px; /* More space */
    padding: 0 10px;
}
.logo img {
    max-width: 240px; /* Adjusted size */
    height: auto;  
}
.menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(33, 38, 45, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f0f0f0;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001; /* Make sure it's on top */
    border-radius: 8px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
}
.sidebar ul {
    list-style: none;
    padding: 0;
}
.sidebar ul li {
    margin: 10px 20px; /* Vertical and horizontal margin */
    text-align: left; /* Align text to the left */
}
.sidebar ul li a {
    color: #f0f0f0;
    text-decoration: none;
    font-weight: 500; /* Slightly lighter weight */
    font-size: 1.1em;
    display: flex; /* Use flex for alignment */
    align-items: center;
    padding: 12px 15px; /* Padding for a larger click area */
    border-radius: 8px;
    transition: background 0.3s, color 0.3s;
}
.sidebar ul li a:hover, .sidebar ul li a.active-link {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}
.sidebar ul li a i {
    margin-right: 12px; /* More space for icon */
    font-size: 1.3em;
    vertical-align: middle;
    width: 24px; /* Fixed width for alignment */
    text-align: center;
}
main {
    margin-left: 280px; /* Match new sidebar width */
    padding: 40px;
}
.main-container {
    max-width: 960px; /* Wider container */
    margin: 0 auto;
    padding: 20px;
}
.hero {
    text-align: center;
    padding: 60px 20px;
    max-width: 1000px;
    margin: 0 auto;
}
.hero img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 25px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 30px rgba(0, 191, 255, 0.3); /* Deep sky blue glow */
}
.hero h1 {
    margin-bottom: 15px;
    font-size: 3.5em; /* Larger font */
    font-weight: 600;
    /* Gradient text effect */
    background: linear-gradient(90deg, #58A6FF, #A371F7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}
.hero p {
    font-size: 1.2em;
    color: #8b949e; /* Softer color */
}
section {
    margin-bottom: 80px;
}
h2 {
    font-size: 2em;
    margin-bottom: 30px;
    color: #58A6FF; /* New accent color (light blue) */
    border-bottom: 2px solid rgba(88, 166, 255, 0.2);
    padding-bottom: 10px;
    font-weight: 600;
}
h3 {
    margin-top: 30px;
    color: #c9d1d9;
    font-size: 1.4em;
}
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Larger min size */
    gap: 25px;
}
.project-item {
    background: rgba(33, 38, 45, 0.6); /* Darker card background */
    padding: 25px;
    text-align: center;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 500;
}
.project-item:hover {
    transform: translateY(-5px); /* Lift effect */
    border-color: rgba(88, 166, 255, 0.8); /* Highlight with accent color */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(13, 17, 23, 0.5); /* Darker overlay */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal-content {
    background: rgba(22, 27, 34, 0.95); /* Darker modal content */
    margin: 8% auto; /* Adjust margin */
    padding: 40px;
    border-radius: 15px;
    max-width: 800px; /* Wider modal */
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.close-button {
    color: #e6edf3;
    float: right;
    font-size: 32px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 25px;
    cursor: pointer;
    transition: color 0.3s;
}

.close-button:hover {
    color: #F27052;
}

.modal-title {
    font-size: 2em;
    margin-bottom: 20px;
    color: #58A6FF; /* New accent color */
}

.modal-description {
    margin-bottom: 25px;
    font-size: 1.1em;
    color: #c9d1d9;
    line-height: 1.6;
}

.modal-images {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.modal-images img {
    max-width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

footer {
    text-align: center;
    padding: 20px;
    background: transparent; /* Make it blend with body */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #8b949e;
    font-size: 0.9em;
    margin-top: 40px;
}
footer a {
    color: #58A6FF;
    text-decoration: none;
    font-weight: 500;
    margin: 0 10px;
}
footer a:hover {
    text-decoration: underline;
}
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 100%;
        height: 100vh; /* Full height on mobile */
        top: 0;
        border-right: none;
        background: rgba(13, 17, 23, 0.95); /* More opaque on mobile */
    }
    .sidebar.active {
        transform: translateX(0);
    }
    .menu-toggle {
        display: block;
    }
    .sidebar ul {
        text-align: center;
        margin-top: 60px;
    }
    .sidebar ul li {
        display: block;
        margin: 20px 0;
        text-align: center;
    }
    .sidebar ul li a {
        justify-content: center;
    }
    main {
        margin-left: 0;
        padding: 20px;
        padding-top: 80px; /* Space for menu toggle */
    }
    .hero {
        padding-top: 20px;
    }
    .hero h1 {
        font-size: 2.5em;
    }
    .hero p {
        font-size: 1.1em;
    }
    .modal-content {
        width: 90%;
        margin: 15% auto;
        padding: 25px;
    }
}

/* New Project Page Layout */
.project-row {
    display: flex;
    align-items: flex-start;
    gap: 50px;
    margin-bottom: 80px;
    padding: 40px;
    background: rgba(33, 38, 45, 0.4); /* Subtle container background */
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-row:nth-child(even) {
    flex-direction: row-reverse; /* Alternate layout */
}

.project-text {
    flex: 1;
}

.project-text h3 {
    margin-top: 0;
    color: #58A6FF;
    font-size: 1.8em;
    margin-bottom: 20px;
}

.project-text a, .project-text a:visited, .project-text a:hover, .project-text a:active {
    color: #e9973f;
    font-weight: 600;
    text-decoration: none; /* Keep this to override defaults */
    position: relative; /* For positioning the pseudo-element */
    padding-bottom: 2px; /* Add some space for the underline */
}

.project-text a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #58A6FF; /* Use the site's accent color */
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.project-text a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}
.project-images {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-images img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

@media (max-width: 900px) {
    .project-row, .project-row:nth-child(even) {
        flex-direction: column;
    }
}