/* Stubborn Gaming Studios - Main Styles */

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

:root {
    --bg-dark: #111827;
    --bg-darker: #0a0a0f;
    --bg-gray-800: #1f2937;
    --bg-gray-900: #111827;
    --text-white: #ffffff;
    --text-gray: #9ca3af;
    --text-light: #e5e7eb;
    --purple-400: #c084fc;
    --purple-500: #a855f7;
    --purple-600: #9333ea;
    --pink-400: #f472b6;
    --pink-500: #ec4899;
    --blue-400: #60a5fa;
    --border-gray: #374151;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--purple-500), var(--pink-500));
    border-radius: 5px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 16px 0;
    background: transparent;
}

header.scrolled {
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-white);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.logo-text h1 {
    font-size: 20px;
    font-weight: 700;
}

.logo-text p {
    font-size: 12px;
    color: var(--text-gray);
}

nav {
    display: flex;
    gap: 32px;
}

nav a {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

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

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--purple-500), var(--pink-500));
    transition: width 0.3s ease;
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    cursor: pointer;
    padding: 8px;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(75, 85, 99, 0.5);
}

.mobile-nav.active {
    display: flex;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, var(--bg-dark) 0%, rgba(88, 28, 135, 0.2) 50%, var(--bg-dark) 100%);
    padding-top: 80px;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 10;
    padding: 40px 20px;
}

.hero h1 {
    font-size: clamp(40px, 8vw, 72px);
    font-weight: 800;
    margin-bottom: 24px;
    background: linear-gradient(to right, var(--purple-400), var(--pink-400), var(--blue-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: clamp(18px, 3vw, 24px);
    color: var(--text-light);
    margin-bottom: 48px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    background: linear-gradient(to right, var(--purple-600), var(--pink-600));
    color: var(--text-white);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.5);
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(168, 85, 247, 0.7);
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 32px;
    margin-top: 80px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    background: linear-gradient(to right, var(--purple-400), var(--pink-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-gray);
}

/* Section Styles */
section {
    padding: 80px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(to right, var(--purple-400), var(--pink-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    font-size: 20px;
    color: var(--text-gray);
    max-width: 800px;
    margin: 0 auto;
}

/* About Section */
.about {
    background-color: var(--bg-dark);
}

.about-content {
    max-width: 900px;
    margin: 0 auto 64px;
}

.about-text {
    text-align: center;
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 16px;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.feature-card {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.5), rgba(17, 24, 39, 0.5));
    backdrop-filter: blur(8px);
    border: 1px solid rgba(75, 85, 99, 0.5);
    border-radius: 24px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 10px 40px rgba(168, 85, 247, 0.2);
    transform: translateY(-8px);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.2));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    transition: all 0.3s ease;
    font-size: 32px;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.feature-card:hover h3 {
    color: var(--purple-400);
}

.feature-card p {
    color: var(--text-gray);
    transition: color 0.3s ease;
}

.feature-card:hover p {
    color: var(--text-light);
}

/* Games Section */
.games {
    background: linear-gradient(to bottom, var(--bg-dark), var(--bg-gray-800), var(--bg-dark));
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    max-width: 1400px;
    margin: 0 auto 48px;
}

.game-card {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.8), rgba(17, 24, 39, 0.8));
    backdrop-filter: blur(8px);
    border: 1px solid rgba(75, 85, 99, 0.5);
    border-radius: 32px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.game-card:hover {
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 20px 60px rgba(168, 85, 247, 0.2);
    transform: translateY(-8px);
}

.game-image {
    height: 200px;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.3), rgba(219, 39, 119, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.game-image img {
    width: 128px;
    height: 128px;
    object-cover: cover;
    border-radius: 24px;
    position: relative;
    z-index: 10;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.game-content {
    padding: 24px;
}

.game-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.game-card:hover h3 {
    color: var(--purple-400);
}

.game-description {
    color: var(--text-gray);
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.6;
}

.game-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 14px;
}

.game-platforms {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.platform-badge {
    padding: 4px 12px;
    border: 1px solid rgba(168, 85, 247, 0.5);
    color: var(--purple-400);
    border-radius: 8px;
    font-size: 12px;
}

.game-actions {
    display: flex;
    gap: 8px;
}

.game-actions img {
    height: 40px;
    width: auto;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.game-actions img:hover {
    transform: scale(1.05);
}

.store-buttons {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    margin-top: 48px;
}

.store-buttons img {
    height: 64px;
    width: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.store-buttons img:hover {
    transform: scale(1.05);
}

/* Services Section */
.services {
    background-color: var(--bg-dark);
}

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

.service-card {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.5), rgba(17, 24, 39, 0.5));
    backdrop-filter: blur(8px);
    border: 1px solid rgba(75, 85, 99, 0.5);
    border-radius: 24px;
    padding: 32px;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 10px 40px rgba(168, 85, 247, 0.2);
    transform: translateY(-8px);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.2));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: all 0.3s ease;
    font-size: 32px;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: var(--purple-400);
}

.service-card p {
    color: var(--text-gray);
    line-height: 1.6;
    transition: color 0.3s ease;
}

.service-card:hover p {
    color: var(--text-light);
}

/* Clients Section */
.clients {
    background-color: var(--bg-dark);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.client-card {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.5), rgba(17, 24, 39, 0.5));
    backdrop-filter: blur(8px);
    border: 1px solid rgba(75, 85, 99, 0.5);
    border-radius: 24px;
    padding: 48px 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.client-card:hover {
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 10px 40px rgba(168, 85, 247, 0.2);
    transform: translateY(-8px);
}

.client-card img {
    max-width: 100%;
    max-height: 100px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.client-card:hover img {
    filter: grayscale(0%);
}

/* Vision Section */
.vision {
    background: linear-gradient(to bottom, var(--bg-dark), rgba(88, 28, 135, 0.1), var(--bg-gray-800));
}

.vision-content {
    max-width: 900px;
    margin: 0 auto 64px;
    text-align: center;
}

.vision-quote {
    font-size: clamp(24px, 4vw, 32px);
    color: var(--text-light);
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 48px;
}

.vision-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.value-item {
    text-align: center;
}

.value-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.2));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    transition: all 0.3s ease;
    font-size: 32px;
}

