/*
Theme Name: Snack Studio
Theme URI: https://snackstudio.com
Author: Snack Studio
Author URI: https://snackstudio.com
Description: Modern, minimal WordPress theme for mobile game development studio. Features smooth animations, video slider gallery, and contact form.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: snack-studio
*/

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FF8A80;
    --secondary-color: #FFB74D;
    --accent-orange: #FFB74D;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --border-color: #e5e7eb;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-primary: linear-gradient(135deg, #FF8A80 0%, #FFB74D 100%);
    --gradient-soft: linear-gradient(135deg, #FF8A80 0%, #FFB74D 100%);
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

body.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

html {
    scroll-behavior: smooth;
}

/* Header & Navigation */
.site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    transition: var(--transition);
    width: 100% !important;
    box-sizing: border-box;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.site-branding {
    display: flex !important;
    align-items: center !important;
    gap: 1rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.site-logo {
    max-height: 200px;
    min-height: 20px;
    width: auto;
    transition: var(--transition);
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.site-logo a {
    display: flex;
    align-items: center;
    height: 100% !important;
    max-height: 100% !important;
    line-height: 0;
    width: auto;
}

.site-logo img {
    height: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    max-width: 300px !important;
    object-fit: contain !important;
    display: block;
}

.site-name {
    font-weight: 600;
    color: var(--text-color);
    transition: var(--transition);
}

.site-name a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.site-name a:hover {
    color: var(--primary-color);
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.main-navigation a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.main-navigation a:hover::after,
.main-navigation a.active::after {
    width: 100%;
}

.main-navigation a:hover,
.main-navigation a.active {
    color: var(--primary-color);
}

/* Hero Section - Enhanced Styles */
section#home.hero-section,
.hero-section {
    width: 100% !important;
    min-height: 70vh !important;
    max-height: 90vh !important;
    margin-top: 70px !important;
    padding: 4rem 2rem !important;
    background: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.hero-section .hero-container,
.hero-container {
    max-width: 1400px !important;
    margin: 0 auto !important;
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 4rem !important;
    align-items: center !important;
    height: 100% !important;
}

@media (min-width: 769px) {
    .hero-container {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
    }
}

.hero-section .hero-content,
.hero-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
    padding-right: 1rem !important;
    justify-content: center !important;
}

.hero-section .hero-title,
.hero-content .hero-title,
.hero-title {
    font-size: 4.5rem !important;
    font-weight: 800 !important;
    color: #1f2937 !important;
    line-height: 1.1 !important;
    letter-spacing: -0.03em !important;
    margin: 0 !important;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.hero-title span {
    display: block !important;
}

.hero-section .hero-description,
.hero-content .hero-description,
.hero-description {
    font-size: 1.35rem !important;
    color: #6b7280 !important;
    line-height: 1.7 !important;
    margin: 0 !important;
    max-width: 100% !important;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.hero-button,
a.hero-button,
.hero-button.nav-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1.25rem 3rem !important;
    background: var(--gradient-soft) !important;
    color: var(--white) !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 1.2rem !important;
    border-radius: 15px !important;
    transition: var(--transition) !important;
    width: fit-content !important;
    box-shadow: 0 6px 20px rgba(255, 138, 128, 0.4) !important;
    letter-spacing: 0.5px !important;
    border: none !important;
    cursor: pointer !important;
}

.hero-button:hover,
a.hero-button:hover,
.hero-button.nav-link:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 35px rgba(255, 138, 128, 0.5) !important;
    color: var(--white) !important;
    text-decoration: none !important;
}

.hero-button:active,
a.hero-button:active,
.hero-button.nav-link:active {
    transform: translateY(-2px) !important;
    color: var(--white) !important;
}

.hero-button::after,
a.hero-button::after,
.hero-button.nav-link::after {
    display: none !important;
}

.hero-section .hero-image-wrapper,
.hero-image-wrapper {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    max-height: 600px !important;
    border-radius: 25px !important;
    overflow: hidden !important;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2) !important;
    background: #f9fafb !important;
}

.hero-section .hero-image,
.hero-image-wrapper .hero-image,
.hero-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 25px !important;
}

.hero-image-wrapper .hero-image[style] {
    width: 100% !important;
    height: 100% !important;
    border-radius: 25px !important;
}

/* Page Section */
.page-section {
    padding: 8rem 2rem 6rem;
    background: var(--white);
    min-height: 80vh;
}

.page-container {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.page-header {
    margin-bottom: 3rem;
    text-align: center;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

.page-content {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

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

.page-body h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.page-body h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.page-body p {
    margin-bottom: 1.5rem;
}

.page-body ul,
.page-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.page-body li {
    margin-bottom: 0.5rem;
}

.page-body a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.page-body a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-links {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.page-links a {
    color: var(--primary-color);
    text-decoration: none;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    transition: var(--transition);
}

.page-links a:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

@media (max-width: 768px) {
    .page-section {
        padding: 6rem 1rem 4rem;
    }

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

    .page-content {
        padding: 2rem;
    }

    .page-body {
        font-size: 1rem;
    }
}

/* Games Slider Section */
.games-section {
    padding: 6rem 2rem;
    background: var(--white);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.games-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 4rem;
    color: var(--text-color);
    letter-spacing: -0.02em;
}

.games-slider {
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
}

.games-slider-wrapper {
    display: flex;
    gap: 2rem;
    animation: slide 30s linear infinite;
    will-change: transform;
}

.games-slider:hover .games-slider-wrapper {
    animation-play-state: paused;
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.game-item {
    flex: 0 0 350px;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.game-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.game-video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 177.78%; /* 16:9 aspect ratio */
    background: #000;
    overflow: hidden;
}

.game-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.game-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.game-store-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    width: fit-content;
}

.game-store-link:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.game-store-link svg {
    width: 20px;
    height: 20px;
}

/* Duplicate items for infinite scroll */
.games-slider-wrapper::before,
.games-slider-wrapper::after {
    content: '';
    display: none;
}

/* Contact Section */
.contact-section {
    padding: 6rem 2rem;
    background: var(--bg-light);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 138, 128, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-button {
    background: var(--gradient-soft);
    color: var(--white);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 138, 128, 0.4);
}

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

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    display: block;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
    }

    .site-branding {
        gap: 0.75rem;
    }

    .site-name {
        font-size: 20px !important;
    }

    .main-navigation ul {
        gap: 1rem;
    }

    .main-navigation a {
        font-size: 0.9rem;
    }

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

    .games-section,
    .contact-section {
        padding: 4rem 1rem;
    }

    .game-item {
        flex: 0 0 280px;
    }

    .contact-form {
        padding: 2rem;
    }

    .hero-section {
        min-height: auto;
        padding: 4rem 1rem;
    }

    .hero-container {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 3rem;
    }

    .hero-content {
        padding-right: 0;
        gap: 2rem;
        text-align: center;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-description {
        font-size: 1.25rem;
        max-width: 100%;
    }

    .hero-button,
    a.hero-button,
    .hero-button.nav-link {
        margin: 0 auto !important;
        padding: 1rem 2.5rem !important;
        font-size: 1.1rem !important;
    }

    .hero-image-wrapper {
        aspect-ratio: 16 / 9;
        max-height: none;
        min-height: 300px;
    }

    .hero-image-wrapper .hero-image[style] {
        min-height: 300px;
    }
}

@media (max-width: 480px) {
    .site-logo {
        height: 40px;
    }

    .site-branding {
        gap: 0.5rem;
    }

    .site-name {
        font-size: 18px !important;
    }

    .main-navigation ul {
        gap: 0.75rem;
    }

    .main-navigation a {
        font-size: 0.85rem;
    }

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

    .game-item {
        flex: 0 0 250px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .hero-button,
    a.hero-button,
    .hero-button.nav-link {
        padding: 1rem 2.5rem !important;
        font-size: 1.1rem !important;
    }

    .hero-image-wrapper {
        min-height: 300px;
    }
}

/* Footer - Enhanced Styles */
footer.site-footer,
.site-footer {
    background: linear-gradient(135deg, #FF8A80 0%, #FFB74D 100%) !important;
    padding: 2.5rem 2rem !important;
    margin-top: 4rem !important;
    position: relative !important;
    overflow: hidden !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.site-footer::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(135deg, rgba(255, 138, 128, 0.95) 0%, rgba(255, 183, 77, 0.95) 100%) !important;
    z-index: 0 !important;
}

.site-footer .footer-container,
.footer-container {
    max-width: 1400px !important;
    margin: 0 auto !important;
    width: 100% !important;
    position: relative !important;
    z-index: 1 !important;
    box-sizing: border-box !important;
}

.site-footer .footer-content,
.footer-content {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 2rem !important;
}

.footer-left {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
}

.site-footer .footer-copyright,
.footer-copyright {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    font-family: 'Poppins', sans-serif !important;
}

.footer-copyright p {
    margin: 0 !important;
    padding: 0 !important;
}

.site-footer .footer-links,
.footer-links {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    font-size: 0.85rem !important;
}

.site-footer .footer-link,
.site-footer a.footer-link,
.footer-link {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none !important;
    transition: var(--transition) !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 400 !important;
    border: none !important;
    outline: none !important;
}

.site-footer .footer-link:hover,
.site-footer a.footer-link:hover,
.footer-link:hover {
    color: rgba(255, 255, 255, 1) !important;
    text-decoration: underline !important;
}

.site-footer .footer-link:visited,
.site-footer a.footer-link:visited,
.footer-link:visited {
    color: rgba(255, 255, 255, 0.9) !important;
}

.site-footer .footer-link:active,
.site-footer a.footer-link:active,
.footer-link:active {
    color: rgba(255, 255, 255, 1) !important;
}

.footer-link-separator {
    color: rgba(255, 255, 255, 0.6) !important;
    margin: 0 0.25rem !important;
}

.site-footer .footer-social,
.footer-social {
    display: flex !important;
    gap: 0.75rem !important;
    align-items: center !important;
}

.site-footer .social-icon,
.social-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.95) !important;
    color: #1f2937 !important;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15) !important;
    backdrop-filter: blur(10px) !important;
}

.social-icon:hover {
    transform: translateY(-4px) scale(1.05) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25) !important;
    background: rgba(255, 255, 255, 1) !important;
}

.social-icon svg {
    width: 20px !important;
    height: 20px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.social-icon.linkedin:hover {
    color: #0077b5 !important;
    background: rgba(0, 119, 181, 0.1) !important;
}

.social-icon.instagram:hover {
    color: #E4405F !important;
    background: rgba(228, 64, 95, 0.1) !important;
}

.social-icon.app-store:hover {
    color: #FF8A80 !important;
    background: rgba(255, 138, 128, 0.15) !important;
}

.social-icon.google-play:hover {
    color: #FFB74D !important;
    background: rgba(255, 183, 77, 0.15) !important;
}

@media (max-width: 768px) {
    footer.site-footer,
    .site-footer {
        padding: 2rem 1rem !important;
    }

    .footer-content {
        flex-direction: column !important;
        text-align: center !important;
        gap: 1.5rem !important;
    }

    .footer-left {
        align-items: center !important;
        text-align: center !important;
    }

    .footer-copyright {
        font-size: 0.85rem !important;
    }

    .footer-links {
        justify-content: center !important;
        font-size: 0.8rem !important;
    }

    .footer-social {
        justify-content: center !important;
    }

    .social-icon {
        width: 38px !important;
        height: 38px !important;
    }

    .social-icon svg {
        width: 18px !important;
        height: 18px !important;
    }
}

