/* Add a new font for a cool look */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

/* Base styles */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background: #121212;
    color: white;
    height: 100%; /* Changed from min-height */
    overflow-x: hidden;
    position: relative;
}

/* Full-screen video background */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

#background-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures video covers the entire screen */
}

/* Main container */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;  /* Aligns the content at the top */
    min-height: 100vh;
    padding: 2rem;
    position: relative;  /* Ensure it stays within the normal document flow */
    z-index: 2;
}

/* Input box - Activate CA part */
.input-box {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 10px;
    width: 100%;
    max-width: 500px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    top: -130px;  /* Move the box upwards */
}

/* Info section */
.info-section {
    background: linear-gradient(135deg, #151515 0%, #2a1c36 100%);
    color: white;
    padding: 20rem 3rem;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    min-height: 100vh;
    position: relative;
    scroll-snap-align: end;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.info-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(138, 43, 226, 0.15) 0%, 
        rgba(255, 0, 255, 0.15) 50%, 
        rgba(0, 191, 255, 0.15) 100%); /* Darker gradient */
    filter: blur(100px);
    z-index: -1;
    animation: gradientMove 15s ease infinite;
}

/* Info title */
.info-title {
    font-family: 'Inter', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    max-width: 900px;
    margin: 0 auto 2rem;
    background: linear-gradient(45deg, #fff 30%, #7e57c2 50%, #2196f3 70%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: titleGradient 8s ease infinite;
    text-transform: none;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Info text */
.info-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes titleGradient {
    0% {
        background-position: 200% 50%;
    }
    100% {
        background-position: -200% 50%;
    }
}



/* Animated background */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, 
        rgba(28, 30, 14, 1) 0%,
        rgba(8, 8, 8, 1) 100%
    );
}

/* Floating particles effect */
.particle {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,215,0,0.1), rgba(173,255,47,0.1));
    filter: blur(150px);
    transform-origin: center;
    animation: floatParticle 20s infinite;
    opacity: 0.5;
}

@keyframes floatParticle {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
    100% { transform: translateY(0) rotate(360deg); }
}

/* Header styling */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    z-index: 100;
}

.title {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
}

.nav-buttons {
    display: flex;
    gap: 2rem;
}

.nav-buttons a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
    text-transform: uppercase;
}

.nav-buttons a:hover {
    color: rgba(255, 255, 255, 1);
}

/* Main container */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

/* Input styling */
.input-box {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 10px;
    width: 100%;
    max-width: 500px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.input-box input {
    width: 93.4%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: white;
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.input-box input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.4);
}

.input-box button {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.input-box button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Share card styling - restored to original */

.share-card {
    position: relative;  /* Standard document flow */
    width: 360px;
    height: 520px;
    background: linear-gradient(135deg, rgba(255,192,203,0.15) 0%, rgba(173,216,230,0.15) 100%);
    border-radius: 32px;
    padding: 24px;
    display: none;
    cursor: pointer;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: translateY(-50%) scale(0.95);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
        filter: blur(0px);
    }
}

.share-card.visible {
    display: block;
    margin-top: -100px;  /* Space between input box and card */
}

.token-header {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    padding-top: 20px;
}

.token-image {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.token-name {
    flex: 1;
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin-left: 16px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stats-grid {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 24px;
    padding: 28px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.stat-value {
    color: white;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.status-display {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
}

.status-display svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.status-display.locked,
.status-display.locked svg {
    color: #ffffff;
    stroke: #ffffff;
}

.status-display.unlocked,
.status-display.unlocked svg {
    color: #ff6b6b;
    stroke: #ff6b6b;
}

.amount-value {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #4169E1;
    font-family: 'Roboto Mono', monospace;
}

.amount-number {
    font-size: 16px;
}

.amount-divider {
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    font-size: 14px;
}

.card-footer {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    padding: 12px;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glass morphism effect */
.share-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 32px;
    pointer-events: none;
}