@keyframes hue-rotate {
    0% {
        filter: hue-rotate(0deg);
    }
    100% {
        filter: hue-rotate(360deg);
    }
}

@font-face {
    font-family: 'Source Sans Pro Light';
    src: url('../fonts/SourceSansPro-Light.ttf') format('truetype');
    font-style: normal;
}

body {
    font-family: 'Source Sans Pro Light', sans-serif;
    margin: 0;
    background-color: #f8f8f8;
    color: #333;
}

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.main-nav {
    position: relative;
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 0px 16px rgba(0, 0, 0, 0.75), 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.nav-links {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: white;
    border-radius: 1px;
    transition: left 0.3s cubic-bezier(0.4,0,0.2,1), width 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.2s;
    z-index: 20;
    pointer-events: none;
    opacity: 0;
}

.nav-underline.visible {
    opacity: 1;
}

.logo {
    height: 40px;
    margin-right: 20px;
    animation: hue-rotate 4s linear infinite;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding-top: 5px;
    padding-bottom: 5px;
    margin: 0 10px;
    transition: transform 0.2s cubic-bezier(0.4,0,0.2,1);
    text-shadow: 0px 0px 4px rgba(0, 0, 0, 1);
}

.nav-link.selected {
    transform: scale(1.10);
}

.nav-link.selected::after {
    content: none;
}

main {
    width: 100%;
}

.hero-section {
    height: 100vh;
    background-image: url('../images/ROBLOX POINT.png');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 80%;
}

.hero-title-container {
    position: relative;
    text-align: center;
}

.hero-title {
    font-size: 80px;
    margin: 0;
}

.hero-subtitle {
    position: relative;
    z-index: 1;
    margin-top: -54px;   /* Increased negative value for more intersection */
    padding-top: 30px;   /* More space above the text for better overlap */
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding-bottom: 8px;
    padding-left: 25px;
    padding-right: 25px;
    font-size: 20px;
    border-radius: 4px;
    display: inline-block;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Mods page specific hero section */
#mods-hero {
    height: 50vh;
}



.hero-logo {
    max-width: 500px;
    width: 120%;
    height: auto;
    position: relative;
    z-index: 2;
    display: block;
    margin: 0 auto;
    animation: hue-rotate 4s linear infinite;
}

.form-container {
    background-color: rgba(255, 255, 255, 0.75);
    padding: 20px;
    border-radius: 4px;
    color: #333;
    width: 400px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-container h2 {
    text-align: center;
    margin-top: 0;
}

.textbox {
    width: calc(100% - 22px);
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 16px;
    font-family: 'Source Sans Pro Light', sans-serif;
    background-color: white;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease-in-out;
}

.textbox:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.form-row {
    margin-bottom: 10px;
}

select {
    width: 100%;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background: white;
    font-size: 16px;
    font-family: 'Source Sans Pro Light', sans-serif;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    outline: none;
    transition: border-color 0.2s;
}

select:focus {
    border-color: #4CAF50;
}

.form-row .gender-button {
    width: 48%;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background-color: #f0f0f0;
    cursor: pointer;
}

.button.primary-button {
    width: 100%;
    background: linear-gradient(0deg, #02B757 0%, #3fc679 100%);
    color: white;
    border: none;
    padding: 8px 12px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 4px;
    font-family: 'Source Sans Pro Light', sans-serif;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    display: block;
    text-align: center;
    text-shadow: none;
}

.button.primary-button:hover {
    background: linear-gradient(90deg, #3fc679 0%, #4fd88a 100%);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.button.primary-button:active {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transform: translateY(0);
}

.feature-section {
    padding: 50px;
    padding-top: 120px;
    padding-bottom: 120px;
    display: flex;
    align-items: center;
    justify-content: right;
}

.feature-section.text-on-image {
    background-image: url('../images/feature.png');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: left;
    margin-top: 5px;
    text-shadow: 0px 0px 4px rgba(0, 0, 0, 1);
}



/* Remove text shadow from buttons in text-on-image sections */
.feature-section.text-on-image .button.primary-button {
    text-shadow: none;
}





/* Button spacing and width fixes for mods page */
#roldblox-mod .button.primary-button,
#rovamped-mod .button.primary-button,
#rohtml-mod .button.primary-button {
    margin-bottom: 15px;
    width: 100%;
    box-sizing: border-box;
}

/* Add spacing between feature sections and footer */
.feature-section {
    margin-bottom: 5px;
}

/* Ensure buttons take full width of their container */
.feature-content .button.primary-button {
    width: 100%;
    box-sizing: border-box;
}


.feature-content {
    max-width: 700px;
    padding-top: 5px;
}

.feature-content h2 {
    font-size: 36px;
    margin-top: 0;
}

.feature-content p {
    font-size: 18px;
    line-height: 1.6;
}

.content-grid-section {
    padding: 5px 0;
    position: relative;
}

.content-grid-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.content-grid {
    display: flex;
    gap: 5px;
    transition: transform 0.3s ease;
    padding: 0px;
    width: 100%; /* Single width for 3 or fewer images */
    height: 200px; /* Adjust this value to increase/decrease height */
}

.grid-item {
    flex: 0 0 calc(33.33% - 3.33px); /* 100% / 3 images = 33.33% each, minus gap compensation */
    min-width: calc(33.33% - 3.33px);
    position: relative;
}

.grid-item img {
    max-width: 100%;
    border-radius: 2px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.grid-item-text {
    position: absolute;
    bottom: 0px;
    left: 0px;
    right: 0px;
    text-align: left;
    font-size: 14px;
    color: white;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    background: rgba(0, 0, 0, 0.6);
    padding: 4px 8px;
    border-radius: 4px;
    box-sizing: border-box;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

.scroll-btn img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    opacity: 0.25;
    transition: opacity 0.2s ease;
}

.scroll-btn:hover img {
    opacity: 1;
}

.scroll-left {
    left: 10px;
}

.scroll-right {
    right: 10px;
}

/* Gradient overlays for scroll effect - only show when 5+ images */
.content-grid-container:has(.grid-item:nth-child(5))::before,
.content-grid-container:has(.grid-item:nth-child(5))::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 5;
    pointer-events: none;
    height: 100%; /* Ensure full height coverage */
}

.content-grid-container:has(.grid-item:nth-child(5))::before {
    left: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
}

.content-grid-container:has(.grid-item:nth-child(5))::after {
    right: 0;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
}

.example-showcase .example-images {
    position: relative;
    max-width: 300px;
    margin: 0 auto;
}

.example-showcase .example-image {
    max-width: 300px;
}

.main-footer {
    background-color: #333;
    color: #ccc;
    padding: 40px 20px;
    text-align: center;
}

.footer-nav {
    margin-bottom: 20px;
}

.footer-link {
    color: #ccc;
    text-decoration: none;
    margin: 0 15px;
}

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

.copyright {
    font-size: 12px;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.5;
}