* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow-x: hidden;
    position: relative;
}

/* Video Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('cheet-video.mp4') center/cover;
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(244, 168, 71, 0.8) 0%, rgba(232, 149, 51, 0.8) 100%);
    z-index: -1;
}

/* Fallback video element */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.container {
    width: 90%;
    max-width: 1200px;
    padding: 2rem;
}

.header {
    text-align: center;
    margin-bottom: 3rem;
}

.header h1 {
    font-size: 4rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    font-style: italic;
}

.market-cap-display {
    background: rgba(255, 255, 255, 0.15);
    padding: 1rem 2rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
    margin: 0 auto;
}

.market-cap-label {
    font-size: 1.2rem;
    margin-right: 1rem;
    font-weight: 600;
}

.market-cap-value {
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.progress-container {
    position: relative;
    margin: 8rem 0 16rem 0; /* Extra space for balloons extending downward */
}

.cheetah-logo {
    position: absolute;
    top: -35px;
    left: 0;
    z-index: 20;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.cheetah-logo img {
    border-radius: 50%;
    border: 3px solid white;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px;
}

.cheetah-logo.bounce {
    animation: bounce 0.6s ease-in-out;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-15px);
    }
    60% {
        transform: translateY(-8px);
    }
}

.cheetah-logo.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.progress-line {
    position: relative;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    overflow: visible;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #fff 0%, #f0f0f0 100%);
    border-radius: 4px;
    transition: width 1s ease-out;
    width: 0%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Progress Labels */
.progress-label {
    position: absolute;
    top: -50px;
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 15;
}

.start-label {
    left: -20px;
}

.end-label {
    right: -40px;
}

/* Milestones */
.milestones {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px; /* Give explicit height for balloons */
    pointer-events: none;
}

.milestone-marker {
    position: absolute;
    top: 4px; /* Align with progress line center */
    transform: translateX(-50%);
    z-index: 15;
    pointer-events: all;
}

/* Black Dots */
.milestone-dot {
    width: 16px;
    height: 16px;
    background: #000;
    border: 3px solid white;
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 16;
}

.milestone-marker.active .milestone-dot {
    background: #FFD700;
    border-color: #FFD700;
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}

.milestone-marker.passed .milestone-dot {
    background: #4CAF50;
    border-color: white;
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.6);
}

/* Milestone Balloons - Progressive Sizing */
.milestone-balloon {
    position: absolute;
    top: 25px; /* Start below the dot */
    left: 50%;
    transform: translateX(-50%);
    padding: 15px;
    border-radius: 50%; /* Make it perfectly circular */
    border: 4px solid white; /* White border */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    z-index: 14;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FF8C00 !important; /* Dark orange, different from background */
}

/* Progressive Balloon Sizes */
.balloon-1 { 
    width: 80px; 
    height: 80px; 
}

.balloon-2 { 
    width: 90px; 
    height: 90px; 
}

.balloon-3 { 
    width: 100px; 
    height: 100px; 
}

.balloon-4 { 
    width: 110px; 
    height: 110px; 
}

.balloon-5 { 
    width: 120px; 
    height: 120px; 
}

.balloon-6 { 
    width: 130px; 
    height: 130px; 
}

.balloon-7 { 
    width: 140px; 
    height: 140px; 
}

/* Balloon Pointer/Tail */
.balloon-pointer {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
}

/* All Balloon Backgrounds - Same Orange Color */
.balloon-1,
.balloon-2,
.balloon-3,
.balloon-4,
.balloon-5,
.balloon-6,
.balloon-7 {
    background: #FF8C00; /* Dark orange, same for all */
}

.balloon-1 .balloon-pointer,
.balloon-2 .balloon-pointer,
.balloon-3 .balloon-pointer,
.balloon-4 .balloon-pointer,
.balloon-5 .balloon-pointer,
.balloon-6 .balloon-pointer,
.balloon-7 .balloon-pointer {
    border-bottom: 12px solid #FF8C00;
}

/* Balloon Content */
.balloon-content {
    text-align: center;
    color: white;
}

