/* Main CSS File */
/* Import all modular CSS files */

/* 1. Variables and base styles */
@import url('css/variables.css');
@import url('css/base.css');

/* 2. Component styles */
@import url('css/navigation.css');
@import url('css/hero.css');
@import url('css/about.css');
@import url('css/technology.css');
@import url('css/tokenomics.css');
@import url('css/roadmap.css');
@import url('css/cta.css');

/* 3. Animation effects */
@import url('css/animations.css');

/* 4. Responsive styles */
@import url('css/responsive.css');

/* 5. Font imports */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* 6. Additional global styles */
body {
    opacity: 1;
    transition: opacity 0.5s ease;
}

body.loading {
    opacity: 0;
}

/* Main content wrapper */
#main-content {
    position: relative;
}

/* Hero section fixed in background */
.hero,
#home.hero {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    z-index: 0 !important;
    transform: none !important;
    transition: none !important;
}

/* Keep hero-content centered */
.hero .hero-content {
    transform: translate(-50%, -50%) !important;
}

/* Create placeholder for proper scroll space */
#about {
    margin-top: 100vh;
    position: relative;
    z-index: 100;
    background: var(--bg-dark);
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0a0a0a 100%);
}

/* Ensure other sections are above hero with background */
#technology, #tokenomics, #roadmap, #ecosystem {
    position: relative;
    z-index: 100;
    background: var(--bg-dark);
}

/* Scroll progress bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-primary);
    z-index: 9999;
    transition: width 0.3s ease;
}

/* Loading animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.3s ease;
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Tooltip */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    border: 1px solid var(--border-color);
    z-index: 1000;
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

/* Text selection styles */
::selection {
    background: var(--primary-color);
    color: white;
}

::-moz-selection {
    background: var(--primary-color);
    color: white;
}

/* Focus styles */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Accessibility support */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip to main content link */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    z-index: 10001;
}

.skip-to-content:focus {
    top: 6px;
}