/* Custom styles for Hoang Tuan Portfolio */

/* Services Section */
.services-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.services-section h3 {
    color: #800020;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.services-section ul {
    list-style: none;
    padding: 0;
}

.services-section li {
    padding: 0.5rem 0;
    color: #fff;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.services-section li:last-child {
    border-bottom: none;
}

/* Stats Section */
.stats-section {
    margin: 2rem 0;
    text-align: center;
}

.stats-section h3 {
    color: #800020;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.stat-item {
    background: linear-gradient(135deg, #800020, #d1006f);
    padding: 1.5rem 1rem;
    border-radius: 10px;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Quote Section */
.quote-section {
    margin: 2rem 0;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(20, 20, 20, 0.9));
    border-radius: 15px;
    border: 2px solid #800020;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.quote-section h3 {
    color: #800020;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.quote-section p {
    color: #cccccc;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin: 2rem 0;
}

/* Contact Form Styles */
.contact-form {
    max-width: 500px;
    margin: 2rem auto;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    border: 1px solid rgba(128, 0, 32, 0.3);
}

/* Form Container with Image */
.form-container {
    display: flex;
    align-items: flex-end;
    gap: 2rem;
    margin: 2rem 0;
}

.form-image {
    flex-shrink: 0;
    width: 160px;
}

.form-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.form-image img:hover {
    transform: scale(1.05);
}

.form-container .contact-form {
    flex: 1;
    margin: 0;
    max-width: none;
}

.form-group {
    position: relative;
}

.form-group input {
    width: 100%;
    height: 40px;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: 2px solid #800020;
    border-radius: 12px;
    font-weight: bold;
    font-size: 13px;
    text-align: center;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
    margin-bottom: 10px !important;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.8);
    font-weight: bold;
    text-align: center;
}

.form-group input:focus {
    background: rgba(128, 0, 32, 0.1);
    border-color: #800020;
    box-shadow: 0 0 0 3px rgba(128, 0, 32, 0.3);
    transform: translateY(-2px);
    color: #FFF;
}

.form-group input:hover {
    background: rgba(128, 0, 32, 0.05);
    border-color: #800020;
    box-shadow: 0 0 10px rgba(128, 0, 32, 0.4);
    transform: translateY(-1px);
}

.btn-submit {
    width: 100%;
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 2px solid #28a745;
    border-radius: 12px;
    font-weight: bold;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    height: 40px;
    text-align: center;
    line-height: 40px !important;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #800020, #a6002a);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(128, 0, 32, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(128, 0, 32, 0.3);
}

/* Form Message Styles */
.form-message {
    margin: 1rem auto;
    padding: 15px 20px;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    max-width: 500px;
    animation: slideDown 0.3s ease;
}

.form-message.success {
    background: linear-gradient(135deg, #800020, #a6002a);
    color: white;
    box-shadow: 0 4px 15px rgba(128, 0, 32, 0.3);
}

.form-message.error {
    background: linear-gradient(135deg, #800020, #a6002a);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Focus States */
.form-group.focused input {
    background: rgba(128, 0, 32, 0.15);
    border-color: #800020;
    box-shadow: 0 0 0 3px rgba(128, 0, 32, 0.3);
}

.form-group.has-value input {
    background: rgba(128, 0, 32, 0.1);
    border-color: #800020;
    box-shadow: 0 0 5px rgba(128, 0, 32, 0.2);
}

/* Input validation states */
.form-group input:valid {
    border-color: #28a745;
}

.form-group input:invalid:not(:placeholder-shown) {
    border-color: #dc3545;
}

/* Better placeholder visibility */
.form-group input::-webkit-input-placeholder {
    color: rgba(255, 255, 255, 0.8) !important;
    opacity: 1;
}

.form-group input::-moz-placeholder {
    color: rgba(255, 255, 255, 0.8) !important;
    opacity: 1;
}

.form-group input:-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.8) !important;
    opacity: 1;
}

/* Form Loading State */
.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
    background: rgba(40, 167, 69, 0.3) !important;
}

/* Enhanced form visibility */
.contact-form {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.form-group input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.quote-text {
    font-style: italic;
    font-size: 14px;
    color: #fff;
    margin: 2rem 0;
    padding: 1.5rem;
    border-left: 4px solid #ff6b35;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0 10px 10px 0;
    position: relative;
}

.quote-text:before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 3rem;
    color: #ff6b35;
    font-weight: bold;
}

.quote-text:after {
    content: '"';
    position: absolute;
    bottom: -30px;
    right: 10px;
    font-size: 3rem;
    color: #ff6b35;
    font-weight: bold;
}

