/* Black Wolf Inu - Custom Styles */

/* ===== Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* ===== Hero Background ===== */
.hero-bg {
    background:
        radial-gradient(ellipse at 80% 50%, rgba(50, 50, 50, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 80%, rgba(30, 30, 30, 0.5) 0%, transparent 40%);
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

/* Smoke/Mist Effect */
.hero-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(to top, #0a0a0a 0%, transparent 100%);
    pointer-events: none;
}

/* ===== Coin Styles ===== */
.coin-container {
    perspective: 1000px;
}

.coin-image {
    animation: coinFloat 4s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

.coin-image:hover {
    animation-play-state: paused;
    transform: translateY(-10px) scale(1.02);
}

.coin {
    width: 280px;
    height: 280px;
    position: relative;
    transform-style: preserve-3d;
    animation: coinFloat 4s ease-in-out infinite;
}

@keyframes coinFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

.coin-face {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    backface-visibility: hidden;
}

.coin-front {
    background: linear-gradient(145deg, #6b6b6b 0%, #3d3d3d 30%, #2a2a2a 50%, #3d3d3d 70%, #5a5a5a 100%);
    box-shadow:
        0 0 60px rgba(100, 100, 100, 0.3),
        inset 0 0 30px rgba(0, 0, 0, 0.5),
        inset 0 2px 10px rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.coin-inner {
    width: 85%;
    height: 85%;
    border-radius: 50%;
    background: linear-gradient(145deg, #4a4a4a 0%, #2d2d2d 50%, #3a3a3a 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 3px solid #5a5a5a;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.coin-ring {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 2px solid #5a5a5a;
    border-radius: 50%;
    opacity: 0.5;
}

.wolf-logo {
    margin-bottom: 5px;
}

.coin-text-top {
    position: absolute;
    top: 25px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #9a9a9a;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.coin-text-bottom {
    position: absolute;
    bottom: 30px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 4px;
    color: #b0b0b0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* ===== About Card ===== */
.about-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #141414 100%);
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 30px 40px;
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8b7500 0%, #c9a800 50%, #8b7500 100%);
}

/* ===== Feature Icons ===== */
.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
}

/* ===== Tokenomics Diagram ===== */
.tokenomics-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
}

.tokenomics-container {
    position: relative;
    width: min(640px, 100%);
    aspect-ratio: 1 / 0.78;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1.4fr 1fr;
    grid-template-areas:
        "tl  .   tr"
        ".   c   . "
        "bl  .   br";
    align-items: center;
    justify-items: center;
    gap: 0;
}

.tokenomics-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: linear-gradient(145deg, #3a3a3a 0%, #1a1a1a 100%);
    border: 3px solid #4a4a4a;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 40px rgba(60, 60, 60, 0.3),
        inset 0 0 30px rgba(0, 0, 0, 0.5);
}

/* 3D Coin Container */
.tokenomics-center-3d {
    grid-area: c;
    width: clamp(160px, 22vw, 220px);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
    z-index: 2;
}

.tokenomics-center-3d .coin-3d {
    width: 100%;
    height: 100%;
}

/* 3D Coin */
.coin-3d {
    width: 200px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    animation: spinCoin 4s linear infinite;
    cursor: grab;
}

.coin-3d:active {
    cursor: grabbing;
    animation-play-state: paused;
}

/* Coin faces */
.coin-3d .coin-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coin-3d .coin-face img {
    width: 105%;
    height: 105%;
    object-fit: contain;
    border-radius: 50%;
}

.coin-3d .coin-front {
    transform: translateZ(10px);
    /* Metallic ring border */
    border: 8px solid transparent;
    background:
        linear-gradient(#1a1a1a, #1a1a1a) padding-box,
        linear-gradient(
            145deg,
            #909090 0%,
            #d0d0d0 25%,
            #707070 50%,
            #c0c0c0 75%,
            #808080 100%
        ) border-box;
}

.coin-3d .coin-front::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.15) 0%,
        transparent 40%,
        transparent 60%,
        rgba(0,0,0,0.1) 100%
    );
    pointer-events: none;
}

.coin-3d .coin-back {
    transform: translateZ(-10px) rotateY(180deg);
    /* Metallic ring border - same as front */
    border: 8px solid transparent;
    background:
        linear-gradient(#1a1a1a, #1a1a1a) padding-box,
        linear-gradient(
            145deg,
            #909090 0%,
            #d0d0d0 25%,
            #707070 50%,
            #c0c0c0 75%,
            #808080 100%
        ) border-box;
}

.coin-3d .coin-back::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.15) 0%,
        transparent 40%,
        transparent 60%,
        rgba(0,0,0,0.1) 100%
    );
    pointer-events: none;
}

