/* Modern, clean CSS for iDOG website */
/* Following 2050 UI principles - minimal, purposeful, and elegant */

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* Utilities */
.text-primary {
    color: var(--text-primary);
}

.text-secondary {
    color: var(--text-secondary);
}

.text-tertiary {
    color: var(--text-tertiary);
}

.bg-primary {
    background: var(--bg-primary);
}

.bg-secondary {
    background: var(--bg-secondary);
}

.bg-tertiary {
    background: var(--bg-tertiary);
}

.border-border {
    border-color: var(--border);
}

.gradient-primary {
    background: var(--gradient-primary);
}

.gradient-secondary {
    background: var(--gradient-secondary);
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-end {
    justify-content: flex-end;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.space-y-2 > * + * {
    margin-top: 0.5rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.space-y-6 > * + * {
    margin-top: 1.5rem;
}

.space-y-8 > * + * {
    margin-top: 2rem;
}

/* Grid */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Responsive grid */
@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Flexbox utilities */
.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.hidden {
    display: none;
}

@media (min-width: 768px) {
    .md\:flex {
        display: flex;
    }
    
    .md\:hidden {
        display: none;
    }
    
    .md\:inline-flex {
        display: inline-flex;
    }
    
    .md\:block {
        display: block;
    }
    
    .md\:text-left {
        text-align: left;
    }
    
    .md\:text-right {
        text-align: right;
    }
    
    .md\:justify-start {
        justify-content: flex-start;
    }
    
    .md\:justify-end {
        justify-content: flex-end;
    }
}

/* Spacing */
.m-0 { margin: 0; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }

.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }

.p-4 { padding: 1rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }

/* Sizing */
.w-2 { width: 0.5rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-full { width: 100%; }

.h-2 { height: 0.5rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }

.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }

.mx-auto { margin-left: auto; margin-right: auto; }

/* Positioning */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }

.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }

.z-50 { z-index: 50; }
.z-1000 { z-index: 1000; }

/* Borders */
.border { border-width: 1px; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }

.rounded-full { border-radius: 9999px; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }

/* Typography utilities */
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-6xl { font-size: 3.75rem; }
.text-8xl { font-size: 6rem; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-center { text-align: center; }

@media (min-width: 768px) {
    .md\:text-2xl { font-size: 1.5rem; }
    .md\:text-5xl { font-size: 3rem; }
    .md\:text-8xl { font-size: 6rem; }
}

/* Transitions */
.transition-all { transition: all 0.3s ease; }
.transition-colors { transition: color 0.2s ease; }
.transition-opacity { transition: opacity 0.2s ease; }

/* Hover effects */
.hover\:text-primary:hover { color: var(--primary); }
.hover\:bg-primary-dark:hover { background: var(--primary-dark); }
.hover\:opacity-80:hover { opacity: 0.8; }

/* Focus styles */
.focus\:outline-none:focus { outline: none; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px var(--primary); }

/* Component-specific styles */
.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

/* Status indicators */
.bg-success { background: var(--success); }
.bg-warning { background: var(--warning); }
.bg-error { background: var(--error); }

.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-error { color: var(--error); }

/* Loading states */
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }

/* Responsive utilities */
@media (min-width: 640px) {
    .sm\:flex-row { flex-direction: row; }
    .sm\:text-lg { font-size: 1.125rem; }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-only {
        display: block !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #0f172a;
        --bg-secondary: #1e293b;
        --bg-tertiary: #334155;
        --text-primary: #f8fafc;
        --text-secondary: #cbd5e1;
        --text-tertiary: #94a3b8;
        --border: #334155;
        --border-hover: #475569;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid var(--border);
    }
    
    .btn {
        border: 2px solid transparent;
    }
    
    .btn-primary {
        border-color: var(--primary);
    }
}

/* Selection styling */
::selection {
    background: var(--primary);
    color: white;
}

