/* moriyatee HP - Portfolio Styles */

/* Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f7;
}

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

/* Header */
.header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    padding: 3rem 0 2.5rem;
    text-align: center;
    position: relative;
}

.site-title {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.3rem;
}

.site-subtitle {
    font-size: 1.1rem;
    opacity: 0.75;
    font-weight: 400;
}

/* Language Toggle */
.language-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
}

.language-toggle button {
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.25s ease;
}

.language-toggle button:hover {
    background: rgba(255, 255, 255, 0.22);
}

.language-toggle button.active {
    background: #fff;
    color: #1a1a2e;
    border-color: #fff;
}

/* Main Content */
.main-content {
    padding: 2.5rem 0 1rem;
}

/* Intro */
.intro-section {
    text-align: center;
    margin-bottom: 2.5rem;
}

.intro-text {
    font-size: 1.05rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Section Title */
.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #0f3460;
}

/* App Cards */
.apps-section {
    margin-bottom: 3rem;
}

.app-card {
    background: #fff;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.app-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.app-card-inner {
    display: flex;
    align-items: flex-start;
    padding: 2rem;
    gap: 1.8rem;
}

.app-icon-wrapper {
    flex-shrink: 0;
}

.app-icon {
    width: 88px;
    height: 88px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.app-info {
    flex: 1;
    min-width: 0;
}

.app-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.2rem;
    display: inline;
}

.app-platform {
    display: inline-block;
    background: #e8eaf6;
    color: #3949ab;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 12px;
    margin-left: 8px;
    vertical-align: middle;
}

.app-tagline {
    font-size: 0.95rem;
    color: #0f3460;
    font-weight: 600;
    margin: 0.5rem 0 0.6rem;
}

.app-description {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Feature Tags */
.app-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 1rem;
}

.feature-tag {
    background: #f0f4ff;
    color: #3949ab;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
}

/* App Links */
.app-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.app-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: #0f3460;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.25s ease, transform 0.2s ease;
}

.app-link:hover {
    background: #1a237e;
    transform: translateY(-1px);
}

/* About Section */
.about-section {
    margin-bottom: 2rem;
}

.about-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.about-card p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.about-links {
    display: flex;
    gap: 12px;
}

.about-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1a1a2e;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 6px 14px;
    border-radius: 8px;
    border: 1.5px solid #ddd;
    transition: all 0.25s ease;
}

.about-link:hover {
    border-color: #0f3460;
    color: #0f3460;
    background: #f0f4ff;
}

.about-link .icon {
    width: 18px;
    height: 18px;
}

/* Footer */
.footer {
    background: #1a1a2e;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 1rem;
    font-size: 0.85rem;
}

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

    .site-title {
        font-size: 2.2rem;
    }

    .language-toggle {
        position: static;
        justify-content: center;
        margin-bottom: 1rem;
    }

    .app-card-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem;
        gap: 1rem;
    }

    .app-name {
        display: block;
    }

    .app-platform {
        margin-left: 0;
        margin-top: 4px;
    }

    .app-features {
        justify-content: center;
    }

    .app-links {
        justify-content: center;
    }

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

@media (max-width: 480px) {
    .site-title {
        font-size: 1.8rem;
    }

    .site-subtitle {
        font-size: 0.95rem;
    }

    .app-icon {
        width: 72px;
        height: 72px;
        border-radius: 16px;
    }

    .app-card-inner {
        padding: 1.2rem;
    }
}

/* Print */
@media print {
    .header, .footer, .language-toggle {
        display: none;
    }

    body {
        background: #fff;
    }

    .app-card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
}
