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

@font-face {
    font-family: 'THEletsmile';
    src: url('fonts/THEletssmileL.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'THEletsmile';
    src: url('fonts/THEletssmileR.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'THEletsmile';
    src: url('fonts/THEletssmileM.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'BMKkubulim';
    src: url('fonts/BMKkubulimTTF.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --bg-light: #ffffff;
    --bg-light-secondary: #f8f8f8;
    --text-primary: #2a2a2a;
    --text-secondary: #666666;
    --accent-color: #876535;
    --accent-hover: #5a4e4e;
}

body {
    font-family: 'BMKkubulim', 'THEletsmile', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

* {
    cursor: url('images/cursor2.png') 8 8, auto;
}

a, button, .hamburger, .lang-toggle, .nav-menu a, .game-cover-youtube, .contact-card, .game-item-title-link, .back-link, input, textarea, select {
    cursor: url('images/cursor2.png') 8 8, pointer;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 3000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    font-family: 'BMKkubulim', 'THEletsmile', sans-serif;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.lang-toggle {
    background-color: transparent;
    border: 2px solid var(--text-primary);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'BMKkubulim', 'THEletsmile', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin: 0;
}

.lang-toggle:hover {
    background-color: var(--text-primary);
    color: var(--bg-light);
}

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    letter-spacing: 1px;
    font-family: 'BMKkubulim', 'THEletsmile', sans-serif;
}

.nav-menu a:hover {
    color: var(--accent-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    transition: 0.3s;
}

/* Image Stack Animation */
.image-stack-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    pointer-events: none;
}

.image-stack {
    position: relative;
    width: 300px;
    height: 300px;
    max-width: 40vw;
    max-height: 40vh;
}

.stack-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transform: translateY(-50px);
    animation: stackReveal 8s ease-out forwards;
}

.stack-image[data-index="0"] {
    animation-delay: 0s;
}

.stack-image[data-index="1"] {
    animation-delay: 2s;
}

.stack-image[data-index="2"] {
    animation-delay: 4s;
}

@keyframes stackReveal {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }
    12.5% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    padding: 120px 2rem 4rem 2rem;
}

.hero-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content {
    z-index: 2;
    margin-top: 2rem;
}

.studio-name {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--accent-color);
    font-family: 'BMKkubulim', 'THEletsmile', sans-serif;
}

.studio-name-en {
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    letter-spacing: 2px;
    font-family: 'BMKkubulim', 'THEletsmile', sans-serif;
}

.tagline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 300;
    font-family: 'BMKkubulim', 'THEletsmile', sans-serif;
}

.scroll-indicator {
    display: none;
}

/* Section Styles */
section {
    padding: 6rem 0;
    min-height: 60vh;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: 2px;
    font-family: 'BMKkubulim', 'THEletsmile', sans-serif;
}

/* Page Section Styles */
.page-section {
    min-height: calc(100vh - 80px);
    padding-top: 120px;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    letter-spacing: 2px;
    color: var(--text-primary);
    font-family: 'BMKkubulim', 'THEletsmile', sans-serif;
}

.section-subtitle {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-family: 'BMKkubulim', 'THEletsmile', sans-serif;
}

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

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

.about-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-secondary);
    white-space: pre-line;
}

/* Games Section */
.games {
    background-color: var(--bg-light);
}

.games-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 96px;
}

.games-page-title {
    font-size: 3.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 4rem;
    letter-spacing: 2px;
    color: var(--text-primary);
    font-family: 'BMKkubulim', 'THEletsmile', sans-serif;
}