::-moz-selection {
    background: var(--primary);
    color: white;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Focus visible for better accessibility */
.btn:focus-visible,
.nav-link:focus-visible,
.theme-toggle:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Performance optimizations */
.card,
.btn,
.nav-link {
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Smooth scrolling behavior */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Additional component styles that work with the inline styles */
.in-view {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading animation */
.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Error states */
.error {
    color: var(--error);
    border-color: var(--error);
}

.success {
    color: var(--success);
    border-color: var(--success);
}

/* Improved contrast for better readability */
.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
}

/* Better button states */
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn:disabled:hover {
    transform: none;
}

/* Improved mobile experience */
@media (max-width: 767px) {
    .container {
        padding: 0 1rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .text-6xl {
        font-size: 3rem;
    }
    
    .gap-8 {
        gap: 1rem;
    }
    
    .space-y-8 > * + * {
        margin-top: 1rem;
    }
}

/* Ensure proper stacking context */
.nav {
    z-index: 1000;
}

.mobile-menu {
    z-index: 999;
}

/* Improved animations */
@media (prefers-reduced-motion: no-preference) {
    .animate-fade-in {
        animation: fadeIn 0.8s ease forwards;
    }
    
    .animate-slide-up {
        animation: slideUp 0.6s ease forwards;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure proper text rendering */
body {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Better form elements */
input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

/* Improved focus indicators */
button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Better image handling */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Consistent list styling */
ul,
ol {
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.25rem;
}

/* Better table styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

th,
td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    font-weight: 600;
    background: var(--bg-secondary);
}

/* Interactive Hero Elements */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-element {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: -2s;
}

.floating-element:nth-child(3) {
    top: 40%;
    left: 20%;
    animation-delay: -4s;
}

.floating-element:nth-child(4) {
    top: 80%;
    left: 60%;
    animation-delay: -1s;
}

.floating-element:nth-child(5) {
    top: 30%;
    left: 70%;
    animation-delay: -3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Hero Content */
.hero-content-wrapper {
    animation: heroFadeIn 1s ease-out;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hot Stats Widget */
.hot-stats-widget {
    margin-top: 2rem;
    animation: slideUpDelay 1s ease-out 0.5s both;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@keyframes slideUpDelay {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hot-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #ff6b35, #ff8e35);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 auto 1.5rem;
    width: fit-content;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    animation: hotPulse 2s ease-in-out infinite;
}

@keyframes hotPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3); }
    50% { transform: scale(1.05); box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5); }
}

.hot-badge i {
    animation: flicker 1.5s ease-in-out infinite;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.stats-grid:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.stat-item {
    text-align: center;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-3px);
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.25rem;
    transition: all 0.3s ease;
    animation: countUp 2s ease-out;
}

@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.presale-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1rem;
    transition: all 0.3s ease;
}

.presale-actions:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 102, 255, 0.1);
}

.presale-address-section {
    flex: 1;
}

.address-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.presale-address {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    color: var(--text-primary);
    flex: 1;
    transition: all 0.3s ease;
}

.presale-address:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.copy-btn {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
}

.copy-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.copy-btn:active {
    transform: scale(0.95);
}

.copy-btn.copied {
    background: var(--success);
    animation: copySuccess 0.3s ease;
}

@keyframes copySuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.join-presale-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.join-presale-btn::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.5s ease;
}

.join-presale-btn:hover::before {
    left: 100%;
}

.join-presale-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 102, 255, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hot-stats-widget {
        margin: 2rem 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .stat-value {
        font-size: 1.125rem;
    }
    
    .presale-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .address-display {
        width: 100%;
    }
    
    .join-presale-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-value {
        font-size: 1rem;
    }
    
    .presale-address {
        font-size: 0.75rem;
    }
}

/* Interactive Buttons */
.interactive-btn {
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.interactive-btn::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.5s ease;
}

.interactive-btn:hover::before {
    left: 100%;
}

.interactive-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 102, 255, 0.3);
}

.interactive-btn:active {
    transform: translateY(0);
}

.btn-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.btn-particles::before,
.btn-particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
}

.btn-particles::before {
    top: 20%;
    left: 20%;
}

.btn-particles::after {
    bottom: 20%;
    right: 20%;
}

.interactive-btn:hover .btn-particles::before,
.interactive-btn:hover .btn-particles::after {
    opacity: 1;
    animation: sparkle 0.6s ease-in-out;
}

@keyframes sparkle {
    0% { transform: scale(0) rotate(0deg); opacity: 0; }
    50% { transform: scale(1) rotate(180deg); opacity: 1; }
    100% { transform: scale(0) rotate(360deg); opacity: 0; }
}



/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: bounce 2s ease-in-out infinite;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-tertiary);
    border-radius: 12px;
    position: relative;
    margin-bottom: 0.5rem;
}