.milestone-value {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 6px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.milestone-text {
    font-size: 0.8rem;
    font-weight: bold; /* Make text bold for better readability */
    opacity: 1;
    font-style: italic;
    line-height: 1.3;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Milestone Value Labels Above Progress Bar */
.milestone-value-label {
    position: absolute;
    transform: translateX(-50%);
    font-size: 1rem;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    z-index: 15;
}

.status-container {
    text-align: center;
    margin-top: 3rem;
}

.status-display {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    border-radius: 20px;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.status-display.success {
    background: rgba(76, 175, 80, 0.3);
    border-color: rgba(76, 175, 80, 0.5);
}

.status-display.error {
    background: rgba(244, 67, 54, 0.3);
    border-color: rgba(244, 67, 54, 0.5);
}

.last-update {
    font-size: 0.9rem;
    opacity: 0.8;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2.5rem;
    }
    
    .market-cap-value {
        font-size: 1.5rem;
    }
    
    .cheetah-logo img {
        width: 40px;
        height: 40px;
    }
    
    .progress-container {
        margin: 6rem 0 12rem 0;
    }
    
    .progress-label {
        font-size: 1.4rem;
    }
    
    .balloon-1 { width: 70px; height: 70px; }
    .balloon-2 { width: 75px; height: 75px; }
    .balloon-3 { width: 80px; height: 80px; }
    .balloon-4 { width: 85px; height: 85px; }
    .balloon-5 { width: 90px; height: 90px; }
    .balloon-6 { width: 95px; height: 95px; }
    .balloon-7 { width: 100px; height: 100px; }
    
    .milestone-balloon {
        padding: 12px;
    }
    
    .milestone-value {
        font-size: 0.95rem;
    }
    
    .milestone-text {
        font-size: 0.7rem;
    }
    
    .milestone-dot {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .market-cap-display {
        padding: 0.8rem 1.5rem;
    }
    
    .market-cap-value {
        font-size: 1.2rem;
    }
    
    .progress-container {
        margin: 4rem 0 10rem 0;
    }
    
    .progress-label {
        font-size: 1.2rem;
    }
    
    .start-label {
        left: -15px;
    }
    
    .end-label {
        right: -30px;
    }
    
    .balloon-1 { width: 60px; height: 60px; }
    .balloon-2 { width: 65px; height: 65px; }
    .balloon-3 { width: 70px; height: 70px; }
    .balloon-4 { width: 75px; height: 75px; }
    .balloon-5 { width: 80px; height: 80px; }
    .balloon-6 { width: 85px; height: 85px; }
    .balloon-7 { width: 90px; height: 90px; }
    
    .milestone-balloon {
        padding: 8px;
    }
    
    .milestone-value {
        font-size: 0.8rem;
    }
    
    .milestone-text {
        font-size: 0.65rem;
    }
    
    .milestone-dot {
        width: 12px;
        height: 12px;
    }
}

/* Top corner elements */
.top-left-corner {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 15px;
    color: white;
    font-family: monospace;
}

.top-right-corner {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.contract-label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #FFD700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.contract-address {
    font-size: 0.85rem;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    word-break: break-all;
    max-width: 250px;
}

.contract-address:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.copy-tooltip {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: #4CAF50;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.copy-tooltip.show {
    opacity: 1;
}

.twitter-link {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 12px 16px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.twitter-link:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    color: white;
}

.twitter-link svg {
    width: 20px;
    height: 20px;
}

/* Responsive styles for corner elements */
@media (max-width: 768px) {
    .top-left-corner,
    .top-right-corner {
        top: 15px;
    }
    
    .top-left-corner {
        left: 15px;
    }
    
    .top-right-corner {
        right: 15px;
    }
    
    .top-left-corner {
        padding: 12px;
        max-width: 200px;
    }
    
    .contract-label {
        font-size: 0.8rem;
    }
    
    .contract-address {
        font-size: 0.75rem;
        padding: 6px 10px;
        max-width: 180px;
    }
    
    .twitter-link {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .twitter-link svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .top-left-corner,
    .top-right-corner {
        top: 10px;
    }
    
    .top-left-corner {
        left: 10px;
    }
    
    .top-right-corner {
        right: 10px;
    }
    
    .top-left-corner {
        padding: 10px;
        max-width: 160px;
    }
    
    .contract-label {
        font-size: 0.75rem;
        margin-bottom: 6px;
    }
    
    .contract-address {
        font-size: 0.7rem;
        padding: 5px 8px;
        max-width: 140px;
    }
    
    .twitter-link {
        padding: 8px 10px;
        font-size: 0.8rem;
        gap: 6px;
    }
    
    .twitter-link svg {
        width: 16px;
        height: 16px;
    }
    
    .copy-tooltip {
        font-size: 0.7rem;
        padding: 4px 8px;
        top: -30px;
    }
}
