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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Chakra Petch', sans-serif; /* Modern, techy font */
    line-height: 1.6;
    color: #333; /* Dark text for light backgrounds */
    background-color: #ffffff; /* White background */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

a {
    color: #0056b3; /* Darker blue for links on white background */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #003d80; /* Even darker blue on hover */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif; /* Distinctive headings */
    font-weight: 700;
    margin-bottom: 1rem;
    color: #222; /* Dark color for headings */
}

p {
    margin-bottom: 1rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Header --- */
.main-header {
    background-color: rgba(26, 26, 46, 0.95); /* Semi-transparent dark background */
    backdrop-filter: blur(8px); /* Frosted glass effect */
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    padding: 0.8rem 0;
}

.header-content {
    display: flex;
    /* 로고는 왼쪽, 메뉴는 오른쪽 끝으로 배치 */
    justify-content: space-between; 
    align-items: center;
}

/* StickyHands 텍스트 로고 스타일 */
.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff; /* 흰색 텍스트 */
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.logo-text:hover {
    color: #00aaff; /* 호버 시 네온 블루 */
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

.main-nav {
    display: flex;
    align-items: center;
}

.main-nav .nav-links {
    display: flex;
    list-style: none;
}

.main-nav .nav-links li {
    margin-left: 2.5rem;
}

.main-nav .nav-links a {
    color: #e0e0e0;
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 400;
    font-size: 1.1rem;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.main-nav .nav-links a:hover,
.main-nav .nav-links a.active {
    color: #00aaff; /* Supercell-like accent color */
}

/* Underline effect for nav links */
.main-nav .nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: #00aaff;
    transition: width 0.3s ease;
}

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

.lang-selector a {
    margin-left: 2.5rem;
    color: #00aaff;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1rem;
}

/* Hamburger menu (hidden by default on desktop) */
.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
    margin-left: 1.5rem;
}

.hamburger-menu .bar {
    width: 25px;
    height: 3px;
    background-color: #e0e0e0;
    margin: 4px 0;
    transition: 0.3s;
}

/* --- Hero Section --- */
.hero-section {
    min-height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
    padding-top: 100px; 
    padding-bottom: 50px;
}



.hero-content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.hero-section .container.hero-content {
    position: relative;
    z-index: 1;
    color: #333;
}

.hero-title-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 0.5rem; /* Reduced to minimize spacing below images */
    flex-wrap: nowrap;
}

.hero-decor-left {
    width: 274px; /* Reduced by 10% from 304px */
    max-width: 25vw;
    height: auto;
}

.hero-decor-right {
    width: 357px; /* Reduced by 10% from 397px */
    max-width: 30vw;
    height: auto;
}

.hero-main-logo {
    max-width: 300px;
    width: 100%;
    height: auto;
}

.hero-section p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    color: #555;
}

.btn-primary {
    display: inline-block;
    background-image: linear-gradient(45deg, #00aaff, #00c6ff);
    color: #1a1a2e;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 242, 254, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 242, 254, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 242, 254, 0.4);
}

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

section:nth-of-type(even) {
    background-color: #f8f8f8;
}

section h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    color: #00aaff;
}

/* --- Games Section --- */
.games-section .game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* Adjusted to 3 columns on larger screens */
    gap: 30px;
    margin-top: 2rem;
}

.game-card-item {
    background-color: #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: column;
}

.game-card-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.game-card-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: filter 0.3s ease;
}

.game-card-placeholder-img {
    width: 100%;
    height: 200px; /* Matches the height of .game-card-item img */
    background-color: #f0f0f0; /* Matches the game-card-item background */
    display: block;
}

.game-card-item:hover img {
    filter: brightness(0.8);
}

.game-card-item .game-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    padding: 1.2rem 1.5rem;
    color: #00aaff;
    background-color: #e8e8e8;
    border-top: 1px solid rgba(0, 242, 254, 0.2);
    transition: background-color 0.3s ease;
}

.game-card-item:hover .game-title {
    background-color: #d0d0d0;
}

.game-card-item .game-title.faded-text {
    color: #888; /* Lighter grey */
    opacity: 0.6; /* Semi-transparent */
}

