/* HotcakeCoin Website - Main Stylesheet */
/* Professional Nexo-inspired design with HotcakeCoin branding */

:root {
    /* HotcakeCoin Theme Colors */
    --hotcake-primary: #71d605;
    --hotcake-secondary: #ffd700;
    --hotcake-accent: #ffd700;
    --hotcake-green: #00cc66;
    --bg-dark: #000000;
    --bg-gradient-start: #71d605;
    --bg-gradient-end: #000000;
    --text-white: #FFFFFF;
    --text-light: #ffffff;
    --text-muted: #cccccc;
    --text-dark: #000000;
    --border-color: #333333;
    --card-bg: #111111;
    --card-border: rgba(113, 214, 5, 0.3);
    --border-radius: 10px;
    --border-radius-lg: 15px;
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    --font-primary: "Plus Jakarta Sans", sans-serif;
    --font-secondary: "Outfit", sans-serif;
    --font-text: "Roboto", sans-serif;
   
}


.card:hover,
.card-wrapper:hover .card-inner,
.card-wrapper:hover .card-front::before {
  transform: none !important;
  box-shadow: none !important;
  border-color: inherit !important;
  
}
/* ------------------------ */
.footer {
    background-color: #111;
    color: #fff;
    padding: 40px 20px;
    font-family: sans-serif;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.footer-brand {
    flex: 1 1 250px;
}

.footer-section {
    flex: 1 1 150px;
}

.footer-section h4 {
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
}

.footer-section ul li a:hover {
    text-decoration: underline;
    color: #fff;
}

.social-links {
    margin-top: 10px;
}

.social-link {
    color: #fff;
    font-size: 18px;
    margin-right: 10px;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    font-size: 14px;
    color: #aaa;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-brand, .footer-section {
        width: 100%;
        max-width: 400px;
    }

    .footer-section ul li {
        margin-bottom: 6px;
    }

    .social-links {
        justify-content: center;
        display: flex;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 30px 10px;
    }

    .footer-section h4 {
        font-size: 16px;
    }

    .footer-section ul li a {
        font-size: 13px;
    }

    .social-link {
        font-size: 16px;
    }

    .footer-bottom {
        font-size: 13px;
    }
}


/*  */



/* ========================== */
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-text);
    background: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, var(--hotcake-primary), var(--hotcake-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-primary { color: var(--hotcake-primary); }
.text-secondary { color: var(--hotcake-secondary); }
.text-muted { color: var(--text-muted); }

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
    position: relative;
}

.section-dark {
    background: var(--bg-dark);
}

.section-gradient {
    background: linear-gradient(135deg, var(--bg-dark) 0%, rgba(113, 214, 5, 0.1) 100%);
}

/* Header and Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
   
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(0, 0, 0, 0.98);
    box-shadow: var(--shadow-xl);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-primary);
    font-size: 28px;
    font-weight: 800;
    color: var(--hotcake-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--hotcake-primary), var(--hotcake-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--bg-dark);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0 5px;
}

.nav-link {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--hotcake-primary);
    background: rgba(113, 214, 5, 0.1);
}

.nav-link.active {
    color: var(--hotcake-primary);
    background: rgba(113, 214, 5, 0.15);
}

.nav-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-family: var(--font-secondary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--hotcake-primary), var(--hotcake-green));
    color: var(--bg-dark);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--hotcake-secondary), var(--hotcake-primary));
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(113, 214, 5, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--hotcake-primary);
    border: 2px solid var(--hotcake-primary);
}

.btn-secondary:hover {
    background: var(--hotcake-primary);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-white);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    background: var(--text-white);
    color: var(--bg-dark);
    border-color: var(--text-white);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-dark);
    background-image: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.8) 0%, 
        rgba(0, 0, 0, 0.6) 40%, 
        rgba(113, 214, 5, 0.1) 70%, 
        rgba(255, 215, 0, 0.1) 100%
    );
   
 
    
  
}

/* Background Image Overlay for better text readability */
.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.4) 0%, 
        rgba(0, 0, 0, 0.3) 40%, 
        rgba(113, 214, 5, 0.05) 70%, 
        rgba(255, 215, 0, 0.05) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* Enhanced styling when background image loads */
.hero.bg-loaded {
    transition: opacity 0.5s ease-in-out;
}

