* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #d4a017;
    --primary-light: #f0c850;
    --dark: #0a0a0f;
    --dark-lighter: #12121a;
    --dark-card: #1a1a25;
    --text: #D4CFC5;
    --text-muted: #8b8b9e;
    --gradient-primary: linear-gradient(135deg, #d4a017 0%, #f0c850 100%);
}

/* Reusable golden text with shine effect */
.text-shine {
    background: linear-gradient(
        90deg,
        #D4A017 0%,
        #FFDF7D 40%,
        #dbc479 50%,
        #FFDF7D 60%,
        #D4A017 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: text-shine 10s linear infinite;
}

@keyframes text-shine {
    0% { background-position: 200% center; }
    100% { background-position: 0% center; }
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 2rem;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.nav-logo {
    height: 60px;
    width: auto;
    opacity: 0.85;
}

.nav-links {
    position: absolute;
    right: 0;
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-separator {
    width: 1px;
    height: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    align-self: center;
    margin: 0 -0.5rem;
}

.nav-links a.nav-icon {
    font-size: 1.75rem;
    display: flex;
    align-items: center;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    flex: 1;
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    padding: 7rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(180, 170, 160, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--dark) 0%, transparent 100%);
    pointer-events: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Logo */
.hero-logo {
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease both;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
}

.logo-image {
    max-width: 900px;
    width: 100%;
    height: auto;
}

/* Star Background */
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.star {
    position: absolute;
    opacity: 0.13;
}

.star::before,
.star::after {
    content: '';
    position: absolute;
    background: var(--primary-light);
}

.star::before {
    width: 2px;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.star::after {
    height: 2px;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
}

.star.four-point::before {
    width: 3px;
    border-radius: 50%;
}

.star.four-point::after {
    height: 3px;
    border-radius: 50%;
}

.star.small { width: 14px; height: 14px; }
.star.medium { width: 23px; height: 23px; }
.star.large { width: 35px; height: 35px; }

@keyframes twinkle {
    0%, 100% { opacity: 0.08; }
    50% { opacity: 0.24; }
}

.star.twinkle {
    animation: twinkle 4s ease-in-out infinite;
}

/* Hero Bottom - Nihti + Text side by side */
.hero-bottom {
    position: absolute;
    bottom: auto;
    top: 33%;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 2rem;
    z-index: 10;
}

.nihti-mascot {
    flex-shrink: 0;
    margin-left: -50px;
    margin-bottom: -100px;
}

.nihti-mascot-image {
    width: 700px;
    height: auto;
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

.hero-text {
    padding: 2rem 0 2rem 2.3rem;
    max-width: 600px;
    align-self: flex-start;
    margin-top: 80px;
}

.hero-text h1 {
    font-family: 'Lexend Deca', sans-serif;
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-align: left;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-muted);
    text-align: left;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hero-text p.hero-fact {
    font-size: 0.95rem;
    color: rgba(200, 200, 210, 0.6);
    margin-bottom: 1.5rem;
    margin-top: -0.5rem;
}

.hero-button {
    display: inline-block;
    margin-top: 1.3rem;
    padding: 1.5rem 4.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--dark);
    background: var(--gradient-primary);
    border: 3px solid rgba(255, 223, 125, 0.6);
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 160, 23, 0.3),
                0 0 20px rgba(212, 160, 23, 0.2),
                inset 0 0 10px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.hero-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.hero-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(212, 160, 23, 0.5),
                0 0 30px rgba(212, 160, 23, 0.3);
}

.hero-button:active {
    transform: translateY(0);
}

.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    margin-top: 1.3rem;
}

.hero-buttons .hero-button {
    margin-top: 0;
}

.discord-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    flex-shrink: 0;
    background-color: #5865F2;
    border-radius: 50%;
    color: white;
    font-size: 2.25rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

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

.discord-button:active {
    transform: translateY(0);
}

/* Ultra-wide screens - bring closer to main body */
@media (min-width: 1800px) {
    .hero-bottom {
        justify-content: center;
        padding-left: 0;
    }
    .nihti-mascot {
        margin-left: -100px;
    }
    .nihti-mascot-image {
        width: 812px;
    }
    .hero-text {
        max-width: 800px;
    }
}

@media (min-width: 2400px) {
    .nihti-mascot-image {
        width: 937px;
    }
    .hero-text {
        max-width: 900px;
    }
}

/* Games Showcase Section */
.games-section {
    padding: 6rem 2rem;
    background: rgba(18, 18, 26, 0.85);
    position: relative;
    overflow: hidden;
}

.games-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at top center, rgba(171, 77, 178, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.games-section h2 {
    font-family: 'Lexend Deca', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
}

.games-grid {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.game-card {
    background: transparent;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.game-card-image {
    display: block;
    width: 100%;
    aspect-ratio: 374/448;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-card) 100%);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card-image:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(212, 160, 23, 0.2);
}

.game-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.game-card-title {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
}

.game-card-title a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.game-card-title a:hover {
    color: var(--primary);
}

.game-card-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.game-card-developer {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.game-card-genres {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.game-card-links {
    display: flex;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1rem;
}

.game-card-link {
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.game-card-link:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Why Coyote Time Section */
.why-section {
    padding: 6rem 2rem;
    background: rgba(10, 10, 15, 0.6);
    position: relative;
    overflow: hidden;
}

.why-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(212, 160, 23, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.why-section h2 {
    font-family: 'Lexend Deca', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
}

.why-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.why-tagline {
    font-family: 'Lexend Deca', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 500;
    text-align: center;
    color: var(--text);
    margin-bottom: 2.5rem;
    line-height: 1.3;
}

.why-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text);
}

.why-text p {
    margin-bottom: 1.5rem;
}

.why-closing {
    font-weight: 500;
    font-size: 1.15rem;
    margin-top: 2rem;
}

.why-divider {
    width: 40%;
    height: 1px;
    margin: 3rem auto;
    background-color: var(--text);
    opacity: 0.3;
    border: none;
}

.why-text ul {
    margin-left: 2rem;
}

.why-content .hero-button {
    display: block;
    width: fit-content;
    margin: 4rem auto 0;
}

/* Footer */
footer {
    padding: 4rem 2rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: transparent;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 150%;
    height: 100%;
    background: radial-gradient(ellipse at left bottom, rgba(180, 170, 160, 0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    text-align: center;
}

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

.footer-logo {
    height: 100px;
    width: auto;
    object-fit: contain;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    list-style: none;
    align-items: center;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--text);
}

.social-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

.social-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1.75rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.social-link:hover {
    color: var(--primary);
}

.bluesky-icon {
    width: 1em;
    height: 1em;
    filter: brightness(0) saturate(100%) invert(60%) sepia(5%) saturate(700%) hue-rotate(202deg);
    transition: filter 0.3s ease;
    vertical-align: middle;
}

.bluesky-link:hover .bluesky-icon {
    filter: brightness(0) saturate(100%) invert(67%) sepia(63%) saturate(588%) hue-rotate(6deg) brightness(92%);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Responsive - Small Desktop */
@media (max-width: 1260px) and (min-width: 1071px) {
    .hero {
        min-height: 80vh;
        padding-bottom: 6rem;
    }

    .hero-bottom {
        top: 30%;
    }

    .nihti-mascot-image {
        width: 550px;
    }

    .hero-text {
        max-width: 500px;
    }

    .hero-text h1 {
        font-size: clamp(1.8rem, 4vw, 3rem);
    }
}

/* Height-constrained viewports - Fix button visibility */
@media (max-height: 1050px) and (min-width: 1071px) {
    .hero {
        min-height: auto;
        padding-bottom: 3rem;
    }

    .hero-bottom {
        position: relative;
        top: auto;
        margin-top: 1rem;
    }

    .nihti-mascot {
        margin-bottom: -60px;
    }

    .nihti-mascot-image {
        width: 500px;
    }

    .hero-text {
        margin-top: 0;
    }

    .hero-button {
        margin-top: 1rem;
    }
}

@media (max-height: 1050px) and (min-width: 1261px) and (max-width: 1800px) {
    .nihti-mascot-image {
        width: 550px;
    }
}

/* Responsive - Tablet */
@media (max-width: 1070px) {
    .hero {
        padding-bottom: 6rem;
    }

    .hero-bottom {
        position: relative;
        top: auto;
        flex-direction: column;
        align-items: flex-start;
        margin-top: 1rem;
    }

    .nihti-mascot {
        margin-left: -60px;
        margin-bottom: -80px;
    }

    .nihti-mascot-image {
        width: 618px;
    }

    .hero-text {
        padding: 0 0 2rem 1rem;
        max-width: 90%;
        margin-top: -1rem;
    }

    .hero-text h1 {
        font-size: 2rem;
    }
}

/* Responsive - Tablet/Navigation */
@media (max-width: 950px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 2rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links li {
        text-align: center;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .nav-separator {
        display: none;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    nav {
        padding: 1rem;
    }

    .nav-container {
        justify-content: space-between;
    }

    .nav-logo {
        height: 40px;
    }

    .hero {
        padding: 5rem 1.5rem 4rem;
        min-height: auto;
        padding-bottom: 6rem;
    }

    .logo-image {
        max-width: 100%;
    }

    .logo-image.nihti {
        max-width: 280px;
    }

    .games-section {
        padding: 4rem 1.5rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .hero-bottom {
        position: relative;
        flex-direction: column;
        align-items: flex-start;
        padding: 0 1rem;
        top: auto;
        margin-top: 1rem;
    }

    .nihti-mascot {
        margin-left: -80px;
        margin-bottom: -60px;
    }

    .nihti-mascot-image {
        width: 481px;
        mask-image: none;
        -webkit-mask-image: none;
    }

    .hero-text {
        padding: 0 0 2rem 0;
        max-width: 100%;
        margin-top: -0.5rem;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hero-button {
        white-space: nowrap;
        padding: 1.125rem 2.25rem;
        font-size: 1.24rem;
    }

    .discord-button {
        display: none;
    }

    .footer-content {
        text-align: center;
    }

    .footer-brand {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .nihti-mascot {
        margin-left: -100px;
        margin-bottom: -40px;
    }

    .nihti-mascot-image {
        width: 385px;
    }

    .hero-text h1 {
        font-size: 1.5rem;
    }

    footer {
        padding: 2rem 1rem 1rem;
    }

    .footer-logo {
        height: 70px;
        max-width: 100%;
    }

    .footer-tagline {
        font-size: 0.8rem;
    }

    .social-links {
        flex-wrap: wrap;
    }

    .footer-content {
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }
}