/* --- Company Section --- */
.company-section {
    background-color: #ffffff;
}

.company-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 3rem;
}

.company-info-block {
    text-align: left;
}

.company-info-block h3 {
    font-size: 2rem;
    color: #00aaff;
    margin-bottom: 1.5rem;
}

.company-info-block p {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1.5rem;
}

.company-image-block img {
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    display: inline-block;
    background-color: #00c6ff;
    color: #1a1a2e;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-top: 1rem;
}

.btn-secondary:hover {
    background-color: #00aaff;
    transform: translateY(-2px);
}

/* --- Careers Section --- */
.careers-section {
    background-color: #ffffff;
    text-align: center;
}

.careers-intro p {
    font-size: 1.2rem;
    max-width: 900px;
    margin: 0 auto 3rem auto;
    color: #555;
}

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

.job-card {
    background-color: #f0f0f0;
    padding: 2.5rem;
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.job-card p {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.btn-tertiary {
    display: inline-block;
    background-color: #ff9900;
    color: #1a1a2e;
    padding: 0.7rem 1.8rem;
    border-radius: 5px;
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-tertiary:hover {
    background-color: #ffb84d;
    transform: translateY(-2px);
}

.btn-primary-outline {
    display: inline-block;
    border: 2px solid #00aaff;
    color: #00aaff;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-top: 3rem;
}

.btn-primary-outline:hover {
    background-color: #00aaff;
    color: #1a1a2e;
}

/* --- News Section --- */
.news-section {
    background-color: #ffffff;
    text-align: center;
}

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

.news-article-card {
    background-color: #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.news-article-card h3 {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.news-article-card .date {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 1rem;
}

.news-article-card p {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.btn-text {
    color: #00aaff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.btn-text:hover {
    color: #00c6ff;
}

/* --- Support Section --- */
.support-section {
    background-color: #ffffff;
    text-align: center;
}

.support-intro {
    font-size: 1.2rem;
    max-width: 900px;
    margin: 0 auto 3rem auto;
    color: #555;
}

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

.support-option-card {
    background-color: #f0f0f0;
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: #333;
}

.support-option-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.support-option-card h3 {
    font-size: 1.5rem;
    color: #00aaff;
    margin-bottom: 0.8rem;
}

.support-option-card p {
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
}

/* --- Footer --- */
.main-footer {
    background-color: #0a0a1a;
    color: #b0b0d0;
    padding: 4rem 0 2rem 0;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    margin-bottom: 3rem;
}

.footer-col h3 {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: #b0b0d0;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: #00aaff;
}

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

.footer-bottom p {
    margin: 0;
    color: #707090;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .main-header .logo-text {
        font-size: 1.2rem; /* 모바일에서 로고 텍스트 크기 조절 */
    }
    
    .main-nav .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(26, 26, 46, 0.95);
        padding: 1rem 0;
        text-align: center;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    }
    .main-nav .nav-links.active {
        display: flex;
    }
    .main-nav .nav-links li {
        margin: 1rem 0;
    }
    .main-nav .nav-links a {
        font-size: 1.3rem;
    }
    
    /* 랭귀지 셀렉터와 햄버거 메뉴 정렬 */
    .lang-selector {
        margin-left: auto;
    }
    .hamburger-menu {
        display: flex;
        margin-left: 1rem;
    }

    .hero-section h1 {
        font-size: 3rem;
    }
    .hero-section p {
        font-size: 1rem;
    }
    .btn-primary {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }

    .main-footer .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col {
        margin-bottom: 2rem;
    }
    .footer-bottom .social-links {
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 3rem !important;
    }
    h2 {
        font-size: 2.5rem !important;
    }
    .company-content-grid {
        display: grid;
    grid-template-columns: 1fr;
    }
    .company-info-block {
        text-align: center;
    }
    .btn-secondary {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-section h1 {
        font-size: 2.5rem;
    }
    .hero-section p {
        font-size: 1rem;
    }
    
    /* 모바일 장식 이미지 숨기기 */
    .hero-decor-left,
    .hero-decor-right {
        display: none;
    }

    /* 게임 그리드를 모바일에서 단일 열로 */
    .games-section .game-grid {
        grid-template-columns: 1fr;
    }
}