

.announcement-bar {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    position: relative;
    overflow: hidden;
    animation: slideDown 0.5s ease-out;
}

/* Glass morphism effect */
.announcement-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 3s infinite;
}

.announcement-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    position: relative;
    z-index: 1;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.announcement-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    position: relative;
}

/* 3D Icon Animation */
.icon-3d {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    transform-style: preserve-3d;
    animation: float3d 3s ease-in-out infinite;
    flex-shrink: 0;
}

.icon-3d span {
    font-size: 20px;
    filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.2));
}

/* Liquid Badge */
.badge-liquid {
    background: rgba(255, 215, 0, 0.95);
    padding: 6px 14px;
    border-radius: 30px;
    color: #1a1a1a;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    white-space: nowrap;
    animation: liquidPulse 2s ease-in-out infinite;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.badge-liquid::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ffd700, #ffaa00, #ffd700);
    border-radius: 30px;
    z-index: -1;
    animation: borderRotate 3s linear infinite;
}

/* Announcement Text Wrapper */
.announcement-text-wrapper {
    overflow: hidden;
    position: relative;
    flex: 1;
    min-width: 0;
    height: 100%;
    display: flex;
    align-items: center;
}

/* Announcement Text */
.announcement-text {
    color: white;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.3px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    display: inline-block;
    width: auto;
}

/* Desktop - No scroll */
@media screen and (min-width: 1025px) {
    .announcement-text {
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
}

/* 3D Download Button */
.download-btn-3d {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 8px 20px;
    border-radius: 30px;
    text-decoration: none;
    color: #667eea;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2), 0 2px 0 rgba(255, 255, 255, 0.3) inset;
    white-space: nowrap;
    flex-shrink: 0;
    border: none;
    cursor: pointer;
}

.download-btn-3d i {
    font-size: 18px;
    font-style: normal;
    animation: bounce 2s infinite;
}

.download-btn-3d:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 2px 0 rgba(255, 255, 255, 0.5) inset;
    color: #764ba2;
}

/* Close Button */
.close-btn-neon {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    font-size: 24px;
    font-weight: 300;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.close-btn-neon:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.6);
}

/* Ripple Effect */
.ripple-effect {
    position: relative;
    overflow: hidden;
}

.ripple-effect::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.ripple-effect:active::after {
    width: 200px;
    height: 200px;
    opacity: 0;
}

/* Right to Left Scrolling Animation */
@keyframes scrollRTL {
    0% {
        transform: translateX(100%); /* Start from right */
    }
    5% {
        transform: translateX(100%); /* Pause briefly at right */
    }
    90% {
        transform: translateX(-100%); /* Scroll to left */
    }
    95% {
        transform: translateX(-100%); /* Pause briefly at left */
    }
    100% {
        transform: translateX(100%); /* Reset to right */
    }
}

/* Mobile Styles with Right to Left Scroll */
@media screen and (max-width: 1024px) {
    .announcement-content {
        padding: 10px 16px;
        gap: 12px;
    }
    
    .announcement-left {
        gap: 8px;
    }
    
    .badge-liquid {
        padding: 4px 10px;
        font-size: 11px;
    }
    
    .icon-3d {
        width: 32px;
        height: 32px;
    }
    
    .icon-3d span {
        font-size: 16px;
    }
    
    /* Enable right to left scrolling on mobile */
    .announcement-text-wrapper {
        overflow: hidden;
        position: relative;
    }
    
    .announcement-text {
        font-size: 13px;
        animation: scrollRTL 15s ease-in-out infinite;
        padding: 0 20px;
        will-change: transform;
    }
    
    /* Gradient fade effect */
    .announcement-text-wrapper::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        height: 100%;
        width: 40px;
        background: linear-gradient(to right, transparent, #667eea);
        pointer-events: none;
        z-index: 2;
    }
    
    .announcement-text-wrapper::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 40px;
        background: linear-gradient(to left, transparent, #667eea);
        pointer-events: none;
        z-index: 2;
    }
    
    .download-btn-3d {
        padding: 6px 16px;
        font-size: 12px;
    }
    
    .download-btn-3d i {
        font-size: 14px;
    }
    
    .close-btn-neon {
        width: 32px;
        height: 32px;
        font-size: 20px;
    }
}

/* Small Mobile Devices */
@media screen and (max-width: 600px) {
    .announcement-content {
        padding: 8px 12px;
        gap: 10px;
    }
    
    .announcement-left {
        gap: 6px;
    }
    
    .badge-liquid {
        padding: 3px 8px;
        font-size: 10px;
    }
    
    .icon-3d {
        width: 28px;
        height: 28px;
    }
    
    .icon-3d span {
        font-size: 14px;
    }
    
    .announcement-text {
        font-size: 11px;
        animation: scrollRTL 14s ease-in-out infinite;
    }
    
    .download-btn-3d {
        padding: 5px 12px;
        font-size: 11px;
    }
}

/* Very Small Devices */
@media screen and (max-width: 400px) {
    .announcement-content {
        padding: 6px 10px;
        gap: 8px;
    }
    
    .badge-liquid {
        padding: 2px 6px;
        font-size: 9px;
    }
    
    .icon-3d {
        width: 24px;
        height: 24px;
    }
    
    .icon-3d span {
        font-size: 12px;
    }
    
    .announcement-text {
        font-size: 10px;
        animation: scrollRTL 13s ease-in-out infinite;
    }
    
    .download-btn-3d {
        padding: 4px 10px;
        font-size: 10px;
    }
    
    .close-btn-neon {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }
    
    .download-btn-3d span {
        font-size: 10px;
    }
}

/* Extra Small Devices */
@media screen and (max-width: 320px) {
    .announcement-text {
        font-size: 9px;
        animation: scrollRTL 12s ease-in-out infinite;
    }
    
    .announcement-text-wrapper::before,
    .announcement-text-wrapper::after {
        width: 25px;
    }
}

/* Pause on hover */
@media (hover: hover) {
    .announcement-text-wrapper:hover .announcement-text {
        animation-play-state: paused;
    }
}

/* Professional Custom Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    background: transparent;
}

::-webkit-scrollbar-track {
    background: rgba(102, 126, 234, 0.1);
    border-radius: 20px;
    margin: 2px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.5);
}

::-webkit-scrollbar-thumb:active {
    transform: scale(0.95);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #764ba2 rgba(102, 126, 234, 0.1);
}

/* Edge and IE */
body {
    -ms-overflow-style: none; /* Hide default scrollbar */
}

/* Custom scrollbar container for any scrollable area */
.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: #667eea #f1f1f1;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(102, 126, 234, 0.05);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* For horizontal scrollbar */
::-webkit-scrollbar:horizontal {
    height: 6px;
}

::-webkit-scrollbar-track:horizontal {
    background: rgba(102, 126, 234, 0.05);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:horizontal {
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 10px;
}

/* Corner where both scrollbars meet */
::-webkit-scrollbar-corner {
    background: transparent;
}

/* Smooth scrolling for the whole page */
html {
    scroll-behavior: smooth;
}

/* Animations */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes shimmer {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

@keyframes float3d {
    0%, 100% { transform: translateY(0) rotateX(0deg); }
    50% { transform: translateY(-5px) rotateX(10deg); }
}

@keyframes liquidPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5);
    }
}

@keyframes borderRotate {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}