* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

:root {
    --about-heading-color: #ECE8DD;
    --about-text-color: #d1cdc0;
    --about-underline-color: #ECE8DD;
    --portfolio-bg-color: #181818;

    --fs-xl: clamp(2rem, 5vw, 4rem);
    --fs-lg: clamp(1.6rem, 3vw, 3rem);
    --fs-md: clamp(1rem, 2vw, 1.5rem);
    --fs-sm: clamp(0.8rem, 1.5vw, 1rem);
    --fs-xs: clamp(0.7rem, 1.2vw, 0.9rem);

    --section-padding: clamp(2rem, 5vh, 6rem) clamp(1rem, 3vw, 2rem);
    --card-padding: clamp(0.8rem, 3vw, 1.25rem);
    --gap-lg: clamp(1rem, 3vw, 2rem);
    --gap-md: clamp(0.8rem, 2vw, 1rem);
    --gap-sm: clamp(0.4rem, 1vw, 0.8rem);
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: var(--section-padding);
}

.hero {
    min-height: 100vh;
    max-height: 100vh;
    height: 100vh;
    background-image: url('images/Backdtop.png');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ECE8DD;
    padding: 0;
}

.title {
    font-size: var(--fs-xl);
    font-weight: 700;
    letter-spacing: -2px;
    text-align: center;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
    cursor: pointer;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

.arrow {
    width: clamp(30px, 5vw, 40px);
    height: clamp(30px, 5vw, 40px);
    border: 2px solid white;
    border-radius: 50%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.arrow:after {
    content: '';
    width: 35%;
    height: 35%;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg) translateY(-2px);
}

.portfolio {
    background-color: var(--portfolio-bg-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: auto;
    height: auto;
}

.portfolio-container {
    max-width: 1200px;
    width: 100%;
    padding: 0 clamp(0.5rem, 2vw, 1.5rem);
}

.about-section {
    text-align: center;
    margin-bottom: clamp(2rem, 5vw, 4rem);
    max-width: min(800px, 90%);
    margin-left: auto;
    margin-right: auto;
}

.about-section h2 {
    font-size: var(--fs-lg);
    margin-bottom: clamp(0.8rem, 2vw, 1.2rem);
    position: relative;
    display: inline-block;
    color: var(--about-heading-color);
}

.about-section h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(30px, 8vw, 60px);
    height: 3px;
    background-color: var(--about-underline-color);
}

.about-section p {
    font-size: var(--fs-sm);
    line-height: 1.8;
    color: var(--about-text-color);
    margin-bottom: 1rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
    gap: var(--gap-lg);
    width: 100%;
    max-width: 1400px;
    margin: 2rem auto;
}


.project-card {
    background-color: #222222;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    transform-origin: center;
}

.project-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
}

.project-image {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #2a2a2a;
    position: relative;
    overflow: hidden;
}

.project-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-info {
    padding: var(--card-padding);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-info h3 {
    font-size: var(--fs-md);
    margin-bottom: var(--gap-sm);
    color: #ECE8DD;
}

.project-info p {
    font-size: var(--fs-sm);
    color: #d1cdc0;
    line-height: 1.6;
    margin-bottom: var(--gap-md);
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-sm);
    margin-bottom: var(--gap-md);
}

.project-tag {
    background-color: #333333;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: var(--fs-xs);
    color: #c0bcb0;
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-md);
    margin-top: auto;
}

.project-links a {
    color: #ECE8DD;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-size: var(--fs-sm);
    transition: color 0.3s;
    margin-bottom: 0.5rem;
}

.project-links a svg {
    width: clamp(16px, 1vw, 18px);
    height: clamp(16px, 1vw, 18px);
    margin-right: 0.4rem;
}

.project-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--gap-sm);
    margin-bottom: 2rem;
}

.filter-btn {
    background-color: #333333;
    color: #ECE8DD;
    border: none;
    padding: clamp(6px, 1.5vw, 8px) clamp(10px, 2vw, 16px);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: var(--fs-xs);
    border: 1px solid transparent;
    margin: 5px;
}

.filter-btn.active {
    background-color: #121212;
    border-color: #ECE8DD;
}

.team {
    background-color: #181818;
    color: #ECE8DD;
    min-height: auto;
    display: flex;
    align-items: center;
}

.contributors {
    background-color: #181818;
    color: #ECE8DD;
    min-height: auto;
    display: flex;
    align-items: center;
    padding-top: 0;
}

.contributors .section-title {
    font-size: var(--fs-sm);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #d1cdc0;
    margin-bottom: clamp(1rem, 2vh, 1.5rem);
}

.contributors .team-grid {
    gap: var(--gap-md);
}

.contributors .team-member {
    width: clamp(160px, 22%, 200px);
    padding: clamp(0.6rem, 1.5vw, 0.8rem);
    background-color: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contributors .team-member h3 {
    font-size: var(--fs-xs);
    margin-bottom: 0.3rem;
}

.contributors .member-title {
    font-size: clamp(0.65rem, 1vw, 0.8rem);
    margin-bottom: var(--gap-sm);
}

.contributors .member-bio {
    display: none;
}

.contributors .member-social {
    gap: 0.6rem;
}

.contributors .member-social svg {
    width: clamp(14px, 1.2vw, 18px);
    height: clamp(14px, 1.2vw, 18px);
}

.contributors .team-member:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.team-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-size: var(--fs-lg);
    margin-bottom: clamp(0.5rem, 2vh, 1rem);
    letter-spacing: -1px;
}

