/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #222;
    background-color: #f8f8f8;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

a:hover {
    color: #000;
}

ul {
    list-style: none;
}

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

section {
    padding: 80px 0;
}

h1, h2, h3 {
    margin-bottom: 20px;
    color: #111;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 40px;
}

h3 {
    font-size: 1.2rem;
    font-weight: 500;
}

p {
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    margin: 10px 10px 10px 0;
    transition: transform 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn img {
    height: 70px;
    transition: transform 0.3s ease;
}

/* Header */
header {
    background-color: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding-right: 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 40px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
}

nav {
    margin-left: auto;
    margin-right: 20px;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: #333;
    font-weight: 500;
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #000;
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

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

/* Hero section */
#hero {
    background: linear-gradient(135deg, #222 0%, #000 100%);
    color: white;
    padding: 100px 0;
}

#hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

/* Updated hero images container for two screenshots - horizontal layout */
.hero-images {
    flex: 1;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    position: relative;
}

.hero-images img {
    max-width: 45%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.screenshot-1 {
    transform: rotate(-5deg);
    position: relative;
    z-index: 2;
}

.screenshot-2 {
    transform: rotate(5deg);
    position: relative;
    z-index: 1;
    margin-left: -50px;
}

.app-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

/* Features section */
#features {
    background-color: #fff;
}

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

.feature {
    background: #f8f8f8;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
}

.feature-icon img {
    width: 40px;
}

.feature-icon .emoji {
    font-size: 2.5rem;
}

/* Download section */
#download {
    background: linear-gradient(to right, #f8f8f8, #efefef);
    text-align: center;
}

#download .app-buttons {
    justify-content: center;
    margin-top: 30px;
}

/* About section */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-emoji {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.emoji-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    background: #f8f8f8;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.big-emoji {
    font-size: 8rem;
    line-height: 1;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    animation: float 3s ease-in-out infinite;
}

.big-emoji:nth-child(2) {
    animation-delay: 1.5s;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.about-image img {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Testimonials section */
#testimonials {
    background-color: #f8f8f8;
}

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

.testimonial {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.stars {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.user {
    margin-top: 20px;
    font-weight: 500;
    color: #666;
}

/* FAQ section */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
}

.faq-item {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.faq-item h3 {
    color: #000;
    margin-bottom: 15px;
}

/* Footer */
footer {
    background: #111;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo img {
    width: 60px;
    margin-bottom: 15px;
}

.footer-links h3,
.footer-social h3 {
    color: white;
    margin-bottom: 20px;
}

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

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links ul li a:hover {
    color: white;
}

/* Hide social icons */
.footer-social {
    display: none;
}

.social-icons {
    display: none;
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Contact section */
.contact-section {
    padding: 80px 0;
    background-color: #f8f8f8;
    text-align: center;
}

/* Simplify contact section */
.contact-info {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    text-align: center;
}

.contact-email {
    font-size: 1.5rem;
    font-weight: 500;
    margin: 20px 0;
}

.contact-email a {
    color: #000;
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    #hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .app-buttons {
        justify-content: center;
    }
    
    .about-content {
        flex-direction: column-reverse;
    }
    
    .emoji-container {
        flex-direction: row;
        padding: 30px;
        gap: 50px;
    }
    
    .big-emoji {
        font-size: 6rem;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-images {
        margin-top: 30px;
    }
    
    .screenshot-1, .screenshot-2 {
        max-width: 45%;
    }
    
    .screenshot-2 {
        margin-left: -30px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    nav ul {
        display: none;
    }
    
    header .container {
        flex-wrap: wrap;
    }
    
    nav {
        order: 3;
        width: 100%;
        margin-top: 15px;
        margin-right: 0;
    }
    
    .language-selector {
        margin-right: 60px; /* Make space for mobile menu button */
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-logo {
        align-items: center;
    }
    
    .hero-images {
        flex-direction: row;
    }
    
    .hero-images img {
        max-width: 45%;
    }
    
    .screenshot-2 {
        margin-left: -20px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .btn img {
        height: 60px;
    }
    
    .hero-images {
        flex-direction: column;
        gap: 20px;
    }
    
    .hero-images img {
        max-width: 70%;
    }
    
    .screenshot-1, .screenshot-2 {
        margin: 0;
    }
    
    .screenshot-2 {
        margin-top: -30px;
    }
    
    /* Further adjust language selector for very small screens */
    .language-selector {
        margin-right: 50px;
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-right: 15px;
}

@media (max-width: 768px) {
    header .container {
        flex-wrap: wrap;
    }
    
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: #333;
        transition: all 0.3s ease;
    }
    
    nav {
        order: 3;
        width: 100%;
        margin-top: 15px;
        margin-right: 0;
    }
    
    nav ul {
        display: none;
    }
    
    nav ul.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background-color: #fff;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        z-index: 100;
    }
    
    nav ul.active li {
        margin: 10px 0;
    }
    
    .language-selector {
        margin-right: 0;
    }
}

/* 언어 선택 드롭다운 스타일 */
.language-selector {
    position: relative;
    display: inline-block;
    margin-left: 15px;
}

/* Styling for the language dropdown */
#language-dropdown {
    padding: 10px 15px;
    font-weight: 500;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23ffffff%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 10px;
    padding-right: 32px;
    transition: all 0.3s ease;
    min-width: 110px;
    text-align: left;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.3px;
}

#language-dropdown:hover {
    background-color: #555;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

#language-dropdown:focus {
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.2);
    outline: none;
}

#language-dropdown option {
    background-color: white;
    color: #333;
    padding: 10px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
}

/* Adjust for mobile */
@media (max-width: 768px) {
    #language-dropdown {
        padding: 8px 12px;
        font-size: 0.85rem;
        min-width: 90px;
    }
    
    .language-selector {
        margin-right: 60px;
    }
}

.language-selector .current-lang {
    background-color: #4a6eb5;
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-weight: bold;
}

.language-selector .current-lang:after {
    content: "";
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid white;
    margin-left: 8px;
}

.language-selector .dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #f9f9f9;
    min-width: 120px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 4px;
    overflow: hidden;
}

.language-selector:hover .dropdown-content {
    display: block;
}

.language-selector .dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    transition: background-color 0.2s;
}

