/* =========================================
   STYLE.CSS - NEO DIGITIZATION PRO (3D CAROUSEL)
   ========================================= */
:root {
    --primary-cyan: #00e5ff;
    --primary-blue: #0055ff;
    --dark-navy: #020513; 
    --text-main: #ffffff;
    --text-muted: #b0bec5;
    --glass-bg: rgba(11, 22, 56, 0.7);
    --glass-border: rgba(0, 229, 255, 0.25);
}

html, body { 
    margin: 0; padding: 0; font-family: Cambria, Georgia, serif; 
    background-color: var(--dark-navy); color: var(--text-main); 
    line-height: 1.7; scroll-behavior: smooth; 
    overflow-x: hidden !important; overflow-y: auto !important; 
    background-image: linear-gradient(to bottom, rgba(2, 5, 19, 0.8), rgba(2, 5, 19, 0.95)), url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=1920&auto=format&fit=crop');
    background-size: cover; background-attachment: fixed; background-position: center;
}
html.a-fullscreen { overflow-y: auto !important; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 10; }

/* HEADER */
header { border-bottom: 1px solid var(--glass-border); padding: 12px 0; background: rgba(2, 5, 19, 0.9); position: sticky; top: 0; z-index: 100; backdrop-filter: blur(15px); }
.nav-content { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 45px; width: auto; object-fit: contain; }
.menu a { color: var(--text-main); text-decoration: none; margin-left: 20px; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; transition: all 0.3s; }
.menu a:hover, .menu a.active { color: var(--primary-cyan); text-shadow: 0 0 15px rgba(0, 229, 255, 0.6); }

