:root {
    --primary-color: #ffc576;
    --secondary-color: #ffffff;
    --bg-color: #000000;
    --text-color: #ffffff;
    --header-height: 80px;
    --footer-height: 200px;
    --transition-speed: 0.3s;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
}

body {
    font-family: 'Archivo', sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    min-height: 100%;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--primary-color);
}

.header {
    width: 100%;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-logo-block {
    display: flex;
    align-items: center;
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--primary-color);
    gap: 10px;
}

.header-logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.header-logo-block:hover .header-logo-img {
    transform: rotate(15deg);
}

.navigation-bar {
    display: flex;
    align-items: center;
    gap: clamp(15px, 3vw, 30px);
}

.navigation-bar a {
    font-family: 'Archivo', sans-serif;
    font-weight: 500;
    font-size: clamp(0.9rem, 2vw, 0.75rem);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
}

.navigation-bar a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) ease;
}

.navigation-bar a:not(:last-child):hover::after {
    width: 100%;
}


.hamburger-menu {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.hero-section {
    position: relative;
    width: 100%;
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--header-height) 10% 80px;
    margin: 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("../images/games/brumefall/3.PNG");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.25;
    z-index: -1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    max-width: 600px;
    z-index: 1;
}

.hero-subtitle {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--secondary-color);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.hero-title {
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(2.5rem, 8vw, 3rem);
    color: var(--primary-color);
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 500px;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--bg-color);
    font-family: 'Archivo Black', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all var(--transition-speed) ease;
    border: 2px solid var(--primary-color);
}

.cta-button:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
}

