* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f6f8fa;
    color: #24292f;
    min-height: 100vh;
}

header {
    text-align: center;
    padding: 60px 20px 35px;
}

header h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

header p {
    color: #57606a;
    font-size: 17px;
}

main {
    width: 90%;
    max-width: 900px;
    margin: auto;
}

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.search-box input {
    flex: 1;
    padding: 14px 16px;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
}

.search-box input:focus {
    border-color: #0969da;
}

.search-box button {
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    background: #24292f;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

.search-box button:hover {
    opacity: 0.85;
}

#profile {
    background: white;
    padding: 30px;
    border: 1px solid #d0d7de;
    border-radius: 12px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.profile-header img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
}

.profile-header h2 {
    margin-bottom: 5px;
}

.profile-header p {
    color: #57606a;
    margin-bottom: 5px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.stats div {
    padding: 20px;
    text-align: center;
    background: #f6f8fa;
    border-radius: 8px;
}

.stats strong {
    display: block;
    font-size: 24px;
    margin-bottom: 6px;
}

.stats span {
    color: #57606a;
    font-size: 14px;
}

.languages,
.repositories {
    margin-top: 25px;
}

.languages h3,
.repositories h3 {
    margin-bottom: 15px;
}

#languageList,
#repoList {
    display: grid;
    gap: 10px;
}

.repo-card {
    padding: 15px;
    border: 1px solid #d0d7de;
    border-radius: 8px;
}

.repo-card h4 {
    margin-bottom: 6px;
}

.repo-card p {
    color: #57606a;
    font-size: 14px;
}

#githubLink {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 18px;
    background: #24292f;
    color: white;
    text-decoration: none;
    border-radius: 8px;
}

#error {
    text-align: center;
    color: #cf222e;
    margin-top: 20px;
}

footer {
    text-align: center;
    padding: 40px 20px;
    color: #57606a;
}

@media (max-width: 600px) {
    header h1 {
        font-size: 28px;
    }

    .search-box {
        flex-direction: column;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }
  }
