/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
        Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    background-color: #000;
    color: #fff;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.min-h-screen {
    min-height: 100vh;
}

/* Hero section */
.hero {
    position: relative;
    padding: 80px 0;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 24px;
    color: #ffffff;
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4rem;
    }
}

.hero-description {
    font-size: 1.25rem;
    color: #d1d5db;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .hero-description {
        font-size: 1.5rem;
    }
}

.button-container {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    padding: 12px 24px;
    border-radius: 9999px;
    transition: all 0.3s ease;
}

.button-primary {
    background: #22d3ee;
    color: black;
}

.button-primary:hover {
    background: #06b6d4;
}

.button-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.button-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.button-project {
    background-color: var(--project-color);
}

.button-project:hover {
    background-color: white;
    color: black;
}

/* Projects section */
.projects-section {
    padding: 64px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 48px;
    text-align: center;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
}

.gradient-text {
    color: #22d3ee;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.project-card {
    background-color: rgba(31, 41, 55, 0.5);
    border: 1px solid #374151;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    border-color: var(--project-color);
}

.project-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.project-image {
    transition: transform 0.5s ease;
}

.project-card:hover .project-image {
    transform: scale(1.1);
}

.project-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.project-card:hover .project-title {
    color: var(--project-color);
}

.project-description {
    color: #9ca3af;
    margin-bottom: 16px;
    flex: 1;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.tag {
    font-size: 0.75rem;
    background-color: #1f2937;
    color: #d1d5db;
    padding: 4px 8px;
    border-radius: 9999px;
}

.project-link {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
    color: #22d3ee;
    font-weight: 500;
}

.project-card:hover .project-link {
    color: #ffffff;
}

.arrow-icon {
    transition: transform 0.3s ease;
}

.project-card:hover .arrow-icon {
    transform: translateX(4px);
}

/* Footer */
.footer {
    padding: 48px 0;
    border-top: 1px solid #374151;
}

.footer-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
    }
}

.copyright {
    color: #9ca3af;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .copyright {
        margin-bottom: 0;
    }
}

.freedns {
    color: #9ca3af;
    font-size: 10px;
    transition: color 0.3s ease;
}

.freedns:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 24px;
}

.social-link {
    color: #9ca3af;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: white;
}

/* Project detail page */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #9ca3af;
    transition: color 0.3s ease;
    padding: 16px 0;
}

.back-link:hover {
    color: white;
}

.project-header {
    text-align: center;
    padding: 48px 0;
}

.project-header-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 16px;
}

.project-header-subtitle {
    font-size: 1.25rem;
    color: #d1d5db;
    max-width: 600px;
    margin: 0 auto;
}

.project-description-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 32px 0;
}

.project-description-text {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 32px;
}

.project-showcase-section {
    padding: 48px 0;
}

.showcase-item {
    display: flex;
    justify-content: center;
    margin-bottom: 48px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.showcase-item-left {
    justify-content: flex-start;
}

.showcase-item-right {
    justify-content: flex-end;
}

@media (max-width: 767px) {
    .showcase-item,
    .showcase-item-left,
    .showcase-item-right {
        justify-content: center;
    }
}

.showcase-card {
    background-color: rgba(31, 41, 55, 0.5);
    border: 1px solid #374151;
    border-radius: 12px;
    overflow: hidden;
    padding: 16px;
    max-width: 400px;
    width: 100%;
    opacity: 0;
    transform: translateX(-100px);
    animation: slideInLeft 0.8s ease-out forwards;
}

.showcase-item-right .showcase-card {
    transform: translateX(100px);
    animation: slideInRight 0.8s ease-out forwards;
}

.showcase-item:nth-child(1) .showcase-card {
    animation-delay: 0.2s;
}

.showcase-item:nth-child(2) .showcase-card {
    animation-delay: 0.4s;
}

.showcase-item:nth-child(3) .showcase-card {
    animation-delay: 0.6s;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.showcase-image-container {
    margin-bottom: 16px;
}

.showcase-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.showcase-title {
    font-size: 1.25rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 8px;
}

.game-description {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 0;
}

.game-description-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
}

@media (min-width: 768px) {
    .game-description-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.game-description-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 16px;
    color: #22d3ee;
}

.game-description-text {
    margin-bottom: 16px;
}

.world-card {
    background-color: rgba(31, 41, 55, 0.5);
    border: 1px solid #374151;
    border-radius: 12px;
    overflow: hidden;
}

.world-content {
    padding: 16px;
}

.world-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.world-description {
    color: #9ca3af;
}

/* Future project page */
.coming-soon-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    position: relative;
}

.construction-icon {
    color: #eab308;
    margin-bottom: 24px;
    width: 64px;
    height: 64px;
}

.coming-soon-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 16px;
    text-align: center;
}

@media (min-width: 768px) {
    .coming-soon-title {
        font-size: 2.5rem;
    }
}

.coming-soon-description {
    font-size: 1.25rem;
    color: #d1d5db;
    max-width: 400px;
    text-align: center;
}

.project-links-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    gap: 10px;
}