.value-item:hover .value-icon {
    transform: scale(1.1);
}

.value-item h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.value-item p {
    color: var(--text-gray);
}

/* Contact Section */
.contact {
    background-color: var(--bg-dark);
}

.contact-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 48px;
}

.contact-info h3 {
    font-size: 28px;
    margin-bottom: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-item-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.2));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 24px;
}

.contact-item-content h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.contact-item-content a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item-content a:hover {
    color: var(--purple-400);
}

.contact-form {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.5), rgba(17, 24, 39, 0.5));
    backdrop-filter: blur(8px);
    border: 1px solid rgba(75, 85, 99, 0.5);
    border-radius: 24px;
    padding: 32px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(17, 24, 39, 0.5);
    border: 1px solid rgba(75, 85, 99, 0.5);
    border-radius: 12px;
    color: var(--text-white);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--purple-500);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.form-group textarea {
    resize: none;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(to right, var(--purple-600), var(--pink-600));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.3);
    transition: all 0.3s ease;
}

.btn-submit:hover {
    box-shadow: 0 10px 40px rgba(168, 85, 247, 0.5);
    transform: scale(1.02);
}

/* Footer */
footer {
    background-color: var(--bg-darker);
    border-top: 1px solid rgba(75, 85, 99, 0.5);
    padding: 48px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.footer-brand img {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--text-gray);
    margin-bottom: 16px;
}

.footer-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

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

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(31, 41, 55, 0.8);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 20px;
}

.social-link:hover {
    background: linear-gradient(135deg, var(--purple-600), var(--pink-600));
    transform: scale(1.1);
}

.footer-bottom {
    border-top: 1px solid rgba(75, 85, 99, 0.3);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copyright {
    color: rgba(156, 163, 175, 0.7);
    font-size: 14px;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: rgba(156, 163, 175, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--purple-400);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.95), rgba(17, 24, 39, 0.95));
    backdrop-filter: blur(12px);
    border: 1px solid rgba(168, 85, 247, 0.5);
    border-radius: 16px;
    padding: 16px 24px;
    color: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.toast-message {
    font-size: 14px;
    color: var(--text-gray);
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

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

    .contact-container {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .store-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .store-buttons img {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 36px;
    }

    .hero-description {
        font-size: 16px;
    }

    .section-title {
        font-size: 32px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 16px;
    }
}