/* Edge layers - realistic brushed metal silver effect */
.coin-3d .coin-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transform: translateZ(var(--z));
    /* Realistic silver metal gradient */
    background:
        /* Brushed metal noise texture */
        repeating-linear-gradient(
            90deg,
            rgba(255,255,255,0.03) 0px,
            rgba(0,0,0,0.03) 1px,
            rgba(255,255,255,0.03) 2px
        ),
        /* Main metallic gradient */
        linear-gradient(
            45deg,
            #7a7a7a 0%,
            #c0c0c0 10%,
            #8a8a8a 20%,
            #d8d8d8 35%,
            #a0a0a0 50%,
            #d8d8d8 65%,
            #8a8a8a 80%,
            #c0c0c0 90%,
            #7a7a7a 100%
        );
    box-shadow:
        inset 2px 0 4px rgba(255,255,255,0.6),
        inset -2px 0 4px rgba(0,0,0,0.5),
        inset 0 2px 3px rgba(255,255,255,0.3),
        inset 0 -2px 3px rgba(0,0,0,0.4);
}

/* Ribbed pattern overlay */
.coin-3d .coin-layer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: repeating-conic-gradient(
        from 0deg,
        rgba(255,255,255,0.1) 0deg 2deg,
        rgba(0,0,0,0.15) 2deg 4deg
    );
    pointer-events: none;
}

/* Metallic shine highlight */
.coin-3d .coin-layer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        transparent 35%,
        rgba(255,255,255,0.4) 45%,
        rgba(255,255,255,0.6) 50%,
        rgba(255,255,255,0.4) 55%,
        transparent 65%,
        transparent 100%
    );
    pointer-events: none;
}

@keyframes spinCoin {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
}

/* Pause on hover */
.tokenomics-center-3d:hover .coin-3d {
    animation-play-state: paused;
}

.tokenomics-supply-text {
    margin-top: 28px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: 0.9s;
}

.tokenomics-container.is-revealed ~ .tokenomics-supply-text,
.tokenomics-diagram.is-revealed .tokenomics-supply-text {
    opacity: 1;
    transform: translateY(0);
}

.tokenomics-label {
    display: inline-flex;
    flex-direction: column;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(20, 20, 20, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transform: translateY(8px);
    transition:
        opacity 0.55s cubic-bezier(.2,.7,.2,1),
        transform 0.55s cubic-bezier(.2,.7,.2,1),
        border-color 0.25s ease,
        background 0.25s ease;
    z-index: 2;
    min-width: 110px;
    max-width: 200px;
}

.tokenomics-label:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(28, 28, 28, 0.7);
}

.tokenomics-container.is-revealed .tokenomics-label {
    opacity: 1;
    transform: translateY(0);
}

.tokenomics-container.is-revealed .label-top-left    { transition-delay: 0.20s; }
.tokenomics-container.is-revealed .label-top-right   { transition-delay: 0.32s; }
.tokenomics-container.is-revealed .label-bottom-left { transition-delay: 0.44s; }
.tokenomics-container.is-revealed .label-bottom-right{ transition-delay: 0.56s; }

.label-title {
    font-size: 12px;
    color: #8a8a8a;
    margin-bottom: 4px;
    letter-spacing: 0.02em;
}

.label-value {
    font-size: 15px;
    color: #f0f0f0;
    font-weight: 600;
    line-height: 1.25;
}

.label-top-left     { grid-area: tl; justify-self: start;  align-self: start;  text-align: left; }
.label-top-right    { grid-area: tr; justify-self: end;    align-self: start;  text-align: right; }
.label-bottom-left  { grid-area: bl; justify-self: start;  align-self: end;    text-align: left; }
.label-bottom-right { grid-area: br; justify-self: end;    align-self: end;    text-align: right; }

/* SVG overlay – lines drawn dynamically by JS */
.tokenomics-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
    z-index: 1;
}

.tokenomics-lines .tk-line {
    stroke: rgba(180, 180, 180, 0.35);
    stroke-width: 1.25;
    fill: none;
    stroke-linecap: round;
    /* Draw-on animation via dashoffset */
    stroke-dasharray: var(--len, 1);
    stroke-dashoffset: var(--len, 1);
    transition: stroke-dashoffset 0.9s cubic-bezier(.65,.05,.2,1);
}

.tokenomics-container.is-revealed .tk-line {
    stroke-dashoffset: 0;
}