/* BUTTONS */
.btn { padding: 15px 40px; font-size: 16px; font-weight: bold; border-radius: 8px; cursor: pointer; text-decoration: none; display: inline-block; transition: all 0.4s ease; text-transform: uppercase; letter-spacing: 2px; }
.btn-primary { background: linear-gradient(90deg, var(--primary-blue), var(--primary-cyan)); color: #fff; border: none; box-shadow: 0 5px 20px rgba(0, 85, 255, 0.4); }
.btn-primary:hover { box-shadow: 0 10px 30px rgba(0, 229, 255, 0.7); transform: translateY(-5px) scale(1.02); }

/* BANNERS */
@keyframes panBackground { 0% { background-position: 0% 0%; } 100% { background-position: 100% 100%; } }
.hero-animated { position: relative; padding: 180px 0 140px; text-align: center; background: linear-gradient(to bottom, rgba(2, 5, 19, 0.6), var(--dark-navy)), url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=1920&auto=format&fit=crop'); background-size: 150% 150%; animation: panBackground 30s linear infinite alternate; border-bottom: 1px solid var(--glass-border); margin-bottom: 40px; }
.hero-animated h1 { position: relative; z-index: 2; font-size: 4.8rem; margin-bottom: 25px; letter-spacing: 2px; text-shadow: 0 5px 25px rgba(0,229,255,0.6); color: #fff; margin-top: 0;}
.hero-animated h1 span { color: var(--primary-cyan); }
.hero-animated p { position: relative; z-index: 2; font-size: 1.3rem; color: var(--text-muted); max-width: 900px; margin: 0 auto; line-height: 1.8; }

.page-banner { position: relative; padding: 160px 0 120px; text-align: center; background-size: cover; background-position: center; border-bottom: 1px solid var(--glass-border); margin-bottom: 60px; background-attachment: fixed; }
.page-banner::before { content: ''; position: absolute; inset: 0; background: rgba(2, 5, 19, 0.75); backdrop-filter: blur(3px); }
.page-banner h1 { position: relative; z-index: 2; font-size: 3.8rem; margin-bottom: 20px; letter-spacing: 1px; text-shadow: 0 5px 20px rgba(0,0,0,0.8); color: #fff; margin-top:0;}
.page-banner h1 span { color: var(--primary-cyan); text-shadow: 0 0 15px rgba(0, 229, 255, 0.5); }
.page-banner p { position: relative; z-index: 2; font-size: 1.2rem; color: #e0e0e0; max-width: 800px; margin: 0 auto; text-shadow: 0 2px 5px rgba(0,0,0,0.8);}

/* =========================================
   HIỆU ỨNG VÒNG XOAY 3D (CAROUSEL)
   ========================================= */
.carousel-container { perspective: 1200px; width: 100%; height: 450px; display: flex; justify-content: center; align-items: center; margin: 60px 0; overflow: visible; }
.carousel-3d { position: relative; width: 300px; height: 400px; transform-style: preserve-3d; animation: spinCarousel 20s infinite linear; }
.carousel-3d:hover { animation-play-state: paused; }
.carousel-item {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    transform: rotateY(calc(var(--i) * 72deg)) translateZ(350px); /* 360deg / 5 items = 72deg */
    border-radius: 16px; background-size: cover; background-position: center;
    border: 1px solid var(--glass-border); box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex; align-items: center; justify-content: center; text-decoration: none; overflow: hidden; transition: 0.3s;
}
.carousel-item::before { content: ''; position: absolute; inset: 0; background: rgba(2, 5, 19, 0.7); transition: 0.3s; }
.carousel-item:hover { border-color: var(--primary-cyan); box-shadow: 0 15px 40px rgba(0, 229, 255, 0.4); }
.carousel-item:hover::before { background: rgba(2, 5, 19, 0.2); }
.carousel-item h3 { position: relative; z-index: 2; color: #fff; font-size: 1.6rem; text-align: center; text-shadow: 0 4px 15px rgba(0,0,0,1); margin: 0; font-weight: bold; letter-spacing: 1px; transition: 0.3s; }
.carousel-item:hover h3 { color: var(--primary-cyan); transform: scale(1.15); text-shadow: 0 0 20px rgba(0,0,0,1); }

@keyframes spinCarousel { 0% { transform: rotateY(0deg); } 100% { transform: rotateY(-360deg); } }

/* Mobile Fallback cho Vòng quay 3D (Ngăn vỡ layout trên điện thoại) */
@media (max-width: 900px) {
    .carousel-container { height: auto; display: block; margin: 20px 0; perspective: none; }
    .carousel-3d { width: 100%; height: auto; transform-style: flat; animation: none; display: flex; flex-direction: column; gap: 20px; }
    .carousel-item { position: relative; transform: none !important; height: 250px; }
}

/* GRIDS DỰ ÁN & TRANG CON */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; padding: 20px 0; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 40px; padding: 20px 0; }

.card, .project-card { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 12px; backdrop-filter: blur(10px); transition: all 0.4s ease; display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.card:hover, .project-card:hover { transform: translateY(-12px); border-color: var(--primary-cyan); box-shadow: 0 15px 35px rgba(0, 229, 255, 0.25); }
.card-img, .project-img { width: 100%; height: 260px; object-fit: cover; display: block; background-color: #0b1638; transition: transform 0.6s ease; border-bottom: 1px solid var(--glass-border); }
.card:hover .card-img, .project-card:hover .project-img { transform: scale(1.08); filter: brightness(1.1); }
.card-content, .project-info { padding: 25px; flex-grow: 1; background: linear-gradient(to top, rgba(2,5,19,1), rgba(11, 22, 56, 0.9)); position: relative; z-index: 2;}
.card-content h3, .project-info h4 { color: var(--primary-cyan); font-size: 1.5rem; margin-top: 0; letter-spacing: 1px; }
.card-content p, .project-info p { color: var(--text-main); font-size: 1.05rem; margin-bottom: 15px;}
.project-tag { display: inline-block; padding: 5px 15px; font-size: 0.85rem; background: rgba(0,229,255,0.1); color: var(--primary-cyan); border-radius: 20px; border: 1px solid rgba(0,229,255,0.3); font-weight: bold;}

/* TABS */
.tabs-container { margin-top: 20px; text-align: center; }
.tab-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.tab-btn { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: #fff; padding: 12px 30px; border-radius: 30px; cursor: pointer; transition: all 0.3s; font-family: Cambria, serif; font-size: 1.1rem; }
.tab-btn.active, .tab-btn:hover { background: rgba(0, 229, 255, 0.15); border-color: var(--primary-cyan); color: var(--primary-cyan); box-shadow: 0 0 15px rgba(0, 229, 255, 0.2); }
.tab-content { display: none; animation: fadeIn 0.5s ease forwards; text-align: left; }
.tab-content.active { display: block; }

/* ĐỐI TÁC TEXT KÍNH MỜ */
.partner-grid { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 20px; padding: 20px 0; }
.partner-item { font-size: 1.3rem; font-weight: bold; color: var(--text-muted); text-transform: uppercase; letter-spacing: 3px; transition: all 0.4s ease; padding: 20px 40px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); border-radius: 12px; backdrop-filter: blur(5px); cursor: default;}
.partner-item:hover { color: #fff; background: rgba(0, 229, 255, 0.1); border-color: var(--primary-cyan); box-shadow: 0 10px 25px rgba(0, 229, 255, 0.3); transform: translateY(-8px) scale(1.05); }

/* FLOATING ZALO / HOTLINE */
.floating-contact { position: fixed; bottom: 30px; right: 30px; display: flex; flex-direction: column; gap: 15px; z-index: 999; }
.contact-btn { width: 55px; height: 55px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; text-decoration: none; box-shadow: 0 5px 20px rgba(0,0,0,0.3); transition: transform 0.3s; position: relative; }
.contact-btn:hover { transform: scale(1.15); }
.contact-btn svg { width: 30px; height: 30px; fill: white; }
.zalo-btn { background-color: #0068ff; }
.phone-btn { background-color: #00e5ff; animation: pulse 2s infinite; }

@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.7); } 70% { box-shadow: 0 0 0 15px rgba(0, 229, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

footer { border-top: 1px solid var(--glass-border); padding: 30px 0; text-align: center; color: var(--text-muted); background: rgba(2, 5, 19, 0.95); margin-top: 60px; position: relative; z-index: 20; font-size: 1.1rem; }