/* --- FILE style.css (FULL CODE MỚI NHẤT) --- */
@import url('https://fonts.googleapis.com/css2?family=Bungee+Shade&family=Segoe+UI:wght@400;700&display=swap');

:root {
    --bg-color: #1a1b2e;       
    --box-color: #24263a;      
    --text-color: #ffffff;     
    --highlight: #7aa2f7; 
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.6); 
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    overflow-x: hidden; 
    position: relative; /* Để chứa tuyết */
}

/* --- QUAN TRỌNG: Đẩy nội dung lên trên lớp tuyết --- */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 25px;
    width: 100%;
    max-width: 1400px;
    align-items: start;
    position: relative; 
    z-index: 10; /* Nội dung nằm trên tuyết */
}

/* --- CỘT GIỮA --- */
.center-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    order: 2; 
    position: sticky;
    top: 20px;
    z-index: 10;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.avatar-frame {
    width: 100%;
    max-width: 350px;
    aspect-ratio: 3/4;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(122, 162, 247, 0.2);
    border: 4px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 30px;
    background: #000;
    animation: float 4s ease-in-out infinite;
}

.avatar-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.avatar-frame:hover img { transform: scale(1.1); }

/* === CHỮ PORTFOLIO KHỔNG LỒ (8rem) === */
.portfolio-text {
    font-family: 'Bungee Shade', cursive;
    font-size: 8rem; 
    color: #fff;
    line-height: 0.9;
    margin-bottom: 40px;
    white-space: nowrap;
    text-shadow: 0 0 15px rgba(122, 162, 247, 0.9), 0 0 30px rgba(122, 162, 247, 0.7), 0 0 60px rgba(122, 162, 247, 0.5);
    transform: rotate(-3deg); 
    animation: glow 2s infinite alternate, fadeInUp 1s ease-out;
}

@keyframes glow {
    from { text-shadow: 0 0 15px #7aa2f7, 0 0 30px #7aa2f7; }
    to { text-shadow: 0 0 30px #7aa2f7, 0 0 60px #7aa2f7, 0 0 90px #7aa2f7; }
}

.name-box {
    background-color: var(--box-color);
    padding: 10px 25px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
    transition: transform 0.3s ease;
}
.name-box:hover { transform: scale(1.05); background-color: var(--highlight); }
.name-box:hover h1 { color: #1a1b2e; }

.name-box h1 { 
    font-size: 1.1rem; 
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    transition: color 0.3s;
}

/* --- CỘT BÊN --- */
.side-column { display: flex; flex-direction: column; gap: 20px; }
.left-col { order: 1; }
.right-col { order: 3; }

.widget-card {
    background-color: var(--box-color);
    border-radius: 25px;
    padding: 15px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: fadeInUp 0.8s ease-out backwards;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.left-col .widget-card:nth-child(1) { animation-delay: 0.1s; }
.left-col .widget-card:nth-child(2) { animation-delay: 0.2s; }
.left-col .widget-card:nth-child(3) { animation-delay: 0.3s; }
.right-col .widget-card:nth-child(1) { animation-delay: 0.4s; }
.right-col .widget-card:nth-child(2) { animation-delay: 0.5s; }
.right-col .widget-card:nth-child(3) { animation-delay: 0.6s; }

.widget-card:hover { 
    transform: translateY(-10px) scale(1.02); 
    border-color: var(--highlight); 
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    cursor: pointer;
}

.widget-image {
    width: 100%;
    height: 150px; 
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 15px;
}
.widget-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.widget-card:hover .widget-image img { transform: scale(1.1); }

.crop-top { object-position: center 25%; }

.widget-info h3 { font-size: 0.95rem; margin-bottom: 8px; color: var(--highlight); font-weight: 700; text-transform: uppercase; }
.widget-info p { font-size: 0.85rem; color: #a0a0a0; line-height: 1.4; }

/* === CSS TUYẾT RƠI === */
.snowflake {
    position: fixed;
    top: -10px;
    background-color: #fff;
    border-radius: 50%;
    pointer-events: none; 
    z-index: 1; /* Nằm dưới nội dung chính */
    animation: snowfall linear infinite;
    opacity: 0.8;
    filter: blur(1px);
}

@keyframes snowfall {
    0% { transform: translateY(0) translateX(0); }
    100% { transform: translateY(105vh) translateX(50px); }
}

/* Mobile */
@media (max-width: 1200px) { .portfolio-text { font-size: 6rem; } }
@media (max-width: 900px) {
    .main-grid { grid-template-columns: 1fr; }
    .center-column { order: 1; margin-bottom: 50px; position: static; }
    .portfolio-text { font-size: 4rem; white-space: normal; } 
}
