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

:root {
    --primary-blue: #007AFF;
    --secondary-blue: #5856D6;
    --dark-blue: #1a1a2e;
    --gradient-start: #007AFF;
    --gradient-end: #5856D6;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --dark-gray: #333333;
    --text-color: #2c2c2c;
    --dark-purple: #0f0f23;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--white);
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Jeju Hallasan', cursive;
    font-weight: 400;
}

h1 {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 400;
}

h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
    font-weight: 400;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 40px;
    border: none;
    border-radius: 30px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--white);
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 122, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-large {
    padding: 18px 50px;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
    padding: 20px;
    font-size: 1.2rem;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.cookie-popup.hidden {
    display: none;
}

.cookie-content {
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    text-align: left;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cookie-content h3 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: var(--dark-gray);
}

.cookie-content p {
    margin-bottom: 35px;
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.6;
}

.cookie-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar {
    padding: 1.2rem 0;
}

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

.nav-brand a {
    font-family: 'Jeju Hallasan', cursive;
    font-size: 2rem;
    font-weight: 400;
    color: var(--primary-blue);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-menu a {
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    letter-spacing: 0.5px;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-blue);
}

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

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark-gray);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
    display: flex;
    align-items: center;
    padding-top: 100px;
    color: var(--white);
}

.hero-content {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 6rem;
    align-items: center;
}

.hero-text h1 {
    margin-bottom: 2.5rem;
    font-size: 4.2rem;
    line-height: 1.1;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.7;
}

.hero-text .btn {
    margin-top: 1rem;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    filter: brightness(1.1);
}

/* Features Section */
.features {
    padding: 120px 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4rem;
}

.feature-card {
    text-align: center;
    padding: 2rem 1.5rem;
}

.feature-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon img {
    width: 50px;
    height: 50px;
    filter: brightness(0) invert(1);
}

.feature-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.feature-card p {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.6;
}

/* Origin Section */
.origin {
    padding: 120px 0;
    background: linear-gradient(135deg, #5856D6 0%, #007AFF 100%);
    color: var(--white);
    text-align: center;
}

.origin h2 {
    color: var(--white);
    text-align: center;
    margin-bottom: 3rem;
    font-size: 3rem;
}

.origin p {
    font-size: 1.1rem;
    max-width: 900px;
    margin: 0 auto 2.5rem;
    opacity: 0.95;
    line-height: 1.7;
    text-align: left;
}

.origin-image {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
}

.origin-image img {
    max-width: 500px;
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

/* Games Section */
.games {
    padding: 120px 0;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a3a 100%);
}

.games h2 {
    text-align: center;
    color: var(--white);
    margin-bottom: 5rem;
    font-size: 3rem;
}

.games-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.game-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: center;
    border-radius: 25px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--white);
    box-shadow: 0 15px 40px rgba(0, 122, 255, 0.2);
    overflow: hidden;
    min-height: 300px;
}
.game-card{
    padding: 20px;
}
.game-card-2,
.game-card-4 {
    background: linear-gradient(135deg, var(--gradient-end), var(--gradient-start));
}

.game-image {
    height: 300px;
    overflow: hidden;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-content {
    padding: 3rem;
}

.game-content h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.game-content p {
    margin-bottom: 2.5rem;
    opacity: 0.95;
    font-size: 1rem;
    line-height: 1.6;
}

.google-play-btn {
    display: inline-block;
    transition: transform 0.3s ease;
}

.google-play-btn:hover {
    transform: scale(1.05);
}

.google-play-btn img {
    height: 60px;
    width: auto;
}

/* Article Section */
.article {
    padding: 120px 0;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a3a 100%);
    color: var(--white);
}

.article h2 {
    color: var(--white);
    text-align: center;
    margin-bottom: 4rem;
    font-size: 3rem;
}

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

.article-content p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    text-align: justify;
    line-height: 1.7;
}

/* Contact Section */
.contact {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 4rem;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.form-group input {
    width: 100%;
    padding: 20px 25px;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-family: 'Poppins', sans-serif;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    color: var(--dark-gray);
}

.form-group input:focus {
    outline: none;
    background: var(--white);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.form-group input::placeholder {
    color: #666;
    font-weight: 500;
}

.contact .btn {
    background: linear-gradient(135deg, #0f0f23, #1a1a3a);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.contact .btn:hover {
    background: linear-gradient(135deg, #1a1a3a, #0f0f23);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Footer */
.footer {
    background: var(--dark-blue);
    color: var(--white);
    padding: 3rem 0;
}

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

.footer-links {
    display: flex;
    gap: 3rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    letter-spacing: 0.5px;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-copyright {
    font-size: 1rem;
    opacity: 0.8;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
    
    .hero-content {
        gap: 4rem;
    }
    
    h1 {
        font-size: 3.5rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 2rem;
        padding: 3rem 2rem;
        transition: left 0.3s ease;
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    }

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

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .game-card {
        grid-template-columns: 1fr;
        gap: 0;
        text-align: center;
    }

    .game-card-2 .game-content,
    .game-card-4 .game-content {
        order: 1;
    }

    .game-card-2 .game-image,
    .game-card-4 .game-image {
        order: 2;
    }

    .game-content {
        padding: 2.5rem;
    }

    .contact-form {
        margin: 0 20px;
        padding: 3rem 2rem;
    }

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

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

    .cookie-content {
        padding: 30px;
        margin: 20px;
    }

    .cookie-buttons {
        flex-direction: column;
    }

    .cookie-buttons .btn {
        width: 100%;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    h3 {
        font-size: 1.6rem;
    }

    .article-content p,
    .origin p {
        text-align: left;
    }

    .hero {
        padding-top: 80px;
    }

    .features,
    .origin,
    .games,
    .article,
    .contact {
        padding: 80px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .game-content {
        padding: 2rem;
    }

    .contact-form {
        padding: 2rem 1.5rem;
    }

    .cookie-content {
        padding: 20px;
    }

    .cookie-content h3 {
        font-size: 1.6rem;
    }

    .form-group input {
        padding: 18px 20px;
        font-size: 1rem;
    }

    .btn {
        padding: 15px 30px;
        font-size: 0.9rem;
    }

    .btn-large {
        padding: 18px 40px;
        font-size: 1rem;
    }

    .btn-full {
        padding: 18px;
        font-size: 1.1rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 2rem;
    }

    .features,
    .origin,
    .games,
    .article,
    .contact {
        padding: 60px 0;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.game-card {
    animation: fadeInUp 0.6s ease forwards;
}

.feature-card:nth-child(2) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(4) {
    animation-delay: 0.3s;
}

.game-card:nth-child(2) {
    animation-delay: 0.1s;
}

.game-card:nth-child(3) {
    animation-delay: 0.2s;
}

.game-card:nth-child(4) {
    animation-delay: 0.3s;
}

/* Hover Effects */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 122, 255, 0.1);
}

.game-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 122, 255, 0.3);
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--gradient-end), var(--gradient-start));
}

/* Smooth scrolling for older browsers */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Focus states for accessibility */
.btn:focus,
input:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Loading states */
.btn.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}