﻿:root {
    --bg-color-1: #0f172a;
    --bg-color-2: #020617;
    --accent-color: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.5);
    --accent-color-alt: #8b5cf6;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-hover: rgba(255, 255, 255, 0.08);
}

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

body {
    background-color: var(--bg-color-2);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.15), transparent 25%),
                radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.15), transparent 25%);
    z-index: -1;
    animation: pulse 15s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.1); opacity: 1; }
}

.glass-container {
    width: 90%;
    max-width: 1200px;
    padding: 3rem 2rem;
    margin: 2rem auto;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.hero-section {
    text-align: center;
    animation: fadeInDown 1s ease-out;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.logo {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
}

.glow-text {
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 30px rgba(255,255,255,0.1);
}

.logo .accent {
    color: var(--accent-color);
    background: none;
    -webkit-text-fill-color: var(--accent-color);
    text-shadow: 0 0 20px var(--accent-glow);
}

.welcome-text {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.services-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.services-text .highlight {
    color: var(--text-primary);
    font-weight: 600;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    perspective: 1000px;
}

.app-card {
    text-decoration: none;
    color: var(--text-primary);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.1s ease;
    position: relative;
    overflow: hidden;
    animation: fadeIn 1s ease-out both;
    transform-style: preserve-3d;
}

.app-grid .app-card:nth-child(1) { animation-delay: 0.1s; }
.app-grid .app-card:nth-child(2) { animation-delay: 0.2s; }
.app-grid .app-card:nth-child(3) { animation-delay: 0.3s; }
.app-grid .app-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.app-card:hover {
    background: var(--glass-hover);
    border-color: rgba(255,255,255,0.1);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4), 
                0 0 20px rgba(59, 130, 246, 0.2);
    z-index: 10;
}

.app-card:hover::before {
    opacity: 1;
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: var(--accent-color);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.2);
    transition: all 0.4s ease;
    transform: translateZ(20px);
}

.app-card:hover .icon-wrapper {
    transform: translateZ(40px) scale(1.1);
    background: linear-gradient(135deg, var(--accent-color), var(--accent-color-alt));
    color: #fff;
    box-shadow: 0 0 20px var(--accent-glow);
}

.app-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    transform: translateZ(10px);
}

.app-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
    transform: translateZ(10px);
}

footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .glass-container {
        padding: 2rem 1.5rem;
        gap: 2rem;
    }
    .logo {
        font-size: 2.5rem;
    }
    .services-text {
        font-size: 1rem;
    }
    .app-card {
        transform: none !important;
        transition: transform 0.3s ease;
    }
    .app-card:hover {
        transform: translateY(-5px) !important;
    }
}

/* Thêm css cho logo và contact info */
.main-logo {
    max-width: 150px;
    height: auto;
    margin: 0 auto 1rem auto;
    display: block;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
    animation: fadeInDown 1s ease-out;
}

.contact-info {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    display: inline-block;
    text-align: left;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
}

.contact-info p {
    font-size: 1.05rem;
    color: var(--text-primary);
    margin: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-info p:last-child {
    margin-bottom: 0;
}

.contact-info p:first-child {
    margin-top: 0;
}

.contact-info i {
    color: var(--accent-color);
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
    text-shadow: 0 0 10px var(--accent-glow);
}

.contact-info strong {
    color: var(--accent-color-alt);
    font-weight: 600;
}

/* Logo container styling */
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

/* Update logo styling to have a white border and background */
.main-logo {
    max-width: 140px;
    height: auto;
    display: block;
    margin: 0;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
    animation: fadeInDown 1s ease-out;
    border: 3px solid white;
    border-radius: 16px;
    background-color: white; /* Đảm bảo logo màu tối vẫn đọc được trên nền đen */
    padding: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}