.phone-highlight {
    margin-top: 1.5rem;
}

.phone-number {
    display: inline-block;
    padding: 18px 40px;
    background: linear-gradient(135deg, #800020, #a6002a);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.4rem;
    font-weight: bold;
    box-shadow: 0 8px 25px rgba(128, 0, 32, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.phone-number:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.phone-number:hover:before {
    left: 100%;
}

.phone-number:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 35px rgba(128, 0, 32, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-form {
        max-width: 400px;
        margin: 1.5rem auto;
    }
    
    .form-container {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .form-image {
        width: 120px;
    }
    
    .form-container .contact-form {
        max-width: 100%;
        width: 100%;
    }
    
    .form-group input,
    .btn-submit {
        padding: 12px 18px;
        font-size: 0.95rem;
        width: 100%;
        box-sizing: border-box;
        margin: 0px;
    }
    
    .phone-number {
        font-size: 1.2rem;
        padding: 15px 30px;
    }
    
    .quote-section {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .quote-section h3 {
        font-size: 1.5rem;
    }
    
    .quote-text {
        padding: 1rem;
        margin: 1.5rem 0;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .quote-section {
        padding: 1rem;
        margin: 0.5rem;
    }
    
    .quote-section h3 {
        font-size: 1.3rem;
    }
    
    .form-container {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .form-image {
        width: 90px;
        align-self: center;
    }
    
    .contact-form {
        max-width: 100%;
        margin: 1rem 0;
        padding: 1.5rem;
    }
    
    .form-container .contact-form {
        max-width: 100%;
    }
    
    .form-group {
        margin-bottom: 5px;
    }
    
    .form-group input,
    .btn-submit {
        padding: 14px 18px;
        font-size: 0.9rem;
        width: 100%;
        box-sizing: border-box;
        line-height: 40px !important;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .phone-number {
        font-size: 1.1rem;
        padding: 12px 25px;
    }
    
    .quote-text {
        font-size: 14px;
        padding: 0.8rem;
    }
    
    .quote-text:before,
    .quote-text:after {
        font-size: 2rem;
    }
}

/* Animation for stats */
@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.stat-item {
    animation: countUp 0.6s ease forwards;
}

.stat-item:nth-child(2) { animation-delay: 0.1s; }
.stat-item:nth-child(3) { animation-delay: 0.2s; }
.stat-item:nth-child(4) { animation-delay: 0.3s; }

/* Floating Action Buttons */
.floating-buttons {
    position: fixed !important;
    bottom: 30px !important;
    right: 15px !important;
    z-index: 9999 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

/* Scroll to Top Button */
.scroll-to-top {
    width: 60px !important;
    height: 60px !important;
    background: linear-gradient(135deg, #800020, #d1006f) !important;
    border: none !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 4px 20px rgba(128, 0, 32, 0.4) !important;
    transition: all 0.3s ease !important;
    color: white !important;
    font-size: 24px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    animation: scrollShake 4s ease-in-out infinite;
}

.scroll-to-top:hover {
    transform: translateY(-3px) scale(1.15);
    box-shadow: 0 6px 25px rgba(128, 0, 32, 0.6),
                0 0 15px rgba(128, 0, 32, 0.5),
                0 0 30px rgba(128, 0, 32, 0.3);
    animation: scrollShake 0.5s ease-in-out infinite;
}

/* Contact Button */
.contact-toggle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #800020, #a6002a);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(128, 0, 32, 0.4);
    transition: all 0.3s ease;
    color: white;
    font-size: 24px;
    position: relative;
    animation: contactPulse 2s ease-in-out infinite, contactShake 3s ease-in-out infinite !important;
    overflow: hidden;
}

/* Pulse Animation */
@keyframes contactPulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(128, 0, 32, 0.4), 0 0 0 0 rgba(128, 0, 32, 0.7);
    }
    50% {
        box-shadow: 0 6px 25px rgba(128, 0, 32, 0.6), 0 0 0 10px rgba(128, 0, 32, 0);
    }
}

/* Enhanced Shake Animation */
@keyframes contactShake {
    0%, 100% { transform: translateX(0) scale(1); }
    5% { transform: translateX(-3px) scale(0.97); }
    10% { transform: translateX(3px) scale(1.03); }
    15% { transform: translateX(-3px) scale(0.97); }
    20% { transform: translateX(3px) scale(1.03); }
    25% { transform: translateX(-2px) scale(0.98); }
    30% { transform: translateX(2px) scale(1.02); }
    35% { transform: translateX(-2px) scale(0.98); }
    40% { transform: translateX(2px) scale(1.02); }
    45% { transform: translateX(-1px) scale(0.99); }
    50% { transform: translateX(1px) scale(1.01); }
    55% { transform: translateX(-1px) scale(0.99); }
    60% { transform: translateX(1px) scale(1.01); }
    65% { transform: translateX(0) scale(1); }
}

/* Scale Animation */
@keyframes contactScale {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Scroll Shake Animation */
@keyframes scrollShake {
    0%, 100% { transform: translateY(0) scale(1); }
    5% { transform: translateY(-1px) scale(0.98); }
    10% { transform: translateY(1px) scale(1.02); }
    15% { transform: translateY(-1px) scale(0.98); }
    20% { transform: translateY(0) scale(1); }
}

/* Enhanced Wiggle Animation */
@keyframes contactWiggle {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-3deg) scale(1.02); }
    50% { transform: rotate(0deg) scale(1.05); }
    75% { transform: rotate(3deg) scale(1.02); }
}

/* Info Toggle Animations */
@keyframes infoPulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(128, 0, 32, 0.4), 0 0 0 0 rgba(128, 0, 32, 0.7);
    }
    50% {
        box-shadow: 0 6px 25px rgba(128, 0, 32, 0.6), 0 0 0 10px rgba(128, 0, 32, 0);
    }
}

@keyframes infoShake {
    0%, 100% { transform: translateX(0) scale(1); }
    10% { transform: translateX(-2px) scale(0.98); }
    20% { transform: translateX(2px) scale(1.02); }
    30% { transform: translateX(-2px) scale(0.98); }
    40% { transform: translateX(2px) scale(1.02); }
    50% { transform: translateX(0) scale(1); }
}

@keyframes infoBreathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Info Toggle Button Styling - Only Effects */
.info-toggle {
    transition: all 0.3s ease !important;
    animation: infoPulse 2.5s ease-in-out infinite, infoShake 4s ease-in-out infinite !important;
}

.info-toggle:hover {
    animation: infoBreathe 0.8s ease-in-out infinite, infoShake 0.5s ease-in-out infinite !important;
}

.info-toggle .info-menu-icon {
    animation: infoPulse 2s ease-in-out infinite !important;
}

.info-toggle:hover .info-menu-icon {
    animation: infoBreathe 0.6s ease-in-out infinite !important;
}

/* Breathing Animation */
@keyframes contactBreathe {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Ripple Effect */
.contact-toggle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    color: #FFF;
}

.contact-toggle:active::before {
    width: 120px;
    height: 120px;
}

.contact-toggle:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 30px rgba(128, 0, 32, 0.8), 
                0 0 15px rgba(128, 0, 32, 0.5),
                0 0 30px rgba(128, 0, 32, 0.3);
    animation: contactBreathe 1s ease-in-out infinite, 
              contactShake 0.5s ease-in-out infinite;
    color: #FFF;
}

.contact-toggle.active {
    transform: rotate(45deg) scale(1.1);
    background: linear-gradient(135deg, #800020, #660018);
    animation: contactSpin 0.3s ease-in-out, contactShake 2s ease-in-out infinite;
    box-shadow: 0 6px 25px rgba(128, 0, 32, 0.8),
                0 0 20px rgba(128, 0, 32, 0.6),
                0 0 40px rgba(128, 0, 32, 0.4);
    color: #FFF;
}

/* Spin Animation for Active State */
@keyframes contactSpin {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(22.5deg) scale(1.15);
    }
    100% {
        transform: rotate(45deg) scale(1.1);
    }
}

/* Contact Options Menu */
.contact-options {
    position: absolute;
    bottom: 75px;
    right: 50%;
    transform: translateX(50%) translateY(20px) scale(0.8);
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    padding-bottom: 10px;
}

.contact-options.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(50%) translateY(0) scale(1);
}

/* Staggered Animation for Contact Options */
.contact-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 20px;
    transition: all 0.3s ease;
    position: relative;
    transform: translateY(20px);
    opacity: 0;
    animation-fill-mode: forwards;
}

.contact-options.active .contact-option:nth-child(1) {
    animation: slideInOption 0.3s ease 0.1s forwards;
}

.contact-options.active .contact-option:nth-child(2) {
    animation: slideInOption 0.3s ease 0.2s forwards;
}

.contact-options.active .contact-option:nth-child(3) {
    animation: slideInOption 0.3s ease 0.3s forwards;
}

/* Slide In Animation for Options */
@keyframes slideInOption {
    0% {
        transform: translateY(20px) scale(0.8);
        opacity: 0;
    }
    50% {
        transform: translateY(-5px) scale(1.1);
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.contact-option:hover {
    transform: scale(1.2) rotate(10deg);
    box-shadow: 0 6px 20px rgba(128, 0, 32, 0.8),
                0 0 15px rgba(128, 0, 32, 0.6),
                0 0 25px rgba(128, 0, 32, 0.4);
    animation: contactWiggle 0.6s ease-in-out infinite;
}

/* Phone Contact */
.contact-option.phone {
    background: linear-gradient(135deg, #800020, #a6002a);
    box-shadow: 0 4px 15px rgba(128, 0, 32, 0.4);
    position: relative;
    animation: phoneRing 1.5s ease-in-out infinite, contactShake 2.5s ease-in-out infinite !important;
}

.contact-option.phone::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #800020, #a6002a);
    opacity: 0;
    transform: scale(1.3);
    transition: all 0.3s ease;
}

.contact-option.phone:hover {
    box-shadow: 0 6px 20px rgba(128, 0, 32, 0.6),
                0 0 15px rgba(128, 0, 32, 0.5),
                0 0 25px rgba(128, 0, 32, 0.3);
    animation: phoneRing 0.3s ease infinite, contactShake 0.4s ease-in-out infinite;
}

.contact-option.phone:hover::after {
    opacity: 0.3;
    transform: scale(1.5);
}

/* Phone Ring Animation */
@keyframes phoneRing {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.05) rotate(-2deg); }
    75% { transform: scale(1.05) rotate(2deg); }
}

/* Zalo Contact */
.contact-option.zalo {
    background: linear-gradient(135deg, #800020, #a6002a);
    box-shadow: 0 4px 15px rgba(128, 0, 32, 0.4);
    position: relative;
    animation: zaloWave 2s ease-in-out infinite, contactShake 3s ease-in-out infinite !important;
}

.contact-option.zalo:hover {
    box-shadow: 0 6px 20px rgba(128, 0, 32, 0.6),
                0 0 15px rgba(128, 0, 32, 0.5),
                0 0 25px rgba(128, 0, 32, 0.3);
    animation: zaloWave 0.4s ease infinite, contactShake 0.3s ease-in-out infinite;
}

/* Zalo Wave Animation */
@keyframes zaloWave {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.05) rotate(-2deg); }
    50% { transform: scale(1.1) rotate(0deg); }
    75% { transform: scale(1.05) rotate(2deg); }
}

