/* Modern Minimalist & Game Dev - Home Styles */

/* Hero Section */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 0;
    background: var(--bg-color);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 51, 51, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 6.5rem);
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    font-family: var(--font-heading);
    text-transform: uppercase;
    text-shadow: 
        0 0 40px rgba(255,255,255,0.15),
        0 8px 30px rgba(0,0,0,0.7);
    line-height: 0.95;
}

.hero-subtitle {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    height: 1.5rem;
    position: relative;
    opacity: 0.8;
}

.rotating-text-item {
    position: absolute;
    left: 0;
    right: 0;
    opacity: 0;
    transition: all 0.5s ease;
}

.rotating-text-item.active {
    opacity: 1;
}

.hero-buttons {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap; /* Allows buttons to stack on very small screens */
}

.hero-button {
    padding: 1rem 2rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-transform: lowercase;
    border-radius: 0;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center; /* Center text inside button */
    border: 1px solid var(--border-color);
    color: var(--text-color);
    background: transparent;
    min-width: 220px; /* Ensures consistent size */
}

@media screen and (max-width: 576px) {
    .hero-section {
        padding: 4rem 0;
        min-height: 80vh;
    }

    .hero-title {
        font-size: clamp(2.5rem, 12vw, 4rem);
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-top: 3rem;
    }

    .hero-button {
        width: 100%;
        max-width: 300px;
    }
}

.hero-button::before {
    content: '> ';
    color: var(--primary-color);
    margin-right: 8px;
}

.hero-button:hover {
    border-color: var(--primary-color);
    background: rgba(255, 51, 51, 0.05);
    transform: translateX(5px);
}

/* Services Section */
.services-section {
    padding: 8rem 0;
    background-color: var(--bg-color-alt);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.grid-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1px;
    background: var(--border-color);
    padding: 1px;
}

.service-card {
    position: relative;
    height: 350px;
    background: var(--bg-color);
    text-decoration: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: all 0.3s ease;
}

.service-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    filter: grayscale(100%);
    transition: all 0.5s ease;
}

.service-card-content {
    position: relative;
    z-index: 2;
    padding: 2.5rem;
    color: var(--text-color);
}

.service-card-content h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.service-card-content p {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    opacity: 0.6;
}

.service-card:hover .service-card-bg {
    opacity: 0.5;
    filter: grayscale(0%);
    transform: scale(1.05);
}

.service-card:hover {
    background: var(--bg-color-alt);
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover::after {
    transform: scaleX(1);
}

@media screen and (max-width: 768px) {
    .services-section, .games-section {
        padding: 4rem 0;
    }

    .section-header {
        margin-bottom: 2rem !important;
    }

    .section-title {
        font-size: 2rem;
    }

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

    .service-card {
        height: 280px;
    }

    .games-grid {
        gap: 1.5rem;
    }
}
.games-section {
    padding: 8rem 0;
    background-color: var(--bg-color);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.game-card {
    background: transparent;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.game-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.8);
    transition: all 0.5s ease;
}

.game-card:hover img {
    filter: grayscale(0%) brightness(1);
}

.game-info {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.game-info h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.game-info p {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-color-muted);
    margin-bottom: 0.5rem;
}

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

.game-links .btn {
    flex: 1;
    justify-content: center;
}

.game-info p {
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.game-links {
    margin-top: 1rem;
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.game-links .btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    text-transform: none;
    letter-spacing: 0.02em;
    font-weight: 500;
}

.game-links .btn-primary {
    background: var(--primary-color);
    border: none;
    color: var(--light-text);
}

.game-links .btn-outline {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.game-links .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.game-links .btn-primary:hover {
    background: #0052a3;
}

.game-links .btn-outline:hover {
    background: var(--primary-color);
    color: var(--light-text);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: var(--transition);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: var(--transition);
}

.btn-primary:hover,
.btn-outline:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

/* Steam Widgets Section */
.steam-widgets-section {
    padding: 4rem 0;
    background-color: #ffffff;
}

.steam-widgets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(646px, 1fr));
    gap: 2rem;
    justify-content: center;
    padding: 0 1rem;
}

.steam-widget {
    width: 100%;
    max-width: 646px;
    margin: 0 auto;
}

/* User Navigation */
.user-nav {
    padding: 2rem 0;
    background-color: #f8f9fa;
}

.user-nav .nav-link {
    color: var(--text-color);
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .rotating-text-item {
        font-size: 1.2rem;
    }

    .service-card {
        height: 250px;
    }

    .steam-widgets-grid {
        grid-template-columns: 1fr;
    }

    .steam-widget iframe {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .game-card img {
        height: 150px;
    }

    .game-links {
        flex-direction: column;
    }
}