.tokenomics-container.is-revealed .tk-line.delay-1 { transition-delay: 0.05s; }
.tokenomics-container.is-revealed .tk-line.delay-2 { transition-delay: 0.17s; }
.tokenomics-container.is-revealed .tk-line.delay-3 { transition-delay: 0.29s; }
.tokenomics-container.is-revealed .tk-line.delay-4 { transition-delay: 0.41s; }

.tokenomics-lines .tk-dot {
    fill: #9a9a9a;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tokenomics-container.is-revealed .tk-dot {
    opacity: 1;
    transition-delay: 0.7s;
    animation: tkPulse 2.6s ease-in-out infinite;
    transform-box: fill-box;
    transform-origin: center;
}

@keyframes tkPulse {
    0%, 100% { opacity: 0.55; r: 3; }
    50%      { opacity: 1;    r: 4.2; }
}

/* ===== Vision Card ===== */
.vision-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #141414 100%);
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.vision-card h2 {
    color: #dc2626;
}

/* Wolf Moon Image */
.wolf-moon-image {
    position: relative;
    width: 300px;
    height: 200px;
    background: linear-gradient(to bottom, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 8px;
    overflow: hidden;
}

/* ===== Social Icons ===== */
.social-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: white;
    transform: translateY(-3px);
}

/* ===== Wolf Paw ===== */
.wolf-paw {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.wolf-paw:hover {
    opacity: 1;
}

/* ===== Responsive Styles ===== */
@media (max-width: 768px) {
    .coin {
        width: 220px;
        height: 220px;
    }

    .coin-text-top {
        font-size: 9px;
        top: 20px;
    }

    .coin-text-bottom {
        font-size: 18px;
        bottom: 25px;
    }

    .wolf-logo svg {
        width: 60px;
        height: 60px;
    }

    .tokenomics-container {
        width: 100%;
        max-width: 420px;
    }

    .tokenomics-label {
        padding: 8px 10px;
        min-width: 0;
    }

    .label-title { font-size: 11px; }
    .label-value { font-size: 13px; }

    .about-card,
    .vision-card {
        padding: 20px;
    }
}

/* ===== Scrollbar Styling ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #3a3a3a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4a4a4a;
}

/* ===== Selection Styling ===== */
::selection {
    background: rgba(100, 100, 100, 0.5);
    color: white;
}

/* ===== Animations ===== */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* ===== Additional Polish ===== */

/* Smoky/Misty overlay for hero */
.smoke-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 70% 40%, rgba(80, 80, 80, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 30% 70%, rgba(60, 60, 60, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

/* Better coin 3D effect */
.coin::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.4) 100%);
    pointer-events: none;
}

/* Coin edge effect */
.coin-edge {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 8px solid;
    border-color: #4a4a4a #3a3a3a #2a2a2a #3a3a3a;
    box-sizing: border-box;
}

/* Improved about card golden accent */
.about-card::before {
    background: linear-gradient(90deg,
        transparent 0%,
        #6b5a00 10%,
        #a38a00 30%,
        #d4b200 50%,
        #a38a00 70%,
        #6b5a00 90%,
        transparent 100%);
    height: 2px;
}

/* Feature card hover state */
.feature-card {
    padding: 30px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.02);
    transform: translateY(-5px);
}

/* Tokenomics connecting dots */
.tokenomics-dot {
    width: 8px;
    height: 8px;
    background: #4a4a4a;
    border-radius: 50%;
    position: absolute;
}

/* Vision section title underline effect */
.vision-card h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #dc2626;
    margin-top: 10px;
}

/* Footer divider */
.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #3a3a3a 50%, transparent 100%);
}

/* Button press effect */
.btn-press {
    transition: all 0.15s ease;
}

.btn-press:active {
    transform: scale(0.98);
}

/* Glow effect for important elements */
.glow-effect {
    box-shadow: 0 0 20px rgba(100, 100, 100, 0.2);
}

/* Text gradient for headings */
.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Loading animation for page */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

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

/* Wolf silhouette improvements */
.wolf-moon-image svg {
    filter: drop-shadow(0 0 10px rgba(200, 200, 200, 0.3));
}

/* Improved link hover states */
nav a {
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Card shine effect */
.card-shine {
    position: relative;
    overflow: hidden;
}

.card-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255, 255, 255, 0.03) 50%,
        transparent 60%
    );
    transform: rotate(45deg);
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0%, 100% {
        transform: translateX(-100%) rotate(45deg);
    }
    50% {
        transform: translateX(100%) rotate(45deg);
    }
}
