/* ==========================================================================
   DINH DANG CSS CHO TRANG DU AN (DUAN.CSS) - SPOTLIGHT SINGLE 3D PROJECT
   ========================================================================== */

/* Cho phep cuon trang tu nhien tren moi man hinh */
body, html {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: auto !important;
    min-height: 100vh;
}

/* Thanh cuon dep phong cach kinh mo */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(3, 0, 20, 0.9);
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 242, 254, 0.35);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 242, 254, 0.65);
}

.page-container {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 110px 20px 60px;
    position: relative;
    z-index: 10;
    box-sizing: border-box;
}

.projects-page-card {
    background: rgba(10, 15, 30, 0.82);
    backdrop-filter: blur(35px);
    -webkit-backdrop-filter: blur(35px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;
    width: 100%;
    max-width: 1280px;
    padding: 40px 38px;
    margin: auto 0;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(0, 242, 254, 0.2);
    animation: fadeInProjects 1s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes fadeInProjects {
    from { opacity: 0; transform: translateY(30px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.3);
    color: #00f2fe;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

/* ==========================================================================
   1. KHUNG LUOI 2 DU AN SONG SONG TREN MAY TINH (DUAL GRID)
   ========================================================================== */
.projects-dual-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
    align-items: stretch;
    margin-bottom: 28px;
}

@media (max-width: 992px) {
    .projects-dual-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }
}

.spotlight-project-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.04) 0%, rgba(0, 242, 254, 0.03) 100%);
    border: 1px solid rgba(0, 242, 254, 0.25);
    border-radius: 24px;
    padding: 30px 26px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), inset 0 0 25px rgba(0, 242, 254, 0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    transition: all 0.35s ease;
}

.spotlight-project-card:hover {
    border-color: rgba(0, 242, 254, 0.5);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 242, 254, 0.2);
    transform: translateY(-3px);
}

.spotlight-project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00f2fe, #38bdf8, #a855f7, #ff007f);
}

.spotlight-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.spotlight-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 242, 254, 0.12);
    border: 1px solid rgba(0, 242, 254, 0.4);
    color: #00f2fe;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00f2fe;
    box-shadow: 0 0 10px #00f2fe;
    animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.4); }
}

.spotlight-year {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 700;
}

.spotlight-main {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.spotlight-title {
    font-size: clamp(1.25rem, 2.5vw, 1.55rem);
    color: #ffffff;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 12px;
    background: linear-gradient(135deg, #ffffff 30%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.spotlight-desc {
    font-size: 0.88rem;
    color: #94a3b8;
    line-height: 1.65;
    margin: 0 0 20px;
}

/* ==========================================================================
   2. LUOI THUOC TINH & TINH NANG (MODES GRID)
   ========================================================================== */
.modes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 22px;
}

.mode-item {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.mode-item:hover {
    background: rgba(0, 242, 254, 0.08);
    border-color: rgba(0, 242, 254, 0.4);
    transform: translateY(-2px);
}

.mode-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 12px;
    background: rgba(0, 242, 254, 0.12);
    border: 1px solid rgba(0, 242, 254, 0.3);
    color: #00f2fe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.mode-text h4 {
    margin: 0 0 3px;
    font-size: 0.88rem;
    color: #ffffff;
    font-weight: 700;
}

.mode-text span {
    font-size: 0.74rem;
    color: #64748b;
    line-height: 1.3;
    display: block;
}

/* ==========================================================================
   3. CHIP CONG NGHE & NUT HANH DONG
   ========================================================================== */
.spotlight-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

.tech-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 600;
}

.tech-chip i {
    color: #00f2fe;
    font-size: 0.8rem;
}

.spotlight-cta-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-spotlight-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 30px;
    background: linear-gradient(135deg, #00f2fe 0%, #38bdf8 100%);
    color: #030014;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.5);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-spotlight-primary:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 0 35px rgba(0, 242, 254, 0.8);
    gap: 14px;
}

.btn-spotlight-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-spotlight-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #00f2fe;
    color: #00f2fe;
    transform: translateY(-2px);
}

/* ==========================================================================
   4. HANG NUT CHUYEN TRANG (ACTION ROW)
   ========================================================================== */
.action-row {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 30px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-primary {
    background: linear-gradient(135deg, #00f2fe, #38bdf8);
    color: #030014;
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 0 35px rgba(0, 242, 254, 0.7);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #00f2fe;
    transform: translateY(-2px);
}

/* ==========================================================================
   5. TUONG THICH DI DONG CHONG TRAN TUYET DOI
   ========================================================================== */
@media (max-width: 768px) {
    .modes-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .page-container {
        padding: 85px 12px 40px;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    .projects-page-card {
        padding: 24px 16px;
        border-radius: 22px;
        max-width: 100%;
    }
    .spotlight-project-card {
        padding: 20px 14px;
    }
    .hero-name {
        font-size: 1.6rem;
    }
    .spotlight-title {
        font-size: 1.3rem;
    }
    .btn-spotlight-primary, .btn-spotlight-secondary {
        width: 100%;
        justify-content: center;
    }
}

