/* CSS cho theme HỒNG DỄ THƯƠNG */
body {
    font-family: -apple-system, BlinkMacSystemFont, '"Segoe UI"', Roboto, '"Helvetica Neue"', Arial, sans-serif;
    overflow-x: hidden;
    font-weight: 300;
}

/* === Background Elements (Sun & Clouds) === */
@keyframes float {
    0% { transform: translateY(0px) translateX(0px); }
    50% { transform: translateY(-20px) translateX(10px); }
    100% { transform: translateY(0px) translateX(0px); }
}

@keyframes pulse-sun {
    0% { box-shadow: 0 0 20px #fcd34d, 0 0 30px #fcd34d; }
    50% { box-shadow: 0 0 30px #fef08a, 0 0 40px #fef08a; }
    100% { box-shadow: 0 0 20px #fcd34d, 0 0 30px #fcd34d; }
}

.sun {
    position: absolute;
    top: 10%;
    left: 10%;
    width: 100px;
    height: 100px;
    background-color: #fde047; /* yellow-300 */
    border-radius: 50%;
    animation: pulse-sun 4s ease-in-out infinite;
}

.cloud {
    position: absolute;
    width: 200px;
    height: 60px;
    background: white;
    border-radius: 60px;
    opacity: 0.8;
    animation: float 8s ease-in-out infinite;
}
.cloud::before, .cloud::after {
    content: '';
    position: absolute;
    background: white;
    width: 100px;
    height: 80px;
    border-radius: 50%;
    top: -40px;
    left: 40px;
}
.cloud::after {
    width: 120px;
    height: 100px;
    top: -60px;
    left: auto;
    right: 30px;
}
.cloud-1 { top: 20%; left: 15%; }
.cloud-2 { top: 40%; left: 70%; animation-delay: -2s; }
.cloud-3 { top: 60%; left: 30%; animation-delay: -4s; }
/* === Hết phần Background === */


/* === Thought Cloud for "ẻmm" === */
.thought-cloud-container {
    position: absolute;
    top: -40px; /* Vị trí phía trên avatar */
    right: -60px; /* Hơi lệch qua bên */
    width: 200px;
    z-index: 10;
    
    /* Hình dạng bong bóng */
    background: white;
    padding: 20px;
    text-align: center;
    
    /* Hình dạng mây */
    border-radius: 100px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.thought-cloud-container::before {
    content: '';
    position: absolute;
    background: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    top: -30px;
    left: 20px;
    z-index: -1;
}
.thought-cloud-container::after {
    content: '';
    position: absolute;
    background: white;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    top: -20px;
    right: 10px;
    z-index: -1;
}

/* Điều chỉnh cho mobile */
@media (max-width: 767px) {
    .thought-cloud-container {
        top: -60px; /* Cao hơn trên mobile */
        right: auto; /* Ra giữa */
        left: 50%;
        transform: translateX(-50%);
        width: 180px;
    }
    .swaying-link {
         font-size: 2.2rem; /* Chữ nhỏ lại xíu */
    }
}
/* === Hết phần Thought Cloud === */


/* Khung avatar dễ thương */
.cute-frame-shadow {
     box-shadow: 0 10px 30px rgba(236, 72, 153, 0.3); /* bóng mờ màu HỒNG */
}


/* Keyframes: Trôi vào */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.7s ease-out forwards;
}
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }
.delay-600 { animation-delay: 600ms; }
.delay-700 { animation-delay: 700ms; }


/* Keyframes: "Ẻm" (sway) */
@keyframes sway {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

/* Keyframes: "Ẻm" (neon glow) */
@keyframes pulse-glow {
    from {
        text-shadow: 0 0 10px #ec4899, 0 0 20px #ec4899, 0 0 30px #db2777;
    }
    to {
        text-shadow: 0 0 20px #ec4899, 0 0 30px #f472b6, 0 0 40px #f472b6;
    }
}

/* Style: "Ẻm" (Neon Glow) */
.swaying-link {
    display: inline-block;
    animation: sway 2.8s ease-in-out infinite,
               pulse-glow 1.5s ease-in-out infinite alternate; 
    font-size: 2.8rem;
    font-weight: 400; 
    color: #f472b6; /* Đổi màu chữ */
    text-shadow: 0 0 10px #ec4899, 0 0 20px #ec4899, 0 0 30px #db2777; /* Đổi shadow */
    transition: all 0.2s ease;
    transform-origin: bottom center;
}
.swaying-link:hover {
    color: #f9a8d4; /* Đổi màu hover */
    animation-play-state: paused;
    transform: scale(1.05);
    cursor: pointer;
    text-shadow: 0 0 20px #ec4899, 0 0 30px #f472b6, 0 0 40px #f472b6; /* Đổi shadow hover */
}


/* Keyframes cho hiệu ứng loang màu (shimmer) */
@keyframes text-shimmer {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}

/* Class cho chữ "WEB DEVELOPER" */
.text-gradient-shimmer {
    font-weight: 400; 
    background-image: linear-gradient(
        to right,
        #4b5563 20%,  /* gray-600 */
        #ec4899 50%,  /* pink-500 (MÀU HỒNG) */
        #4b5563 80%   /* gray-600 */
    );
    background-size: 200% auto;
    
    background-clip: text;
    -webkit-background-clip: text;
    text-fill-color: transparent;
    -webkit-text-fill-color: transparent;
    
    animation: text-shimmer 3s linear infinite;
}


/* Nút "Thả Tym" 3D */
.btn-3d-press {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    
    font-weight: 400; /* font-normal */
    color: white;
    background-color: #ec4899; /* bg-primary (HỒNG) */
    border: none;
    border-radius: 999px; /* rounded-full */
    padding: 0.75rem 1.75rem; /* py-3 px-7 */
    
    /* Bóng 3D ban đầu (5px) */
    box-shadow: 0 5px 0 0 #be185d; /* 5px shadow, màu primary-shadow (HỒNG) */
    
    position: relative;
    transition: all 0.15s ease-in-out;
    cursor: pointer; /* Thêm con trỏ */
}

/* Khi trỏ chuột (hover) */
.btn-3d-press:hover {
    transform: translateY(2px);
    box-shadow: 0 3px 0 0 #be185d; 
    background-color: #db2777; /* bg-primary-dark (HỒNG) */
}

/* Khi nhấn (active) */
.btn-3d-press:active {
    transform: translateY(5px);
    box-shadow: 0 0px 0 0 #be185d; 
    transition-duration: 0.1s;
}

/* Style cho Skill Cards (trang gioi-thieu.html) */
.skill-card-3d {
    background-color: white;
    border: 1px solid #fbcfe8; /* pink-100 */
    border-radius: 1rem; /* rounded-xl */
    padding: 2rem; /* p-8 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 0 0 #f472b6; /* pink-400 shadow */
    transition: all 0.2s ease-in-out;
}
.skill-card-3d:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(236, 72, 153, 0.2);
}


/* ===========================================
   HIỆU ỨNG TRÁI TIM RƠI - MỚI
   =========================================== */
@keyframes fall {
    0% {
        transform: translateY(-10vh) scale(0.5) rotate(0deg);
        opacity: 0;
    }
    20% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh) scale(1.2) rotate(360deg);
        opacity: 0;
    }
}

.falling-heart {
    position: fixed;
    width: 30px;
    height: 30px;
    background-color: pink; /* Màu mặc định, sẽ được JS override */
    transform: rotate(-45deg);
    top: -5vh; /* Bắt đầu từ trên cao */
    z-index: 1000; /* Đảm bảo nằm trên mọi thứ */
    pointer-events: none; /* Không tương tác với chuột */
    animation: fall linear forwards;
}

.falling-heart::before,
.falling-heart::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    background-color: inherit; /* Kế thừa màu từ parent */
    border-radius: 50%;
}

.falling-heart::before {
    top: -15px;
    left: 0;
}

.falling-heart::after {
    left: 15px;
    top: 0;
}
/* ===========================================
   HẾT HIỆU ỨNG TRÁI TIM RƠI
   =========================================== */