@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@400;700&display=swap');
@import url("https://use.typekit.net/vuj5dhk.css");

/* Countdown Section Styles */
.countdown-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow: hidden;
    font-family: fatfrank, sans-serif;
    color: #afafaf;
}

/* Enhanced Animated Background */
.countdown-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse at top,
        rgba(0, 97, 81, 0.8) 0%,
        rgba(0, 78, 78, 0.6) 25%,
        rgba(0, 46, 58, 0.7) 50%,
        rgba(0, 19, 24, 0.9) 75%,
        rgba(0, 8, 10, 1) 100%
    );
    animation: gradientPulse 10s ease-in-out infinite;
}

@keyframes gradientPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Floating Animated Shapes */
.animated-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: floatShape 20s infinite ease-in-out;
}

.shape-1 {
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, #68BE7C, #006151);
    top: 10%;
    left: 10%;
    animation-duration: 15s;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #004e4e, #68BE7C);
    top: 70%;
    right: 10%;
    animation-duration: 18s;
    animation-delay: 3s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    background: linear-gradient(225deg, #002e3a, #006151);
    bottom: 20%;
    left: 20%;
    animation-duration: 12s;
    animation-delay: 6s;
}

.shape-4 {
    width: 80px;
    height: 80px;
    background: linear-gradient(315deg, #68BE7C, #004e4e);
    top: 30%;
    right: 30%;
    animation-duration: 25s;
    animation-delay: 9s;
}

.shape-5 {
    width: 120px;
    height: 120px;
    background: linear-gradient(180deg, #006151, #002e3a);
    top: 50%;
    left: 5%;
    animation-duration: 20s;
    animation-delay: 12s;
}

@keyframes floatShape {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
    }
    25% { 
        transform: translateY(-50px) translateX(30px) rotate(90deg) scale(1.1);
    }
    50% { 
        transform: translateY(-30px) translateX(-20px) rotate(180deg) scale(0.9);
    }
    75% { 
        transform: translateY(-70px) translateX(50px) rotate(270deg) scale(1.2);
    }
}

/* Particle Field Effect */
.particle-field {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle-stream {
    position: absolute;
    width: 2px;
    height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(104, 190, 124, 0.8), transparent);
    animation: particleRain 8s linear infinite;
}

.particle-stream:nth-child(1) {
    left: 20%;
    animation-delay: 0s;
    animation-duration: 6s;
}

.particle-stream:nth-child(2) {
    left: 60%;
    animation-delay: 2s;
    animation-duration: 8s;
}

.particle-stream:nth-child(3) {
    left: 80%;
    animation-delay: 4s;
    animation-duration: 7s;
}

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

/* Enhanced Countdown Content */
.countdown-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    margin-top: 80px;
    position: relative;
    z-index: 10;
}

/* Countdown Header */
.countdown-header {
    margin-bottom: 50px;
    animation: fadeInUp 1s ease-out;
}

.countdown-icon {
    position: relative;
    margin-bottom: 20px;
    display: inline-block;
}

.countdown-icon i {
    font-size: 4rem;
    color: #68BE7C;
    animation: iconFloat 3s ease-in-out infinite;
}

.icon-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border: 2px solid rgba(104, 190, 124, 0.3);
    border-radius: 50%;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

@keyframes iconPulse {
    0% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.3;
    }
    100% { 
        transform: translate(-50%, -50%) scale(1.6);
        opacity: 0;
    }
}

.countdown-title {
    font-size: 3rem;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(104, 190, 124, 0.5);
    margin-bottom: 15px;
    animation: textGlow 3s ease-in-out infinite alternate;
}

.countdown-subtitle {
    font-size: 1.2rem;
    color: #cee1ff;
    opacity: 0.8;
    animation: fadeInUp 1s ease-out 0.5s both;
}

@keyframes textGlow {
    0% { text-shadow: 0 0 20px rgba(104, 190, 124, 0.5); }
    100% { text-shadow: 0 0 30px rgba(104, 190, 124, 0.8), 0 0 40px rgba(104, 190, 124, 0.3); }
}