.games-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.game-item {
    text-decoration: none;
    color: inherit;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: rgba(15, 15, 15, 0.1) 0px 0px 0px 1px;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.game-item:hover {
    box-shadow: 0 8px 32px rgba(135, 101, 53, 0.2);
    transform: translateY(-4px);
}

.game-cover {
    width: 100%;
    overflow: hidden;
    background-color: #f5f5f5;
}

.game-cover img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.game-cover-video {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
}

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

.game-cover-youtube {
    position: relative;
    display: block;
    cursor: pointer;
}

.game-cover-youtube img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.game-cover-youtube:hover img {
    transform: scale(1.02);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.game-cover-youtube:hover .play-button {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.game-item-title-link {
    text-decoration: none;
    color: inherit;
}

.game-item:hover .game-cover img {
    transform: scale(1.02);
}

.game-item-title {
    font-size: 2rem;
    font-weight: 900;
    text-align: center;
    padding: 2rem 1.5rem;
    margin: 0;
    letter-spacing: 1px;
    color: var(--text-primary);
    font-family: 'BMKkubulim', 'THEletsmile', sans-serif;
}

/* Legacy styles for compatibility */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.game-card {
    background-color: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
    display: block;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(135, 101, 53, 0.3);
}

.game-image-placeholder {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.game-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 1.5rem 1.5rem 1rem 1.5rem;
}

.game-description {
    color: var(--text-secondary);
    margin: 0 1.5rem 1rem 1.5rem;
    line-height: 1.6;
}

.game-tags {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 1.5rem 1.5rem 1.5rem;
    flex-wrap: wrap;
}

.tag {
    background-color: rgba(135, 101, 53, 0.2);
    color: var(--accent-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Blog Section */
.blog {
    background-color: var(--bg-light-secondary);
}

.blog-posts {
    max-width: 800px;
    margin: 0 auto;
}

.blog-post {
    background-color: rgba(0, 0, 0, 0.02);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--accent-color);
}

.blog-post h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.post-date {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* Download Section */
.download {
    background-color: var(--bg-light);
}

.download-intro {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-family: 'BMKkubulim', 'THEletsmile', sans-serif;
    white-space: pre-line;
}

.month-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.filter-tag {
    padding: 0.75rem 1.75rem;
    background-color: #ffffff;
    border: 2px solid var(--text-secondary);
    color: var(--text-secondary);
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'BMKkubulim', 'THEletsmile', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tag:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
}

.filter-tag.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(135, 101, 53, 0.3);
}

.calendars-container {
    max-width: 1000px;
    margin: 0 auto;
}

.calendar-month-section {
    margin-bottom: 5rem;
}

.month-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--accent-color);
    font-family: 'BMKkubulim', 'THEletsmile', sans-serif;
}

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

.calendar-item {
    background-color: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.calendar-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(135, 101, 53, 0.3);
}

.calendar-preview {
    width: 100%;
    aspect-ratio: 9/16;
    overflow: hidden;
    background-color: #f5f5f5;
    position: relative;
}

.calendar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.calendar-item:hover .calendar-preview img {
    transform: scale(1.05);
}

.calendar-info {
    padding: 2rem;
    text-align: center;
}

.calendar-type {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-family: 'BMKkubulim', 'THEletsmile', sans-serif;
}

.download-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--accent-color);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    font-family: 'BMKkubulim', 'THEletsmile', sans-serif;
    box-shadow: 0 4px 12px rgba(135, 101, 53, 0.3);
}

.download-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(135, 101, 53, 0.4);
}

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

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

.contact-content p {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    color: var(--text-secondary);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.contact-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 2px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(135, 101, 53, 0.2);
    border-color: var(--accent-color);
}

.contact-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.email-icon {
    width: 80px;
    height: 80px;
    font-size: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.contact-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.contact-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
    word-break: break-word;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--accent-color);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-link:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
}

/* Game Detail Page */
.game-detail-section {
    min-height: calc(100vh - 80px);
    padding-top: 120px;
    padding-bottom: 4rem;
}

.game-detail-title {
    font-size: 4rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: 2px;
    color: var(--accent-color);
    font-family: 'BMKkubulim', 'THEletsmile', sans-serif;
}

.game-hero {
    max-width: 1000px;
    margin: 0 auto 4rem auto;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.game-description-section {
    max-width: 900px;
    margin: 0 auto 4rem auto;
    text-align: center;
}

.game-intro {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.game-details-text {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.8;
    text-align: left;
}

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

.game-detail-tags {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.screenshots-section {
    max-width: 1200px;
    margin: 0 auto 4rem auto;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.screenshot-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.screenshot-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(135, 101, 53, 0.3);
}

.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
}

.store-links-section {
    max-width: 800px;
    margin: 0 auto 4rem auto;
    text-align: center;
}

.store-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.store-link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 3rem;
    background-color: var(--accent-color);
    color: #ffffff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(135, 101, 53, 0.3);
}

.store-link:hover {
    background-color: var(--accent-hover);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(135, 101, 53, 0.4);
}

.store-link img {
    height: 32px;
    width: auto;
}

.back-to-games {
    text-align: center;
    margin-top: 4rem;
}

.back-link {
    display: inline-block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--accent-color);
}

/* Footer */
.footer {
    background-color: var(--bg-light-secondary);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer p {
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .studio-name {
        font-size: 2.5rem;
    }

    .studio-name-en {
        font-size: 1.25rem;
    }

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

    .games-container {
        padding: 0 24px;
    }

    .games-page-title {
        font-size: 2.5rem;
    }

    .game-item-title {
        font-size: 1.5rem;
        padding: 1.5rem 1rem;
    }

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

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .game-detail-title {
        font-size: 2.5rem;
    }

    .game-intro {
        font-size: 1.35rem;
    }

    .game-details-text {
        font-size: 1.1rem;
    }

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

    .store-link {
        padding: 1.25rem 2rem;
    }

    /* Download page responsive */
    .month-title {
        font-size: 2rem;
    }

    .calendar-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .download-intro {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .month-filter {
        gap: 0.75rem;
        margin-bottom: 3rem;
    }

    .filter-tag {
        padding: 0.625rem 1.5rem;
        font-size: 0.9rem;
    }

    .calendar-type {
        font-size: 1.25rem;
    }

    .download-btn {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .studio-name {
        font-size: 2rem;
    }

    .studio-name-en {
        font-size: 1rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .container {
        padding: 0 1rem;
    }

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

    .game-item-title {
        font-size: 1.25rem;
        padding: 1.25rem 0.75rem;
    }

    .game-detail-title {
        font-size: 2rem;
    }

    .game-intro {
        font-size: 1.2rem;
    }

    .game-details-text {
        font-size: 1rem;
    }
}
