body {
    margin: 0;
    padding: 0;
    background-color: var(--color-bg-light);
    font-family: Arial, Helvetica, sans-serif;
}

a {
    text-decoration: none;
}

.page-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    background-color: var(--color-bg-primary);
    box-shadow: 0 0 10px var(--color-shadow-light);
}

.container {
    margin: 0 auto;
    padding: 20px 20px;
    max-width: 900px;
    min-height: 100vh;
}

@media (max-width: 500px) {
    .container {
    padding: 20px 10px;
    }
}

.header-style {
    text-align: center;
    font-size: 24px;
    margin-bottom: 10px;
}

hr {
    width: 100%;
    margin: 10px auto 10px auto;
}

.section {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

.section hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 0 0 10px 0;
    width: 100%;
}

.section-content {
    margin-top: 10px;
    margin-bottom: 10px;
}

.content-center {
    display: flex;
    justify-content: center;
}

/* Grid for Desktop Apps */

.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 800px;
    margin-top: 10px;
}

@media (min-width: 700px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1000px) {
    .grid-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

.grid-link {
    text-decoration: none;
    display: block;
    cursor: pointer;
}

.grid-item {
    position: relative;
    aspect-ratio: 1 / 1;
    padding: 12px;
    background-color: var(--color-bg-primary);
    border-radius: 15px;
    border: 1px solid var(--color-border);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    display: block;
    z-index: 1;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg-overlay);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 15px;
    z-index: 2;
    pointer-events: none;
}

.overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--color-text-light);
    font-size: 20px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    padding: 0 10px;
    width: 90%;
    z-index: 3;
}

.grid-link:hover .grid-overlay {
    opacity: 1;
}

.grid-link:hover .overlay-text {
    opacity: 1;
}

/* Stats section */

.reference-link {
    margin-left: 5px;
    text-decoration: none;
    cursor: pointer;
}

.reference-link:hover {
    color: var(--color-text-primary);
}

.stats-content {
    padding: 0 20px;
    box-sizing: border-box;
}

.github-stats {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.github-stats img {
  width: 50%;
  height: auto;
  object-fit: contain;
  display: block;
  max-width: 100%;
}


@media (max-width: 768px) {
    .github-stats img {
        width: 90%;
    }
}

/* footer */

.footer {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;
    background-color: var(--color-bg-footer);
    padding: 20px;
    font-family: sans-serif;
}

.footer-left,
.footer-right {
    padding: 20px;
    box-sizing: border-box;
}

.footer-left {
    width: 60%;
}

.footer-right {
    width: 40%;
}

.footer-left h1,
.footer-right h1 {
    font-size: 20px;
    margin: 0 0 10px 0;
    color: var(--color-text-heading);
}

.footer-left hr,
.footer-right hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 0 0 10px 0;
    width: 100%;
}

.footer-left p {
    margin: 0;
    font-size: 14px;
    color: var(--color-text-secondary);
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a img {
    width: 30px;
    height: 30px;
    object-fit: cover;
    transition: opacity 0.3s;
    cursor: pointer;
    background-color: var(--color-bg-primary);
    border-radius: 8px;
}

.social-icons a img:hover {
    opacity: 0.6;
}

@media (max-width: 768px) {
    .footer {
    flex-wrap: wrap;
    }

    .footer-left,
    .footer-right {
    width: 100%;
    }
}