/* Loading state */
.hero:not(.bg-loaded) {
    background-color: var(--bg-dark);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(113, 214, 5, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 3;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-text .subtitle {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    font-weight: 400;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(113, 214, 5, 0.2);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--hotcake-primary);
    display: block;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(113, 214, 5, 0.3);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    position: absolute;
    animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-card:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.floating-card:nth-child(3) {
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(1deg); }
    50% { transform: translateY(-10px) rotate(-1deg); }
    75% { transform: translateY(-15px) rotate(0.5deg); }
}

.crypto-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--hotcake-primary), var(--hotcake-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--bg-dark);
    margin-bottom: 15px;
}

/* Cards and Components */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--hotcake-primary), var(--hotcake-secondary));
}

.card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: var(--shadow-xl);
    border-color: var(--hotcake-primary);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--hotcake-primary), var(--hotcake-secondary));
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 36px;
    color: var(--bg-dark);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-white);
}

.card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 30px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Footer */
.footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--hotcake-primary);
}

.footer-brand p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(113, 214, 5, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hotcake-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--hotcake-primary);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

.footer-section h4 {
    margin-bottom: 20px;
    color: var(--text-white);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--hotcake-primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    text-align: center;
    color: var(--text-muted);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 8px;
    border-radius: 6px;
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(113, 214, 5, 0.1);
    border-color: rgba(113, 214, 5, 0.3);
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-white);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 10px 0;
        height: 70px;
        background: rgba(0, 0, 0, 0.98);
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    }
    
    .nav {
        height: 50px;
        position: relative;
    }
    
    .logo {
        font-size: 20px;
        z-index: 1002;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
    }
    
    .logo-icon img {
        width: 28px !important;
        height: auto;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        flex-direction: column;
        justify-content: flex-start;
        padding: 40px 20px 20px 20px;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        overflow-y: auto;
        overflow-x: hidden;
        list-style: none;
    }

    .nav-menu.active {
        left: 0;
        box-shadow: inset 0 0 50px rgba(113, 214, 5, 0.1);
    }

    .nav-menu li {
        margin: 8px 0;
        opacity: 0;
        transform: translateX(-30px);
        animation: slideInFromLeft 0.3s ease forwards;
    }

    .nav-menu.active li:nth-child(1) { animation-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) { animation-delay: 0.2s; }
    .nav-menu.active li:nth-child(3) { animation-delay: 0.3s; }
    .nav-menu.active li:nth-child(4) { animation-delay: 0.4s; }
    .nav-menu.active li:nth-child(5) { animation-delay: 0.5s; }
    .nav-menu.active li:nth-child(6) { animation-delay: 0.6s; }

    @keyframes slideInFromLeft {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .nav-link {
        display: block;
        padding: 15px 20px;
        margin: 5px 0;
        border-radius: 12px;
        font-size: 1.1rem;
        font-weight: 500;
        text-align: center;
        border: 1px solid transparent;
        transition: all 0.3s ease;
    }

    .nav-link:hover {
        background: rgba(113, 214, 5, 0.15);
        border-color: rgba(113, 214, 5, 0.3);
        transform: translateX(5px);
        color: var(--hotcake-primary);
    }

    .nav-link.active {
        background: linear-gradient(135deg, 
            rgba(113, 214, 5, 0.2) 0%, 
            rgba(255, 215, 0, 0.1) 100%);
        border-color: var(--hotcake-primary);
        color: var(--hotcake-primary);
    }

    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
        background: transparent;
        border: none;
        outline: none;
    }
    
    /* Ensure proper mobile viewport handling */
    .header {
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        width: 100%;
    }

    /* Prevent body scroll when mobile menu is open */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
    }

    /* Improve container spacing on mobile */
    .container {
        padding: 0 20px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .nav-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 30px 0 20px 0;
        margin-top: 20px;
        border-top: 1px solid rgba(113, 214, 5, 0.2);
    }

    .nav-buttons .btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
        justify-content: center;
        border-radius: 10px;
        font-weight: 600;
        transition: all 0.3s ease;
    }

    .nav-buttons .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(113, 214, 5, 0.3);
    }

    .btn-outline {
        border: 2px solid var(--hotcake-primary);
        color: var(--hotcake-primary);
        background: transparent;
    }

    .btn-outline:hover {
        background: var(--hotcake-primary);
        color: var(--bg-dark);
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .section {
        padding: 60px 0;
    }
    
    /* Fix mobile hero section to account for fixed header */
    .hero {
        padding-top: 100px;
        min-height: calc(100vh - 80px);
    }
    
    /* Ensure all first sections have proper top spacing */
    .section:first-of-type,
    section:first-of-type {
        padding-top: 100px;
    }
    
    /* Mobile background image adjustments */
    .hero {
        background-attachment: scroll; /* Better performance on mobile */
        background-size: cover;
        background-position: center center;
    }
    
    .hero-bg-overlay {
        /* Stronger overlay on mobile for better text readability */
        background: linear-gradient(135deg, 
            rgba(0, 0, 0, 0.6) 0%, 
            rgba(0, 0, 0, 0.4) 40%, 
            rgba(113, 214, 5, 0.1) 70%, 
            rgba(255, 215, 0, 0.1) 100%
        );
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    /* Additional mobile fixes */
    .hero {
        padding-top: 90px;
        min-height: calc(100vh - 70px);
    }
    
    .section:first-of-type,
    section:first-of-type {
        padding-top: 90px;
    }
    
    /* Fix roadmap page hero section spacing */
    .hero[style*="padding: 120px"] {
        padding: 90px 0 60px 0 !important;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Smaller mobile card adjustments */
    .card-wrapper {
        width: 280px !important;
        height: 175px !important;
    }
    
    .bg-card {
        width: 260px !important;
        height: 160px !important;
    }
    
    .sliding-card-container {
        height: 350px !important;
    }
    
    .card-overlay {
        padding: 15px !important;
    }
    
    .card-number {
        font-size: 0.9rem !important;
    }
    
    /* Mobile background optimization */
    .hero {
        /* Ensure background image is optimized for mobile */
        background-attachment: scroll;
    }
    
    /* Small mobile optimization */
    @media (max-width: 375px) {
        .hero {
            background-size: cover;
            background-position: center top;
        }
        
        .hero-bg-overlay {
            background: linear-gradient(135deg, 
                rgba(0, 0, 0, 0.7) 0%, 
                rgba(0, 0, 0, 0.5) 40%, 
                rgba(113, 214, 5, 0.1) 70%, 
                rgba(255, 215, 0, 0.1) 100%
            );
        }
    }
}

    .floating-card {
        display: none;
    }


/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.active {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Counter Animation */
.counter {
    display: block;
    font-size: 2rem;
    width: 100%;
    text-align: center;
    word-wrap: break-word;
    font-weight: 800;
    color: var(--hotcake-primary);
}

/* Glassmorphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--hotcake-primary);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--hotcake-primary), var(--hotcake-secondary));
    z-index: 1001;
    transition: width 0.3s ease;
}

/* Parallax Elements */
.parallax {
    transform: translateZ(0);
    will-change: transform;
}

/* Sliding Card Section Styles */
.card-showcase {
    position: relative;
}

.card-wrapper:hover .card-inner {
    transform: rotateY(5deg) scale(1.02);
}

.main-card {
    animation: cardFloat 6s ease-in-out infinite;
}

@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(1deg);
    }
    50% {
        transform: translateY(0px) rotate(0deg);
    }
    75% {
        transform: translateY(-5px) rotate(-1deg);
    }
}

.bg-card {
    animation: bgCardFloat 8s ease-in-out infinite;
}

@keyframes bgCardFloat {
    0%, 100% {
        transform: translateX(-20px) translateY(10px) rotate(-2deg);
    }
    50% {
        transform: translateX(-15px) translateY(15px) rotate(-1deg);
    }
}

.bg-card:nth-child(2) {
    animation-delay: -2s;
    animation-direction: reverse;
}

/* Card flip animation */
.card-flipped .card-inner {
    transform: rotateY(180deg) !important;
}

/* Card hover glow effect */
.card-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(113, 214, 5, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
}

.card-wrapper:hover .card-front::before {
    opacity: 1;
}

/* Roadmap Responsive Styles */
@media (max-width: 768px) {
    .roadmap-timeline {
        padding: 0 20px;
    }
    
    .roadmap-timeline > div:first-child {
        left: 20px !important;
        transform: none !important;
    }
    
    .roadmap-item {
        flex-direction: column !important;
        margin-bottom: 40px !important;
    }
    
    .roadmap-item > div:first-child,
    .roadmap-item > div:last-child {
        flex: none !important;
        padding: 0 !important;
        text-align: left !important;
        width: 100%;
        margin-bottom: 20px;
    }
    
    .roadmap-item > div:nth-child(2) {
        position: absolute;
        left: 20px;
        top: 20px;
        transform: none;
    }
    
    .roadmap-item .card {
        margin-left: 40px;
    }
}

/* Tokenomics Responsive Styles */
@media (max-width: 768px) {
    /* Tokenomics Section Mobile Centering */
    #tokenomics {
        text-align: center;
    }
    
    #tokenomics .container {
        padding: 0 15px;
    }
    
    #tokenomics .grid-2 {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
        justify-items: center;
    }
    
    #tokenomics .grid-3 {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        justify-items: center;
    }
    
    /* Center token distribution chart */
    #tokenomics .card {
        max-width: 100%;
        margin: 0 auto;
        text-align: center;
    }
    
    /* Adjust pie chart container for mobile */
    #tokenomics .card:first-child {
        height: auto !important;
        /* min-height: 500px; */
    }
    
    /* Center pie chart */
    #tokenomics .card div[style*="width: 300px"] {
        width: 250px !important;
        height: 250px !important;
        margin: 0 auto 20px !important;
    }
    
    /* Center legend items */
    #tokenomics .card div[style*="grid-template-columns: 1fr 1fr"] {
        display: grid !important;
        /* grid-template-columns: 1fr !important;
        gap: 10px !important; */
        text-align: center !important;
        justify-items: center;
        max-width: 280px;
        margin: 0 auto;
    }
    
    /* Center legend items */
    #tokenomics .card div[style*="display: flex; align-items: center"] {
        justify-content: center !important;
        text-align: center;
    }
    
    /* Center token details table */
    #tokenomics .card div[style*="display: flex; justify-content: space-between"] {
        display: flex !important;
        justify-content: space-between !important;
        text-align: left;
        max-width: 100%;
    }
    
    /* Center grid stats */
    #tokenomics .grid-2[style*="gap: 20px"] {
        justify-items: center;
        gap: 15px !important;
    }
    
    /* Center token utility cards */
    #tokenomics .grid-3[style*="gap: 30px"] {
        justify-items: center;
        gap: 20px !important;
    }
    
    /* Center buttons */
    #tokenomics .btn {
        display: block;
        margin: 20px auto 0 auto;
        width: fit-content;
        min-width: 200px;
    }
    
    /* General grid responsiveness */
    .grid-2 {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
    
    .grid-3 {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
}

/* Tokenomics Small Mobile Responsive */
@media (max-width: 480px) {
    #tokenomics .card {
        /* padding: 20px !important; */
        margin: 0 auto;
    }
    
    #tokenomics .card div[style*="width: 300px"] {
        width: 200px !important;
        height: 200px !important;
    }
    
    #tokenomics .card h3 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    
    #tokenomics .card div[style*="font-size: 1.5rem"] {
        font-size: 1.2rem !important;
    }
    
    #tokenomics .grid-2[style*="gap: 20px"] {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    
    #tokenomics .btn {
        width: 100%;
        max-width: 280px;
        padding: 12px 20px;
    }
}