/* Enhanced Countdown Display */
.countdown-display {
    margin-bottom: 60px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.countdown-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.countdown-box {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(104, 190, 124, 0.2);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    min-width: 120px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    transition: all 0.5s ease;
    overflow: hidden;
}

.countdown-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(104, 190, 124, 0.1), transparent);
    transition: left 0.8s ease;
}

.countdown-box:hover::before {
    left: 100%;
}

.countdown-box:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: rgba(104, 190, 124, 0.5);
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(104, 190, 124, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.countdown-number-wrapper {
    position: relative;
    margin-bottom: 15px;
}

.countdown-number {
    font-size: 3.5rem;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.number-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(104, 190, 124, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: numberGlow 2s ease-in-out infinite alternate;
    z-index: 1;
}

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

.countdown-label {
    font-size: 1.1rem;
    color: #cee1ff;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 10px;
}

.countdown-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0 0 20px 20px;
    overflow: hidden;
}


/* Countdown Separators */
.countdown-separator {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    animation: separatorBlink 2s ease-in-out infinite;
}

.separator-dot {
    width: 8px;
    height: 8px;
    background: rgba(104, 190, 124, 0.6);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(104, 190, 124, 0.4);
}

@keyframes separatorBlink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.3; }
}

/* Enhanced Footer */
.countdown-footer {
    text-align: center;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.footer-text {
    font-size: 1.4rem;
    color: #cee1ff;
    text-shadow: 0 0 15px rgba(206, 225, 255, 0.4);
    margin-bottom: 40px;
    animation: textPulse 4s ease-in-out infinite;
}

@keyframes textPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.countdown-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

/* Enhanced Login Button */
.countdown-login-button {
    position: relative;
    padding: 18px 40px;
    background: linear-gradient(45deg, rgba(104, 190, 124, 0.2), rgba(0, 97, 81, 0.3));
    cursor: pointer;
    font-size: 1.3rem;
    font-weight: bold;
    color: #ffffff;
    border: 2px solid rgba(104, 190, 124, 0.4);
    border-radius: 50px;
    transition: all 0.4s ease;
    backdrop-filter: blur(20px);
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.countdown-login-button:hover::before {
    left: 100%;
}

.countdown-login-button:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: rgba(104, 190, 124, 0.8);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(104, 190, 124, 0.4);
    background: linear-gradient(45deg, rgba(104, 190, 124, 0.4), rgba(0, 97, 81, 0.5));
}

.countdown-login-button:active {
    transform: translateY(-2px) scale(1.02);
}

.button-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.countdown-login-button:hover .button-icon {
    transform: translateX(5px);
}

.button-text {
    position: relative;
    z-index: 2;
}

.button-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transition: width 0.6s ease, height 0.6s ease;
}

.countdown-login-button:active .button-ripple {
    width: 300px;
    height: 300px;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 20px;
}

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

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    background: rgba(104, 190, 124, 0.2);
    border-color: rgba(104, 190, 124, 0.5);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Interactive Floating Elements */
