body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background-color: #0d1e4a; /* Dark background */
    color: #ecf0f1; /* Light text */
    line-height: 1.6;
}

header {
    background-color: #0a183d; /* Even darker header */
    color: #ecf0f1;
    padding: 2rem 1rem;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

h1 {
    margin: 0;
    font-size: 2.5em;
}

main {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    background-color: #1a2b5a; /* Darker background for tabs container */
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    overflow: hidden;
}

.tab-button {
    background-color: #1a2b5a; /* Dark background for inactive tabs */
    border: none;
    cursor: pointer;
    padding: 1.2rem 2rem;
    font-size: 1.1em;
    font-weight: bold;
    color: #bdc3c7; /* Lighter text for inactive tabs */
    transition: background-color 0.3s ease, color 0.3s ease;
    flex-grow: 1;
    text-align: center;
}

.tab-button:hover {
    background-color: #2a3f7a; /* Slightly lighter on hover */
}

.tab-button.active {
    background-color: #007bff; /* Vibrant blue for active tab */
    color: #fff;
    box-shadow: inset 0 3px 0 0 #0056b3; /* Darker blue shadow */
}

.tab-content {
    display: none;
    background-color: #1a2b5a; /* Dark background for content areas */
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    height: 700px;
}

.tab-content.active {
    display: block;
}

.projects-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: flex-start;
    align-items: stretch;
    padding-right: 8px; /* for scrollbar space */
    overflow-y: auto;
    max-height: 650px;
}

.project-card {
    background: #1f3a7a;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    overflow: hidden;
    width: 290px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
    max-height: 300px;
}

.project-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 6px 18px rgba(0,0,0,0.22);
}

.project-image img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: #0d1e4a;
    display: block;
}

.project-info {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: 180px;
}

.project-info h3 {
    margin: 0 0 0.7rem 0;
    color: #fff;
    font-size: 1.25em;
}

.project-info p {
    color: #bdc3c7;
    font-size: 1em;
    margin: 0;
    flex: 1;
}

.skill-icon {
    width: 60px;
    height: 60px;
    margin: 0 8px 12px 0;
    vertical-align: middle;
    border-radius: 8px;
    padding: 6px;
    box-sizing: content-box;
}

.profile-img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.aboutme-flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.aboutme-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.aboutme-profile h1 {
    font-size: 2.2em;
    color: #fff;
    text-align: center;
}

.aboutme-contact {
    text-align: center;
    margin-top: 1.2rem;
    margin-bottom: 1.2rem;
}

.aboutme-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.aboutme-icons a i {
    color: white;
    font-size: 2em;
}

@media (max-width: 900px) {
    .projects-grid {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    .project-card {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 700px) {
    .aboutme-flex {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    .aboutme-profile {
        min-width: unset;
        max-width: unset;
        width: 100%;
        text-align: center;
    }
    .aboutme-bio {
        width: 100%;
        align-items: center;
        text-align: center;
    }
    .profile-img {
        margin: 0 auto;
        float: none;
    }
    .projects-grid {
        max-height: none;
    }
    .project-card {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .projects-grid {
        flex-direction: column;
        align-items: center;
    }
    .project-card {
        width: 100%;
        max-width: 100%;
        margin-bottom: 1.5rem;
        max-height: 450px;
    }
    .tab-content {
        height: auto;
    }
}