.language-selector .dropdown-content a:hover {
    background-color: #e0e0e0;
}

.language-selector .dropdown-content a.active {
    background-color: #ebebeb;
    color: #4a6eb5;
    font-weight: bold;
}

/* 무료 앱 강조 */
.free-app-badge {
    display: none;
}

/* Language Selector Styles */
.lang-select {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    color: #333;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.lang-select:hover {
    border-color: #aaa;
}

.lang-select:focus {
    outline: none;
    border-color: #333;
}

/* Special styling for Spanish title */
.es-title {
    font-size: 1.2rem;
    line-height: 1.2;
    margin-bottom: 0;
}

/* Styling for Traditional Chinese title */
.zh-tw-title {
    font-size: 1.3rem;
    font-family: 'Noto Sans TC', sans-serif;
    font-weight: 500;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .es-title {
        font-size: 1rem;
    }
    
    .zh-tw-title {
        font-size: 1.1rem;
    }
}

.vi-title {
    font-family: 'Noto Sans', Arial, Helvetica, sans-serif !important;
    font-weight: 700;
}

/* 언어 하단 메뉴 스타일 개선 */
.language-footer {
    margin-top: 30px;
    width: 100%;
    text-align: center;
}

.language-footer h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #fff;
    font-weight: 500;
}

.language-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.language-list a {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.2s ease;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.language-list a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .language-list {
        gap: 8px;
    }
    
    .language-list a {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
}

/* 언어 선택 드롭다운 제거 */
.language-selector {
    display: none;
}

#language-dropdown {
    display: none;
}

/* 현재 선택된 언어 강조 */
.language-list a.current {
    background-color: rgba(255, 255, 255, 0.25);
    color: #fff;
    font-weight: 600;
    border-color: rgba(255, 255, 255, 0.4);
    /* 약간의 발광 효과 추가 */
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
} 