* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Firefox scrollbar styling */
    scrollbar-width: thin;
    scrollbar-color: rgba(107, 89, 211, 0.7) rgba(15, 15, 30, 0.3);
}

/* Webkit scrollbar styling (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 15, 30, 0.3);
    border-radius: 20px; /* Increased from 10px for more rounded appearance */
    margin: 5px 0; /* Add some margin for a floating appearance */
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, rgba(107, 89, 211, 0.7), rgba(161, 102, 171, 0.7));
    border-radius: 50px; /* Significantly increased for pill shape */
    border: 3px solid rgba(15, 15, 30, 0.3); /* Border color matching the track */
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, rgba(107, 89, 211, 0.9), rgba(161, 102, 171, 0.9));
    background-clip: content-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #fff;
    background-color: #0a0a14;
    overflow-x: hidden;
}

/* Background */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    z-index: -2;
}

.background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/grid-pattern.png');
    opacity: 0.1;
    z-index: -1;
}

/* Frosted Glass Effect */
.glass-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Typography */
h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    background: linear-gradient(90deg, #ffffff, #a2a8d3);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 2.5rem;
    color: #e5e5e5;
}

h3 {
    font-size: 1.5rem;
    color: #d8d8d8;
}

p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #b3b3b3;
}

/* Header */
header {
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

header .glass-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 2rem;
}

/* Navigation */
nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-image {
    height: 55px; 
    width: auto;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: #e5e5e5;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #fff;
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: #fff;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Main Content */
main {
    margin-top: 100px;
    padding: 0 5%;
}

section {
    margin-bottom: 5rem;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 0;
}

.hero .glass-container {
    max-width: 1000px;
    width: 100%;
    padding: 4rem;
}

.cta-buttons {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #6b59d3, #a166ab);
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(107, 89, 211, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* Mission Section */
.mission .glass-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem;
}

/* Game Section */
.game .glass-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem;
}

.game-showcase {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.game-info {
    flex: 1;
    min-width: 300px;
}

.game-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-artwork {
    width: 100%;
    max-height: 400px;
    border-radius: 15px;
    object-fit: contain;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.game-artwork:hover {
    transform: scale(1.02);
}

.placeholder-image {
    width: 100%;
    height: 250px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

.placeholder-image i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.game-info ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: #b3b3b3;
}

.game-info li {
    margin-bottom: 0.5rem;
}

.game-cta {
    margin-top: 2rem;
}

/* Team Section */
.team .glass-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.team-member {
    text-align: center;
    transition: transform 0.3s;
}

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

.member-photo {
    height: 180px;
    width: 180px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    background-size: cover;
    background-position: center;
    border: 3px solid rgba(255, 255, 255, 0.2);   
}

/* Placeholder colors for team member photos */
.member-1 { 
    background-color: #4ea8de; /* Fallback color */
    background-image: url('../images/team/_DSC9630.jpg');
    background-size: cover;
    background-position: top;
 }
.member-2 { 
    background-color: #4ea8de; /* Fallback color */
    background-image: url('../images/team/_DSC9612.jpg');
    background-size: cover;
    background-position: top;
 }
.member-3 { 
    background-color: #4ea8de; /* Fallback color */
    background-image: url('../images/team/_DSC9566.jpg');
    background-size: cover;
    background-position: top;
 }
.member-4 { 
    background-color: #4ea8de; /* Fallback color */
    background-image: url('../images/team/_DSC9539.jpg');
    background-size: cover;
    background-position: top;
}
.member-5 { 
    background-color: #7abb4f; /* Fallback color */
    background-image: url('../images/team/_DSC9611.jpg');
    background-size: cover;
    background-position: top;
 }

.team-member h3 {
    margin-bottom: 0.5rem;
}

.team-member p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: #a1a1a1;
}

/* Contact Section */
.contact .glass-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem;
}

.contact-info {
    margin-top: 1.5rem;
}

.contact-info a {
    color: #6b59d3;
    text-decoration: none;
    transition: color 0.3s, border-bottom 0.3s;
    border-bottom: 1px solid transparent;
}

contact-info a:hover {
    color: #a166ab;
    border-bottom: 1px solid #a166ab;
}

/* Footer */
footer {
    padding: 2rem 5%;
    margin-top: auto;
}

footer .glass-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: #e5e5e5;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1rem 0;
    padding: 1rem 0;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, #6b59d3, #a166ab);
    box-shadow: 0 5px 15px rgba(107, 89, 211, 0.3);
}

/* Specific brand colors on hover */
.social-links a:hover .fa-linkedin {
    color: #fff;
}

.social-links a:hover .fa-instagram {
    color: #fff;
}

.social-links a:hover .fa-youtube {
    color: #fff;
}

social-links a:hover .fa-discord {
    color: #fff;
}

copyright {
    font-size: 0.9rem;
    color: #777;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Language Toggle Button */
.language-toggle {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    header .glass-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav {
        flex-direction: column;
        width: 100%;
    }
    
    .language-toggle {
        position: fixed;
        top: 1rem;
        right: 1rem;
        margin-top: 0;
    }
    
    nav ul {
        margin-top: 1rem;
    }
    
    nav ul li {
        margin-left: 1rem;
        margin-right: 1rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero .glass-container {
        padding: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .logo {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .logo-image {
        margin-bottom: 5px;
    }

    .social-links {
        flex-wrap: wrap;
        gap: 1rem;
    }
      .game-showcase {
        flex-direction: column;
    }
    
    .game-artwork {
        max-height: 300px;
        margin-top: 2rem;
    }
    
    .game-image {
        order: -1; /* Places the image above the text on mobile */
    }
}