.hero-image {
    width: 40%;
    max-width: 500px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Footer Styles */
.footer {
    background-color: #111;
    color: #aaa;
    padding: 40px 5%;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-logo img {
    width: 40px;
    height: 40px;
}

.footer-logo span {
    font-family: 'Archivo Black', sans-serif;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.footer-about p {
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-links h3,
.footer-contact h3,
.footer-social h3 {
    color: var(--secondary-color);
    font-family: 'Archivo Black', sans-serif;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    color: var(--primary-color);
    width: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #222;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: #000;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid #333;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--primary-color);
}

/* Responsive styles */
@media (max-width: 1024px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: var(--header-height) 5% 80px;
        justify-content: center;
        gap: 40px;
    }

    .hero-content {
        align-items: center;
        max-width: 100%;
    }

    .hero-description {
        max-width: 100%;
    }

    .hero-image {
        width: 60%;
    }
	
    .navigation-bar {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        padding: 20px 0;
        gap: 15px;
    }

    .navigation-bar.active {
        display: flex;
    }

    .hamburger-menu {
        display: block;
    }

    .hero-image {
        width: 80%;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0 20px;
    }

    .hero-section {
        padding: var(--header-height) 20px 60px;
    }

    .hero-image {
        width: 100%;
    }

    .footer {
        padding: 30px 20px;
    }
}
/* products Section */
.products-section {
    padding: 80px 5%;
    background-color: #0a0a0a;
}

.section-title {
    text-align: center;
    font-family: 'Archivo Black', sans-serif;
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.section-description {
    max-width: 800px;
    margin: 0 auto 30px;
    text-align: center;
    color: #555;
    line-height: 1.6;
}

.section-description p {
    margin: 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 220px)); /* Key change: auto-fit with fixed max */
    justify-content: center; /* This centers the grid columns */
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
    width: 100%;
}

.product-card {
    display: flex;
    flex-direction: column;
    width: 100%; /* Takes full width of grid cell */
    max-width: 220px; /* Maximum card width */
    background-color: #111;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    margin: 0 auto; /* Centers card in its grid cell */
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(255, 197, 118, 0.2);
}

.product-image {
    /* Image container styles */
    height: 200px; /* Fixed height for image area */
    overflow: hidden;
}

.product-card img {
    width: 100%;
    height: 150px; /* Reduced height */
    object-fit: cover; /* Maintains aspect ratio */
}

.product-card .card-content {
    padding: 12px; /* Reduced padding */
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-card h3 {
    font-size: 1rem; /* Reduced font size */
    margin-bottom: 8px;
}

.product-card p {
    font-size: 0.85rem; /* Reduced font size */
}

.product-title,
.product-description {
    padding: 0 15px;
    margin: 10px 0;
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    .product-card img {
        height: 120px;
    }
}

.product-title {
    font-family: 'Archivo Black', sans-serif;
    color: var(--primary-color);
    margin: 20px 0 10px;
    font-size: 1.5rem;
}

.product-description {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.play-button {
    margin-top: auto; /* This pushes the button to the bottom */
    display: block;
    padding: 10px 0;
    text-align: center;
    background-color: var(--primary-color);
    color: #000;
    font-family: 'Archivo Black', sans-serif;
    border-radius: 0 0 8px 8px;
    transition: all 0.3s ease;
    margin-left: 15px;
    margin-right: 15px;
    margin-bottom: 15px;
}

.play-button:hover {
    background-color: #000;
    color: var(--primary-color);
    text-decoration: none;
}

/* product Modal */
.product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    overflow-y: auto;
}

.modal-content {
    max-width: 800px;
    width: 90%;
    padding: 30px;
    background: #111;
    border-radius: 10px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.modal-body-content {
    max-height: calc(90vh - 200px);
    overflow-y: auto;
    padding-right: 10px;
}

@keyframes modalFadeIn {
    from {opacity: 0; transform: translateY(-50px);}
    to {opacity: 1; transform: translateY(0);}
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-image-container {
    width: 100%;
    max-height: 400px; /* Adjust as needed */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000; /* Optional: if images have transparency */
    margin-bottom: 20px;
    border-radius: 8px;
    border: 2px solid var(--primary-color);
}

.modal-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* Ensures full image is visible without cropping */
}


.modal-title {
    font-family: 'Archivo Black', sans-serif;
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 15px;
}

.modal-description {
    color: #eee;
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.modal-play-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: #000;
    font-family: 'Archivo Black', sans-serif;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.modal-play-button:hover {
    background-color: #000;
    color: var(--primary-color);
    text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    .modal-image-container {
        max-height: 300px;
    }

    .modal-content {
        width: 95%;
        padding: 20px;
    }
}

.team-section {
    padding: 80px 5%;
    background-color: #0a0a0a;
    text-align: center;
}

.section-subtitle {
    color: #aaa;
    margin-bottom: 50px;
    font-size: 1.2rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    justify-items: center; /* Center cards in their grid cells */
}

.team-card {
    background-color: #111;
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(255, 197, 118, 0.1);
}

.team-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 3px solid var(--primary-color);
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-name {
    font-family: 'Archivo Black', sans-serif;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 1.3rem;
}

.team-position {
    color: #aaa;
    font-style: italic;
    margin-bottom: 15px;
}

.team-bio-short {
    color: #ccc;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 60px;
}

/* Team Modal Styles */
.modal-name {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 5px;
}

.modal-position {
    color: #aaa;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.modal-bio {
    color: #eee;
    line-height: 1.8;
    margin: 20px 0;
    font-size: 1.1rem;
}

.modal-social {
    margin: 20px 0;
}

.social-link {
    display: inline-block;
    margin: 0 10px;
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    color: #fff;
}

.modal-skills h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-pill {
    background-color: #222;
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr 1fr;
    }

    .modal-image-container {
        width: 150px;
        height: 150px;
        margin: 0 auto;
        border-radius: 50%;
        
    }
}

/* For exactly 2 cards, we can force centered layout */
@media (min-width: 768px) {
    .team-grid:has(.team-card:nth-child(2):last-child) {
        grid-template-columns: repeat(2, minmax(250px, 300px));
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

.team-modal {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;  /* Use viewport units */
    height: 100vh;
    background-color: rgba(0,0,0,0.9);
    z-index: 1000;
    /* Add these to ensure visibility */
    opacity: 1;
    visibility: visible;
}

.team-modal.active {
    display: block;
}

.team-modal-image-container {
    width: 200px;  /* Slightly larger for modal */
    height: 200px;
    margin: 0 auto 30px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
}

.team-modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 800px;
    background: #111;
    padding: 30px;
    border-radius: 8px;
}

.header-login {
    width: 100%;
    padding: 7px 12px;
    background-color: #4a6baf;
    color: white;
    border: none;
    border-radius: 5px;
    font-family: 'Archivo', sans-serif;
    cursor: pointer;
    text-align: center;
}

.header-login:hover {
    background-color: #3a5a9f;
}

.user-menu {
    display: flex;
    flex-direction: colum;
    align-items: flex-end;
}

.welcome-message {
    font-size: 0.9em;
    font-family: 'Archivo Black', sans-serif;
    color: #666;
    margin-top: 4px;
}

.login-alt-button {
    width: 100%;
    padding: 7px 12px;
    background-color: #4a6baf;
    color: white;
    border: none;
    border-radius: 5px;
    font-family: 'Archivo', sans-serif;
    cursor: pointer;
    text-align: center;
}

.login-alt-button:hover {
    background-color: #3a5a9f;
}