.countdown-interactive {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-icon {
    position: absolute;
    font-size: 2rem;
    color: rgba(104, 190, 124, 0.3);
    animation: floatIcon 15s ease-in-out infinite;
}

.floating-icon:nth-child(1) {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.floating-icon:nth-child(2) {
    top: 25%;
    right: 15%;
    animation-delay: 3s;
    animation-duration: 18s;
}

.floating-icon:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: 6s;
    animation-duration: 14s;
}

.floating-icon:nth-child(4) {
    bottom: 20%;
    right: 25%;
    animation-delay: 9s;
    animation-duration: 16s;
}

@keyframes floatIcon {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }
    25% { 
        transform: translateY(-30px) rotate(90deg);
        opacity: 0.6;
    }
    50% { 
        transform: translateY(-15px) rotate(180deg);
        opacity: 0.4;
    }
    75% { 
        transform: translateY(-45px) rotate(270deg);
        opacity: 0.8;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive Design */
@media (max-width: 1200px) {
    .countdown-container {
        gap: 15px;
    }
    
    .countdown-box {
        min-width: 100px;
        padding: 25px 15px;
    }
    
    .countdown-number {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .countdown-content {
        padding: 15px;
        margin-top: 100px;
    }
    
    .countdown-title {
        font-size: 2.2rem;
        margin-bottom: 20px;
    }
    
    .countdown-subtitle {
        font-size: 1rem;
    }
    
    .countdown-icon i {
        font-size: 3rem;
    }
    
    .countdown-container {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .countdown-box {
        min-width: 80px;
        padding: 20px 12px;
        border-radius: 15px;
    }
    
    .countdown-number {
        font-size: 2.5rem;
    }
    
    .countdown-label {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }
    
    .footer-text {
        font-size: 1.2rem;
        margin-bottom: 30px;
    }
    
    .countdown-login-button {
        padding: 16px 32px;
        font-size: 1.1rem;
    }
    
    .social-links {
        gap: 15px;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .floating-icon {
        font-size: 1.5rem;
    }
    
    .shape {
        opacity: 0.05 !important;
    }
    
    .shape-1 { width: 150px; height: 150px; }
    .shape-2 { width: 120px; height: 120px; }
    .shape-3 { width: 80px; height: 80px; }
    .shape-4 { width: 60px; height: 60px; }
    .shape-5 { width: 100px; height: 100px; }
}

@media (max-width: 480px) {
    .countdown-header {
        margin-bottom: 40px;
    }
    
    .countdown-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .countdown-subtitle {
        font-size: 0.9rem;
    }
    
    .countdown-icon i {
        font-size: 2.5rem;
    }
    
    .countdown-container {
        gap: 8px;
    }
    
    .countdown-box {
        min-width: 70px;
        padding: 18px 10px;
        border-radius: 12px;
    }
    
    .countdown-number {
        font-size: 2rem;
    }
    
    .countdown-label {
        font-size: 0.8rem;
        margin-bottom: 8px;
    }
    
    .countdown-separator {
        gap: 6px;
    }
    
    .separator-dot {
        width: 6px;
        height: 6px;
    }
    
    .footer-text {
        font-size: 1rem;
        margin-bottom: 25px;
        padding: 0 20px;
    }
    
    .countdown-actions {
        gap: 25px;
    }
    
    .countdown-login-button {
        padding: 14px 28px;
        font-size: 1rem;
        border-radius: 40px;
    }
    
    .social-links {
        gap: 12px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .floating-icon {
        font-size: 1.2rem;
    }
    
    .particle-stream {
        width: 1px;
        height: 80px;
    }
}

@media (max-width: 360px) {
    .countdown-title {
        font-size: 1.6rem;
    }
    
    .countdown-box {
        min-width: 65px;
        padding: 15px 8px;
    }
    
    .countdown-number {
        font-size: 1.8rem;
    }
    
    .countdown-label {
        font-size: 0.75rem;
    }
    
    .countdown-login-button {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}

/* Hide main content when countdown is active */
body.countdown-active #main-content {
    display: none;
}

/* Ensure header stays visible */
body.countdown-active #header {
    position: relative;
    z-index: 1000;
}

/* Special effects for countdown finish */
.countdown-finished .countdown-container {
    animation: celebrationPulse 1s ease-in-out 3;
}

.countdown-finished .countdown-title {
    animation: celebrationGlow 2s ease-in-out infinite;
}

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

@keyframes celebrationGlow {
    0%, 100% { 
        color: #ffffff;
        text-shadow: 0 0 20px rgba(104, 190, 124, 0.5);
    }
    50% { 
        color: #68BE7C;
        text-shadow: 
            0 0 30px rgba(104, 190, 124, 0.8),
            0 0 40px rgba(104, 190, 124, 0.6),
            0 0 50px rgba(104, 190, 124, 0.4);
    }
}

/* Performance optimizations */
.countdown-section * {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.countdown-section .countdown-box,
.countdown-section .countdown-login-button,
.countdown-section .social-link {
    will-change: transform;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .countdown-section {
        animation: none;
    }
    
    .floating-icon,
    .shape,
    .particle-stream {
        display: none;
    }
}