/* Enhanced Phone Ring Animation */
@keyframes phoneRing {
    0%, 100% { transform: scale(1) rotate(0deg); }
    10% { transform: scale(1.02) rotate(-3deg); }
    20% { transform: scale(1.05) rotate(3deg); }
    30% { transform: scale(1.02) rotate(-3deg); }
    40% { transform: scale(1.05) rotate(3deg); }
    50% { transform: scale(1) rotate(0deg); }
}

/* Enhanced Facebook Pulse Animation */
@keyframes facebookPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 15px rgba(128, 0, 32, 0.4); }
    25% { transform: scale(1.08); box-shadow: 0 6px 20px rgba(128, 0, 32, 0.6); }
    50% { transform: scale(1.15); box-shadow: 0 8px 25px rgba(128, 0, 32, 0.8); }
    75% { transform: scale(1.08); box-shadow: 0 6px 20px rgba(128, 0, 32, 0.6); }
}

/* Force Animation Override */
.contact-option.phone,
.contact-option.zalo,
.contact-option.facebook,
.contact-toggle {
    animation-play-state: running !important;
    animation-fill-mode: both !important;
}

/* Custom Zalo icon if FontAwesome doesn't have it */
.contact-option.zalo .fab.fa-zalo::before {
    display: none;
}

