/* ==========================================================================
   Tarkarn Branding Page Stylesheet
   ========================================================================== */

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
        'Helvetica Neue', Arial, sans-serif;
    background-color: #0a0a0a;
    color: #e0e0e0;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-12px);
    }
    60% {
        transform: translateY(-6px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* --- Scroll Fade-In --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Section Common --- */
.section {
    padding: 100px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #999999;
    margin-bottom: 60px;
    max-width: 600px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 0 24px;
    background: radial-gradient(ellipse at 50% 30%, rgba(108, 99, 255, 0.08) 0%, transparent 60%);
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    animation: fadeInUp 1s ease-out;
}

.hero-title .accent {
    background: linear-gradient(135deg, #6c63ff, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-slogan {
    font-size: 1.4rem;
    color: #999999;
    font-weight: 400;
    letter-spacing: 0.05em;
    animation: fadeIn 1.5s ease-out;
}

.scroll-arrow {
    position: absolute;
    bottom: 40px;
    cursor: pointer;
    animation: bounce 2s infinite;
    color: #6c63ff;
    font-size: 2rem;
    opacity: 0.7;
    transition: opacity 0.3s;
    user-select: none;
}

.scroll-arrow:hover {
    opacity: 1;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about {
    background-color: #0e0e0e;
    padding-top: 120px;
    padding-bottom: 120px;
}

.about-intro {
    font-size: 1.15rem;
    color: #bbbbbb;
    max-width: 640px;
    margin-bottom: 60px;
    line-height: 1.8;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.value-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 36px 28px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.value-card:hover {
    transform: translateY(-4px);
    border-color: rgba(108, 99, 255, 0.3);
}

.value-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    color: #6c63ff;
}

.value-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
}

.value-card p {
    font-size: 0.95rem;
    color: #999999;
    line-height: 1.7;
}

/* ==========================================================================
   Apps Section
   ========================================================================== */
.apps {
    padding-top: 120px;
    padding-bottom: 120px;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.app-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.app-card:hover {
    transform: translateY(-4px);
    border-color: rgba(108, 99, 255, 0.3);
}

.app-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.app-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    object-fit: cover;
    flex-shrink: 0;
}

.app-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
}

.app-name-sub {
    font-size: 0.8rem;
    color: #777777;
    font-weight: 400;
}

.app-desc {
    font-size: 0.9rem;
    color: #999999;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.app-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #6c63ff;
    color: #ffffff;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.app-link:hover {
    background: #7f78ff;
}

.app-link svg {
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   Developer Section
   ========================================================================== */
.developer {
    background-color: #0e0e0e;
    padding-top: 120px;
    padding-bottom: 120px;
}

.developer-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 700px;
}

.developer-bio {
    font-size: 1.05rem;
    color: #bbbbbb;
    line-height: 1.8;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    padding: 6px 16px;
    background: rgba(108, 99, 255, 0.1);
    border: 1px solid rgba(108, 99, 255, 0.25);
    border-radius: 20px;
    font-size: 0.85rem;
    color: #a78bfa;
    font-weight: 500;
}

.developer-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.developer-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #999999;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.developer-link:hover {
    color: #6c63ff;
}

.developer-link svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    padding: 40px 24px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copy {
    font-size: 0.85rem;
    color: #666666;
}

.footer-link {
    font-size: 0.85rem;
    color: #666666;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #6c63ff;
}

/* ==========================================================================
   Support Section
   ========================================================================== */
.support-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.support-desc {
    font-size: 1.05rem;
    color: #aaaaaa;
    line-height: 1.7;
    margin-bottom: 32px;
}

.bmc-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #ffdd00, #f7bb0a);
    color: #0a0a0a;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.bmc-button svg {
    width: 22px;
    height: 22px;
}

.bmc-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 221, 0, 0.3);
}

/* ==========================================================================
   Responsive - Tablet (< 1024px)
   ========================================================================== */
@media (max-width: 1023px) {
    .hero-title {
        font-size: 3.2rem;
    }

    .hero-slogan {
        font-size: 1.2rem;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .apps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   Responsive - Mobile (< 768px)
   ========================================================================== */
@media (max-width: 767px) {
    .section {
        padding: 80px 20px;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .hero-slogan {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .apps-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        gap: 12px;
    }

    .developer-links {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================================================================
   Language Toggle Button
   ========================================================================== */
.lang-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    color: #e0e0e0;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    user-select: none;
}

.lang-toggle:hover {
    background: rgba(108, 99, 255, 0.25);
    border-color: rgba(108, 99, 255, 0.5);
    color: #ffffff;
}
