body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fdfdfd;
    color: #000;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Header with plain white background */
header {
    background-color: #ffffff;
    border-bottom: 2px solid #000;
    color: #000;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Align everything left */
}

.header-logo {
    flex-shrink: 0;
    margin-right: 10px; /* Space between logo and content */
}

.logo {
    max-width: 100px; /* Consistent size for larger PNG */
    height: auto;
    display: block;
}

.header-content {
    flex-grow: 1;
    text-align: left; /* Align title, nav, and icons left */
    margin: 0; /* Remove any extra margin */
    padding: 0; /* Remove padding */
}

h1 {
    margin: 5px 0 2px;
    font-size: 24px;
    color: #000 !important;
}

nav {
    margin: 2px 0;
    white-space: nowrap; /* Prevent links from wrapping */
    display: flex;
    justify-content: flex-start; /* Align links left */
}

nav a {
    margin: 0 8px; /* Reduced margin for tighter spacing */
    text-decoration: none;
    color: #0000FF !important; /* Blue links */
    font-weight: bold;
    font-size: 14px;
    transition: color 0.2s ease;
}

nav a:first-child {
    margin-left: 0; /* Remove left margin for first link */
}

nav a:hover {
    color: #3333FF !important; /* Lighter blue on hover */
}

main {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    max-width: 1000px;
    margin: 20px auto;
    min-height: 80vh;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

/* Ensure non-link text is black */
h2, p {
    color: #000 !important;
}

.lead {
    font-size: 1.2rem;
    font-weight: bold;
    color: #000 !important;
}

/* Social icons in header */
.twitter-nav {
    margin: 2px 0;
    display: flex;
    justify-content: flex-start; /* Align left */
    gap: 15px;
}

.twitter-icon, .telegram-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.twitter-icon:hover, .telegram-icon:hover {
    transform: scale(1.1);
}

/* Project images at bottom */
.project-images {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    gap: 20px;
}

.project-item {
    flex: 1;
    min-width: 120px; /* Allow smaller width for mobile */
    text-align: center;
}

.project-img {
    max-width: 100px; /* Scaled for side-by-side */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: block;
    margin: 0 auto 10px;
}

.project-item p {
    margin: 0;
    font-size: 14px;
    color: #000 !important;
}

.project-item a {
    color: #0000FF !important; /* Blue links */
    text-decoration: none;
    transition: color 0.2s ease;
}

.project-item a:hover {
    color: #3333FF !important; /* Lighter blue on hover */
}

/* Contact text at bottom */
.contact-text {
    margin-top: 20px;
    color: #000 !important;
}

.contact-text.left-align {
    text-align: left; /* Left-align contact text */
}

.contact-text a {
    color: #0000FF !important; /* Blue links */
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-text a:hover {
    color: #3333FF !important; /* Lighter blue on hover */
}

/* Responsive design */
@media (max-width: 600px) {
    header {
        flex-direction: row;
        align-items: center;
        padding: 5px 10px;
    }

    .header-logo {
        margin-right: 10px;
    }

    .logo {
        max-width: 100px; /* Same size as desktop */
    }

    .header-content {
        text-align: left;
    }

    h1 {
        font-size: 20px;
    }

    nav {
        flex-wrap: nowrap; /* Ensure links stay on one line */
    }

    nav a {
        margin: 0 6px; /* Even tighter for mobile */
        font-size: 12px; /* Smaller for mobile */
        color: #0000FF !important;
    }

    nav a:first-child {
        margin-left: 0; /* Remove left margin for first link */
    }

    .project-images {
        flex-direction: row; /* Side by side */
        justify-content: center;
        gap: 10px;
    }

    .project-img {
        max-width: 80px; /* Scaled for mobile */
    }

    main {
        padding: 20px;
    }
}