/* ========================================
   CSS Variables & Reset
   ======================================== */
:root {
    --dark-bg: #070a29;
    --dark-bg-2: #0a0e3a;
    --dark-bg-3: #0d1147;
    --primary-gradient: linear-gradient(94deg, #5c27fe, #dec7ff 100%, #ffffff);
    --connect-gradient: linear-gradient(85deg, #5c27fe, #ffffff 100%, #dec7ff);
    --secondary-gradient: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.1));
    --text-color: #ffffff;
    --text-secondary: #b3b3b3;
    --font-heading: 'Aclonica', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --bg-color: #070a29;
    --card-gradient-start: rgba(40, 50, 120, 1);
    --card-gradient-end: rgba(15, 25, 70, 0);
    --scrollbar-bg: #070a29;
    --scrollbar-track-border: rgba(124, 58, 237, 0.2);
    --radius-sm: 10px;
    --radius-md: 12px;
    --radius-lg: 14px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-bg);
    border-left: 1px solid var(--scrollbar-track-border);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #7c3aed 0%, #a78bfa 100%);
    border-radius: 6px;
    border: 2px solid var(--scrollbar-bg);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #8b5cf6 0%, #c4b5fd 100%);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #7c3aed var(--scrollbar-bg);
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    background-image: url('../images/mybgimg.png');
    background-position: top center;
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-attachment: scroll;
    color: var(--text-color);
    line-height: 1.5;
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.container::before,
.container::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    pointer-events: none;
    z-index: -1;
    will-change: transform;
}

.container::before {
    background: radial-gradient(circle, rgba(124, 58, 237, 0.6) 0%, rgba(124, 58, 237, 0) 70%);
    top: -200px;
    left: -200px;
}

.container::after {
    background: radial-gradient(circle, rgba(168, 85, 247, 0.4) 0%, rgba(168, 85, 247, 0) 70%);
    bottom: -200px;
    right: -200px;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    padding: 20px 0;
    position: relative;
    z-index: 1000;
    width: 100%;
    background: transparent;
}

/* Suppress container glow blobs inside navbar */
.navbar .container::before,
.navbar .container::after {
    display: none;
}

.navbar-mobile {
    display: none;
}

.navbar-desktop {
    display: block;
}

.navbar .nav-container {
    max-width: 1620px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
}

.nav-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
}

.nav-container-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hamburger-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    background: transparent;
    border: none;
}

.hamburger-menu span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-bg-2) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding-top: 80px;
    padding-bottom: 30px;
    transform: translateX(-100%);
    transition: transform 0.4s ease;
    z-index: 999;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.3);
    will-change: transform;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    flex: 1;
}

.mobile-nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 18px;
    padding: 16px 30px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.mobile-nav-link:hover {
    color: #a78bfa;
    background: rgba(124, 58, 237, 0.1);
    border-left-color: #a78bfa;
}

.mobile-nav-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0 30px;
    padding-bottom: 20px;
}

.mobile-nav-actions .btn {
    width: 100%;
    justify-content: center;
}

/* Mobile Menu Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-self: start;
}

.brand {
    justify-self: center;
}

.nav-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-self: end;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #a78bfa;
}

.logo-image {
    height: 50px;
}

.nav-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-self: end;
}

.btn-nav {
    padding: 14px 28px !important;
    font-size: 15px !important;
}

.nav-actions .btn-primary {
    padding: 14px 28px;
    font-size: 15px;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
}

.btn i,
.btn .btn-icon {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.btn:hover i,
.btn:hover .btn-icon {
    transform: scale(1.1);
}

.btn-icon {
    flex-shrink: 0;
}

.dino-icon {
    color: #ef4444;
    filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.5));
}

.btn-primary {
    padding: 14px 28px;
    background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
    position: relative;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #8b5cf6 0%, #c4b5fd 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: var(--radius-lg);
    z-index: -1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.6);
    color: #ffffff;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary,
.btn-primary * {
    position: relative;
    z-index: 1;
}

.btn-secondary {
    padding: 14px 28px;
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.nav-actions .btn-primary {
    padding: 14px 28px;
    font-size: 15px;
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    padding-top: 100px;
    padding-bottom: 140px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1620px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.hero-content {
    padding-top: 180px;
}

.hero-heading {
    font-family: var(--font-heading);
    font-size: 64px;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 400;
}

.text-gradient {
    background: linear-gradient(90deg, #5c27fe, #dec7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    color: #d1d5db;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 40px;
}

.hero-btn-group {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    gap: 50px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 0 30px;
    align-items: flex-start;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
}

.stat-item:first-child {
    padding-left: 0;
}

.stat-icon {
    font-size: 20px;
    color: #a78bfa;
    margin-right: 20px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.3) 0%, rgba(167, 139, 250, 0.2) 100%);
    border: 1px solid rgba(124, 58, 237, 0.4);
    border-radius: 10px;
    flex-shrink: 0;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 40px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.stat-label {
    color: #9ca3af;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   Hero Image & NFT Card
   ======================================== */
