/* Custom CSS for WADDLE Token Website */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* Arctic Background */
html, body {
    background: 
        radial-gradient(ellipse 800px 200px at 20% 100%, rgba(30, 58, 138, 0.4) 0%, transparent 70%),
        radial-gradient(ellipse 1000px 250px at 80% 100%, rgba(59, 130, 246, 0.3) 0%, transparent 70%),
        linear-gradient(180deg, #E6F3FF 0%, #B8E6FF 30%, #F8FAFC 70%, #FFFFFF 100%) !important;
    background-attachment: fixed !important;
    min-height: 100vh !important;
}

/* Make main sections semi-transparent to show background */
section.py-20 {
    background: rgba(255, 255, 255, 0.7) !important;
    margin-bottom: 2rem;
}

/* Ensure background is visible on all sections */
section {
    position: relative;
    z-index: 1;
}

/* Improved header styling */
header {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Better section spacing */
section + section {
    margin-top: 4rem;
}

/* Navigation link hover effects */
.nav-link {
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #1E3A8A;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Snowfall Animation */
.snowfall-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -100px;
    font-size: 1rem;
    animation: snowfall linear infinite;
    opacity: 0.8;
}

@keyframes snowfall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Snowflake positioning and timing */
.snowflake:nth-child(1) {
    left: 10%;
    animation-duration: 8s;
    animation-delay: 0s;
}

.snowflake:nth-child(2) {
    left: 30%;
    animation-duration: 12s;
    animation-delay: 2s;
    font-size: 0.8rem;
}

.snowflake:nth-child(3) {
    left: 50%;
    animation-duration: 10s;
    animation-delay: 4s;
}

.snowflake:nth-child(4) {
    left: 70%;
    animation-duration: 14s;
    animation-delay: 1s;
    font-size: 1.2rem;
}

.snowflake:nth-child(5) {
    left: 90%;
    animation-duration: 9s;
    animation-delay: 3s;
    font-size: 0.9rem;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .snowflake {
        animation: none;
        display: none;
    }
    
    .animate-float {
        animation: none;
    }
    
    .donut-segment {
        animation: none;
    }
}

/* Float animation for hero penguin - disable to avoid conflicts */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.animate-float {
    cursor: pointer;
    transition: filter 0.3s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.animate-float:hover {
    filter: brightness(1.1) drop-shadow(0 0 20px rgba(59, 130, 246, 0.5));
}

/* 3D rotation class for mouse following */
.mascot-follow-cursor {
    transform-origin: center center;
    will-change: transform;
    transition: transform 0.1s ease-out;
}

/* Bounce animation for clicks */
@keyframes bounce {
    0%, 20%, 60%, 100% {
        transform: translateY(0) scale(1);
    }
    40% {
        transform: translateY(-30px) scale(1.1);
    }
    80% {
        transform: translateY(-15px) scale(1.05);
    }
}

.bounce-animation {
    animation: bounce 0.8s ease !important;
}

/* Wobble animation */
@keyframes wobble {
    0% { transform: rotate(0deg); }
    15% { transform: rotate(-15deg); }
    30% { transform: rotate(10deg); }
    45% { transform: rotate(-5deg); }
    60% { transform: rotate(3deg); }
    75% { transform: rotate(-1deg); }
    100% { transform: rotate(0deg); }
}

.wobble-animation {
    animation: wobble 0.6s ease-in-out !important;
}

/* Sparkle effect */
@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
    50% { opacity: 1; transform: scale(1) rotate(180deg); }
}

.sparkle {
    position: absolute;
    pointer-events: none;
    color: #FBBF24;
    font-size: 20px;
    animation: sparkle 1s ease-out forwards;
}

/* Active navigation link */
.nav-link.active {
    color: #1E3A8A;
    font-weight: 600;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background-color: #1E3A8A;
    border-radius: 1px;
}

/* Donut chart animations */
.donut-segment {
    transition: stroke-dasharray 0.5s ease-in-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 2px solid #3B82F6;
    outline-offset: 2px;
}

/* Skip to content link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #1E3A8A;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 100;
}

.skip-link:focus {
    top: 6px;
}

/* Hover effects for cards */
.hover\:scale-105:hover {
    transform: scale(1.05);
}

/* Custom button styles */
.btn-primary {
    background-color: #1E3A8A;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #1E40AF;
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: #1E3A8A;
    padding: 0.75rem 1.5rem;
    border: 2px solid #1E3A8A;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: #1E3A8A;
    color: white;
    transform: translateY(-1px);
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Toast notification styles */
#copy-toast {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#copy-toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Mobile menu transition */
#mobile-menu {
    transition: all 0.3s ease-in-out;
    max-height: 0;
    overflow: hidden;
}

#mobile-menu.show {
    max-height: 300px;
}

/* Responsive typography */
@media (max-width: 640px) {
    h1 {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }
    
    h2 {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-arctic-blue {
        background-color: #ffffff;
        border: 1px solid #000000;
    }
    
    .text-gray-700 {
        color: #000000;
    }
    
    .bg-white {
        border: 1px solid #000000;
    }
}

/* Print styles */
@media print {
    .snowfall-container,
    header,
    footer,
    #copy-toast {
        display: none;
    }
    
    * {
        background: white !important;
        color: black !important;
    }
}

/* Performance optimizations */
* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

/* Lazy loading placeholder */
img[loading="lazy"] {
    background-color: #f3f4f6;
    min-height: 100px;
}

/* Container utilities */
.container {
    max-width: 1200px;
}

/* Custom gradient backgrounds */
.gradient-arctic {
    background: linear-gradient(135deg, #E6F3FF 0%, #B8E6FF 100%);
}

.gradient-ice {
    background: linear-gradient(135deg, #B8E6FF 0%, #E6F3FF 100%);
}

/* Utility classes */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.backdrop-blur {
    backdrop-filter: blur(10px);
}

/* Dark mode support (if needed in future) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here */
}

/* Animation delays for staggered effects */
.animate-delay-100 {
    animation-delay: 0.1s;
}

.animate-delay-200 {
    animation-delay: 0.2s;
}

.animate-delay-300 {
    animation-delay: 0.3s;
}

/* Pulse animation for loading states */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Countdown Timer Styles */
.countdown-box {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 80px;
    backdrop-filter: blur(10px);
}

.countdown-number {
    font-size: 3rem;
    font-weight: bold;
    color: #1e3a8a;
    line-height: 1;
}

.countdown-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-top: 8px;
    letter-spacing: 1px;
}

.countdown-separator {
    font-size: 3rem;
    font-weight: bold;
    color: #1e3a8a;
    display: none;
}

@media (min-width: 640px) {
    .countdown-separator {
        display: block;
    }
    
    .countdown-box {
        min-width: 100px;
        padding: 24px;
    }
    
    .countdown-number {
        font-size: 3.5rem;
    }
}