.contact-option.zalo i {
    display: none;
}

.contact-option.zalo::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    background-image: url('../images/hoang-tuan/zalo-icon.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: translate(-50%, -50%);
    z-index: 2;
}

@keyframes zaloZ {
    0%, 100% { transform: rotateY(0deg); }
    50% { transform: rotateY(180deg); }
}

/* Facebook Contact */
.contact-option.facebook {
    background: linear-gradient(135deg, #800020, #a6002a);
    box-shadow: 0 4px 15px rgba(128, 0, 32, 0.4);
    position: relative;
    overflow: hidden;
    animation: facebookPulse 2.5s ease-in-out infinite, contactShake 3.5s ease-in-out infinite !important;
}

.contact-option.facebook i {
    display: none;
}

.contact-option.facebook::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    background-image: url('../images/hoang-tuan/fb-icon.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.contact-option.facebook::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.contact-option.facebook:hover::before {
    opacity: 1;
    left: 100%;
}

.contact-option.facebook:hover {
    box-shadow: 0 6px 20px rgba(128, 0, 32, 0.6),
                0 0 15px rgba(128, 0, 32, 0.5),
                0 0 25px rgba(128, 0, 32, 0.3);
    animation: facebookPulse 0.3s ease infinite, contactShake 0.4s ease-in-out infinite;
}

/* Facebook Pulse Animation */
@keyframes facebookPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1.2); }
}