/* Detailed Roadmap Page Responsive Styles */
@media (max-width: 768px) {
    /* General mobile section spacing */
    body {
        overflow-x: hidden;
    }
    
    /* Ensure all sections respect header height */
    main > section:first-child,
    body > section:first-child {
        margin-top: 80px;
    }
    
    .roadmap-phase .card {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .roadmap-phase > div {
        flex-direction: column !important;
        text-align: center !important;
    }
    
    .roadmap-phase > div > div:first-child,
    .roadmap-phase > div > div:last-child {
        padding: 0 !important;
        flex: none !important;
        width: 100% !important;
    }
    
    .roadmap-phase > div > div:nth-child(2) {
        margin: 20px 0 !important;
        position: relative !important;
        left: auto !important;
        top: auto !important;
    }
    
    .hero-stats {
        gap: 30px !important;
        flex-direction: column !important;
        text-align: center;
    }
    
    .milestone-timeline {
        margin-left: 0 !important;
    }
    
    .milestone-timeline > div {
        margin-left: 0 !important;
        padding-left: 15px !important;
    }
    
    /* Mobile navigation fixes */
    .nav-link {
        padding: 0px 0px;
        border-radius: 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    /* Mobile card spacing */
    .card {
        margin-bottom: 20px;
    }
    
    /* Sliding card mobile responsive */
    .sliding-card-container {
        height: 400px !important;
        padding: 20px;
    }
    
    .card-wrapper {
        width: 300px !important;
        height: 190px !important;
    }
    
    .bg-card {
        width: 280px !important;
        height: 175px !important;
    }
    
    .card-overlay {
        padding: 20px !important;
    }
    
    .card-number {
        font-size: 1rem !important;
    }
    
    .card-showcase .btn {
        width: 100%;
        margin: 10px 0;
    }

}