.scroll-wheel {
    width: 3px;
    height: 6px;
    background: var(--text-tertiary);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

@keyframes scroll-wheel {
    0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0.3; transform: translateX(-50%) translateY(10px); }
}

/* Interactive Cards */
.interactive-card {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.interactive-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 102, 255, 0.1), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.interactive-card:hover::before {
    left: 100%;
}

.interactive-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 102, 255, 0.15);
    border-color: var(--primary);
}

/* Flip Cards */
.flip-card {
    perspective: 1000px;
    height: 280px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-back {
    transform: rotateY(180deg);
}

.card-flip-hint {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.flip-card:hover .card-flip-hint {
    opacity: 1;
}

/* Expandable Cards */
.expandable-card {
    transition: all 0.3s ease;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

.expand-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.expand-icon:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.expandable-card[data-expanded="true"] .expand-icon {
    transform: rotate(45deg);
}

.card-expanded-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.expandable-card[data-expanded="true"] .card-expanded-content {
    max-height: 300px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.feature-item i {
    width: 20px;
    text-align: center;
    margin-top: 0.25rem;
}

.feature-item span {
    display: block;
    margin-bottom: 0.25rem;
}

/* Progress Cards */
.progress-card {
    transition: all 0.3s ease;
}

.progress-card:hover {
    transform: translateY(-5px) scale(1.02);
}

.interactive-progress {
    position: relative;
    cursor: pointer;
    height: 6px;
    background: rgba(100, 116, 139, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.interactive-progress .progress-fill {
    transition: width 0.8s ease;
    position: relative;
    width: 0%;
    background: linear-gradient(135deg, #0066ff 0%, #6366f1 100%);
    border-radius: 3px;
    height: 100%;
    min-height: 6px;
}

.interactive-progress .progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    opacity: 0;
    animation: pulse 1.5s ease-in-out infinite;
}

.progress-card:hover .progress-fill::after {
    opacity: 1;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.progress-details {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.progress-card:hover .progress-details {
    opacity: 1;
    transform: translateY(0);
}

.percentage-value {
    transition: all 0.3s ease;
}

.progress-card:hover .percentage-value {
    color: var(--primary);
    transform: scale(1.1);
}

/* Card Interactions */
.card.interactive-card {
    position: relative;
    z-index: 1;
}

.card.interactive-card:hover {
    z-index: 10;
}

/* Interactive Tokenomics Chart */
.tokenomics-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    overflow: visible;
}

.pie-chart {
    max-width: 300px;
    max-height: 300px;
    margin: 1rem auto;
    padding: 1rem;
    transform: rotate(-90deg);
    cursor: pointer;
    transition: transform 0.3s ease;
    overflow: visible;
}

.pie-chart:hover {
    transform: rotate(-90deg) scale(1.03);
}

.pie-segment {
    transition: stroke-dasharray 1s ease, stroke-width 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
}

.pie-segment:hover {
    stroke-width: 50;
    opacity: 0.8;
}

.chart-center-text {
    fill: var(--text-primary);
    font-family: 'Inter', sans-serif;
    transform: rotate(90deg);
    transform-origin: center;
}

.chart-legend {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    width: 100%;
    max-width: 500px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    cursor: pointer;
}

.legend-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.legend-item.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-item span {
    font-size: 0.875rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .tokenomics-chart {
        gap: 1rem;
    }
    
    .pie-chart {
        max-width: 250px;
        max-height: 250px;
    }
    
    .chart-legend {
        grid-template-columns: 1fr;
    }
}

/* Interactive Navigation */
.interactive-nav-link {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-text {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.nav-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.interactive-nav-link:hover .nav-indicator {
    transform: scaleX(1);
}

.interactive-nav-link.active .nav-indicator {
    transform: scaleX(1);
    background: var(--primary);
}

.interactive-nav-link.active .nav-text {
    color: var(--primary);
    font-weight: 600;
}

.interactive-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 102, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.interactive-nav-link:hover::before {
    opacity: 1;
}

.interactive-nav-link:hover .nav-text {
    transform: translateY(-1px);
}

/* Logo animations */
.logo {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.logo::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 102, 255, 0.4) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    /* animation: logoShine 3s ease-in-out infinite; */
    pointer-events: none;
}

@keyframes logoShine {
    0% { left: -100%; opacity: 0; }
    50% { left: 0%; opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

.logo:hover::after {
    opacity: 1;
}

/* Navigation scroll progress */
.nav-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(0, 102, 255, 0.1);
    z-index: 1001;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.1s ease;
}

.nav-progress-bar {
    width: 100%;
    height: 100%;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.1s ease;
}

/* Mobile navigation enhancements */
@media (max-width: 768px) {
    .interactive-nav-link {
        justify-content: center;
        padding: 1rem;
        border-radius: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .nav-indicator {
        display: none;
    }
    
    .interactive-nav-link:hover {
        background: var(--bg-secondary);
        transform: translateX(10px);
    }
} 

/* Toast Notification */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 400px;
    font-family: 'Inter', sans-serif;
}

.toast-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--success);
}

.toast-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--error);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.toast-content i {
    font-size: 18px;
    flex-shrink: 0;
}

.toast-content span {
    font-size: 14px;
    line-height: 1.4;
}

/* Tokenomics segments base styles */
.pie-segment {
    stroke-dasharray: 0 502;
    transition: stroke-width 0.3s ease;
}

/* Mobile responsiveness for toast */
@media (max-width: 768px) {
    .toast-notification {
        top: 20px;
        right: 20px;
        left: 20px;
        transform: translateY(-100px);
        max-width: none;
    }
    
    .toast-notification.show {
        transform: translateY(0);
    }
    
    .toast-content {
        font-size: 14px;
    }
} 

/* 3D iDog Image Styling */
.hero-3d-image {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    position: relative;
}

.idog-3d-model {
    width: 200px;
    height: 200px;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0, 102, 255, 0.3));
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
}

.idog-3d-model:hover {
    transform: scale(1.1) rotateY(10deg);
    filter: drop-shadow(0 20px 40px rgba(0, 102, 255, 0.5));
    box-shadow: 0 0 50px rgba(0, 102, 255, 0.3);
}

.idog-3d-model:active {
    transform: scale(0.95) rotateY(5deg);
}

/* Floating animation for 3D model */
@keyframes float3d {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.idog-3d-model {
    animation: float3d 4s ease-in-out infinite;
}

.idog-3d-model:hover {
    animation: none;
    transform: scale(1.1) rotateY(10deg);
}

/* Responsive sizing */
@media (max-width: 768px) {
    .idog-3d-model {
        width: 150px;
        height: 150px;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .idog-3d-model {
        width: 120px;
        height: 120px;
        padding: 10px;
    }
} 

/* Upcoming Card Styling */
.upcoming-card {
    opacity: 0.6;
    filter: grayscale(0.3);
    position: relative;
    transition: all 0.3s ease;
}

.upcoming-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(100, 116, 139, 0.1);
    border-radius: inherit;
    pointer-events: none;
}

.upcoming-card:hover {
    opacity: 0.8;
    filter: grayscale(0.1);
    transform: translateY(-2px);
}

.upcoming-card .text-tertiary {
    color: var(--text-tertiary) !important;
}

.upcoming-card .status-badge {
    opacity: 0.8;
}

/* Make sure active cards remain prominent */
.card:not(.upcoming-card) {
    position: relative;
    z-index: 2;
} 

/* Presale Cards Grid Layout */
.presale-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .presale-cards-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.presale-cards-grid .card {
    width: 100%;
    max-width: none;
    flex: none;
} 

/* Tokenomics Chart Card Spacing */
.tokenomics-chart .card {
    padding: 2rem;
    overflow: visible;
    position: relative;
}

.tokenomics-chart .pie-chart-container {
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
} 

/* Modern Footer Styles */
.modern-footer {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border-top: 1px solid var(--border);
    margin-top: 4rem;
}

.footer-main {
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
        gap: 2rem;
    }
}

/* Footer Brand Section */
.footer-brand {
    text-align: center;
}

@media (min-width: 768px) {
    .footer-brand {
        text-align: left;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .footer-logo {
        justify-content: flex-start;
    }
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: var(--shadow);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .footer-description {
        margin-left: 0;
        margin-right: 0;
    }
}

.footer-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

@media (min-width: 768px) {
    .footer-stats {
        justify-content: flex-start;
    }
}

.footer-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Footer Sections */
.footer-section {
    text-align: center;
}

@media (min-width: 768px) {
    .footer-section {
        text-align: left;
    }
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 1px;
}

@media (min-width: 768px) {
    .footer-title::after {
        left: 0;
        transform: none;
    }
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.footer-link:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.footer-link::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: height 0.3s ease;
}

.footer-link:hover::before {
    height: 100%;
}

/* Newsletter Section */
.footer-newsletter {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.newsletter-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.newsletter-input-group {
    position: relative;
    display: flex;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.newsletter-input {
    flex: 1;
    padding: 1rem;
    border: 1px solid var(--border);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.875rem;
    border-radius: 0.75rem 0 0 0.75rem;
    outline: none;
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.newsletter-input::placeholder {
    color: var(--text-tertiary);
}

.newsletter-btn {
    padding: 1rem 1.5rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 0 0.75rem 0.75rem 0;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.newsletter-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.newsletter-btn::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;
}

.newsletter-btn:hover::before {
    left: 100%;
}

.newsletter-disclaimer {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    line-height: 1.4;
    text-align: center;
}

/* Social Media Section */
.footer-social-section {
    background: var(--bg-tertiary);
    padding: 3rem 0;
    border-top: 1px solid var(--border);
}

.footer-social-content {
    text-align: center;
}

.social-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.social-link:hover::before {
    transform: translateX(100%);
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.twitter-link {
    background: linear-gradient(135deg, #1da1f2 0%, #0e71c8 100%);
    color: white;
}

.telegram-link {
    background: linear-gradient(135deg, #0088cc 0%, #0066aa 100%);
    color: white;
}

.discord-link {
    background: linear-gradient(135deg, #7289da 0%, #5865f2 100%);
    color: white;
}

.reddit-link {
    background: linear-gradient(135deg, #ff4500 0%, #cc3600 100%);
    color: white;
}

.medium-link {
    background: linear-gradient(135deg, #00ab6c 0%, #008855 100%);
    color: white;
}

.github-link {
    background: linear-gradient(135deg, #333 0%, #24292e 100%);
    color: white;
}

/* Footer Bottom */
.footer-bottom {
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    padding: 2rem 0;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-bottom-left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 768px) {
    .footer-bottom-left {
        flex-direction: row;
        gap: 2rem;
        align-items: center;
    }
}

.copyright {
    color: var(--text-tertiary);
    font-size: 0.875rem;
    margin: 0;
}

.footer-badges {
    display: flex;
    gap: 1rem;
}

.security-badge,
.audit-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.security-badge {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.audit-badge {
    background: rgba(0, 102, 255, 0.1);
    color: var(--primary);
    border: 1px solid rgba(0, 102, 255, 0.2);
}

.footer-bottom-right {
    display: flex;
    align-items: center;
}

.footer-credits {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

.solana-logo {
    width: 20px;
    height: 20px;
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .footer-main {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-grid {
        gap: 2rem;
    }
    
    .footer-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-stat {
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .social-links {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .social-link {
        width: 100%;
        justify-content: center;
        max-width: 200px;
        margin: 0 auto;
    }
    
    .footer-social-section {
        padding: 2rem 0;
    }
    
    .newsletter-input-group {
        flex-direction: column;
    }
    
    .newsletter-input {
        border-radius: 0.75rem;
    }
    
    .newsletter-btn {
        border-radius: 0.75rem;
    }
}

/* Dark Theme Adjustments */
[data-theme="dark"] .modern-footer {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

[data-theme="dark"] .footer-newsletter {
    background: var(--bg-tertiary);
}

[data-theme="dark"] .footer-social-section {
    background: var(--bg-secondary);
}

[data-theme="dark"] .footer-bottom {
    background: var(--bg-primary);
}

/* Animation for footer stats */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-stat {
    animation: fadeInUp 0.6s ease-out;
}

.footer-stat:nth-child(1) {
    animation-delay: 0.1s;
}

.footer-stat:nth-child(2) {
    animation-delay: 0.2s;
}

.footer-stat:nth-child(3) {
    animation-delay: 0.3s;
} 

@media (max-width: 768px) {
  .hero-image-wrapper {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: 1.5rem;
    order: -1;
    width: 100%;
  }
  .hero-image-container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100%;
  }
  .hero-image {
    margin-left: auto;
    margin-right: auto;
    display: block;
  }
} 