.team-intro {
    font-size: var(--fs-md);
    margin-bottom: clamp(2rem, 4vh, 4rem);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--gap-lg);
    width: 100%;
}

.team-member {
    background-color: #242424;
    border-radius: 10px;
    padding: var(--card-padding);
    width: clamp(250px, 30%, 300px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.team-member h3 {
    font-size: var(--fs-md);
    margin-bottom: 0.5rem;
}

.member-title {
    color: #d1cdc0;
    font-size: var(--fs-sm);
    margin-bottom: var(--gap-md);
}

.member-bio {
    font-size: var(--fs-xs);
    line-height: 1.6;
    margin-bottom: var(--gap-md);
    color: #ECE8DD;
    flex-grow: 1;
}

.member-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: auto;
}

.member-social a {
    color: #ECE8DD;
    transition: color 0.3s ease;
}

.member-social svg {
    width: clamp(16px, 1.5vw, 24px);
    height: clamp(16px, 1.5vw, 24px);
}

.contact {
    background-color: #121212;
    color: #ECE8DD;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: auto;
}

.contact-container {
    width: 90%;
    max-width: 1200px;
    text-align: center;
}

.contact h2 {
    font-size: var(--fs-lg);
    margin-bottom: var(--gap-lg);
}

.contact p {
    font-size: var(--fs-md);
    line-height: 1.6;
    margin-bottom: var(--gap-lg);
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: var(--gap-lg);
    margin-top: var(--gap-lg);
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.contact-item h3 {
    margin-bottom: 0.5rem;
    font-size: var(--fs-md);
}

.email-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.email-button {
    background: linear-gradient(135deg, #5865F2 0%, #4752c4 100%);
    color: #ffffff;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: var(--fs-sm);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.email-button:hover {
    background: linear-gradient(135deg, #6f79e9 0%, #5865F2 100%);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 25px rgba(88, 101, 242, 0.5);
    animation: none;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(88, 101, 242, 0.5);
    }
}

.email-button svg {
    width: 16px;
    height: 16px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: var(--gap-md);
    margin-top: var(--gap-lg);
    flex-wrap: wrap;
}

.social-links a {
    color: #ECE8DD;
    text-decoration: none;
    font-size: var(--fs-sm);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
}

.social-links a svg {
    margin-right: 0.5rem;
    width: clamp(16px, 1.5vw, 24px);
    height: clamp(16px, 1.5vw, 24px);
}



@media (max-width: 768px) {
    :root {
        --section-padding: clamp(1.5rem, 4vh, 3rem) clamp(0.8rem, 2vw, 1.5rem);
    }

    .project-links {
        flex-direction: column;
        align-items: flex-start;
    }

    .social-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
    }

    .team-member {
        width: 100%;
        max-width: 300px;
    }

    .contributors .team-member {
        max-width: 200px;
    }


}

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

@media (max-width: 700px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1025px) {
    .project-card:last-child:nth-child(3n + 1) {
        grid-column: 2;
    }
}
@media (max-width: 480px) {
    .project-card:hover {
        transform: translateY(-5px) scale(1.01);
    }

    .team-member:hover {
        transform: translateY(-5px);
    }
}

.discord-banner {
    background-color: #1f1f1f;
    padding: 2rem 0;
    text-align: center;
    color: #ECE8DD;
}

.discord-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.discord-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.discord-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 0.5rem;
}

.discord-banner h2 {
    font-size: 2.5rem;
    margin: 0;
    font-weight: 700;
}

.discord-banner p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0.5rem 0 1.5rem;
}

.discord-button {
    background-color: #5865F2;
    color: #ffffff;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.discord-button:hover {
    background-color: #6f79e9;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(88, 101, 242, 0.5);
    animation: none;
}

.featured-game {
    background-color: var(--portfolio-bg-color);
    padding: 0;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.featured-game-container {
    width: 100%;
    position: relative;
    padding: clamp(4rem, 8vh, 6rem) 0;
}

.featured-game-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.2;
    background-size: cover;
    background-position: center;
    filter: blur(2px);
}

.featured-game-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
        var(--portfolio-bg-color) 0%,
        transparent 20%,
        transparent 80%,
        var(--portfolio-bg-color) 100%);
    z-index: 1;
}

.featured-game-content {
    position: relative;
    z-index: 2;
    padding: 0 clamp(1rem, 3vw, 2rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

.featured-game-title-img {
    max-width: min(700px, 90%);
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.7));
}

.featured-game-description {
    font-size: var(--fs-md);
    color: #d1cdc0;
    max-width: 700px;
    line-height: 1.6;
}

.featured-game-buttons {
    display: flex;
    gap: var(--gap-md);
    flex-wrap: wrap;
    justify-content: center;
}

.featured-btn {
    padding: clamp(0.8rem, 2vw, 1rem) clamp(1.5rem, 3vw, 2.5rem);
    font-size: var(--fs-sm);
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid transparent;
}

.featured-btn-primary {
    background-color: #5865F2;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.featured-btn-primary:hover {
    background-color: #4752c4;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(88, 101, 242, 0.5);
    animation: none;
}

.featured-btn-secondary {
    background-color: transparent;
    color: #ECE8DD;
    border-color: #ECE8DD;
}

.featured-btn-secondary:hover {
    background-color: #ECE8DD;
    color: #181818;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .featured-game-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .featured-btn {
        width: 100%;
        justify-content: center;
    }
}