/* Tooltips for contact options */
.contact-option::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
}

.contact-option:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .floating-buttons {
        bottom: 20px;
        right: 15px;
        gap: 12px;
    }
    
    .scroll-to-top,
    .contact-toggle {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }
    
    .contact-option {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .contact-options {
        bottom: 70px;
    }
}

h3 {
  font-size: 15px !important;
}

/* Avatar Glow/Lighting Effects */
.home-content__counter {
    position: relative;
}

.home-content__counter img {
    position: relative;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 35px rgba(255, 255, 255, 0.3));
}

.home-content__counter img::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border-radius: 50%;
    z-index: -1;
    animation: glowPulse 3s ease-in-out infinite;
}

/* Enhanced hover effect */
.home-content__counter img:hover {
    transform: scale(1.05);
    filter: 
        drop-shadow(0 0 35px rgba(255, 255, 255, 0.5))
        brightness(1.1);
}

/* Glowing background animation */
@keyframes glowPulse {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Spotlight effect behind image */
.home-content__counter::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: -2;
    animation: spotlightPulse 4s ease-in-out infinite;
}

@keyframes spotlightPulse {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(0.8);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* Reflection effect at bottom */
.home-content__counter::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 80%;
    height: 20px;
    background: linear-gradient(
        to bottom,
        rgba(128, 0, 32, 0.3),
        transparent
    );
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: -1;
    filter: blur(5px);
    animation: reflectionPulse 3s ease-in-out infinite;
}

@keyframes reflectionPulse {
    0%, 100% {
        opacity: 0.6;
        transform: translateX(-50%) scaleX(0.8);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scaleX(1);
    }
}

/* Responsive Display Classes */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

.mobile-contact-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(128, 0, 32, 0.3);
}

.mobile-contact-info .info-block {
    margin-bottom: 25px;
}

.mobile-contact-info .info-block h3 {
    color: red;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: bold;
}

.mobile-contact-info .info-email,
.mobile-contact-info .info-phone {
    color: #FFF;
    text-decoration: none;
    font-weight: 500;
}

.mobile-contact-info .info-email:hover,
.mobile-contact-info .info-phone:hover {
    color: #FFF;
    text-decoration: underline;
}

.mobile-contact-info .info-address {
    color: #FFF;
    line-height: 1.6;
    margin: 0;
}

.mobile-contact-info .info-social {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-contact-info .info-social li {
    margin-bottom: 10px;
}

.mobile-contact-info .info-social a {
    color: #FFF;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.mobile-contact-info .info-social a:hover {
    color: #FFF;
}

.mobile-contact-info .info-social i {
    width: 20px;
    font-size: 18px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: block !important;
    }
    
    /* Copyright Responsive Layout */
    .copyright-responsive {
        flex-direction: column !important;
        gap: 5px !important;
        text-align: center !important;
    }
    
    .copyright-year,
    .copyright-link {
        display: block !important;
        width: 100% !important;
    }
}

/* Desktop Copyright Layout */
@media (min-width: 769px) {
    .copyright-responsive {
        flex-direction: row !important;
        gap: 15px !important;
    }
    
    .copyright-year::after {
        content: " | ";
        margin: 0 10px;
        color: #FFF;
    }
}

/* Music Control Button */
.music-control {
    position: fixed;
    top: 20px;
    right: 15px;
    z-index: 10000;
}

.music-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #800020, #a6002a);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(128, 0, 32, 0.4);
    transition: all 0.3s ease;
    animation: musicPulse 2s ease-in-out infinite;
}

.music-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(128, 0, 32, 0.6);
}

.music-btn.muted {
    background: linear-gradient(135deg, #666, #888);
    animation: none;
}

.music-btn.muted:hover {
    background: linear-gradient(135deg, #555, #777);
}

@keyframes musicPulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(128, 0, 32, 0.4),
                    0 0 10px rgba(128, 0, 32, 0.3);
    }
    50% {
        box-shadow: 0 6px 25px rgba(128, 0, 32, 0.6),
                    0 0 20px rgba(128, 0, 32, 0.5);
    }
}

/* Mobile Music Control */
@media (max-width: 768px) {
    .music-control {
        top: 15px;
        right: 15px;
    }
    
    .music-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}
