/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #0066cc;
    --primary-hover: #0052a3;
    --accent-color: #00cc88;
    --bg-color: #f8fafc;
    --bg-flat: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

header {
    background: var(--bg-flat);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: fadeIn 0.8s ease-out;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: 1.4rem;
}

.logo-svg {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.logo-area:hover .logo-svg {
    transform: rotate(10deg) scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
    padding: 0.25rem 0;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

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

.hero {
    background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
    padding: 5rem 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 102, 204, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 102, 204, 0.3);
}

.btn-secondary {
    background-color: var(--bg-flat);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

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

main {
    max-width: var(--max-width);
    margin: 3rem auto;
    padding: 0 2rem;
    animation: fadeInUp 1s ease-out forwards;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.app-card {
    background: var(--bg-flat);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: #cbd5e1;
}

.app-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    background-color: #f1f5f9;
    transition: transform 0.5s ease;
}

.app-card:hover .app-img {
    transform: scale(1.03);
}

.app-info {
    padding: 1.5rem;
}

.app-badge {
    display: inline-block;
    background: #e0f2fe;
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.app-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.app-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    height: 70px;
    overflow: hidden;
}

.app-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legal-content {
    background: var(--bg-flat);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    max-width: 800px;
    margin: 2rem auto;
    animation: fadeInUp 0.8s ease-out;
}

.legal-content h1 { margin-bottom: 1.5rem; color: #0f172a;}
.legal-content h2 { margin: 1.5rem 0 1rem 0; font-size: 1.4rem; color: #1e293b;}
.legal-content p { margin-bottom: 1rem; color: #334155; text-align: justify;}
.legal-content ul { margin-left: 2rem; margin-bottom: 1rem; color: #334155;}
.legal-content li { margin-bottom: 0.5rem;}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 1rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    color: white;
    transition: all 0.2s ease;
}

.social-btn:hover {
    transform: translateY(-2px);
    opacity: 0.95;
    box-shadow: var(--shadow-md);
}

.tg-btn { background-color: #0088cc; }
.wa-btn { background-color: #25D366; }
.mail-btn { background-color: #ea4335; }

footer {
    background: var(--bg-flat);
    border-top: 1px solid var(--border-color);
    padding: 3rem 2rem;
    margin-top: 5rem;
    animation: fadeIn 1s ease-out;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand h3 { margin-bottom: 0.5rem; color: #0f172a;}
.footer-brand p { color: var(--text-muted); font-size: 0.95rem; max-width: 300px;}
.footer-links ul { list-style: none; }
.footer-links h4 { margin-bottom: 1rem; color: var(--text-main); }
.footer-links li { margin-bottom: 0.5rem;}
.footer-links a { text-decoration: none; color: var(--text-muted); font-size: 0.9rem; transition: color 0.2s;}
.footer-links a:hover { color: var(--primary-color); }

.copyright {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .nav-container { flex-direction: column; gap: 1rem; }
    .hero h1 { font-size: 2rem; }
    .footer-container { flex-direction: column; text-align: center; }
    .footer-brand p { max-width: 100%; }
}
