/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    z-index: 100;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
    letter-spacing: 2px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.logo:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.social-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.social-link img {
    width: 25px;
    height: 25px;
}

/* Special styling for X icon to make it white */
.social-link img[alt="X"] {
    filter: brightness(0) invert(1);
}

/* Footer */
.footer {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

.buy-button {
    font-family: 'Playfair Display', serif;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 30px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 165, 0, 0.2) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 35px;
    border: 2px solid rgba(255, 215, 0, 0.4);
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.2);
}

.buy-button:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3) 0%, rgba(255, 165, 0, 0.3) 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(255, 215, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.6);
}

.buy-button img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}



/* Background video styling */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#background-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Hero section */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Coin container */
.coin-container {
    position: relative;
    width: 300px;
    height: 300px;
    cursor: pointer;
}

/* Coin images */
.coin-front, .coin-back {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 50%;
    object-fit: cover;
    transition: opacity 0.6s ease-in-out;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

.coin-front {
    opacity: 1;
    z-index: 2;
}

.coin-back {
    opacity: 0;
    z-index: 1;
}

/* Hover effects */
.coin-container:hover .coin-front {
    opacity: 0;
}

.coin-container:hover .coin-back {
    opacity: 1;
}

.coin-container:hover .coin-front,
.coin-container:hover .coin-back {
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.5));
    animation: coinGlow 3s ease-in-out infinite alternate;
}

/* Contract Address Section */
.contract-address {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    margin-top: 40px;
    position: relative;
    z-index: 10;
}

.ca-label {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    margin-right: 12px;
    color: #fff;
    font-size: 16px;
    letter-spacing: 1px;
}

.ca-value {
    font-family: 'Inter', monospace;
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    margin-right: 15px;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

.copy-btn {
    font-family: 'Inter', sans-serif;
    padding: 6px 12px;
    border: none;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    letter-spacing: 0.5px;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.copy-btn:active {
    transform: translateY(0);
}

/* Hover effect when coin is hovered */
.coin-container:hover ~ .contract-address {
    background: rgba(255, 0, 0, 0.15);
    border-color: rgba(255, 0, 0, 0.3);
    box-shadow: 0 8px 32px rgba(255, 0, 0, 0.2);
}

.coin-container:hover ~ .contract-address .copy-btn {
    background: rgba(255, 0, 0, 0.3);
    border-color: rgba(255, 0, 0, 0.4);
}

.coin-container:hover ~ .contract-address .copy-btn:hover {
    background: rgba(255, 0, 0, 0.4);
}

@keyframes coinGlow {
    0% {
        filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3)) 
                drop-shadow(0 0 20px rgba(255, 215, 0, 0.1))
                brightness(1);
    }
    50% {
        filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.5)) 
                drop-shadow(0 0 30px rgba(255, 215, 0, 0.3))
                brightness(1.1);
    }
    100% {
        filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3)) 
                drop-shadow(0 0 20px rgba(255, 215, 0, 0.1))
                brightness(1);
    }
}

/* Responsive design */
@media (max-width: 1024px) {
    .header {
        padding: 15px 20px;
    }
    
    .logo {
        font-size: 18px;
        padding: 10px 18px;
    }
    
    .social-links {
        gap: 12px;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
    }
    
    .social-link img {
        width: 22px;
        height: 22px;
    }
    
    .coin-container {
        width: 280px;
        height: 280px;
    }
    
    .contract-address {
        padding: 10px 20px;
        margin-top: 30px;
    }
    
    .buy-button {
        padding: 12px 24px;
        font-size: 16px;
    }
    
    .buy-button img {
        width: 25px;
        height: 25px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 12px 15px;
    }
    
    .logo {
        font-size: 16px;
        padding: 8px 15px;
        letter-spacing: 1.5px;
    }
    
    .social-links {
        gap: 10px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
    
    .social-link img {
        width: 20px;
        height: 20px;
    }
    
    .coin-container {
        width: 250px;
        height: 250px;
    }
    
    .contract-address {
        padding: 8px 16px;
        margin-top: 25px;
    }
    
    .ca-label {
        font-size: 14px;
    }
    
    .ca-value {
        font-size: 12px;
    }
    
    .copy-btn {
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .buy-button {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .buy-button img {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 10px 12px;
    }
    
    .logo {
        font-size: 14px;
        padding: 6px 12px;
        letter-spacing: 1px;
    }
    
    .social-links {
        gap: 8px;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
    }
    
    .social-link img {
        width: 18px;
        height: 18px;
    }
    
    .coin-container {
        width: 200px;
        height: 200px;
    }
    
    .contract-address {
        padding: 6px 12px;
        margin-top: 20px;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .ca-label, .ca-value {
        margin-right: 0;
    }
    
    .copy-btn {
        padding: 4px 8px;
        font-size: 10px;
    }
    
    .buy-button {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .buy-button img {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 360px) {
    .logo {
        font-size: 12px;
        padding: 5px 10px;
    }
    
    .coin-container {
        width: 180px;
        height: 180px;
    }
    
    .contract-address {
        padding: 5px 10px;
        margin-top: 15px;
    }
    
    .ca-label {
        font-size: 12px;
    }
    
    .ca-value {
        font-size: 11px;
    }
    
    .copy-btn {
        padding: 3px 6px;
        font-size: 9px;
    }
    
    .follow-button {
        padding: 5px 10px;
        font-size: 11px;
    }
}

/* Landscape orientation for mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        height: 100vh;
        padding: 10px 0;
    }
    
    .coin-container {
        width: 150px;
        height: 150px;
    }
    
    .contract-address {
        margin-top: 15px;
        padding: 6px 12px;
    }
    
    .header {
        padding: 8px 15px;
    }
    
    .footer {
        bottom: 15px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .coin img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .coin-container:hover .coin-front,
    .coin-container:hover .coin-back {
        animation: none;
    }
    
    .logo:hover,
    .social-link:hover,
    .copy-btn:hover,
    .follow-button:hover {
        transform: none;
    }
}