.hero-visual-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    overflow: visible;
}

.hero-image {
    max-width: 90%;
    height: auto;
    filter: drop-shadow(0 0 50px rgba(92, 39, 254, 0.3));
    animation: float 6s ease-in-out infinite;
    position: relative;
    z-index: 2;
    margin-bottom: -60px;
}

.hero-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(92, 39, 254, 0.35) 0%, rgba(7, 10, 41, 0) 65%);
    filter: blur(50px);
    z-index: 1;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    will-change: transform;
    pointer-events: none;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* ========================================
   NFT Card
   ======================================== */
.nft-card {
    background: linear-gradient(180deg, 
        var(--card-gradient-start) 0%, 
        rgba(35, 45, 110, 0.95) 20%,
        rgba(30, 40, 100, 0.85) 40%,
        rgba(25, 35, 90, 0.6) 60%,
        rgba(20, 30, 80, 0.3) 80%,
        var(--card-gradient-end) 100%
    );
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    border-radius: 20px;
    padding: 25px;
    width: 100%;
    box-shadow: none;
    position: relative;
    z-index: 3;
    will-change: transform;
}

.nft-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: none;
    position: relative;
    z-index: 2;
}

.nft-card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #7c3aed 0%, rgba(124, 58, 237, 0.35) 50%, transparent 100%);
    border-radius: 2px;
}

.nft-card-title {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    line-height: 1.4;
}

.nft-card-likes {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    font-size: 16px;
    font-weight: 500;
}

.nft-card-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.nft-info-row {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.nft-bid-section,
.nft-timer-section {
    flex: 1;
}

.nft-label {
    color: #9ca3af;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nft-bid-amount {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 400;
    color: var(--text-color);
    margin-bottom: 5px;
}

.nft-bid-usd {
    color: #9ca3af;
    font-size: 13px;
    font-weight: 500;
}

.nft-countdown {
    display: flex;
    gap: 15px;
    align-items: center;
}

.countdown-item {
    text-align: center;
    position: relative;
    padding: 0 15px;
}

.countdown-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

.countdown-item:first-child {
    padding-left: 0;
}

.countdown-item:not(:last-child)::before {
    content: '';
    display: none;
}

.countdown-value {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 400;
    color: var(--text-color);
    margin-bottom: 3px;
}

.countdown-label {
    color: #9ca3af;
    font-size: 11px;
    font-weight: 500;
    text-transform: capitalize;
}

/* ========================================
   Logo Strip (if needed)
   ======================================== */
.logo-strip {
    padding: 60px 0;
    background-color: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.partner-logo {
    opacity: 0.5;
    transition: opacity 0.3s ease;
    max-height: 40px;
}

.partner-logo:hover {
    opacity: 1;
}

@media (max-width: 767px) {
    .logo-grid {
        justify-content: center;
    }
}

/* ========================================
   Scroll to Top Button
   ======================================== */
.scroll-top-btn {
    position: fixed;
    bottom: 40px;
    right: 100px;
    width: 50px;
    height: 50px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, box-shadow 0.3s ease;
    z-index: 9999;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.7);
    transform: translateY(-3px);
}

@media (max-width: 480px) {
    .scroll-top-btn {
        bottom: 20px;
        right: 74px;
        width: 44px;
        height: 44px;
        font-size: 16px;
        border-radius: var(--radius-md);
    }
}

.sound-toggle-btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.85) 0%, rgba(167, 139, 250, 0.85) 100%);
    color: #ffffff;
    border: 1px solid rgba(196, 181, 253, 0.5);
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    z-index: 9999;
}

.sound-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.5);
}

.sound-toggle-btn.is-muted {
    opacity: 0.7;
    background: linear-gradient(135deg, rgba(75, 85, 99, 0.9) 0%, rgba(107, 114, 128, 0.9) 100%);
    border-color: rgba(156, 163, 175, 0.7);
}

:where(a, button, [role='button'], input, textarea, select, .toggle-switch, .hamburger-menu):focus-visible {
    outline: 2px solid rgba(196, 181, 253, 0.95);
    outline-offset: 3px;
}

.blog-card:focus-visible {
    outline: 2px solid rgba(196, 181, 253, 0.95);
    outline-offset: 6px;
    border-radius: 20px;
}

@media (max-width: 480px) {
    .sound-toggle-btn {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: 16px;
        border-radius: var(--radius-md);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
