/* ============================================
   PAGES — Cinematic Sci-Fi (Industrial Steel)
   ============================================ */

/* ========== FLOATING SCI-FI ELEMENTS ========== */
.space-element {
    position: absolute;
    z-index: 5;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0.85;
}
.ship-1 {
    width: 320px;
    animation: float-ship 20s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(107, 149, 166, 0.6));
}
.astro-1 {
    width: 250px;
    animation: float-astro 15s ease-in-out infinite reverse;
    filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.4));
}
.ship-home { top: 15%; right: 5%; }
.astro-home { bottom: 15%; left: 10%; }
.ship-about { top: -50px; right: -50px; }
.astro-about { bottom: -20px; left: -20px; }

@keyframes float-ship {
    0% { transform: translate(0, 0) rotate(5deg) scale(1); }
    50% { transform: translate(-30px, 40px) rotate(-5deg) scale(1.05); }
    100% { transform: translate(0, 0) rotate(5deg) scale(1); }
}
@keyframes float-astro {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-40px) rotate(15deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

/* ========== PAGE BACKGROUNDS ========== */
.bg-home {
    background-image: linear-gradient(rgba(5, 10, 15, 0.8), rgba(0, 0, 0, 0.95)), url('../phim-khoa-hoc-vien-tuong-1.jpg');
}
.bg-about {
    background-image: linear-gradient(rgba(5, 10, 15, 0.85), rgba(0, 0, 0, 0.95)), url('../phim-khoa-hoc-vien-tuong-hay-nhat-moi-thoi-dai-17-e1626967107168.jpg');
}
.bg-education {
    background-image: linear-gradient(rgba(5, 10, 15, 0.85), rgba(0, 0, 0, 0.95)), url('../phim-khoa-hoc-vien-tuong-hay-nhat-moi-thoi-dai-18-e1626967134105.jpg');
}
.bg-skills {
    background-image: linear-gradient(rgba(5, 10, 15, 0.85), rgba(0, 0, 0, 0.95)), url('../phim-khoa-hoc-vien-tuong-10-1.jpg');
}
.bg-experience {
    background-image: linear-gradient(rgba(5, 10, 15, 0.85), rgba(0, 0, 0, 0.95)), url('../harper-bazaar-phim-khoa-hoc-vien-tuong-hay-nhat-moi-thoi-dai-20.jpg');
}
.bg-contact {
    background-image: linear-gradient(rgba(5, 10, 15, 0.85), rgba(0, 0, 0, 0.95)), url('../phim-khoa-hoc-vien-tuong-2-1.jpg');
}

/* ========== HERO SECTION ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

/* Subtle atmospheric particles/mist behind hero */
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 70% 50%, rgba(107, 149, 166, 0.05), transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    max-width: var(--container-max);
    width: 100%;
    margin: 0 auto;
    padding: 60px var(--container-padding);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-greeting {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 5px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.hero-greeting::before {
    content: '';
    display: block;
    width: 50px;
    height: 1px;
    background: var(--accent-primary);
}

.hero-name {
    font-family: var(--font-heading);
    font-size: var(--fs-display);
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: -1px;
    text-shadow: 
        1px 1px 0px rgba(255, 255, 255, 0.3),
        -1px -1px 0px rgba(0, 0, 0, 0.8),
        0 15px 30px rgba(0, 0, 0, 0.9);
}

.hero-role {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.typing-cursor {
    display: inline-block;
    width: 4px;
    height: 0.8em;
    background: var(--text-primary);
    margin-left: 5px;
    animation: blink 1s step-end infinite;
    vertical-align: baseline;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-desc {
    font-size: 18px;
    color: var(--text-primary);
    line-height: 1.6;
    max-width: 90%;
    font-weight: 500;
    margin-top: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 1), 0 4px 20px rgba(0, 0, 0, 0.8);
}

/* Actions Box in Hero */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.hero-action-btn {
    padding: 16px 35px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
}
.hero-action-btn:first-child {
    background: var(--text-primary);
    color: #000;
    border-color: var(--text-primary);
}
.hero-action-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}
.hero-action-btn:first-child:hover {
    background: #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Thêm vầng hào quang đằng sau ảnh người (Backlight) giống trang About */
.hero-visual::before {
    content: '';
    position: absolute;
    top: 10%; left: 10%; right: 10%; bottom: 10%;
    background: radial-gradient(circle, rgba(107, 149, 166, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 80px rgba(107, 149, 166, 0.4);
}

.hero-avatar {
    width: 100%;
    max-width: 450px;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 2;
    transition: all 0.5s;
    border-radius: 0;
    filter: drop-shadow(0 0 20px rgba(107, 149, 166, 0.6));
    -webkit-mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
    transform-origin: bottom center;
}

.hero-avatar:hover {
    transform: translateY(-5px) scale(1.03);
    filter: drop-shadow(0 0 30px rgba(107, 149, 166, 0.9));
}

/* ========== ABOUT PAGE SPECIFIC ========== */
.about-avatar {
    width: 100%;
    max-width: 380px;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 2;
    border-radius: 0;
    transition: transform 0.4s;
    filter: drop-shadow(0 0 20px rgba(107, 149, 166, 0.4));
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    transform-origin: bottom center;
}
.about-avatar:hover {
    transform: scale(1.05);
}
